/* ===========================================================
   醉猫直聘 · 设计系统
   浅橙主色 / 高级留白 / 大圆角 / 柔和阴影
   =========================================================== */

:root {
    /* 品牌色 */
    --brand:        #FF7A2F;
    --brand-2:      #FFA24D;
    --brand-dark:   #E35D12;
    --brand-soft:   #FFF3E9;
    --brand-softer: #FFF8F2;
    --brand-line:   #FFDCC4;

    /* 中性色 */
    --ink:      #1F1A17;
    --ink-2:    #3D332C;
    --muted:    #7A6A5F;
    --muted-2:  #A2968C;
    --line:     #F0E6DE;
    --line-2:   #E6D9CF;
    --bg:       #FFFCFA;
    --card:     #FFFFFF;

    /* 语义 */
    --success:  #2F9E6B;
    --danger:   #E5484D;
    --info:     #2F7DE1;

    /* 形态 */
    --r-sm: 10px;
    --r:    16px;
    --r-lg: 22px;
    --r-xl: 30px;
    --shadow-sm: 0 2px 8px rgba(56, 33, 15, .05);
    --shadow:    0 10px 30px rgba(56, 33, 15, .07);
    --shadow-lg: 0 24px 60px rgba(56, 33, 15, .12);
    --shadow-brand: 0 12px 28px rgba(255, 122, 47, .28);

    --maxw: 1200px;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
            "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------------- 布局 ---------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 999px;
    background: var(--brand-soft); color: var(--brand-dark);
    font-size: 13px; font-weight: 600; letter-spacing: .02em;
    border: 1px solid var(--brand-line);
}
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.sec-head h2 { font-size: 34px; margin: 16px 0 12px; }
.sec-head p  { color: var(--muted); font-size: 16px; }

/* ---------------- 按钮 ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
    font-size: 15px; font-weight: 600; cursor: pointer;
    transition: .22s cubic-bezier(.2,.8,.3,1); white-space: nowrap;
    background: transparent; color: var(--ink);
}
.btn-primary {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    color: #fff; box-shadow: var(--shadow-brand);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(255,122,47,.36); }
.btn-outline { border-color: var(--line-2); background: #fff; color: var(--ink-2); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-dark); transform: translateY(-2px); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ---------------- 头部导航 ---------------- */
.nav {
    position: sticky; top: 0; z-index: 60;
    background: rgba(255, 252, 250, .82);
    backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid rgba(240, 230, 222, .9);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.logo-mark {
    width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    color: #fff; font-size: 17px; box-shadow: var(--shadow-brand);
}
.logo span { color: var(--brand-dark); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a {
    padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-2);
    transition: .18s;
}
.nav-links a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.nav-links a.active { color: var(--brand-dark); background: var(--brand-soft); font-weight: 600; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; padding: 78px 0 96px; }
.hero::before {
    content: ""; position: absolute; inset: -180px -10% auto -10%; height: 720px;
    background:
        radial-gradient(48% 52% at 22% 28%, rgba(255,162,77,.30) 0%, transparent 62%),
        radial-gradient(42% 46% at 78% 18%, rgba(255,196,140,.34) 0%, transparent 66%),
        radial-gradient(38% 40% at 55% 62%, rgba(255,230,205,.55) 0%, transparent 70%);
    filter: blur(6px); pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.06fr .94fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 52px; line-height: 1.16; letter-spacing: -.035em; }
.hero h1 em {
    font-style: normal; position: relative;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin-top: 20px; font-size: 17.5px; color: var(--muted); line-height: 1.8; max-width: 560px; }
.hero-cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--muted-2); }

.hero-stats { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 560px; }
.hero-stats div { background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 12px; text-align: center; backdrop-filter: blur(6px); }
.hero-stats b { display: block; font-size: 22px; color: var(--brand-dark); letter-spacing: -.02em; }
.hero-stats span { font-size: 12.5px; color: var(--muted); }

