/* --- 字體導入 (Font Imports) --- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Noto+Sans+TC:wght@400;500;700&family=Noto+Serif+TC:wght@700&display=swap');

/* --- 顏色主題與字體 (Theme Colors & Typography) --- */
:root {
    /* 品牌色 */
    --brand-color: #0891b2;
    --brand-color-light: rgba(8, 145, 178, 0.1);

    /* 淺色模式 (基於您的版本) */
    --bg-color: #f3f4f6;
    --bg-primary: #f3f4f6;
    --bg-secondary: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-content: #1f2937;
    --border-color: #e5e7eb;
    --accordion-bg: #f9fafb;
    --icon-bg: #ffffff;
    --nav-link-active: #111827;
    --nav-link-inactive: #6b7280;
    --cyan-glow: rgba(8, 145, 178, 0.7);
    --header-bg: rgba(243, 244, 246, 0.8);
}

.dark:root {
    /* 深色模式 (基於您的版本) */
    --bg-color: #000000;
    --bg-primary: #000000;
    --bg-secondary: #1f2937;
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-content: #d1d5db;
    --border-color: #374151;
    --accordion-bg: rgba(20, 20, 20, 0.5);
    --icon-bg: #111827;
    --nav-link-active: #f9fafb;
    --nav-link-inactive: #9ca3af;
    --header-bg: rgba(0, 0, 0, 0.7);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-content);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- 固定頂部導覽 (Sticky Header) --- */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
}

/* --- LOGO (您的原始設定) --- */
.site-logo {
    text-decoration: none;
    display: inline-block;
    line-height: 1;
}
.logo-main {
    font-family: 'Noto Serif TC', serif;
    font-weight: 700;
    font-size: 2.25rem;
    color: white;
    text-shadow: 0 0 8px rgba(0,0,0,0.8);
    transition: all 0.3s ease;
}
.logo-sub {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    display: block;
    margin-top: 0.25rem;
    transition: color 0.3s ease;
}
.dark .logo-main {
    color: black;
    text-shadow: 0 0 8px rgba(255,255,255,0.8);
}
@media (max-width: 640px) {
    .logo-main {
        font-size: 2rem;
    }
    .logo-sub {
        font-size: 0.9rem;
    }
}


/* ===== 【全新】響應式導覽列 ===== */
/* --- 電腦版樣式 --- */
.nav-item {
    position: relative;
    padding-bottom: 8px;
}
.nav-link {
    display: block;
    padding: 8px 16px;
    border-radius: 8px;
    white-space: nowrap;
    transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
    color: var(--nav-link-inactive);
}
.nav-link:hover {
    background-color: rgba(128, 128, 128, 0.1);
    color: var(--nav-link-active);
}
.nav-item.active > .nav-link {
    color: var(--nav-link-active);
    font-weight: 600;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0;
    background-color: var(--icon-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 0.5rem;
    min-width: 180px;
    z-index: 50;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.nav-item:hover > .dropdown-menu {
    display: block;
}
.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    border-radius: 0.25rem;
    white-space: nowrap;
}
.dropdown-menu a:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}
.dropdown-menu a.active {
    background-color: var(--brand-color-light);
    color: var(--brand-color);
    font-weight: 600;
}

