@import url('./theme.css');

/* 技術文章共用樣式 */
:root {
            --primary-dark: #0B1120;
            --accent-cyan: #00D4FF;
            --accent-gold: #FFB800;
            --text-dark: #E8EDF4;
            --text-gray: #A8B2C1;
            --bg-dark: #0F1825;
            --bg-section: #141D2B;
            --dark-gray: #1E2936;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Noto Sans TC', sans-serif;
            color: var(--text-dark);
            background:
                radial-gradient(circle at 12% 12%, rgba(0, 212, 255, 0.12), transparent 34rem),
                linear-gradient(180deg, #0B1120 0%, #0F1825 42%, #101827 100%);
            line-height: 1.8;
        }

        a {
            color: inherit;
        }

        .nav {
            position: sticky;
            top: 0;
            z-index: 10;
            background: rgba(6, 12, 24, 0.72);
            backdrop-filter: blur(14px);
            border-bottom: 1px solid rgba(255,255,255,0.08);
        }

        .nav-inner {
            width: min(1120px, calc(100% - 2rem));
            margin: 0 auto;
            min-height: 76px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1.2rem;
        }

        .brand img {
            width: 176px;
            max-width: 38vw;
            display: block;
            filter: drop-shadow(0 5px 18px rgba(0, 0, 0, 0.35));
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 0.9rem;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        .nav-links a {
            text-decoration: none;
            color: rgba(255,255,255,0.88);
            font-size: 0.95rem;
            font-weight: 700;
        }

        .nav-links a:hover {
            color: var(--accent-cyan);
        }

        .article-hero {
            width: min(1040px, calc(100% - 2rem));
            margin: 0 auto;
            padding: 4.8rem 0 2.4rem;
        }

        .article-hero--turbo {
            position: relative;
            overflow: hidden;
            margin-top: 2rem;
            padding: clamp(2.2rem, 5vw, 4.4rem);
            border: 1px solid rgba(0, 212, 255, 0.18);
            border-radius: 24px;
            background:
                radial-gradient(circle at 82% 20%, rgba(0, 212, 255, 0.18), transparent 26rem),
                linear-gradient(135deg, rgba(5, 12, 24, 0.96), rgba(15, 24, 37, 0.9));
            box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
        }

        .article-hero--turbo::after {
            content: '';
            position: absolute;
            inset: auto -5rem -7rem auto;
            width: 24rem;
            height: 24rem;
            border: 1px solid rgba(0, 212, 255, 0.16);
            border-radius: 50%;
            pointer-events: none;
        }

        .breadcrumb {
            display: inline-flex;
            gap: 0.45rem;
            align-items: center;
            color: var(--accent-cyan);
            text-decoration: none;
            font-weight: 800;
            margin-bottom: 1.2rem;
        }

        .eyebrow {
            display: inline-flex;
            color: var(--accent-gold);
            border: 1px solid rgba(255,184,0,0.28);
            background: rgba(255,184,0,0.08);
            border-radius: 999px;
            padding: 0.38rem 0.78rem;
            font-size: 0.86rem;
            font-weight: 800;
            margin-bottom: 1.1rem;
        }

        h1 {
            font-size: clamp(2.1rem, 5vw, 4rem);
            line-height: 1.18;
            letter-spacing: 0;
            max-width: 900px;
            text-shadow: 0 4px 22px rgba(0,0,0,0.5);
        }

        .lead {
            max-width: 820px;
            margin-top: 1.1rem;
            font-size: clamp(1rem, 2.4vw, 1.18rem);
            color: var(--text-gray);
        }

        .tag-list {
            display: flex;
            flex-wrap: wrap;
            gap: 0.55rem;
            margin-top: 1.5rem;
        }

        .tag-list span {
            color: var(--accent-cyan);
            border: 1px solid rgba(0,212,255,0.25);
            background: rgba(0,212,255,0.08);
            border-radius: 999px;
            padding: 0.38rem 0.7rem;
            font-size: 0.86rem;
        }

        .article-meta-line {
            margin-top: 1.15rem;
            color: rgba(232, 237, 244, 0.78);
            font-size: 0.95rem;
            font-weight: 700;
        }

        .article-wrap {
            width: min(1040px, calc(100% - 2rem));
            margin: 0 auto 4rem;
            display: grid;
            grid-template-columns: minmax(0, 1fr) 280px;
            gap: 1.5rem;
            align-items: start;
        }

        .article-content {
            background: linear-gradient(145deg, rgba(20, 29, 43, 0.94), rgba(30, 41, 54, 0.86));
            border: 1px solid rgba(0, 212, 255, 0.16);
            border-radius: 18px;
            padding: clamp(1.25rem, 3vw, 2rem);
            box-shadow: 0 22px 70px rgba(0,0,0,0.2);
        }

        .article-content--readable {
            color: #172133;
            background: linear-gradient(180deg, #F8F6F1 0%, #EEEAE2 100%);
            border-color: rgba(11, 17, 32, 0.08);
            box-shadow: 0 24px 70px rgba(3, 8, 20, 0.22);
        }

        .article-section + .article-section,
        .report-gallery {
            margin-top: 1.6rem;
        }

        .article-section h2 {
            font-size: clamp(1.25rem, 2.6vw, 1.65rem);
            margin-bottom: 0.7rem;
            color: #fff;
        }

        .article-content--readable .article-section h2 {
            color: #0B1120;
        }

        .article-content--readable p {
            color: #334155;
        }

        .article-content--readable p + p,
        .article-content--readable p + .article-table-wrap,
        .article-content--readable p + ul,
        .article-content--readable .article-table-wrap + p,
        .article-content--readable ul + p,
        .article-callout + p {
            margin-top: 0.95rem;
        }

        .article-section ul {
            list-style: none;
            display: grid;
            gap: 0.7rem;
        }

        .article-section li {
            position: relative;
            padding-left: 1.2rem;
            color: var(--text-gray);
        }

        .article-content--readable .article-section li {
            color: #334155;
        }

        .article-section li::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0.76rem;
            width: 0.45rem;
            height: 0.45rem;
            border-radius: 50%;
            background: var(--accent-cyan);
            box-shadow: 0 0 12px rgba(0,212,255,0.45);
        }

        .article-callout {
            margin: 1rem 0;
            padding: 1rem 1.15rem;
            border-left: 4px solid var(--accent-cyan);
            border-radius: 12px;
            color: #122033;
            background: rgba(0, 212, 255, 0.08);
            font-weight: 800;
            line-height: 1.85;
        }

        .article-table-wrap {
            width: 100%;
            overflow-x: auto;
            margin: 1rem 0;
            border: 1px solid rgba(15, 23, 42, 0.12);
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.72);
        }

        .article-table {
            width: 100%;
            min-width: 560px;
            border-collapse: collapse;
            color: #172133;
        }

        .article-table th,
        .article-table td {
            padding: 0.85rem 1rem;
            border-bottom: 1px solid rgba(15, 23, 42, 0.1);
            text-align: left;
            vertical-align: top;
        }

        .article-table th {
            color: #0B1120;
            background: rgba(0, 212, 255, 0.1);
            font-weight: 800;
            white-space: nowrap;
        }

        .article-table tr:last-child td {
            border-bottom: 0;
        }

        .report-gallery {
            display: grid;
            gap: 1rem;
        }

        .report-gallery figure {
            margin: 0;
            padding: 0.75rem;
            border-radius: 14px;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(0,212,255,0.14);
        }

        .report-gallery img {
            width: 100%;
            display: block;
            border-radius: 10px;
            background: #fff;
        }

        .report-gallery figcaption {
            color: var(--text-gray);
            font-size: 0.92rem;
            margin-top: 0.55rem;
        }

        .side-card {
            position: sticky;
            top: 96px;
            border-radius: 16px;
            padding: 1.1rem;
            background: rgba(20,29,43,0.72);
            border: 1px solid rgba(0,212,255,0.16);
        }

        .side-card h2 {
            font-size: 1.08rem;
            margin-bottom: 0.75rem;
        }

        .side-card a {
            display: block;
            text-decoration: none;
            color: var(--text-gray);
            padding: 0.55rem 0;
            border-bottom: 1px solid rgba(255,255,255,0.08);
        }

        .side-card a:hover {
            color: var(--accent-cyan);
        }

        .cta-row {
            width: min(1040px, calc(100% - 2rem));
            margin: 0 auto 4.5rem;
            padding: 1.4rem;
            border-radius: 18px;
            border: 1px solid rgba(0,212,255,0.18);
            background: linear-gradient(135deg, rgba(0,212,255,0.12), rgba(255,184,0,0.08));
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
        }

        .cta-row a {
            text-decoration: none;
            font-weight: 800;
            color: var(--primary-dark);
            background: linear-gradient(135deg, var(--accent-cyan), #5ee7ff);
            border-radius: 999px;
            padding: 0.75rem 1.05rem;
            white-space: nowrap;
        }

        footer {
            text-align: center;
            color: rgba(168,178,193,0.82);
            border-top: 1px solid rgba(0,212,255,0.14);
            padding: 2rem 1rem;
        }

        @media (max-width: 820px) {
            .nav-inner {
                min-height: auto;
                padding: 0.75rem 0;
                align-items: flex-start;
                flex-direction: column;
            }

            .nav-links {
                justify-content: flex-start;
                gap: 0.75rem;
            }

            .article-hero {
                padding-top: 2.8rem;
            }

            .article-hero--turbo {
                margin-top: 1rem;
                padding: 1.55rem;
                border-radius: 18px;
            }

            .article-wrap {
                grid-template-columns: 1fr;
            }

            .article-content--readable {
                padding: 1.15rem;
            }

            .side-card {
                position: static;
            }

            .cta-row {
                align-items: flex-start;
                flex-direction: column;
            }
        }
        .brand {
            display: inline-flex;
            align-items: center;
            gap: 0.62rem;
            text-decoration: none;
            color: #fff;
        }

        .brand img.brand-mark-img {
            width: auto;
            height: 46px;
            max-width: none;
            display: block;
            filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.45));
            flex-shrink: 0;
        }

        .brand .brand-wordmark {
            display: inline-flex;
            flex-direction: column;
            justify-content: center;
            line-height: 1;
            color: #fff;
            text-shadow: 0 3px 14px rgba(0, 0, 0, 0.7);
            white-space: nowrap;
        }

        .brand .brand-wordmark strong {
            display: block;
            font-family: 'Poppins', 'Noto Sans TC', sans-serif;
            font-size: 1.22rem;
            font-weight: 700;
            letter-spacing: 0.08em;
        }

        .brand .brand-wordmark em {
            display: block;
            margin-top: 0.32rem;
            font-style: normal;
            font-size: 0.78rem;
            font-weight: 500;
            letter-spacing: 0.42em;
        }

        @media (max-width: 640px) {
            .brand img.brand-mark-img {
                height: 38px;
            }

            .brand .brand-wordmark {
                display: none;
            }
        }
