:root {
    --bg: #0b1220;
    --panel: #0f1a2b;
    --panel-2: #0b1730;
    --text: #e8eefc;
    --muted: #a9b8d6;
    --primary: #5aa2ff;
    --accent: #00d3ff;
    --ring: #2b60ff;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "Noto Sans TC", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang TC", "Microsoft JhengHei", sans-serif;
    background: linear-gradient(180deg, #0b1220 0%, #0a1230 100%);
    color: var(--text);
}

a {
    color: var(--text);
    text-decoration: none;
}

    a:hover {
        color: var(--accent);
    }

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
    padding-left: 12px;
    padding-right: 12px;
}

header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(11,18,32,0.7);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.logo {
    width: 136px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--ring));
    display: grid;
    place-items: center;
    color: #0b1220;
    font-weight: 900;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

    .brand img {
        width: 100px;
        height: auto;
        border-radius: 8px;
    }

.brand-text {
    font-size: 20px;
    font-weight: 600;
}

.menu {
    display: flex;
    align-items: center;
    gap: 14px;
}

    .menu a, .menu button {
        padding: 10px 12px;
        border-radius: 10px;
        transition: all .2s ease;
        border: 1px solid transparent;
        background: transparent;
        color: var(--text);
    }

        .menu a:hover, .menu button:hover {
            background: rgba(255,255,255,0.06);
            border-color: rgba(255,255,255,0.08);
        }

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 110%;
    left: 0;
    background: var(--panel);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 10px;
    min-width: 210px;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--muted);
}

    .dropdown-menu a:hover {
        color: var(--text);
        background: rgba(255,255,255,0.06);
    }

/* Mobile nav */
.hamburger {
    display: none;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 8px 10px;
    border-radius: 10px;
}

#nav-toggle {
    display: none;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    background: radial-gradient(1200px 400px at 50% -10%, rgba(0,211,255,0.25), transparent 60%), linear-gradient(180deg, rgba(15,26,43,0.9), rgba(11,18,32,1));
}

    .hero .inner {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: 24px;
        padding: 48px 0;
        align-items: stretch;
    }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(90,162,255,0.15);
    border: 1px solid rgba(90,162,255,0.35);
    color: var(--primary);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: .3px;
}

h1 {
    font-size: clamp(28px, 3.5vw, 44px);
    line-height: 1.15;
    margin: 10px 0 12px;
}

.lead {
    color: var(--muted);
    font-size: clamp(14px, 2vw, 18px);
}

.cta {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--ring), var(--accent));
    color: #041024;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 700;
    border: none;
}

.btn-ghost {
    border: 1px solid rgba(255,255,255,0.15);
    background: transparent;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text);
}

.mock {
    background: linear-gradient(135deg, #12203a, #0d1730);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    height: 240px;
    display: grid;
    place-items: center;
    color: var(--muted);
}

/* Content */
main {
    padding: 28px 0 48px;
}

.card {
    background: var(--panel);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 18px;
}

.grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, 1fr);
}

.crumbs {
    color: var(--muted);
    font-size: 14px;
    margin: 10px 0 16px;
}

footer {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 26px 0;
    color: var(--muted);
    font-size: 14px;
}

/* Utility */
.sr {
    position: absolute;
    left: -10000px;
}

/* slogan-rotator */
.fade-enter {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .5s ease, transform .5s ease;
}

    .fade-enter.fade-enter-active {
        opacity: 1;
        transform: translateY(0);
    }

nav.menu a, nav.menu button {
    font-size: 20px;
}

/* ================== RWD ================== */

/* 900px �H�U�G��ʪ������C�BHero ����BGrid ���� */
@media (max-width: 900px) {
    .hamburger {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        padding: 12px;
        background: rgba(15,26,43,0.98);
        border-bottom: 1px solid rgba(255,255,255,0.08);
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        z-index: 40;
    }

    #nav-toggle:checked + .hamburger + .menu {
        display: flex;
    }

    .dropdown:hover .dropdown-menu {
        display: none;
    }

    .dropdown .dropdown-menu {
        position: static;
        display: none; /* �w�]����� */
        background: transparent;
        border: none;
        padding-left: 8px;
        margin-top: 6px;
    }

    /* �s�W�G���U�Կ��}�Үɤ~��� */
    .dropdown[data-open="true"] .dropdown-menu {
        display: block;
    }

        .dropdown .dropdown-menu a {
            padding-left: 18px;
        }

    .brand img {
        width: 72px;
    }

    .brand-text {
        font-size: 18px;
    }

    .nav {
        padding: 12px 0;
    }

    .hero .inner {
        grid-template-columns: 1fr;
        padding: 28px 0 36px;
    }

    .mock {
        height: 180px;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}

