:root {
	--bg: #14100b;
	--bg-deep: #0d0b08;
	--surface: #1d1811;
	--surface-soft: #282016;

	--text: #f6f0e4;
	--text-soft: #bdb3a2;
	--text-dark: #21190f;

	--brand: #d7a63d;
	--brand-light: #f0cd76;
	--brand-dark: #976a21;

	--border: rgba(215, 166, 61, 0.22);
	--border-light: rgba(255, 255, 255, 0.09);

	--container: 1180px;

	--radius-sm: 8px;
	--radius-md: 14px;
	--radius-lg: 22px;

	--shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
	--transition: 180ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; line-height: 1.7; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body, button, input, textarea, select { font-family: inherit; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { border: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.3; }

.txt_clamp { overflow: hidden; height: 1.2em; text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.d_inblock.txt_clamp { display: -webkit-inline-box; }

.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }

.section-label { margin-bottom: 12px; color: var(--brand); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.btn { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 24px; border-radius: 999px; font-weight: 700; line-height: 1; transition: transform var(--transition), color var(--transition), border-color var(--transition), background var(--transition); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: var(--text-dark); background: linear-gradient(135deg, var(--brand-light), var(--brand)); }
.btn-outline { color: var(--text); border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.04); }
.btn-outline:hover { border-color: var(--brand); background: rgba(215, 166, 61, 0.08); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-light); font-size: 0.88rem; font-weight: 700; }
.text-link span { transition: transform var(--transition); }
.text-link:hover span { transform: translateX(3px); }

.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border-light); background: rgba(13, 11, 8, 0.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { width: auto; max-height: 46px; }
.main-nav ul { display: flex; align-items: center; gap: 30px; }
.main-nav a { position: relative; min-height: 44px; display: flex; align-items: center; color: #ddd3c3; font-size: 0.92rem; font-weight: 600; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: 4px; width: 0; height: 2px; background: var(--brand); transition: width var(--transition); }
.main-nav a:hover, .main-nav a.active { color: var(--brand-light); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--text); transition: transform var(--transition), opacity var(--transition); }

.site-footer { border-top: 1px solid var(--border-light); background: #090806; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 0.65fr 1.35fr; gap: 70px; padding-top: 78px; padding-bottom: 66px; }
.footer-logo { display: inline-block; margin-bottom: 17px; color: var(--brand-light); font-size: 1.3rem; font-weight: 900; }
.footer-brand p { max-width: 350px; margin-bottom: 0; color: #91887a; font-size: 0.88rem; }
.footer-nav h2, .footer-articles > h2 { margin-bottom: 19px; color: var(--text); font-size: 0.95rem; }
.footer-nav ul { display: grid; gap: 9px; }
.footer-nav a { color: #978e80; font-size: 0.88rem; transition: color var(--transition); }
.footer-nav a:hover { color: var(--brand-light); }
.footer-article + .footer-article { margin-top: 15px; }
.footer-article a { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 15px; align-items: center; }
.footer-article img { width: 105px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); }
.footer-article h3 { margin-bottom: 6px; color: #dcd2c2; font-size: 0.88rem; transition: color var(--transition); }
.footer-article a:hover h3 { color: var(--brand-light); }
.footer-article time { color: #71685c; font-size: 0.74rem; }
.footer-bottom { border-top: 1px solid var(--border-light); }
.footer-bottom-inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-bottom p { margin: 0; color: #746c60; font-size: 0.75rem; }

a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--brand-light); outline-offset: 4px; }

.line-cta { position: fixed; right: 24px; bottom: 24px; z-index: 999; min-width: 220px; display: grid; grid-template-columns: 44px 1fr 20px; align-items: center; gap: 11px; padding: 10px 13px 10px 10px; border: 1px solid rgba(215, 166, 61, .25); border-radius: 16px; color: var(--text); background: linear-gradient(135deg, rgba(34, 28, 20, .96), rgba(15, 13, 10, .96)); box-shadow: 0 16px 40px rgba(0, 0, 0, .32), inset 0 1px rgba(255, 255, 255, .04); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); animation: line-cta-enter .55s ease-out both, line-cta-float 4s ease-in-out 1s infinite; transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.line-cta:hover { transform: translateY(-4px); border-color: rgba(215, 166, 61, .48); box-shadow: 0 20px 48px rgba(0, 0, 0, .42), 0 0 0 1px rgba(215, 166, 61, .05); }
.line-cta-icon { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: #06c755; box-shadow: 0 8px 20px rgba(6, 199, 85, .18); }
.line-cta-icon::before { content: ""; position: absolute; inset: -5px; border: 1px solid rgba(6, 199, 85, .26); border-radius: 15px; opacity: 0; animation: line-icon-pulse 3.2s ease-out infinite; }
.line-cta-icon svg { width: 25px; height: 25px; fill: #ffffff; }
.line-cta-content { min-width: 0; display: flex; flex-direction: column; }
.line-cta-content small { margin-bottom: 1px; color: #8f8678; font-size: .68rem; line-height: 1.3; letter-spacing: .05em; }
.line-cta-content strong { color: #f4ecdf; font-size: .88rem; line-height: 1.4; font-weight: 700; }
.line-cta-arrow { color: var(--brand); font-size: 1rem; transition: transform 180ms ease; }
.line-cta:hover .line-cta-arrow { transform: translateX(3px); }
@keyframes line-cta-enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes line-cta-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes line-icon-pulse { 0% { transform: scale(.92); opacity: 0; } 20% { opacity: .55; } 70%, 100% { transform: scale(1.28); opacity: 0; } }
@keyframes line-mobile-enter { from { opacity: 0; transform: translateY(12px) scale(.94); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes line-mobile-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes line-icon-pulse-mobile { 0% { transform: scale(.94); opacity: 0; } 25% { opacity: .4; } 70%, 100% { transform: scale(1.2); opacity: 0; } }

@media (max-width: 1024px) {
	.footer-grid { gap: 38px; }
}
@media (max-width: 820px) {
	.container { width: min(calc(100% - 36px), var(--container)); }
	.header-inner { min-height: 66px; }
	.brand img { max-height: 40px; }
	.menu-toggle { display: block; }
	.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
	.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.main-nav { position: absolute; top: 100%; left: 0; right: 0; max-height: 0; overflow: hidden; opacity: 0; border-bottom: 1px solid var(--border-light); background: rgba(13, 11, 8, 0.98); transition: max-height 280ms ease, opacity 180ms ease; }
	.main-nav.is-open { max-height: 460px; opacity: 1; }
	.main-nav ul { width: min(calc(100% - 36px), var(--container)); display: grid; gap: 0; margin-inline: auto; padding: 10px 0 20px; }
	.main-nav a { min-height: 50px; border-bottom: 1px solid var(--border-light); }
	.main-nav a::after { display: none; }
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
	.footer-articles { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.container { width: min(calc(100% - 28px), var(--container)); }
	.footer-grid { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 50px; }
	.footer-articles { grid-column: auto; }
	.footer-article a { grid-template-columns: 92px minmax(0, 1fr); }
	.footer-article img { width: 92px; height: 66px; }
	.footer-bottom-inner { min-height: auto; flex-direction: column; align-items: flex-start; padding-top: 20px; padding-bottom: 20px; }
	.line-cta { right: 14px; bottom: 16px; min-width: 0; display: block; padding: 0; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; animation: line-mobile-enter .45s ease-out both, line-mobile-float 4.5s ease-in-out 1s infinite; }
	.line-cta:hover { transform: none; box-shadow: none; }
	.line-cta-icon { width: 52px; height: 52px; border-radius: 15px; box-shadow: 0 10px 26px rgba(6, 199, 85, .26); }
	.line-cta-icon::before { inset: -4px; border-radius: 18px; animation: line-icon-pulse-mobile 3.8s ease-out infinite; }
	.line-cta-icon svg { width: 27px; height: 27px; }
	.line-cta-content, .line-cta-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
	.line-cta, .line-cta-icon::before { animation: none; }
}