:root {
    --red: #b5121b;
    --red-dark: #8f0f17;
    --ink: #17181c;
    --muted: #5f6670;
    --paper: #ffffff;
    --soft: #f6f7f5;
    --line: #e4e7ea;
    --gold: #a5792f;
    --teal: #0f7068;
    --shadow: 0 18px 45px rgba(18, 24, 32, 0.12);
    --shadow-hover: 0 24px 60px rgba(143, 15, 23, 0.18);
    --radius: 10px;
    --gradient-red: linear-gradient(135deg, #d3131f 0%, #8f0f17 100%);
    --gradient-gold: linear-gradient(135deg, #f2c166 0%, #a5792f 100%);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.75;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.narrow {
    width: min(820px, calc(100% - 40px));
}

.skip-link {
    position: absolute;
    top: -80px;
    left: 16px;
    z-index: 50;
    padding: 10px 14px;
    color: var(--paper);
    background: var(--red);
}

.skip-link:focus {
    top: 16px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 10px 30px rgba(18, 24, 32, 0.1);
}

.nav-shell {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand img {
    width: 88px;
    height: auto;
}

.brand strong {
    display: block;
    font-size: 1rem;
    line-height: 1.2;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.site-nav a {
    padding: 10px 12px;
    border-radius: 6px;
    color: #303641;
    font-weight: 700;
    font-size: 0.94rem;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--red);
    background: rgba(181, 18, 27, 0.08);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--ink);
}

.hero {
    position: relative;
    min-height: 590px;
    display: flex;
    align-items: center;
    color: var(--paper);
    background:
        radial-gradient(ellipse at 20% 10%, rgba(242, 193, 102, 0.16), transparent 55%),
        linear-gradient(90deg, rgba(23, 24, 28, 0.94), rgba(143, 15, 23, 0.72), rgba(23, 24, 28, 0.56)),
        url("../img/bg-masthead.jpg") center / cover no-repeat;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 4px;
    background: var(--gradient-gold);
}

.hero-copy > * {
    animation: hero-rise 0.9s var(--ease-out) both;
}

.hero-copy > *:nth-child(2) { animation-delay: 0.12s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.24s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.36s; }

.hero .meeting-panel {
    animation: hero-rise 0.9s var(--ease-out) 0.4s both;
}

@keyframes hero-rise {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 56px;
    align-items: end;
    padding: 88px 0 72px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--gold);
    font-weight: 800;
    letter-spacing: 0;
}

.hero .eyebrow,
.compact-hero .eyebrow {
    color: #f2c166;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

.hero h1 {
    margin: 0;
    font-size: 4rem;
    line-height: 1.12;
    letter-spacing: 0;
}

.hero-lead {
    max-width: 680px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.18rem;
}

.hero-actions,
.cta-grid {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    color: var(--paper);
    background: var(--gradient-red);
    border-color: var(--red);
    box-shadow: 0 8px 22px rgba(181, 18, 27, 0.32);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e01522 0%, #a01119 100%);
    border-color: var(--red-dark);
    box-shadow: 0 12px 30px rgba(181, 18, 27, 0.42);
}

.btn-light {
    color: var(--paper);
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.08);
}

.btn-secondary {
    color: var(--ink);
    background: var(--soft);
    border-color: var(--line);
}

.meeting-panel {
    padding: 24px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    box-shadow: var(--shadow);
}

.meeting-panel span,
.meeting-note span,
.info-stack span {
    display: block;
    color: var(--muted);
    font-weight: 800;
    font-size: 0.9rem;
}

.meeting-panel strong,
.meeting-note strong,
.info-stack strong {
    display: block;
    margin: 8px 0;
    font-size: 1.25rem;
    line-height: 1.45;
}

.meeting-panel p,
.meeting-note p {
    margin: 8px 0 0;
    color: #454b55;
}

.stats-band {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
}

.stat-item {
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px;
    background: var(--paper);
}

.stat-item {
    position: relative;
    transition: background 0.25s ease;
}

.stat-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 44px;
    height: 3px;
    background: var(--gradient-gold);
}

.stat-item span {
    background: var(--gradient-red);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.1rem;
    font-weight: 900;
    line-height: 1.2;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}

.stat-item p {
    margin: 8px 0 0;
    color: var(--muted);
    font-weight: 800;
}

.section {
    padding: 82px 0;
}

.muted-section {
    background: var(--soft);
}

.split-grid,
.advisor-grid,
.form-grid,
.content-grid,
.cta-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 52px;
    align-items: center;
}

.split-grid h2,
.advisor-grid h2,
.section-heading h2,
.prose h2,
.visit-steps h2,
.form-panel h2,
.contact-card h2 {
    margin: 0 0 16px;
    font-size: 2rem;
    line-height: 1.25;
    letter-spacing: 0;
}

