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

/* 合作品牌頁共用樣式 */
:root {
            --brand-accent: var(--accent-cyan);
            --brand-bg-glow: rgba(0, 212, 255, 0.16);
            --brand-text-glow: rgba(0, 212, 255, 0.24);
            --brand-border-strong: rgba(0, 212, 255, 0.46);
            --brand-border: rgba(0, 212, 255, 0.28);
            --brand-border-subtle: rgba(0, 212, 255, 0.16);
            --brand-soft-bg: rgba(0, 212, 255, 0.08);
            --brand-card-glow: rgba(0, 212, 255, 0.24);
            --brand-drop-glow: rgba(0, 212, 255, 0.28);
            --brand-image-max-width: min(88%, 440px);
            --brand-cta-gradient: linear-gradient(135deg, #00D4FF, #7BEAFF);
            --primary-dark: #0B1120;
            --bg-section: #141D2B;
            --accent-cyan: #00D4FF;
            --accent-gold: #FFB800;
            --text-dark: #E8EDF4;
            --text-gray: #A8B2C1;
        }

        * { box-sizing: border-box; }

        body {
            margin: 0;
            font-family: 'Noto Sans TC', 'Poppins', sans-serif;
            background: radial-gradient(circle at 70% 8%, var(--brand-bg-glow), transparent 34%), var(--primary-dark);
            color: var(--text-dark);
        }

        a { color: inherit; }

        .site-nav {
            display: flex;
            align-items: center;
            justify-content: space-between;
            max-width: 1180px;
            margin: 0 auto;
            padding: 1.1rem 1rem;
        }

        .site-nav img {
            width: 202px;
            max-width: 46vw;
            height: auto;
        }

        .back-link {
            color: var(--brand-accent);
            text-decoration: none;
            font-weight: 800;
            text-shadow: 0 0 16px var(--brand-text-glow);
        }

        main {
            max-width: 1180px;
            margin: 0 auto;
            padding: clamp(3rem, 8vw, 6rem) 1rem 5rem;
        }

        .brand-hero {
            display: grid;
            grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
            gap: clamp(2rem, 5vw, 4.5rem);
            align-items: center;
        }

        .brand-tag {
            display: inline-flex;
            padding: 0.38rem 0.8rem;
            border: 1px solid var(--brand-border-strong);
            border-radius: 999px;
            color: var(--brand-accent);
            background: var(--brand-soft-bg);
            font-size: 0.8rem;
            font-weight: 900;
            letter-spacing: 0.12em;
        }

        h1 {
            margin: 1rem 0 0.85rem;
            color: #fff;
            font-size: clamp(2.2rem, 6vw, 4.7rem);
            line-height: 1.05;
            letter-spacing: 0;
        }

        h1 span {
            display: block;
            color: rgba(232, 237, 244, 0.72);
            font-family: 'Poppins', sans-serif;
            font-size: clamp(1rem, 2vw, 1.4rem);
            letter-spacing: 0.18em;
            text-transform: uppercase;
        }

        .lead {
            max-width: 680px;
            color: rgba(226, 232, 240, 0.86);
            font-size: 1.08rem;
            line-height: 1.9;
        }

        .visual-card {
            min-height: 360px;
            border: 1px solid var(--brand-border);
            border-radius: 24px;
            background:
                radial-gradient(circle at 50% 42%, var(--brand-card-glow), transparent 42%),
                linear-gradient(145deg, rgba(20, 29, 43, 0.98), rgba(5, 10, 18, 0.98));
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
        }

        .visual-card svg {
            width: min(78%, 360px);
            stroke: rgba(232, 237, 244, 0.92);
            fill: none;
            stroke-width: 1.4;
            stroke-linecap: round;
            stroke-linejoin: round;
            filter: drop-shadow(0 0 22px var(--brand-drop-glow));
        }

        .visual-card img {
            width: auto;
            max-width: var(--brand-image-max-width);
            max-height: 320px;
            object-fit: contain;
            border-radius: 18px;
            filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.42));
        }

        .visual-card--gallery {
            min-height: 0;
            padding: clamp(1rem, 2vw, 1.35rem);
            flex-direction: column;
            gap: 1rem;
            background:
                radial-gradient(circle at 50% 30%, var(--brand-card-glow), transparent 44%),
                linear-gradient(145deg, rgba(20, 29, 43, 0.98), rgba(5, 10, 18, 0.98));
        }

        .brand-gallery__stage {
            display: grid;
            grid-template-columns: 42px minmax(0, 1fr) 42px;
            align-items: center;
            gap: 0.55rem;
            width: 100%;
            min-height: 390px;
        }

        .brand-gallery__figure {
            display: flex;
            min-width: 0;
            min-height: 360px;
            margin: 0;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .brand-gallery__figure img {
            width: 100%;
            max-width: min(94%, 430px);
            max-height: 330px;
            object-fit: contain;
            border-radius: 12px;
            filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.42));
        }

        .brand-gallery__caption {
            margin-top: 0.85rem;
            color: #fff;
            font-size: 1.05rem;
            font-weight: 900;
            line-height: 1.45;
            text-align: center;
        }

        .brand-gallery__arrow {
            width: 42px;
            height: 74px;
            border: 0;
            border-radius: 10px;
            color: var(--brand-accent);
            background: rgba(232, 237, 244, 0.08);
            font-family: Georgia, serif;
            font-size: 2.65rem;
            line-height: 1;
            cursor: pointer;
            transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
        }

        .brand-gallery__arrow:hover,
        .brand-gallery__arrow:focus-visible {
            color: #06101d;
            background: var(--brand-accent);
            transform: translateY(-1px);
        }

        .brand-gallery__thumbs {
            display: flex;
            width: 100%;
            gap: 0.7rem;
            justify-content: center;
            overflow-x: auto;
            padding: 0.15rem 0 0.25rem;
        }

        .brand-gallery__thumb {
            flex: 0 0 auto;
            width: 82px;
            height: 64px;
            padding: 4px;
            border: 1px solid rgba(232, 237, 244, 0.18);
            border-radius: 8px;
            background: rgba(232, 237, 244, 0.08);
            cursor: pointer;
            opacity: 0.72;
            transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
        }

        .brand-gallery__thumb:hover,
        .brand-gallery__thumb:focus-visible,
        .brand-gallery__thumb.is-active {
            opacity: 1;
            border-color: var(--brand-accent);
            box-shadow: 0 0 0 2px var(--brand-soft-bg);
        }

        .brand-gallery__thumb:hover,
        .brand-gallery__thumb:focus-visible {
            transform: translateY(-1px);
        }

        .brand-gallery__thumb img {
            width: 100%;
            max-width: none;
            height: 100%;
            max-height: none;
            object-fit: contain;
            border-radius: 5px;
            filter: none;
        }

        .content-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
            gap: 1rem;
            margin-top: clamp(2rem, 5vw, 4rem);
        }

        .info-card {
            border: 1px solid var(--brand-border-subtle);
            border-radius: 16px;
            padding: 1.25rem;
            background: rgba(20, 29, 43, 0.78);
        }

        h2 {
            margin: 0 0 0.65rem;
            color: #fff;
            font-size: 1.12rem;
        }

        .info-card p {
            margin: 0;
            color: var(--text-gray);
            line-height: 1.8;
        }

        .cta-row {
            margin-top: 2rem;
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .cta {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 50px;
            padding: 0.8rem 1.2rem;
            border-radius: 999px;
            color: #06101d;
            background: var(--brand-cta-gradient);
            text-decoration: none;
            font-weight: 900;
        }

        @media (max-width: 820px) {
            .brand-hero,
            .content-grid {
                grid-template-columns: 1fr;
            }

            main {
                padding-top: 2rem;
            }

            .visual-card {
                min-height: 260px;
            }

            .brand-gallery__stage {
                grid-template-columns: 36px minmax(0, 1fr) 36px;
                min-height: 310px;
            }

            .brand-gallery__figure {
                min-height: 286px;
            }

            .brand-gallery__figure img {
                max-height: 250px;
            }

            .brand-gallery__arrow {
                width: 36px;
                height: 58px;
                font-size: 2.2rem;
            }

            .brand-gallery__thumb {
                width: 72px;
                height: 56px;
            }
        }

body.brand-theme-gold {
    --brand-accent: var(--accent-gold);
    --brand-bg-glow: rgba(255, 184, 0, 0.16);
    --brand-text-glow: rgba(255, 184, 0, 0.24);
    --brand-border-strong: rgba(255, 184, 0, 0.5);
    --brand-border: rgba(255, 184, 0, 0.28);
    --brand-border-subtle: rgba(255, 184, 0, 0.16);
    --brand-soft-bg: rgba(255, 184, 0, 0.1);
    --brand-card-glow: rgba(255, 184, 0, 0.24);
    --brand-drop-glow: rgba(255, 184, 0, 0.28);
    --brand-image-max-width: min(88%, 480px);
    --brand-cta-gradient: linear-gradient(135deg, #FFB800, #FFE08A);
}
