/* ========================================
   山西鑫泽康科技有限公司 - 企业官网样式
   风格：清新商务 | 主色调：商务蓝
   ======================================== */

/* === 基础重置 === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === CSS 变量定义 === */
:root {
    /* 主色调 */
    --canvas-bg: #fcfcfc;
    --sky-wash: #f0f4fe;
    --midnight-blue: #020520;
    --graphite-gray: #14141e;
    --slate-gray: #374151;
    --fog-gray: #696a72;
    --deep-fog: #95959b;
    --steel-gray: #6b7280;
    
    /* 强调色 */
    --signal-blue: #145aff;
    --action-blue: #0f1f3d;
    --emerald-green: #16ca2e;
    --coral-red: #f26052;
    --sky-info: #0099ff;
    --amber-tag: #ffa64d;
    
    /* 渐变 */
    --hero-gradient: radial-gradient(97.8% 181.6% at 53.7% 50%, rgb(20, 20, 30) 0%, rgba(88, 107, 141, 0.8) 100%);
    --blue-gradient: linear-gradient(rgb(59, 130, 246) 0%, rgb(20, 90, 255) 100%);
    
    /* 阴影 */
    --card-shadow: rgba(0, 0, 0, 0.1) 0px 0px 4px -2px;
    --card-shadow-hover: rgba(0, 0, 0, 0.15) 0px 4px 12px -2px;
    --feature-shadow: rgba(0, 0, 0, 0.082) 0px 0.36px 1.81px -1.42px, 
                      rgba(0, 0, 0, 0.07) 0px 1.37px 6.87px -2.83px, 
                      rgba(0, 0, 0, 0.016) 0px 6px 30px -4.25px;
    --blue-glow: rgba(20, 90, 255, 0.1) 0px 0px 50px -28px, 
                 rgba(0, 0, 0, 0.18) 0px 0px 3px -1px;
    
    /* 圆角 */
    --radius-pill: 100px;
    --radius-card: 8px;
    --radius-badge: 4px;
    --radius-image: 16px;
    --radius-input: 12px;
    --radius-modal: 32px;
    --radius-button: 12px;
    --radius-large-card: 40px;
    
    /* 间距 */
    --section-gap: 80px;
    --element-gap: 12px;
    --max-width: 1200px;
}

/* === 全局样式 === */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.43;
    color: var(--slate-gray);
    background-color: var(--canvas-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === 排版 === */
h1, h2, h3, h4, h5, h6 {
    color: var(--midnight-blue);
    font-weight: 600;
}

h1 {
    font-size: 56px;
    line-height: 1.05;
    letter-spacing: -1.51px;
}

h2 {
    font-size: 40px;
    line-height: 1.08;
    letter-spacing: -0.76px;
}

h3 {
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -0.22px;
}

h4 {
    font-size: 18px;
    line-height: 1.4;
    letter-spacing: -0.16px;
}

p {
    color: var(--slate-gray);
    line-height: 1.6;
}

a {
    color: var(--action-blue);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--signal-blue);
}

/* === 容器 === */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* === 导航栏 === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: rgba(252, 252, 252, 0.95);
    backdrop-filter: blur(2px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-logo img {
    height: 40px;
}

.navbar-logo span {
    font-size: 18px;
    font-weight: 600;
    color: var(--midnight-blue);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.navbar-menu a {
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    color: var(--slate-gray);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.navbar-menu a:hover {
    background: var(--sky-wash);
    color: var(--midnight-blue);
}

.navbar-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* === 按钮样式 === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    border-radius: var(--radius-button);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--blue-gradient);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--blue-glow);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.8);
    color: var(--action-blue);
    border: 1px solid var(--action-blue);
}

.btn-outline:hover {
    background: var(--sky-wash);
    border-color: var(--midnight-blue);
}

.btn-ghost {
    background: var(--canvas-bg);
    color: var(--signal-blue);
    border: 1px solid rgba(20, 90, 255, 0.3);
    border-radius: var(--radius-pill);
    padding: 14px 32px;
}

.btn-ghost:hover {
    background: var(--sky-wash);
    border-color: var(--signal-blue);
}

