/**
 * 新盛公司官网 - 主样式文件
 * 清新商务风格，商务蓝主色调
 */

/* ========== 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%);
    
    /* 阴影 */
    --shadow-card: rgba(0, 0, 0, 0.1) 0px 0px 4px -2px;
    --shadow-elevated: rgba(0, 0, 0, 0.25) 0px 0px 4px -2px;
    --shadow-feature: 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;
    --shadow-focus: rgba(20, 90, 255, 0.1) 0px 0px 50px -28px, 
                    rgba(0, 0, 0, 0.18) 0px 0px 3px -1px;
    --shadow-hero-glow: rgba(20, 90, 255, 0.1) 0px 0px 100px -28px;
    
    /* 圆角 */
    --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;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.43;
    letter-spacing: 0.06px;
    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;
}

.display-title {
    font-size: 56px;
    line-height: 1.05;
    letter-spacing: -1.51px;
    color: var(--midnight-blue);
}

.heading-lg {
    font-size: 40px;
    line-height: 1.08;
    letter-spacing: -0.76px;
}

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

.heading-sm {
    font-size: 18px;
    line-height: 1.4;
    letter-spacing: -0.16px;
}

.body-text {
    font-size: 14px;
    line-height: 1.43;
    letter-spacing: 0.06px;
}

.caption {
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: 0.13px;
    text-transform: uppercase;
}

/* ========== 容器 ========== */
.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.8);
    backdrop-filter: blur(2px);
    -webkit-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;
    font-size: 20px;
    font-weight: 600;
    color: var(--midnight-blue);
    text-decoration: none;
}

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

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

.navbar-nav a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 400;
    color: var(--slate-gray);
    text-decoration: none;
    border-radius: var(--radius-pill);
    transition: all 0.2s ease;
}

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

.navbar-nav a.active {
    background: var(--sky-wash);
    color: var(--midnight-blue);
    font-weight: 500;
}

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

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--slate-gray);
    cursor: pointer;
}

/* ========== 按钮系统 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-button);
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

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

.btn-outline:hover {
    border-color: var(--midnight-blue);
    background: rgba(255, 255, 255, 1);
}

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

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.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;
    font-size: 16px;
    font-weight: 500;
}

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

/* ========== 英雄区 ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    background: var(--hero-gradient);
    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);
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 56px;
    line-height: 1.05;
    letter-spacing: -1.51px;
    color: #ffffff;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

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

.section-header .caption {
    color: var(--signal-blue);
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 40px;
    line-height: 1.08;
    letter-spacing: -0.76px;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 16px;
    color: var(--fog-gray);
    line-height: 1.6;
}

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

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

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

.card-image {
    border-radius: var(--radius-image);
    overflow: hidden;
    margin-bottom: 20px;
}

.card-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========== 网格布局 ========== */
.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);
    box-shadow: var(--shadow-card);
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: var(--shadow-elevated);
    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 {
    font-size: 18px;
    margin-bottom: 12px;
}

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

.product-card .btn-link {
    color: var(--signal-blue);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.product-card .btn-link:hover {
    text-decoration: underline;
}

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

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

.case-card-image {
    height: 200px;
    background: var(--sky-wash);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.case-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-card-content {
    padding: 24px;
}

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

.case-card-content p {
    font-size: 14px;
    color: var(--fog-gray);
    line-height: 1.6;
}

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

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

.news-card-image {
    height: 180px;
    background: var(--sky-wash);
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-content {
    padding: 24px;
}

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

.news-card-content h3 {
    font-size: 16px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-card-content p {
    font-size: 14px;
    color: var(--fog-gray);
    line-height: 1.6;
}

/* ========== 表单样式 ========== */
.form-group {
    margin-bottom: 20px;
}

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

.form-input {
    width: 100%;
    padding: 15px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--graphite-gray);
    background: #ffffff;
    border: 1px solid #cfcfcf;
    border-radius: var(--radius-input);
    transition: all 0.2s ease;
}

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

.form-input::placeholder {
    color: var(--deep-fog);
}

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

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

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

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

.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background: var(--signal-blue);
}

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

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

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

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

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

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* ========== 百度地图容器 ========== */
.map-container {
    width: 100%;
    height: 300px;
    border-radius: var(--radius-image);
    overflow: hidden;
    margin-top: 30px;
}

/* ========== 状态徽章 ========== */
.badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius-badge);
}

.badge-success {
    background: rgba(22, 202, 46, 0.1);
    color: var(--emerald-green);
}

.badge-danger {
    background: rgba(242, 96, 82, 0.1);
    color: var(--coral-red);
}

.badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--signal-blue);
}

/* ========== 客户Logo条 ========== */
.client-logos {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 48px;
    align-items: center;
    padding: 40px 0;
}

.client-logos img {
    max-width: 120px;
    max-height: 40px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.client-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ========== 面包屑导航 ========== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
    font-size: 14px;
    color: var(--fog-gray);
}

.breadcrumb a {
    color: var(--fog-gray);
    text-decoration: none;
}

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

.breadcrumb span {
    color: var(--deep-fog);
}

/* ========== 详情页样式 ========== */
.detail-header {
    padding: 120px 0 60px;
    background: var(--sky-wash);
}

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

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

.detail-content {
    padding: 60px 0;
}

.detail-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--slate-gray);
    margin-bottom: 20px;
}

.detail-content img {
    max-width: 100%;
    border-radius: var(--radius-image);
    margin: 30px 0;
}

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

@media (max-width: 768px) {
    :root {
        --section-gap: 60px;
    }
    
    .navbar-nav {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        right: 0;
        background: var(--canvas-bg);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-card);
    }
    
    .navbar-nav.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .navbar-actions {
        display: none;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .card-large {
        padding: 30px 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .client-logos {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .detail-header h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 16px 60px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .container {
        padding: 0 16px;
    }
}

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

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

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

.mt-0 { margin-top: 0; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
