/* ============================================
   公司官方网站全局样式表
   设计风格：现代简约
   ============================================ */

/* === CSS Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 品牌色板 */
    --color-primary: #183B66;
    --color-primary-hover: #102E52;
    --color-accent: #F5A623;
    --color-accent-hover: #E89412;
    --color-title: #183B66;
    --color-text: #4B5563;
    --color-text-light: #6B7280;
    --color-border: #D9E2EC;
    --color-bg: #F7F9FC;
    --color-white: #FFFFFF;

    /* 兼容现有变量 */
    --primary: var(--color-primary);
    --primary-dark: var(--color-primary-hover);
    --primary-light: #315981;
    
    /* 辅色 - 活力橙（CTA按钮、重要标签） */
    --accent: var(--color-accent);
    --accent-hover: var(--color-accent-hover);
    
    /* 点缀色 - 控制使用，避免高饱和跳色 */
    --green: #4CB5AE;
    --green-light: #6dd1c9;
    
    /* 中性色 */
    --gray-50: var(--color-bg);
    --gray-100: #EEF2F6;
    --gray-200: var(--color-border);
    --gray-300: #C8D3DF;
    --gray-400: #7A8594;
    --gray-500: var(--color-text-light);
    --gray-600: #5B6573;
    --gray-700: #334155;
    --gray-800: var(--color-text);
    --gray-900: var(--color-title);
    
    /* 功能色 */
    --success: #2ECC71;
    --warning: #F5A623;
    --danger: #E74C3C;
    
    /* 其他 */
    --white: var(--color-white);
    --shadow-sm: 0 1px 2px 0 rgba(20, 45, 71, 0.05);
    --shadow: 0 8px 22px rgba(20, 45, 71, 0.08);
    --shadow-lg: 0 14px 34px rgba(20, 45, 71, 0.1);
    --shadow-xl: 0 18px 42px rgba(20, 45, 71, 0.12);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === 通用容器 === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === 按钮样式 === */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* === 标题样式 === */
.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto 60px;
}

/* === Header 导航栏 === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    padding-bottom: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    color: var(--gray-700);
    font-weight: 500;
    position: relative;
    padding: 8px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--gray-800);
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* === Hero Section === */
.hero {
    padding: 160px 0 120px;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-title span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === 通用 Section === */
.section {
    padding: 88px 0;
}

.section-bg {
    background-color: var(--gray-50);
}

/* === 一体化供应链模块 === */
.system-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 42px;
}

.system-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 30px;
    text-align: left;
    transition: var(--transition);
}

.system-card:hover {
    border-color: rgba(27, 58, 92, 0.26);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.system-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.system-label::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.system-card h3 {
    font-size: 22px;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.system-card p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 18px;
}

.system-card ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.system-card li {
    padding: 5px 10px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    color: var(--gray-600);
    font-size: 13px;
    background: var(--gray-50);
}

.flow-strip {
    margin-top: 32px;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
}

.flow-strip p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 18px;
}

.flow-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.flow-steps span {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border: 1px solid #d7e4ec;
    border-radius: 6px;
    background: #eef4f8;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.flow-steps i {
    color: var(--gray-400);
    font-style: normal;
}

.product-meta {
    display: grid;
    gap: 8px;
    margin: 14px 0 16px;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.65;
}

.product-meta div strong {
    color: var(--gray-900);
}

.quote-link {
    display: inline-flex;
    width: fit-content;
    margin-top: 4px;
    padding: 8px 14px;
    border-radius: 6px;
    background: var(--primary);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
}

/* === 特色服务/产品卡片 === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--white);
    padding: 32px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    box-shadow: none;
    transition: var(--transition);
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(27, 58, 92, 0.26);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 46px;
    height: 46px;
    margin: 0 0 22px;
    background: #eef4f8 !important;
    border: 1px solid #d7e4ec;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary) !important;
    font-size: 20px;
}

.feature-icon i {
    font-size: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.8;
}

/* === 统计数据 === */
.stats {
    background: #f3f7fa !important;
    padding: 64px 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid #d8e3ea;
    border-bottom: 1px solid #d8e3ea;
}

.stats.gradient-animate {
    animation: none;
}

.stats > div[style*="position: absolute"] {
    display: none !important;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: none;
    opacity: 0;
}