/* 768px �H�U�G�r�ŷL�� */
@media (max-width: 768px) {
    h1 {
        font-size: clamp(24px, 6vw, 32px);
    }

    .lead {
        font-size: 14px;
    }

    .cta {
        gap: 10px;
    }
}

/* �U�Ԫ��@�P�˦� */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 110%;
    left: 0;
    min-width: 220px;
    background: var(--panel);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 8px;
    display: none; /* �w�]���� */
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

    .dropdown-menu a {
        display: block;
        padding: 12px 14px; /* �����I�����n */
        border-radius: 8px;
        color: var(--muted);
    }

        .dropdown-menu a:hover {
            color: var(--text);
            background: rgba(255,255,255,0.06);
        }

/* �� data-open ����}���]�ƹ�/Ĳ�����A�Ρ^ */
.dropdown[data-open="true"] > .dropdown-menu {
    display: block;
}

/* ����[�X�G�䴩 hover �}�ҡA�����v�T�I������ */
@media (hover: hover) and (pointer: fine) {
    .dropdown:hover > .dropdown-menu {
        display: block;
    }
}

/* ������]�A 900px ���_�I�^�����I���i�}�A���αj��`�n��� */
@media (max-width: 900px) {
    .dropdown .dropdown-menu {
        position: static; /* ��ۿ��y�����U */
        width: 100%;
        margin-top: 6px;
    }
}

/* ================== Tech Flair Enhancements ================== */
/* Neon glow buttons */
.btn-primary {
    position: relative;
    box-shadow: 0 0 0 rgba(0,211,255,0);
    transition: box-shadow .25s ease, transform .15s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0,211,255,.22), 0 0 0 1px rgba(0,211,255,.25) inset;
}

/* Glassy menu hover */
.menu a:hover, .menu button:hover {
    backdrop-filter: blur(6px);
    border-color: rgba(255,255,255,0.12);
}

/* Neon border cards */
.card {
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0,211,255,.35), rgba(90,162,255,.15));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Aurora background on header */
header { position: sticky; }
header::after {
    content: "";
    position: absolute;
    inset: -20% -10%;
    background:
      radial-gradient(40% 60% at 20% 30%, rgba(0,211,255,.18) 0%, transparent 60%),
      radial-gradient(35% 55% at 80% 20%, rgba(90,162,255,.18) 0%, transparent 60%),
      radial-gradient(50% 50% at 50% 80%, rgba(43,96,255,.16) 0%, transparent 60%);
    filter: blur(30px) saturate(120%);
    animation: aurora 18s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: -1;
}

@keyframes aurora {
    0%   { transform: translateY(-2%) translateX(0) scale(1); }
    50%  { transform: translateY(1%) translateX(2%) scale(1.03); }
    100% { transform: translateY(-1%) translateX(-1%) scale(1.01); }
}

/* Subtle global noise */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' opacity='0.05'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' /%3E%3C/svg%3E");
    z-index: 0;
}

/* Nav underline slide */
.menu a { position: relative; }
.menu a::after {
    content: "";
    position: absolute;
    left: 10px;
    right: calc(100% - 10px);
    bottom: 6px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--ring));
    border-radius: 2px;
    transition: right .25s ease, opacity .25s ease;
    opacity: .0;
}
.menu a:hover::after { right: 10px; opacity: .9; }

/* Dropdown fade-in */
.dropdown-menu {
    transform: translateY(6px);
    opacity: 0;
    transition: opacity .18s ease, transform .18s ease;
}
.dropdown[data-open="true"] > .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
}

/* ================== News list enhancements ================== */
.news-list { list-style: none; padding-left: 0; margin: 0; }
.news-item { margin-bottom: 8px; }
.news-link { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.news-title { font-weight: 600; }
.news-meta { color: var(--muted); font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.news-date { opacity: .85; }
.tag { padding: 2px 8px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; font-size: 12px; color: var(--muted); }
.tag-live { color: #041024; background: linear-gradient(135deg, var(--ring), var(--accent)); border-color: transparent; }
.news-arrow { color: var(--accent); transition: transform .15s ease; }
.news-link:hover .news-arrow { transform: translateX(3px); }

/* ================== Product card CTA and badges ================== */
.product-card { padding-bottom: 58px; }
.product-card .badges { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.badge-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(0,211,255,.25); color: var(--text); background: rgba(0,211,255,.08); font-size: 12px; }
.product-card .card-cta { position: sticky; bottom: 12px; display: flex; gap: 10px; padding-top: 12px; background: linear-gradient(180deg, rgba(11,18,32,0), rgba(11,18,32,.85)); backdrop-filter: blur(6px); border-top: 1px solid rgba(255,255,255,.06); margin-top: 16px; }
@media (max-width: 900px) { .product-card { padding-bottom: 66px; } .product-card .card-cta { bottom: 10px; } }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}