/* =========================================
   山高海深智能客服 - 企业站点共享样式
   设计原则：极简、专业、秒开、响应式
   ========================================= */

/* CSS 变量 */
:root {
    --color-primary: #1e40af;
    --color-primary-dark: #1e3a8a;
    --color-primary-light: #3b82f6;
    --color-accent: #dc2626;
    --color-text: #0f172a;
    --color-text-soft: #475569;
    --color-text-mute: #94a3b8;
    --color-bg: #ffffff;
    --color-bg-soft: #f8fafc;
    --color-bg-card: #ffffff;
    --color-border: #e2e8f0;
    --color-border-strong: #cbd5e1;

    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, .05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, .08), 0 2px 4px -2px rgba(15, 23, 42, .05);
    --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, .1), 0 4px 6px -4px rgba(15, 23, 42, .05);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --container-max: 1200px;
    --container-pad: clamp(16px, 4vw, 32px);

    --transition: all .2s ease;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

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

ul,
ol {
    list-style: none;
}

h1, h2, h3, h4 {
    line-height: 1.3;
    font-weight: 600;
    color: var(--color-text);
}

h1 { font-size: clamp(28px, 5vw, 44px); }
h2 { font-size: clamp(22px, 3.5vw, 32px); }
h3 { font-size: clamp(18px, 2.5vw, 22px); }

p { color: var(--color-text-soft); }

/* 布局容器 */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

/* SVG 图标 */
.icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.icon-lg { width: 40px; height: 40px; }
.icon-sm { width: 18px; height: 18px; }

/* 顶栏 */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--color-text);
    font-size: 17px;
}

.brand-mark {
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.5vw, 32px);
}

.nav-links a {
    color: var(--color-text-soft);
    font-size: 15px;
}

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

/* Hero */
.hero {
    padding: clamp(60px, 10vw, 120px) 0 clamp(48px, 8vw, 96px);
    background:
        radial-gradient(ellipse 80% 60% at 80% 0%, rgba(59, 130, 246, .08), transparent 70%),
        radial-gradient(ellipse 60% 40% at 0% 100%, rgba(30, 64, 175, .06), transparent 70%),
        linear-gradient(180deg, #ffffff 0%, var(--color-bg-soft) 100%);
}

.hero-inner {
    max-width: 820px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(30, 64, 175, .08);
    color: var(--color-primary);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero h1 {
    margin-bottom: 20px;
    letter-spacing: -.02em;
}

.hero-sub {
    font-size: clamp(16px, 2vw, 19px);
    color: var(--color-text-soft);
    margin-bottom: 32px;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: #fff;
    color: var(--color-text);
    border-color: var(--color-border-strong);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* 通用 section */
.section {
    padding: clamp(56px, 8vw, 96px) 0;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(40px, 6vw, 56px);
}

.section-eyebrow {
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-header h2 {
    margin-bottom: 12px;
}

.section-header p {
    font-size: 17px;
}

/* 卡片网格 */
.grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(30, 64, 175, .08);
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.card h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.card p {
    font-size: 15px;
    line-height: 1.65;
}

/* 关于我们 */
.about-grid {
    display: grid;
    gap: clamp(32px, 5vw, 64px);
    grid-template-columns: 1fr;
    align-items: center;
}

@media (min-width: 900px) {
    .about-grid {
        grid-template-columns: 1.1fr 1fr;
    }
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 28px;
}

.stat {
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
}

.stat-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 14px;
    color: var(--color-text-soft);
}

.about-image {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: var(--radius-lg);
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.about-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .15), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, .1), transparent 50%);
}

.about-image-content {
    position: relative;
    text-align: center;
    padding: 24px;
}

.about-image-content .icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
}

.about-image-content h3 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 8px;
}

.about-image-content p {
    color: rgba(255, 255, 255, .85);
    font-size: 15px;
}

/* 联系我们 */
.contact-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.contact-item .icon {
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item h4 {
    font-size: 15px;
    color: var(--color-text-soft);
    font-weight: 500;
    margin-bottom: 4px;
}

.contact-item .value {
    color: var(--color-text);
    font-weight: 500;
    font-size: 15px;
}

/* 内容页（隐私政策、服务条款） */
.content-page {
    padding: clamp(40px, 6vw, 72px) 0;
}

.content-page-inner {
    max-width: 820px;
    margin: 0 auto;
}

.content-page h1 {
    margin-bottom: 12px;
}

.content-page .updated {
    color: var(--color-text-mute);
    font-size: 14px;
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.content-page h2 {
    margin: 40px 0 14px;
    font-size: 22px;
}

.content-page h3 {
    margin: 24px 0 10px;
    font-size: 17px;
}

.content-page p,
.content-page li {
    color: var(--color-text-soft);
    margin-bottom: 12px;
    line-height: 1.8;
}

.content-page ul,
.content-page ol {
    padding-left: 22px;
    margin-bottom: 16px;
}

.content-page ul li {
    list-style: disc;
}

.content-page ol li {
    list-style: decimal;
}

.content-page strong {
    color: var(--color-text);
    font-weight: 600;
}

/* 页脚 */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 56px 0 28px;
    margin-top: clamp(40px, 6vw, 72px);
}

.footer-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: 1fr;
    margin-bottom: 40px;
}

@media (min-width: 720px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}

.footer-brand {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand .brand-mark {
    background: var(--color-primary-light);
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    max-width: 400px;
}

.footer-col h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
}

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

.footer-col a {
    color: #94a3b8;
    font-size: 14px;
}

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

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid #1e293b;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.footer-bottom a {
    color: #94a3b8;
}

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

.beian {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* 响应式微调 */
@media (max-width: 600px) {
    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 14px;
    }

    .cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
}

/* 隐藏移动端不必要的菜单项 */
@media (max-width: 480px) {
    .nav-links .nav-link-hide-sm {
        display: none;
    }
}

/* 打印样式 */
@media print {
    .site-header,
    .site-footer {
        display: none;
    }
}
