/* 搭伙官网 —— 全站通用样式（头部 / 底部 / 版心 / 通用组件） */

:root {
    --brand: #F2542D;
    --brand-light: #FF8A4C;
    --ink: #14110F;
    --ink-2: #3D3733;
    --text: #2B2624;
    --text-sub: #6F6660;
    --line: #EAE3DD;
    --bg: #FFFDFB;
    --bg-soft: #FBF5F0;
    --radius: 16px;
    --max-width: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    overflow-x: hidden;
    font: 16px/1.7 "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, strong, b { font-weight: 600; }

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

/* ---------- 头部导航 ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 253, 251, .86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
}

.logo img { width: 34px; height: 34px; }

.logo-text {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: .5px;
}

.logo-text em {
    display: block;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 1.2px;
    color: var(--text-sub);
    text-transform: uppercase;
}

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

.nav a {
    position: relative;
    padding: 8px 14px;
    font-size: 15px;
    color: var(--text-sub);
    border-radius: 999px;
    transition: color .2s, background-color .2s;
}

.nav a:hover { color: var(--ink); background: var(--bg-soft); }

.nav a.active { color: var(--brand); font-weight: 600; }

.nav a.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 16px;
    height: 3px;
    margin-left: -8px;
    border-radius: 2px;
    background: var(--brand);
}

/* ---------- 通用区块 ---------- */
.section { padding: 88px 0; }

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

.section-head { margin-bottom: 44px; }

.section-head .eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--brand);
    text-transform: uppercase;
}

.section-head h2 {
    font-size: clamp(26px, 3.2vw, 36px);
    line-height: 1.35;
    color: var(--ink);
}

.section-head p {
    max-width: 720px;
    margin-top: 14px;
    color: var(--text-sub);
}

.card {
    padding: 32px 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(242, 84, 45, .35);
    box-shadow: 0 16px 40px rgba(20, 17, 15, .08);
}

.card h3 { margin-bottom: 10px; font-size: 19px; color: var(--ink); }

.card p { color: var(--text-sub); font-size: 15px; }

.card .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-light), var(--brand));
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

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

/* ---------- 底部 ---------- */
.footer {
    padding: 56px 0 40px;
    background: var(--ink);
    color: rgba(255, 255, 255, .62);
    font-size: 14px;
}

.footer .foot-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer .foot-brand { color: #fff; }

.footer .foot-brand .cn { font-size: 18px; font-weight: 600; }

.footer .foot-brand .en {
    margin-top: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
}

.footer .foot-nav { display: flex; flex-wrap: wrap; gap: 24px; }

.footer .foot-nav a { color: rgba(255, 255, 255, .62); font-size: 14px; }

.footer .foot-nav a:hover { color: #fff; }

.footer .foot-bottom { padding-top: 24px; text-align: center; }

.footer .foot-bottom p { margin-top: 8px; line-height: 1.8; }

.footer .beian {
    color: rgba(255, 255, 255, .62);
    cursor: pointer;
}

.footer .beian:hover { color: #fff; text-decoration: underline; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
}

@media (max-width: 640px) {
    .container { padding: 0 18px; }
    .header .container { height: 62px; }
    .logo img { width: 30px; height: 30px; }
    .logo-text { font-size: 17px; }
    .logo-text em { display: none; }
    .nav { gap: 0; }
    .nav a { padding: 6px 9px; font-size: 14px; }
    .card { padding: 24px 20px; }
    .footer .foot-top { flex-direction: column; gap: 20px; }
}
