/* ==========================================================================
   上海品茶网 — 企业官网样式表
   设计风格：扁平化设计（Flat Design）· 纯色块 / 无阴影 / 4px 圆角 / 强对比
   ========================================================================== */

:root {
    /* 色板 */
    --blue: #2471A3;
    --blue-dark: #1D5D88;
    --blue-darker: #174A6D;
    --red: #C0392B;
    --green: #1E8449;
    --orange: #E67E22;

    --ink: #22313F;
    --ink-soft: #5D6D7E;
    --bg: #FFFFFF;
    --grey: #ECF0F1;
    --line: #D5DBDB;
    --surface: #FFFFFF;
    --surface-alt: #F7F9FA;
    --line-strong: #22313F;

    /* 排版 */
    --font: "Rubik", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
    --radius: 4px;
    --sp: 8px;

    --shell: 1200px;
}

[data-theme="dark"] {
    --ink: #F2F5F7;
    --ink-soft: #B7C3CC;
    --bg: #16222C;
    --grey: #22313F;
    --line: #33505F;
    --surface: #1C2B36;
    --surface-alt: #21323E;
    --line-strong: #F2F5F7;
    --blue: #4BA3DA;
    --blue-dark: #6FB8E6;
    --blue-darker: #14415F;
}

/* ---------- 基础 ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    color: var(--ink);
    background: var(--bg);
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-darker); }

h1, h2, h3, h4 { margin: 0 0 calc(var(--sp) * 2); font-weight: 700; line-height: 1.2; }
p { margin: 0 0 calc(var(--sp) * 2); max-width: 34em; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--blue);
    color: #fff;
    padding: 12px 16px;
    z-index: 100;
}
.skip-link:focus { left: 0; }

.shell {
    width: 100%;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- 顶部导航 ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg);
    border-bottom: 2px solid var(--ink);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 800;
    font-size: 17px;
    letter-spacing: .01em;
    min-height: 44px;
}
.brand-name { display: block; }
.brand-sub {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-soft);
    letter-spacing: .08em;
}
.brand-mark { flex: 0 0 auto; color: var(--blue); }

.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    color: var(--ink);
    font-weight: 500;
    font-size: 15px;
    border-radius: var(--radius);
    transition: background-color .18s ease, color .18s ease;
}
.nav-link:hover { background: var(--grey); color: var(--blue-darker); }
.nav-link[aria-current="page"] {
    color: var(--blue-darker);
    background: var(--grey);
    font-weight: 700;
}

.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--surface);
    color: var(--ink);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease;
}
.icon-btn:hover { background: var(--grey); }

.nav-toggle { display: none; }

/* ---------- 按钮 ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] {
    background: var(--grey);
    color: var(--ink-soft);
    border-color: var(--line);
    cursor: not-allowed;
    transform: none;
}

.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-darker); border-color: var(--blue-darker); color: #fff; }

.btn-secondary { background: var(--bg); color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--grey); color: var(--ink); }

.btn-ghost {
    background: transparent;
    color: var(--blue);
    border-color: transparent;
    text-decoration: underline;
    text-underline-offset: 4px;
    padding: 0 8px;
}
.btn-ghost:hover { background: var(--grey); color: var(--blue-darker); }

.btn-accent { background: var(--orange); color: #1A1A1A; border-color: var(--orange); }
.btn-accent:hover { background: #C96A15; border-color: #C96A15; color: #fff; }

.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Hero / Banner ---------- */

.hero {
    border-bottom: 2px solid var(--ink);
    background: var(--bg);
    overflow: hidden;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
    padding: 72px 0;
}
.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 16px;
}
.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
}
.hero-title em { font-style: normal; color: var(--blue); }
.hero-sub { font-size: 17px; color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: var(--surface);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
}
.hero-visual-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--ink-soft);
}
.hero-visual-count { color: var(--blue); }
.tea-list { display: grid; gap: 8px; }
.tea-item {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--grey);
    border-radius: var(--radius);
}
.tea-bar { display: block; width: 8px; height: 36px; border-radius: var(--radius); background: var(--blue); }
.tea-bar-green { background: var(--green); }
.tea-bar-orange { background: var(--orange); }
.tea-name { font-size: 16px; font-weight: 700; }
.tea-note { font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.hero-visual-foot {
    margin: 0;
    padding-top: 16px;
    border-top: 2px solid var(--ink);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-soft);
    max-width: none;
}

