/* ========================================
   理心科技 · 官网样式
   ======================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-alt: #f9fafb;
    --border: #e5e7eb;
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }

/* ---------- 顶部导航 ---------- */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.nav {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.logo span { color: var(--text); }

.nav-links { display: flex; gap: 32px; }

.nav-links a {
    color: var(--text-light);
    font-size: 15px;
    transition: color 0.2s;
    position: relative;
}

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

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

/* ---------- Hero ---------- */
.hero {
    max-width: 1140px;
    margin: 0 auto;
    padding: 90px 20px 100px;
    text-align: center;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero h1 em {
    color: var(--primary);
    font-style: normal;
}

.hero p {
    font-size: 17px;
    color: var(--text-light);
    max-width: 640px;
    margin: 0 auto 36px;
}

.btn-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

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

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

/* ---------- 通用区块 ---------- */
.section { padding: 80px 20px; }

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

.container { max-width: 1140px; margin: 0 auto; }

.section-title {
    text-align: center;
    margin-bottom: 56px;
}

.section-title h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-title p {
    color: var(--text-light);
    font-size: 16px;
}

.section-title .line {
    width: 44px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    margin: 0 auto 18px;
}

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 24px; }

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px 26px;
    transition: all 0.25s;
}

.card:hover {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
    transform: translateY(-3px);
}

.card-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.09);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
}

.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }

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

/* ---------- 数据统计 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.stat { text-align: center; padding: 20px; }

.stat .num {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.stat .label { color: var(--text-light); font-size: 14.5px; margin-top: 6px; }

/* ---------- 内容页 ---------- */
.page-head {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 56px 20px 44px;
    text-align: center;
}

.page-head h1 { font-size: 32px; font-weight: 700; margin-bottom: 10px; }

.page-head p { color: var(--text-light); }

.prose { max-width: 820px; margin: 0 auto; }

.prose h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 40px 0 16px;
    padding-left: 12px;
    border-left: 3px solid var(--primary);
}

.prose h3 { font-size: 17px; font-weight: 600; margin: 24px 0 10px; }

.prose p { margin-bottom: 14px; color: #374151; }

.prose ul { margin: 12px 0 18px 22px; color: #374151; }

.prose li { margin-bottom: 8px; }

/* ---------- 联系信息 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.contact-item {
    display: flex;
    gap: 16px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 16px;
}

.contact-item .ci-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.09);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.contact-item h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }

.contact-item p { color: var(--text-light); font-size: 14.5px; }

/* ---------- 页脚 ---------- */
.footer {
    background: #111827;
    color: #9ca3af;
    padding: 56px 20px 28px;
    font-size: 14px;
}

.footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 36px;
    border-bottom: 1px solid #1f2937;
}

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

.footer-links li { list-style: none; margin-bottom: 10px; }

.footer-links a { transition: color 0.2s; }

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

.footer-bottom {
    max-width: 1140px;
    margin: 22px auto 0;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    line-height: 2;
}

.footer-bottom a { color: #9ca3af; }

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

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .grid-3, .grid-4, .stats { grid-template-columns: repeat(2, 1fr); }
    .contact-grid, .footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .hero h1 { font-size: 32px; }
    .hero { padding: 60px 20px 70px; }
    .section { padding: 56px 20px; }
}

@media (max-width: 600px) {
    .nav-links { gap: 18px; font-size: 14px; }
    .grid-3, .grid-4, .stats { grid-template-columns: 1fr; }
    .hero h1 { font-size: 26px; }
    .section-title h2 { font-size: 24px; }
    .page-head h1 { font-size: 26px; }
}

/* ========================================
   Hero 两栏布局（图文并排）
   ======================================== */
.hero-inner {
    display: flex;
    align-items: center;
    gap: 56px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 72px 20px 88px;
}

.hero-text { flex: 1 1 52%; text-align: left; min-width: 0; }

.hero-text h1 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.32;
    letter-spacing: -0.6px;
    margin-bottom: 20px;
}

.hero-text h1 em { color: var(--primary); font-style: normal; }

.hero-text p {
    font-size: 16.5px;
    color: var(--text-light);
    margin-bottom: 34px;
    max-width: 520px;
}

.hero-text .btn-group { justify-content: flex-start; }