/* --- 手機版樣式 --- */
#hamburger-btn {
    color: var(--text-primary);
}
.mobile-menu {
    position: fixed;
    top: 85px; /* 導覽列高度 */
    right: 0;
    width: 100%;
    height: calc(100vh - 85px);
    background-color: var(--bg-primary);
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 40;
    overflow-y: auto;
    box-shadow: -4px 0 15px rgba(0,0,0,0.1);
}
.mobile-menu.open {
    transform: translateX(0);
}
.mobile-menu a, .mobile-menu p, .mobile-menu span {
    display: block;
    color: var(--text-primary);
    font-size: 1.5rem;
}
.mobile-menu a {
    padding: 0.2rem;
    border-radius: 0.25rem;
}
.mobile-menu a:hover {
    background-color: var(--bg-secondary);
}
.mobile-menu-group {
    border-top: 1px solid var(--border-color);
    margin-top: 0.1rem;
    padding-top: 0.1rem;
}
.mobile-menu-group:first-child {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}
.mobile-menu-group p {
    font-weight: 700;
    padding: 0.5rem;
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
}
.mobile-menu a.active {
    color: var(--brand-color);
    font-weight: 700;
}
.mobile-theme-switch {
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-menu-group a {
    font-size: 1rem; /* 預設是 1.125rem，這裡縮小為 1rem (16px)，您可以依喜好調整這個數值 */
}
/* --- (以下為您網站的其他原始樣式，保持不變) --- */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 1.5rem;
    background-color: var(--accordion-bg);
}
.accordion-button.active + .accordion-content {
    max-height: 2000px;
    padding: 1.5rem 1.5rem;
}
.accordion-button .arrow {
    transition: transform 0.3s ease-out;
}
.accordion-button.active .arrow {
    transform: rotate(180deg);
}
.title-gradient {
    background: linear-gradient(90deg, #0891b2, #67e8f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.step-container {
    position: relative;
    padding-left: 2.5rem;
}
.step-line {
    position: absolute;
    left: 1.25rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
    transform: translateX(-50%);
    transition: background-color 0.3s ease;
}
.step-container:last-child .step-line {
    height: 2.5rem;
}
.step-icon {
    position: absolute;
    left: 1.25rem;
    top: 1.25rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    border-width: 2px;
    border-color: var(--border-color);
    background-color: var(--icon-bg);
    transform: translateX(-50%);
    z-index: 10;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}
.accordion-button.active .step-icon {
     border-color: #0891b2;
}
.product-card, .partner-card {
    background-color: var(--icon-bg);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.dark .product-card, .dark .partner-card {
    background-color: #1a1a1a;
    box-shadow: 0 0 15px rgba(8, 145, 178, 0.2);
}
.product-card:hover, .partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.dark .product-card:hover, .dark .partner-card:hover {
    box-shadow: 0 0 30px rgba(8, 145, 178, 0.4);
}
.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}
.product-card .p-6 {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}
.product-description {
    margin-top: 0.5rem;
    color: var(--text-secondary);
    flex-grow: 1;
    min-height: 60px;
}
.product-button, .product-button-disabled {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.product-button {
    background-color: #0891b2;
    color: white;
}
.product-button:hover {
    background-color: #0e7490;
    transform: scale(1.03);
}
.product-button-disabled {
    background-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}
.dark .product-button-disabled {
    background-color: #374151;
    color: #6b7280;
}
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.theme-switch {
    display: inline-block;
    height: 26px;
    position: relative;
    width: 50px;
}
.theme-switch input { display:none; }
.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 26px;
}
.slider:before {
    background-color: #fff;
    bottom: 3px;
    content: "";
    height: 20px;
    left: 3px;
    position: absolute;
    transition: .4s;
    width: 20px;
    border-radius: 50%;
}
input:checked + .slider { background-color: #0891b2; }
input:checked + .slider:before { transform: translateX(24px); }
.home-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
    overflow: hidden;
}
.home-hero-section {
    background-color: #111827;
}
.home-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, var(--cyan-glow) 0%, transparent 15%),
        radial-gradient(circle at 80% 60%, #4f46e5 0%, transparent 15%);
    filter: blur(60px);
    animation: floating-glow 20s ease-in-out infinite;
}
@keyframes floating-glow {
    0% { transform: translate(0, 0); }
    25% { transform: translate(10px, 20px); }
    50% { transform: translate(-20px, -10px); }
    75% { transform: translate(15px, -15px); }
    100% { transform: translate(0, 0); }
}
.hero-button-primary {
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-block;
    background-color: #0891b2;
    color: white;
}
.hero-button-primary:hover {
    background-color: #0e7490;
    transform: scale(1.05);
}
.carousel-container {
    position: relative;
    width: calc(100% + 3rem); 
    margin-left: -1.5rem;
    margin-right: -1.5rem;
}
.product-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 0 1.5rem 1.5rem 1.5rem;
    scrollbar-width: none;
}
.product-carousel::-webkit-scrollbar {
    display: none;
}
.carousel-card {
    flex: 0 0 80%; 
    scroll-snap-align: start;
}
@media (min-width: 640px) {
    .carousel-container {
        width: calc(100% + 5rem);
        margin-left: -2.5rem;
        margin-right: -2.5rem;
    }
    .product-carousel {
        gap: 1.5rem;
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
    .carousel-card {
        flex-basis: 280px; 
    }
}
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    color: #000;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: none;
}
.dark .carousel-button {
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
}
@media (min-width: 1024px) {
    .carousel-button {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
.carousel-button.prev { left: -50px; }
.carousel-button.next { right: -50px; }
hr {
    border: none;
    height: 1px;
    background-image: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: 3rem 0;
}
.dark hr {
    height: 2px;
    background-image: linear-gradient(to right, transparent, var(--cyan-glow), transparent);
    box-shadow: 0 0 15px var(--cyan-glow);
}
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    background-color: var(--bg-color);
}
.dark .site-footer {
    border-top: 1px solid var(--border-color);
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}
.footer-socials {
    display: flex;
    gap: 1rem;
}
.footer-socials a {
    color: var(--text-secondary);
    transition: color 0.2s ease, transform 0.2s ease;
}
.footer-socials a:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}
.event-card {
    background-color: var(--icon-bg);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .event-card {
        flex-direction: row;
        align-items: center;
    }
}
.event-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
    flex-shrink: 0;
}
@media (min-width: 768px) {
    .event-image {
        width: 250px;
        height: auto;
    }
}
.event-details-button {
    display: inline-block;
    border: 2px solid #0891b2;
    color: #0891b2;
    padding: 0.6rem 1.2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}