/* ---------- 信息条 / chip ---------- */

.chip-bar {
    background: var(--grey);
    border-bottom: 2px solid var(--ink);
}
.chip-bar .shell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
    padding-bottom: 16px;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .04em;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--ink);
    border-radius: var(--radius);
}
.chip-solid { background: var(--blue); color: #fff; border-color: var(--blue); }
.chip-outline-blue { border-color: var(--blue); color: var(--blue-darker); }

/* ---------- 区块 ---------- */

.section { padding: 72px 0; }
.section-alt { background: var(--surface-alt); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.section-head { max-width: 44em; margin-bottom: 40px; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
.section-sub { color: var(--ink-soft); }

.page-hero { border-bottom: 2px solid var(--ink); background: var(--surface-alt); }
.page-hero .shell { padding-top: 56px; padding-bottom: 48px; }
.page-title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 900; line-height: 1.1; }

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-soft);
    margin-bottom: 16px;
}
.breadcrumb a { color: var(--blue); }
.breadcrumb li::after { content: "/"; margin-left: 8px; color: var(--line); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb li:last-child { color: var(--ink-soft); }

/* ---------- 网格与卡片 ---------- */

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

.card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--surface);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    transition: background-color .18s ease, border-color .18s ease;
}
.card:hover { background: var(--grey); border-color: var(--blue); }
.card-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card-text { font-size: 15px; color: var(--ink-soft); margin-bottom: 16px; }
.card-link { font-weight: 700; font-size: 15px; }
.card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}
.section-cta { margin: 32px 0 0; max-width: none; }
.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    color: #fff;
    background: var(--blue);
    border-radius: var(--radius);
}
.card-icon-red { background: var(--red); }
.card-icon-green { background: var(--green); }
.card-icon-orange { background: var(--orange); }

.list-row {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 2px solid var(--line);
}
.list-row:first-of-type { border-top: 2px solid var(--line); }
.list-row-title { font-size: 20px; font-weight: 700; margin: 0 0 6px; }

.note {
    padding: 16px 20px;
    background: var(--grey);
    border-left: 4px solid var(--blue);
    border-radius: var(--radius);
    font-size: 15px;
    color: var(--ink);
}

/* ---------- 团队成员 ---------- */

.team-card { text-align: left; }
.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    margin-bottom: 16px;
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    background: var(--blue);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
}
.avatar-2 { background: var(--green); }
.avatar-3 { background: var(--orange); color: #1A1A1A; }
.avatar-4 { background: var(--red); }
.meta {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft);
    margin-bottom: 12px;
    letter-spacing: .02em;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }

/* ---------- 统计 / 时间线 ---------- */

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stat {
    /* 视觉顺序为「数值 → 标签」，DOM 中保持 <dt> 术语 / <dd> 描述的语义顺序 */
    display: flex;
    flex-direction: column-reverse;
    padding: 24px;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    background: var(--surface);
}
.stat-num { margin: 0 0 4px; font-size: 32px; font-weight: 900; line-height: 1.1; color: var(--blue); }
.stat-unit { margin-left: 2px; font-size: 18px; font-weight: 700; }
.stat-label { margin: 0; font-size: 14px; color: var(--ink-soft); }
.aside-box .stat { padding: 20px; }
.aside-box .stat-num { font-size: 26px; }
.aside-box .stat-unit { font-size: 15px; }

.timeline { border-left: 4px solid var(--blue); padding-left: 24px; }
.timeline-item { margin-bottom: 24px; }
.timeline-year { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--blue); }
.timeline-text { margin: 4px 0 0; font-size: 15px; }