/* 简历卡片漂浮 */
.hero-visual { position: relative; }
.paper {
    background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line);
    box-shadow: var(--shadow-lg); padding: 26px 26px 30px; position: relative;
    transform: rotate(-1.4deg);
}
.paper-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 2px solid var(--brand); }
.avatar {
    width: 60px; height: 76px; border-radius: 8px; flex: none;
    background: linear-gradient(160deg, var(--brand-soft), #FFE6D2);
    border: 1px solid var(--brand-line); display: grid; place-items: center; font-size: 26px;
}
.paper-name { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.paper-role { font-size: 13px; color: var(--brand-dark); margin-top: 2px; font-weight: 600; }
.paper-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.paper-tags i {
    font-style: normal; font-size: 11.5px; padding: 3px 10px; border-radius: 999px;
    background: var(--brand-soft); color: var(--brand-dark); border: 1px solid var(--brand-line);
}
.paper-block { margin-top: 18px; }
.paper-block h5 { margin: 0 0 8px; font-size: 12px; letter-spacing: .12em; color: var(--brand-dark); text-transform: uppercase; }
.paper-line { height: 8px; border-radius: 4px; background: var(--line); margin-bottom: 8px; }
.paper-line.w80 { width: 80%; } .paper-line.w60 { width: 60%; } .paper-line.w92 { width: 92%; }
.paper-line.w45 { width: 45%; }

.float-card {
    position: absolute; background: #fff; border: 1px solid var(--line);
    border-radius: 14px; box-shadow: var(--shadow); padding: 10px 14px; font-size: 12.5px;
    display: flex; align-items: center; gap: 8px; font-weight: 600;
}
.float-card.a { left: -34px; top: 18%; animation: floaty 5s ease-in-out infinite; }
.float-card.b { right: -26px; bottom: 16%; animation: floaty 6s ease-in-out infinite reverse; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------------- 通用卡片 ---------------- */
.card {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm);
    transition: .25s cubic-bezier(.2,.8,.3,1);
}
.card-hover:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--brand-line); }
.card-icon {
    width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
    font-size: 22px; background: var(--brand-soft); border: 1px solid var(--brand-line); margin-bottom: 16px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }

/* 步骤 */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.step { position: relative; text-align: center; padding: 0 8px; }
.step::after {
    content: ""; position: absolute; top: 26px; right: -50%; width: 100%; height: 1px;
    background: repeating-linear-gradient(90deg, var(--brand-line) 0 6px, transparent 6px 12px);
}
.step:last-child::after { display: none; }
.step-num {
    width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
    display: grid; place-items: center; font-size: 21px;
    background: linear-gradient(135deg, var(--brand-soft), #FFE9D8);
    border: 1px solid var(--brand-line); position: relative; z-index: 2;
}
.step h4 { font-size: 15.5px; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--muted); }