.stats::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: none;
    opacity: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item h3 {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-item p {
    color: var(--gray-600);
    font-size: 15px;
}

/* === 关于我们简介 === */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 36px;
    margin-bottom: 24px;
    color: var(--gray-900);
}

.about-content p {
    color: var(--gray-600);
    margin-bottom: 16px;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* === 产品展示 === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.product-image {
    height: 240px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 48px;
}

.product-info {
    padding: 24px;
}

.product-info h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.product-info p {
    color: var(--gray-600);
    margin-bottom: 16px;
}

.product-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 5px 10px;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: 6px;
    font-size: 12px;
}

/* === 工厂实力 === */
.factory-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.factory-item {
    display: flex;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: var(--white);
    transition: var(--transition);
}

.factory-item:hover {
    border-color: rgba(27, 58, 92, 0.26);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.factory-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    background: #eef4f8 !important;
    color: var(--primary) !important;
    border: 1px solid #d7e4ec;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.factory-icon i {
    font-size: 18px;
}

.factory-item h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.factory-item p {
    color: var(--gray-600);
}

.process-number {
    width: 42px;
    height: 42px;
    margin: 0 0 22px;
    background: #eef4f8;
    color: var(--primary);
    border: 1px solid #d7e4ec;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
}

/* === 解决方案 === */
.solutions-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.solution-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.solution-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.solution-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.solution-card p {
    color: var(--gray-600);
    margin-bottom: 20px;
}

.solution-card ul {
    margin-bottom: 24px;
}

.solution-card li {
    padding: 8px 0;
    color: var(--gray-600);
    position: relative;
    padding-left: 24px;
}

.solution-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* === 新闻动态 === */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.news-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    height: 200px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 48px;
}

.news-content {
    padding: 24px;
}

.news-date {
    font-size: 14px;
    color: var(--gray-400);
    margin-bottom: 8px;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--gray-900);
    line-height: 1.4;
}

.news-content p {
    color: var(--gray-600);
    font-size: 15px;
    margin-bottom: 16px;
}

.news-link {
    color: var(--primary);
    font-weight: 500;
}

.news-link:hover {
    color: var(--primary-dark);
}

/* === 联系我们 === */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 36px;
    margin-bottom: 24px;
    color: var(--gray-900);
}

.contact-info > p {
    color: var(--gray-600);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--gray-100);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--gray-900);
}

.contact-item p {
    color: var(--gray-600);
}

/* 联系表单 */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 16px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* === Footer === */
.footer {
    background-color: var(--gray-900);
    color: var(--gray-300);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 24px;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--gray-400);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-column h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-column a {
    display: block;
    color: var(--gray-400);
    padding: 8px 0;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 30px;
    text-align: center;
    color: var(--gray-500);
    font-size: 14px;
}

/* === 返回顶部按钮 === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    border: none;
    font-size: 24px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
}

/* === Page Header (内页) === */
.page-header {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.page-header p {
    font-size: 18px;
    color: var(--gray-500);
}

/* === 面包屑导航 === */
.breadcrumb {
    padding: 20px 0;
    background: var(--gray-50);
}

.breadcrumb-list {
    display: flex;
    gap: 12px;
    align-items: center;
}

.breadcrumb-list a {
    color: var(--primary);
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin-left: 12px;
    color: var(--gray-400);
}

/* === 响应式设计 === */
@media (max-width: 1024px) {
    .features-grid,
    .products-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .system-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* 移动端菜单 */
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu a {
        padding: 16px 0;
        border-bottom: 1px solid var(--gray-100);
        width: 100%;
    }
    
    /* 响应式调整 */
    .hero-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .features-grid,
    .products-grid,
    .news-grid,
    .solutions-list,
    .about-intro,
    .contact-wrapper,
    .factory-features {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .stat-item h3 {
        font-size: 36px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        margin: 8px 0;
    }
    
    /* 修复产品展示区域按钮错位问题 */
    .products-grid + div[style*="text-align: center"] {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .products-grid + div[style*="text-align: center"] .btn {
        width: 100%;
        max-width: 300px;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    .stat-item h3 {
        font-size: 28px;
    }
    
    .stat-item p {
        font-size: 14px;
    }
}