.hero-art { flex: 1 1 48%; min-width: 0; }

.hero-art img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 560px;
    margin: 0 auto;
}

/* 装饰性背景 */
.hero {
    padding: 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -160px; right: -120px;
    width: 480px; height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -140px; left: -100px;
    width: 380px; height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124,58,237,0.06) 0%, transparent 70%);
    pointer-events: none;
}

@media (max-width: 900px) {
    .hero-inner { flex-direction: column; gap: 36px; padding: 52px 20px 64px; }
    .hero-text { text-align: center; flex: none; }
    .hero-text h1 { font-size: 30px; }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .hero-text .btn-group { justify-content: center; }
    .hero-art { flex: none; width: 100%; max-width: 420px; }
}

@media (max-width: 600px) {
    .hero-inner { padding: 40px 20px 48px; }
    .hero-text h1 { font-size: 25px; }
    .hero-text p { font-size: 15px; }
}

/* ========================================
   SVG 图标
   ======================================== */
.card-icon svg { width: 23px; height: 23px; display: block; }
.ci-icon svg { width: 21px; height: 21px; display: block; }

/* ========================================
   产品卡片
   ======================================== */
.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 30px 26px;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    border-color: rgba(37,99,235,0.35);
    box-shadow: 0 14px 34px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}
.pc-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(37,99,235,0.10), rgba(124,58,237,0.10));
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.pc-icon svg { width: 25px; height: 25px; }
.product-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.product-card p { color: var(--text-light); font-size: 14.5px; flex: 1; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pc-tags span {
    font-size: 12px; padding: 3px 10px; border-radius: 20px;
    background: rgba(37,99,235,0.07); color: var(--primary);
}

/* ========================================
   案例卡片
   ======================================== */
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.case-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    transition: all 0.25s;
}
.case-card:hover {
    border-color: rgba(37,99,235,0.3);
    box-shadow: 0 12px 30px rgba(0,0,0,0.07);
    transform: translateY(-2px);
}
.case-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.case-industry {
    font-size: 12.5px; font-weight: 600; color: var(--primary);
    background: rgba(37,99,235,0.08); padding: 4px 12px; border-radius: 20px;
}
.case-tag { font-size: 12.5px; color: var(--text-light); }
.case-card h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 10px; }
.case-card > p { color: var(--text-light); font-size: 14.5px; }
.case-result {
    display: flex; gap: 36px; margin-top: 20px;
    padding-top: 18px; border-top: 1px dashed var(--border);
}
.case-result strong { display: block; font-size: 21px; color: var(--primary); font-weight: 700; }
.case-result span { font-size: 12.5px; color: var(--text-light); }

/* ========================================
   团队卡片
   ======================================== */
.member-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 30px 26px;
    text-align: center;
    transition: all 0.25s;
}
.member-card:hover {
    border-color: rgba(37,99,235,0.3);
    box-shadow: 0 12px 30px rgba(0,0,0,0.07);
    transform: translateY(-3px);
}
.member-avatar {
    width: 72px; height: 72px; margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(124,58,237,0.12));
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
}
.member-avatar svg { width: 34px; height: 34px; }
.member-card h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 4px; }
.member-role { font-size: 13px; color: var(--primary); margin-bottom: 12px; }
.member-card p { color: var(--text-light); font-size: 14px; }

/* ========================================
   流程步骤
   ======================================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.step {
    background: #fff; border: 1px solid var(--border);
    border-radius: 14px; padding: 26px 22px; text-align: center;
    position: relative;
}
.step-num {
    font-size: 13px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    width: 38px; height: 38px; line-height: 38px; border-radius: 50%;
    margin: 0 auto 14px;
}
.step h4 { font-size: 15.5px; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--text-light); }

@media (max-width: 900px) {
    .grid-2 { grid-template-columns: 1fr; }
    .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .steps { grid-template-columns: 1fr; }
    .case-result { gap: 24px; }
}

/* ========================================
   产品界面预览图
   ======================================== */
.pc-preview {
    margin: 0 0 18px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eef2f7;
    background: #f8fafc;
    line-height: 0;
}
.pc-preview img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.35s ease;
}
.product-card:hover .pc-preview img { transform: scale(1.03); }
