/* ========================================
   钧链数智 · 全局样式表
   配色：金水色系（深蓝/银灰/白/藏蓝）
   响应式：支持桌面端+移动端
   ======================================== */

/* ---------- CSS变量（金水配色） ---------- */
:root {
    /* 主色 */
    --color-primary: #1a3a5c;       /* 深藏蓝 */
    --color-primary-light: #2a5a8c;  /* 亮藏蓝 */
    --color-accent: #4a9bd9;        /* 天蓝 */
    --color-accent-silver: #b8c4ce;  /* 银灰 */
    --color-gold: #c9a96e;          /* 暗金（点缀） */

    /* 背景 */
    --bg-dark: #0f1f33;            /* 深蓝黑 */
    --bg-medium: #1a2f4a;          /* 中蓝 */
    --bg-light: #f5f7fa;           /* 浅灰白 */
    --bg-white: #ffffff;

    /* 文字 */
    --text-white: #ffffff;
    --text-light: #d0d8e0;
    --text-dark: #1a2f4a;
    --text-muted: #6b7d8d;

    /* 间距 */
    --nav-height: 70px;
    --section-padding: 100px;

    /* 动效 */
    --transition: all 0.3s ease;
    --radius: 8px;
    --radius-lg: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* ========== 导航栏 ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(15, 31, 51, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(74, 155, 217, 0.2);
}

.nav-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-white);
    font-size: 20px;
    font-weight: 700;
}

.logo-icon {
    font-size: 24px;
    color: var(--color-accent);
}

.nav-menu {
    display: flex;
    gap: 36px;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--text-white);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-accent);
    border-radius: 1px;
}

.nav-cta {
    background: var(--color-accent);
    color: var(--text-white);
    padding: 10px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--color-primary-light);
    transform: translateY(-1px);
}

/* ========== 通用 Section ========== */
section {
    padding: var(--section-padding) 24px;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 16px;
    font-weight: 700;
}

.section-header p {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.8;
}

.section-header.light h2,
.section-header.light p {
    color: var(--text-white);
}

/* ========== Hero 首屏 ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--nav-height) + 40px) 24px 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:url("images/logo-ym.jpg") 50% 0 no-repeat;
    /*linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-medium) 50%, #1e3d5c 100%);*/
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 30% 40%, rgba(74, 155, 217, 0.15), transparent),
        radial-gradient(ellipse 400px 600px at 70% 60%, rgba(201, 169, 110, 0.08), transparent);
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 56px;
    color: var(--text-white);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-title-sub {
    font-size: 32px;
    color: var(--color-accent);
    font-weight: 600;
}

.hero-subtitle {
    font-size: 19px;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 60px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.stat-num {
    display: block;
    font-size: 42px;
    font-weight: 800;
    color: var(--color-accent);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Hero 变体 */
.hero-product {
    min-height: 60vh;
    padding: calc(var(--nav-height) + 60px) 24px 80px;
}

.hero-product h1 {
    font-size: 48px;
    color: var(--text-white);
    font-weight: 800;
    margin-bottom: 16px;
}

.hero-product p {
    font-size: 18px;
    color: var(--text-light);
}

.hero-about {
    min-height: 60vh;
    padding: calc(var(--nav-height) + 60px) 24px 80px;
}

.hero-about h1 {
    font-size: 48px;
    color: var(--text-white);
    font-weight: 800;
    margin-bottom: 16px;
}

/* ========== 按钮 ========== */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 155, 217, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--color-accent-silver);
}

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

.btn-large {
    padding: 16px 48px;
    font-size: 17px;
}

/* ========== 三层架构 ========== */
.architecture {
    background: var(--bg-light);
    padding: var(--section-padding) 24px;
}

.arch-layer {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    gap: 28px;
    align-items: flex-start;
    box-shadow: 0 4px 20px rgba(26, 58, 92, 0.06);
    border-left: 4px solid var(--color-accent);
    transition: var(--transition);
}

.arch-layer:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(26, 58, 92, 0.12);
}

.arch-layer-icon {
    font-size: 48px;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary-light));
    border-radius: var(--radius);
}

.arch-layer-content h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.arch-tag {
    display: inline-block;
    background: var(--color-accent);
    color: var(--text-white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.arch-layer-content ul {
    list-style: none;
    padding: 0;
}

.arch-layer-content ul li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-muted);
    font-size: 15px;
}

.arch-layer-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}

.arch-arrow {
    text-align: center;
    color: var(--color-accent);
    font-size: 14px;
    margin: 16px 0;
    letter-spacing: 4px;
}

.arch-5m1e {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.m1e-tag {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: var(--text-white);
    padding: 6px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
}

/* 层级颜色区分 */
.arch-top {
    border-left-color: #6c5ce7;
}
.arch-top .arch-layer-icon {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}
.arch-top .arch-tag {
    background: #6c5ce7;
}

.arch-mid {
    border-left-color: var(--color-accent);
}
.arch-mid .arch-tag {
    background: var(--color-accent);
}

.arch-bottom {
    border-left-color: var(--color-gold);
}
.arch-bottom .arch-layer-icon {
    background: linear-gradient(135deg, #c9a96e, #d4b87a);
}
.arch-bottom .arch-tag {
    background: var(--color-gold);
}

/* ========== 差异化卖点 ========== */
.advantages {
    background: var(--bg-white);
    padding: var(--section-padding) 24px;
}

.adv-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.adv-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.adv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-gold));
}