.split-grid p,
.advisor-grid p,
.prose p,
.contact-card p {
    color: #3f4650;
}

.text-link {
    color: var(--red);
    font-weight: 900;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.chain-list,
.chain-grid {
    display: grid;
    gap: 14px;
}

.chain-list span,
.chain-grid article,
.quote-panel,
.contact-card,
.visit-steps,
.form-panel,
.member-card,
.story-card,
.info-stack > div {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.chain-list span {
    padding: 16px 18px;
    font-weight: 900;
    border-left: 4px solid var(--red);
}

.advisor-section {
    background: #22252c;
    color: var(--paper);
}

.advisor-section p {
    color: rgba(255, 255, 255, 0.82);
}

.advisor-photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
}

.advisor-industry {
    color: var(--teal);
    font-weight: 900;
}

.advisor-section .advisor-industry {
    color: #75d4ca;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.full-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.member-card {
    position: relative;
    min-height: 178px;
    padding: 22px;
    overflow: hidden;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s ease;
}

.member-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out);
}

.member-card:hover {
    transform: translateY(-5px);
    border-color: rgba(181, 18, 27, 0.28);
    box-shadow: var(--shadow-hover);
}

.member-card:hover::before {
    transform: scaleX(1);
}

.member-card span {
    color: var(--red);
    font-weight: 900;
    font-size: 0.92rem;
}

.member-card h2,
.member-card h3 {
    margin: 10px 0 8px;
    font-size: 1.28rem;
    line-height: 1.35;
}

.member-card p,
.member-card small {
    color: var(--muted);
}

.member-links {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.member-links a {
    color: var(--teal);
    font-weight: 800;
    text-decoration: none;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.story-card {
    overflow: hidden;
    background: var(--paper);
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.story-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}

.story-card:hover img {
    transform: scale(1.05);
}

.story-card div {
    padding: 22px;
}

.story-card time {
    color: var(--gold);
    font-weight: 900;
}

.story-card h2,
.story-card h3 {
    margin: 8px 0;
    line-height: 1.35;
}

.story-card p {
    color: var(--muted);
}

.story-card a {
    color: var(--red);
    font-weight: 900;
    text-decoration: none;
}

.cta-band {
    position: relative;
    padding: 64px 0;
    color: var(--paper);
    background:
        radial-gradient(ellipse at 85% 20%, rgba(242, 193, 102, 0.22), transparent 55%),
        var(--gradient-red);
    overflow: hidden;
}

.cta-band::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--gradient-gold);
}

.cta-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 0;
}

.cta-grid h2 {
    margin: 0 0 10px;
    font-size: 2rem;
}

.cta-grid p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
}

.page-hero {
    color: var(--paper);
    background:
        linear-gradient(90deg, rgba(23, 24, 28, 0.92), rgba(143, 15, 23, 0.76)),
        url("../img/bg-signup.jpg") center / cover no-repeat;
}

.compact-hero .container {
    padding: 86px 0 78px;
}

.compact-hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: 3rem;
    line-height: 1.18;
}

.compact-hero p:last-child {
    max-width: 780px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.1rem;
}

.content-grid {
    align-items: start;
}

.prose h2 {
    margin-top: 0;
}

.info-stack {
    display: grid;
    gap: 14px;
}

.info-stack > div {
    padding: 18px;
}

.chain-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.chain-grid article {
    padding: 20px;
    border-top: 4px solid var(--red);
}

.chain-grid h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
}

.chain-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.quote-panel {
    padding: 30px;
    border-left: 5px solid var(--gold);
    font-size: 1.24rem;
    font-weight: 800;
}

.member-toolbar {
    margin-bottom: 24px;
}

.member-toolbar label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 900;
}

input,
textarea,
select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cfd5dc;
    border-radius: 6px;
    color: var(--ink);
    background: var(--paper);
    font: inherit;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    outline: 3px solid rgba(181, 18, 27, 0.16);
    border-color: var(--red);
}

.form-grid {
    align-items: start;
}

.visit-steps,
.form-panel,
.contact-card {
    padding: 28px;
    box-shadow: 0 8px 28px rgba(20, 24, 32, 0.08);
}

.visit-steps ol {
    margin: 18px 0;
    padding-left: 22px;
}