/* 特性列表 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
    font-size: 12.5px; padding: 5px 12px; border-radius: 999px;
    background: var(--brand-softer); border: 1px solid var(--brand-line); color: var(--brand-dark);
}

/* ---------------- 模板画廊 ---------------- */
.tpl-filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 34px; }
.tpl-filter {
    padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line-2);
    background: #fff; font-size: 14px; cursor: pointer; transition: .18s; color: var(--ink-2);
}
.tpl-filter:hover { border-color: var(--brand); color: var(--brand-dark); }
.tpl-filter.active {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff; border-color: transparent; box-shadow: var(--shadow-brand);
}
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.tpl-card { cursor: pointer; }
.tpl-thumb {
    height: 300px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line);
    background: #fff; position: relative; transition: .25s; box-shadow: var(--shadow-sm);
}
.tpl-card:hover .tpl-thumb { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brand-line); }
.tpl-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.tpl-name { font-weight: 700; font-size: 15px; }
.tpl-desc { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.tpl-scale {
    transform: scale(.285); transform-origin: top left;
    width: 794px; height: 1123px;
}
.tpl-scale-box { width: 226px; height: 300px; overflow: hidden; position: relative; margin: 0 auto; }
.vip-badge {
    position: absolute; top: 10px; right: 10px; z-index: 5;
    background: linear-gradient(135deg, #111, #333); color: #FFD9A8;
    font-size: 11px; padding: 2px 9px; border-radius: 999px; letter-spacing: .08em;
}

/* ----------------  testimonials ---------------- */
.quote { font-size: 15px; color: var(--ink-2); line-height: 1.85; }
.who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.who-av {
    width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 700;
}
.who b { display: block; font-size: 14.5px; }
.who span { font-size: 12.5px; color: var(--muted); }

/* FAQ */
.faq-item { border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; }
.faq-q { padding: 18px 22px; cursor: pointer; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.faq-a { padding: 0 22px; color: var(--muted); font-size: 14.5px; max-height: 0; overflow: hidden; transition: .28s ease; }
.faq-item.open .faq-a { padding-bottom: 18px; max-height: 400px; }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-q i { transition: .25s; color: var(--brand); font-style: normal; }

/* CTA */
.cta-band {
    position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 62px 40px; text-align: center;
    background: linear-gradient(135deg, #FF8A3D 0%, #FF6A1F 45%, #F2540B 100%);
    color: #fff; box-shadow: 0 26px 60px rgba(255,106,31,.34);
}
.cta-band::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(40% 60% at 20% 10%, rgba(255,255,255,.28), transparent 60%);
}
.cta-band h2 { font-size: 34px; position: relative; }
.cta-band p { margin-top: 12px; opacity: .92; position: relative; }
.cta-band .btn { position: relative; margin-top: 26px; }
.btn-white { background: #fff; color: var(--brand-dark); box-shadow: 0 10px 26px rgba(0,0,0,.16); }
.btn-white:hover { transform: translateY(-2px); }

/* ---------------- 页脚 ---------------- */
.footer { background: #201A16; color: #CFC4BB; padding: 62px 0 26px; margin-top: 40px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer a { color: #CFC4BB; font-size: 14px; transition: .18s; }
.footer a:hover { color: var(--brand-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-logo { color: #fff; }
.footer .logo span { color: var(--brand-2); }
.footer-bottom {
    margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.09);
    display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: #8C8179; flex-wrap: wrap;
}

/* ---------------- 表单 ---------------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink-2); }
.input, .select, textarea.input {
    width: 100%; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
    font-size: 14.5px; font-family: inherit; background: #fff; color: var(--ink); transition: .18s;
}
.input:focus, .select:focus, textarea.input:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,122,47,.14);
}
textarea.input { min-height: 92px; resize: vertical; line-height: 1.7; }
.form-card { max-width: 440px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 36px; box-shadow: var(--shadow); }
.form-title { text-align: center; margin-bottom: 26px; }
.form-title h1 { font-size: 26px; margin-bottom: 6px; }
.form-title p { color: var(--muted); font-size: 14px; }
.form-alt { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.form-alt a { color: var(--brand-dark); font-weight: 600; }

/* 提示条 */
.alert { padding: 11px 16px; border-radius: var(--r-sm); font-size: 14px; margin-bottom: 14px; }
.alert-success { background: #E9F7F0; color: #1E7A4E; border: 1px solid #BFE7D4; }
.alert-error   { background: #FDECEC; color: #B4232A; border: 1px solid #F7C9CB; }
.alert-info    { background: var(--brand-soft); color: var(--brand-dark); border: 1px solid var(--brand-line); }
.toast-wrap { position: fixed; top: 84px; right: 22px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.toast {
    background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand);
    border-radius: var(--r-sm); padding: 12px 18px; box-shadow: var(--shadow); font-size: 14px;
    animation: slideIn .3s ease; min-width: 220px;
}
.toast.error { border-left-color: var(--danger); }
.toast.success { border-left-color: var(--success); }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }

/* 表格 */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.table th { font-size: 12.5px; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.table tbody tr:hover { background: var(--brand-softer); }

/* 杂项 */
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.flex { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-icon { font-size: 42px; margin-bottom: 12px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; background: var(--brand-soft); color: var(--brand-dark); }
.hide { display: none !important; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1000px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 40px; }
    .steps { grid-template-columns: repeat(2, 1fr); gap: 26px; }
    .step::after { display: none; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .section { padding: 60px 0; }
    .hero { padding: 46px 0 60px; }
    .hero h1 { font-size: 32px; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .nav-toggle { display: inline-flex; }
    .sec-head h2 { font-size: 26px; }
    .cta-band { padding: 44px 22px; }
    .cta-band h2 { font-size: 25px; }
    .float-card { display: none; }
}