/* === 英雄区域 === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--hero-gradient);
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(88, 107, 141, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.hero-badge span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 500;
}

.hero h1 {
    color: #ffffff;
    margin-bottom: 24px;
    font-size: 56px;
}

.hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === 区块样式 === */
.section {
    padding: var(--section-gap) 0;
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

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

.section-header p {
    color: var(--fog-gray);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* === 卡片样式 === */
.card {
    background: #ffffff;
    border-radius: var(--radius-card);
    padding: 24px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.card-large {
    border-radius: var(--radius-large-card);
    padding: 52px 72px;
    box-shadow: var(--feature-shadow);
}

/* === 网格布局 === */
.grid {
    display: grid;
    gap: 24px;
}

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

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

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

/* === 产品卡片 === */
.product-card {
    background: #ffffff;
    border-radius: var(--radius-card);
    padding: 32px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.product-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
}

.product-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sky-wash);
    border-radius: var(--radius-image);
    color: var(--signal-blue);
    font-size: 28px;
}

.product-card h3 {
    margin-bottom: 12px;
}

.product-card p {
    color: var(--fog-gray);
    font-size: 14px;
    margin-bottom: 20px;
}

.product-card a {
    color: var(--action-blue);
    font-weight: 500;
    font-size: 14px;
}

/* === 新闻卡片 === */
.news-card {
    background: #ffffff;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.news-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.news-image {
    width: 100%;
    height: 200px;
    background: var(--sky-wash);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fog-gray);
    font-size: 48px;
}

.news-content {
    padding: 24px;
}

.news-date {
    color: var(--deep-fog);
    font-size: 12px;
    margin-bottom: 8px;
}

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

.news-card p {
    color: var(--fog-gray);
    font-size: 14px;
    margin-bottom: 16px;
}

/* === 案例卡片 === */
.case-card {
    background: #ffffff;
    border-radius: var(--radius-card);
    padding: 32px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.case-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.case-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    background: var(--sky-wash);
    border-radius: var(--radius-image);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--signal-blue);
}

.case-card h3 {
    margin-bottom: 12px;
}

.case-card p {
    color: var(--fog-gray);
    font-size: 14px;
    margin-bottom: 20px;
}

/* === 联系表单 === */
.contact-form {
    background: #ffffff;
    border-radius: var(--radius-large-card);
    padding: 48px;
    box-shadow: var(--feature-shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--graphite-gray);
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #cfcfcf;
    border-radius: var(--radius-input);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--sky-info);
    box-shadow: rgba(0, 153, 255, 1) 0px 0px 0px 3px;
}

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

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand h3 {
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;
}

.footer-links h4 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 16px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* === 登录页面 === */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hero-gradient);
    padding: 24px;
}

.login-card {
    background: rgba(252, 252, 252, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-modal);
    padding: 48px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--feature-shadow);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h2 {
    margin-bottom: 8px;
}

.login-header p {
    color: var(--fog-gray);
    font-size: 14px;
}

/* === 面包屑 === */
.breadcrumb {
    padding: 20px 0;
    margin-top: 90px;
    background: var(--sky-wash);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    font-size: 14px;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: var(--deep-fog);
}

.breadcrumb-list a {
    color: var(--fog-gray);
}

.breadcrumb-list a:hover {
    color: var(--signal-blue);
}

.breadcrumb-list .current {
    color: var(--midnight-blue);
    font-weight: 500;
}

/* === 详情页 === */
.detail-page {
    padding: 60px 0;
}

.detail-header {
    margin-bottom: 40px;
}

.detail-header h1 {
    font-size: 40px;
    margin-bottom: 16px;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--fog-gray);
    font-size: 14px;
}

.detail-content {
    max-width: 800px;
    margin: 0 auto;
}

.detail-content p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.detail-content h2 {
    margin: 40px 0 20px;
    font-size: 28px;
}

.detail-content h3 {
    margin: 32px 0 16px;
    font-size: 22px;
}

.detail-content ul,
.detail-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.detail-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* === 响应式设计 === */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-gap: 60px;
    }
    
    h1 {
        font-size: 40px;
    }
    
    h2 {
        font-size: 32px;
    }
    
    .navbar-menu {
        display: none;
    }
    
    .hero h1 {
        font-size: 40px;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .card-large {
        padding: 32px 24px;
    }
    
    .contact-form {
        padding: 32px 24px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .btn {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* === 动画 === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* === 工具类 === */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}