/* ---------- 表单 ---------- */

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.label { font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.req { color: var(--red); }
.input, .textarea, .select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    font-family: var(--font);
    font-size: 16px;
    color: var(--ink);
    background: var(--surface);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    transition: border-color .18s ease;
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.input:focus-visible, .textarea:focus-visible, .select:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.input:disabled { background: var(--grey); color: var(--ink-soft); border-color: var(--line); }
.hint { font-size: 13px; color: var(--ink-soft); }
.checkbox-row { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; }
.checkbox-row input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); }

/* ---------- 开关 / 徽标 ---------- */

.toggle { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; min-height: 44px; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-track {
    position: relative;
    width: 52px;
    height: 28px;
    background: var(--grey);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    transition: background-color .18s ease;
}
.toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--ink);
    border-radius: var(--radius);
    transition: transform .18s ease, background-color .18s ease;
}
.toggle input:checked + .toggle-track { background: var(--blue); }
.toggle input:checked + .toggle-track .toggle-thumb { transform: translateX(24px); background: #fff; }
.toggle input:focus-visible + .toggle-track { outline: 3px solid var(--orange); outline-offset: 2px; }
.toggle input:disabled + .toggle-track { opacity: .5; }

.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    background: var(--blue);
    border-radius: var(--radius);
}
.badge-red { background: var(--red); }
.badge-green { background: var(--green); }
.badge-orange { background: var(--orange); color: #1A1A1A; }
.badge-grey { background: var(--grey); color: var(--ink); border: 1px solid var(--line); }

/* ---------- 详情页 ---------- */

.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.aside-box {
    padding: 24px;
    background: var(--surface);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    margin-bottom: 24px;
}
.aside-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.spec { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec:last-child { border-bottom: 0; }
.spec dt { color: var(--ink-soft); margin: 0; }
.spec dd { margin: 0; font-weight: 700; }
.rich h2 { font-size: 1.4rem; margin-top: 32px; }
.rich h3 { font-size: 1.1rem; margin-top: 24px; }
.rich ul { list-style: none; margin: 0 0 16px; }
.rich li { position: relative; padding-left: 24px; margin-bottom: 8px; }
.rich li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 10px;
    height: 10px;
    background: var(--blue);
    border-radius: var(--radius);
}
.cta-band {
    background: var(--blue-darker);
    color: #fff;
    border-radius: var(--radius);
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #D6E4EE; margin: 0; }
.cta-band .btn-secondary { background: #fff; border-color: #fff; color: var(--blue-darker); }
.cta-band .btn-secondary:hover { background: var(--grey); }

/* ---------- 组件展示区（视觉规范页） ---------- */

.specimen {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    padding: 24px;
    background: var(--surface);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
}
.specimen-label {
    width: 100%;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 0;
}
.swatch-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.swatch { border: 1px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.swatch-color { height: 64px; }
.swatch-name { padding: 8px 10px; font-size: 12px; font-weight: 500; background: var(--surface); border-top: 1px solid var(--ink); }

/* ---------- 页脚 ---------- */

.site-footer {
    background: var(--blue-darker);
    color: #E8F0F5;
    border-top: 2px solid var(--ink);
    padding: 56px 0 24px;
    margin-top: 0;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h3, .site-footer h4 { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .06em; margin-bottom: 16px; }
.site-footer p { color: #C3D6E2; font-size: 14px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; margin-bottom: 16px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #D6E4EE; font-size: 14px; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #2E6E96;
    font-size: 13px;
    color: #B9CCD8;
}

/* ---------- 响应式 ---------- */

@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
    .hero-visual { max-width: 420px; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-layout { grid-template-columns: 1fr; gap: 32px; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .swatch-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .nav-toggle { display: inline-flex; }
    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--bg);
        border-bottom: 2px solid var(--ink);
        padding: 8px 24px 16px;
    }
    .site-nav.is-open { display: block; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-link { min-height: 48px; }
    .header-actions .btn { display: none; }
}

@media (max-width: 640px) {
    .shell { padding: 0 16px; }
    .section { padding: 48px 0; }
    .grid-2, .grid-3, .grid-4, .form-grid, .footer-grid, .stats { grid-template-columns: 1fr; }
    .list-row { grid-template-columns: 1fr; gap: 12px; }
    .cta-band { padding: 24px; }
    .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