.adv-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(26, 58, 92, 0.1);
}

.adv-num {
    font-size: 48px;
    font-weight: 800;
    color: var(--color-accent);
    opacity: 0.3;
    margin-bottom: 16px;
}

.adv-card h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.adv-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ========== 客户价值数据 ========== */
.value-data {
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-medium));
    padding: var(--section-padding) 24px;
}

.value-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}

.value-item {
    text-align: center;
    padding: 32px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(74, 155, 217, 0.2);
}

.value-before {
    font-size: 28px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 8px;
}

.value-arrow {
    font-size: 24px;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.value-after {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 8px;
}

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

/* ========== 行业方案 ========== */
.industries {
    background: var(--bg-light);
    padding: var(--section-padding) 24px;
}

.ind-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.ind-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    border-top: 3px solid var(--color-accent);
}

.ind-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(26, 58, 92, 0.1);
}

.ind-card h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.ind-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.ind-level {
    display: inline-block;
    background: var(--color-accent);
    color: var(--text-white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ========== 联系表单 ========== */
.contact {
    background: linear-gradient(135deg, var(--bg-dark), #162e48);
    padding: var(--section-padding) 24px;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 48px;
    border: 1px solid rgba(74, 155, 217, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(74, 155, 217, 0.3);
    border-radius: var(--radius);
    color: var(--text-white);
    font-size: 15px;
    transition: var(--transition);
    font-family: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.12);
}

.contact-form textarea {
    margin-bottom: 28px;
    resize: vertical;
}

/* ========== 页脚 ========== */
.footer {
    background: #0a1525;
    padding: 60px 24px 24px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(74, 155, 217, 0.15);
}

.footer-brand {
    color: var(--text-light);
}

.footer-brand .logo-icon {
    font-size: 28px;
}

.footer-brand .logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-white);
}

.footer-brand p {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
}

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

.footer-col h4 {
    color: var(--text-white);
    font-size: 15px;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
    padding: 6px 0;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 24px;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 13px;
}

/* ========== 关于我们页面 ========== */
.about-section {
    padding: var(--section-padding) 24px;
}

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

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

.about-container h2 {
    font-size: 32px;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 40px;
}

.about-lead {
    font-size: 18px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.9;
    max-width: 800px;
    margin: 0 auto 60px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.about-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    box-shadow: 0 4px 16px rgba(26, 58, 92, 0.06);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(26, 58, 92, 0.12);
}

.about-card h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.about-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* 团队 */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.team-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px 28px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(26, 58, 92, 0.06);
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary-light));
    color: var(--text-white);
    font-size: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.team-card h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.team-title {
    font-size: 14px;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 16px;
}

.team-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* 里程碑 */
.timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-accent), var(--color-gold));
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-accent);
    border: 3px solid var(--bg-light);
}

.timeline-year {
    font-size: 14px;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline-content h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* 联系信息 */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.contact-info-item {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
}

.contact-info-item h3 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.contact-info-item p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ========== 产品页表格 ========== */
.product-detail {
    padding: var(--section-padding) 24px;
}

.product-detail.alt-bg {
    background: var(--bg-light);
}

.prod-header {
    max-width: 1000px;
    margin: 0 auto 48px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.prod-icon {
    font-size: 56px;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary-light));
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.prod-header h2 {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.prod-slogan {
    font-size: 16px;
    color: var(--color-accent);
    font-weight: 600;
}

.prod-table-wrap {
    max-width: 1000px;
    margin: 0 auto;
}

.prod-table-wrap h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.prod-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(26, 58, 92, 0.06);
}

.prod-table thead {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
}

.prod-table th {
    padding: 16px 20px;
    text-align: left;
    color: var(--text-white);
    font-size: 14px;
    font-weight: 600;
}

.prod-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(26, 58, 92, 0.06);
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

.prod-table tbody tr:hover {
    background: rgba(74, 155, 217, 0.04);
}

.prod-table tbody tr:last-child td {
    border-bottom: none;
}

/* ========== 响应式 ========== */
@media (max-width: 900px) {
    .hero-title {
        font-size: 36px;
    }
    .hero-title-sub {
        font-size: 22px;
    }
    .section-header h2 {
        font-size: 28px;
    }
    .nav-menu {
        display: none;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    .arch-layer {
        flex-direction: column;
        padding: 28px;
    }
    .prod-header {
        flex-direction: column;
        text-align: center;
    }
    .hero-stats {
        gap: 30px;
    }
    .stat-num {
        font-size: 32px;
    }
}

@media (max-width: 600px) {
    :root {
        --section-padding: 60px;
    }
    .hero-title {
        font-size: 28px;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        max-width: 280px;
    }
    .contact-form {
        padding: 28px 20px;
    }
    .prod-table th,
    .prod-table td {
        padding: 12px 10px;
        font-size: 13px;
    }
}