.event-details-button:hover {
    background-color: #0891b2;
    color: white;
}
.invitation-body {
    background-color: #000;
    overflow-x: hidden;
}
.invitation-container {
    max-width: 1000px;
    margin: 0 auto;
}
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 20% 30%, hsla(190, 80%, 50%, 0.3) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, hsla(260, 70%, 50%, 0.3) 0%, transparent 40%);
    animation: background-move 20s infinite alternate;
}
@keyframes background-move {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, -30px) scale(1.1); }
}
.background-dots {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -1;
    opacity: 0.5;
}
.info-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.highlight-card {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.highlight-card:hover {
    transform: translateY(-5px);
    background-color: rgba(0, 0, 0, 0.4);
}
.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, #0891b2, #67e8f9);
    color: white;
    font-weight: bold;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.3);
}
.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.5);
}
.scroll-arrow {
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    opacity: 1;
}
.scroll-arrow.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}
.community-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background-color: var(--icon-bg);
    border-radius: 1rem;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.dark .community-card {
    background-color: #1a1a1a;
    box-shadow: 0 0 15px rgba(8, 145, 178, 0.2);
}
.community-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.dark .community-card:hover {
    box-shadow: 0 0 30px rgba(8, 145, 178, 0.4);
}
.community-card-icon {
    flex-shrink: 0;
    color: var(--brand-color);
}
.community-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}
.community-card-desc {
    margin-top: 0.25rem;
    color: var(--text-secondary);
}
.report-box {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    border: 1px dashed var(--border-color);
    border-radius: 1rem;
    background-color: var(--accordion-bg);
}
.report-box-icon {
    flex-shrink: 0;
    color: var(--text-secondary);
}
.report-box-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}
.report-box-desc {
    margin-top: 0.5rem;
    color: var(--text-content);
}
.report-box-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--brand-color);
    text-decoration: none;
    background-color: var(--brand-color-light);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.report-box-link:hover {
    background-color: var(--brand-color);
    color: white;
}
.lore-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}
.lore-section:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.faction-title {
    font-size: 1.25em;
    font-weight: 700;
    color: var(--text-primary);
    border-left: 4px solid var(--brand-color);
    padding-left: 0.75rem;
    margin-bottom: 1rem;
}

/* --- 頁尾連結樣式 --- */
.footer-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap; /* 在小螢幕時可換行 */
    justify-content: center;
}
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0 0.5rem;
    border-left: 1px solid var(--border-color);
}
.footer-links a:hover {
    color: var(--brand-color);
}

/* --- B2B 企業合作頁面樣式 --- */
.service-card {
    background-color: var(--icon-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.dark .service-card:hover {
    border-color: var(--brand-color);
    box-shadow: 0 0 30px rgba(8, 145, 178, 0.2);
}
.service-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}
.service-card-desc {
    margin-top: 1rem;
    color: var(--text-secondary);
}

.cta-box {
    text-align: center;
    padding: 3rem 2rem;
    background-color: var(--bg-secondary);
    border-radius: 1rem;
}
.dark .cta-box {
    background-color: #1a1a1a;
}
.cta-box-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}
.cta-box-desc {
    margin-top: 1rem;
    max-width: 36rem; /* 36rem 等同於 Tailwind 的 xl */
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary);
}
.cta-box-button {
    display: inline-block;
    margin-top: 2rem;
    background-color: var(--brand-color);
    color: white;
    font-weight: 600;
    padding: 0.75rem 2.5rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.cta-box-button:hover {
    transform: scale(1.05);
    background-color: #0e7490; /* darken brand color */
}