.meeting-note {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.form-panel {
    display: grid;
    gap: 16px;
}

.form-panel h2 {
    margin-bottom: 0;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

label {
    display: grid;
    gap: 7px;
    color: #303641;
    font-weight: 800;
}

.notice {
    padding: 12px 14px;
    border-radius: 6px;
    font-weight: 800;
}

.notice.success {
    color: #0f4d38;
    background: #e9f6ef;
    border: 1px solid #b9e4ce;
}

.notice.error {
    color: #7a1015;
    background: #fdecec;
    border: 1px solid #f4b8bc;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 20px;
    border: 1px dashed #c8ced6;
    border-radius: var(--radius);
    color: var(--muted);
    background: var(--soft);
}

.article-hero {
    padding: 78px 0 0;
    background: var(--soft);
}

.article-hero h1 {
    margin: 10px 0;
    font-size: 3rem;
    line-height: 1.18;
}

.article-hero time {
    color: var(--muted);
    font-weight: 800;
}

.article-hero img {
    width: min(1120px, calc(100% - 40px));
    height: 420px;
    margin: 42px auto 0;
    object-fit: cover;
    border-radius: var(--radius);
}

.back-link {
    display: inline-block;
    margin-bottom: 18px;
}

.article-content {
    font-size: 1.08rem;
}

.article-content h2,
.article-content h3 {
    line-height: 1.35;
}

.article-content blockquote {
    margin: 26px 0;
    padding: 18px 22px;
    border-left: 5px solid var(--red);
    background: var(--soft);
}

.debug-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--paper);
}

.debug-table th,
.debug-table td {
    padding: 12px;
    border: 1px solid var(--line);
    text-align: left;
}

.site-footer {
    color: rgba(255, 255, 255, 0.84);
    background: #17181c;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 42px;
    padding: 54px 0;
}

.footer-logo {
    width: 98px;
    margin-bottom: 18px;
    background: var(--paper);
    border-radius: 6px;
    padding: 6px;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: var(--paper);
    font-size: 1.05rem;
}

.site-footer a {
    color: var(--paper);
    font-weight: 800;
    text-decoration: none;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.92rem;
}

/* ===== Visual upgrade: scroll reveal & polish ===== */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
}

.eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--gradient-gold);
}

.section-heading h2 {
    position: relative;
    padding-bottom: 14px;
}

.section-heading h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 52px;
    height: 3px;
    background: var(--gradient-red);
    border-radius: 2px;
}

.text-link::after {
    content: " →";
    display: inline-block;
    transition: transform 0.2s var(--ease-out);
}

.text-link:hover::after {
    transform: translateX(4px);
}

.text-link + .text-link {
    margin-left: 20px;
}

.chain-grid article,
.chain-list span,
.info-stack > div {
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.chain-grid article:hover,
.chain-list span:hover,
.info-stack > div:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.meeting-panel {
    border-top: 4px solid;
    border-image: var(--gradient-gold) 1;
}

.advisor-photo img {
    box-shadow: var(--shadow);
    transition: transform 0.4s var(--ease-out);
}

.advisor-photo:hover img {
    transform: scale(1.02);
}

/* FAQ accordion */
.faq-list {
    display: grid;
    gap: 14px;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    transition: box-shadow 0.25s var(--ease-out), border-color 0.25s ease;
}

.faq-item[open] {
    border-color: rgba(181, 18, 27, 0.3);
    box-shadow: var(--shadow);
}

.faq-item summary {
    padding: 18px 22px;
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--red);
    background: rgba(181, 18, 27, 0.08);
    font-size: 1.2rem;
    font-weight: 800;
    transition: transform 0.25s var(--ease-out);
}

.faq-item[open] summary::after {
    content: "−";
    transform: rotate(180deg);
}

.faq-item p {
    margin: 0;
    padding: 0 22px 20px;
    color: #3f4650;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 980px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 20px 18px;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        padding: 12px;
    }

    .hero-layout,
    .split-grid,
    .advisor-grid,
    .form-grid,
    .content-grid,
    .cta-grid {
        grid-template-columns: 1fr;
    }

    .hero h1,
    .compact-hero h1,
    .article-hero h1 {
        font-size: 2.55rem;
    }

    .stat-grid,
    .member-grid,
    .story-grid,
    .listing-grid,
    .chain-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .container,
    .narrow {
        width: min(100% - 28px, 1120px);
    }

    .brand img {
        width: 74px;
    }

    .brand small {
        display: none;
    }

    .hero {
        min-height: 660px;
    }

    .hero-layout {
        padding: 56px 0;
        gap: 32px;
    }

    .hero h1,
    .compact-hero h1,
    .article-hero h1 {
        font-size: 2.2rem;
    }

    .hero-lead,
    .compact-hero p:last-child {
        font-size: 1rem;
    }

    .section,
    .compact-hero .container {
        padding: 58px 0;
    }

    .stat-grid,
    .member-grid,
    .full-grid,
    .story-grid,
    .listing-grid,
    .chain-grid,
    .footer-grid,
    .field-row {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .stat-item {
        min-height: 108px;
    }

    .stat-item span {
        font-size: 1.75rem;
    }

    .article-hero img {
        height: 260px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

