/* ====================================================
   润琳 Runlink — 中高端人才服务机构
   全局样式表
   ==================================================== */

/* ── 重置 & 基础 ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 品牌色 */
    --primary: #003366;
    --primary-light: #1a4d80;
    --primary-deep: #001a33;

    /* 背景 & 文字 */
    --bg: #fafafa;
    --text: #1a1a1a;
    --text-secondary: #5a5a5a;
    --text-muted: #888888;
    --white: #ffffff;

    /* 强调色 */
    --accent: #c9a962; /* 暗金，慎用 */
    --accent-light: #e0cf99;

    /* 边框 */
    --border: #e5e5e5;
    --border-light: #f0f0f0;

    /* 尺寸 */
    --max-width: 1120px;
    --nav-height: 72px;

    /* 字体 */
    --font-cn: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-en: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Playfair Display", "Noto Sans SC", serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-en), var(--font-cn);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

/* ── 工具类 ── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.8;
    margin-bottom: 48px;
}

.text-center {
    text-align: center;
}

.text-center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.zh { font-family: var(--font-cn); }
.en { font-family: var(--font-en); }

/* ── 语言切换 ── */
.lang-en, .lang-zh { transition: opacity 0.3s; }
html[lang="en"] .lang-zh,
html[lang="zh"] .lang-en {
    display: none !important;
}

.lang-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-secondary);
    transition: all 0.2s;
}
.lang-switch-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.lang-switch-btn .active-lang {
    font-weight: 600;
    color: var(--primary);
}

/* ── 按钮 ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-light);
    box-shadow: 0 4px 16px rgba(0, 51, 102, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
}

.btn-accent:hover {
    background: #b89848;
    box-shadow: 0 4px 16px rgba(201, 169, 98, 0.3);
}

/* ── 导航栏 ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border-light);
    transition: box-shadow 0.3s;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-shrink: 0;
}

.nav-logo-cn {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
}

.nav-logo-en {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 4px 0;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: all 0.3s;
}

/* ── Hero 通用 ── */
.hero {
    padding: calc(var(--nav-height) + 80px) 0 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border-light);
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content .hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    flex: 1;
    max-width: 480px;
    aspect-ratio: 4/3;
    background: var(--primary-deep);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.9rem;
    opacity: 0.9;
    overflow: hidden;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── 定位区块 ── */
.positioning {
    background: var(--white);
    text-align: center;
}

.positioning-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 2;
    color: var(--text);
}

.positioning-text em {
    font-style: normal;
    color: var(--primary);
    font-weight: 600;
}

/* ── 卡片网格 ── */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

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

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

.card-feature {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 36px 28px;
    transition: all 0.3s;
}

.card-feature:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(0, 51, 102, 0.08);
    transform: translateY(-3px);
}

.card-feature .card-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.15;
    font-family: var(--font-en);
    margin-bottom: 8px;
}

.card-feature h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.card-feature p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ── 数据行 ── */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-en);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ── 对比表格 ── */
.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.compare-header {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 1rem;
}

.compare-header.left {
    background: #f0f0f0;
    color: var(--text-muted);
}

.compare-header.right {
    background: var(--primary);
    color: var(--white);
}

.compare-row {
    display: contents;
}

.compare-cell {
    padding: 18px 24px;
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
    line-height: 1.7;
}

.compare-cell.left {
    background: #f8f8f8;
    color: var(--text-muted);
}

.compare-cell.right {
    color: var(--text);
}

/* ── 流程图 ── */
.process-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 48px;
}

.process-step {
    text-align: center;
    flex: 1;
    min-width: 120px;
    max-width: 160px;
}

.process-step .step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0 auto 12px;
}

.process-step .step-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.process-arrow {
    color: var(--border);
    font-size: 24px;
    margin-top: 12px;
    flex-shrink: 0;
}

/* ── 表单 ── */
.form-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 48px;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group label .required {
    color: #cc3333;
    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.95rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--bg);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.08);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* ── CTA 区块 ── */
.cta-section {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.cta-section .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* ── 页脚 ── */
.footer {
    background: var(--primary-deep);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.8;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-contact-item {
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact-item strong {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* ── 移动端 ── */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

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

    .nav-toggle {
        display: flex;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        max-width: 100%;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .compare-grid {
        grid-template-columns: 1fr;
    }

    .process-flow {
        flex-direction: column;
        align-items: center;
    }

    .process-arrow {
        transform: rotate(90deg);
    }

    .process-step {
        max-width: 200px;
    }

    .stats-row {
        gap: 32px;
    }

    .form-card {
        padding: 28px;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
