/* ========================================
   上海维尔雅化妆品有限公司 - 网站样式
   风格：专业蓝色商务风格（沿用PPT配色）
   ======================================== */

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

:root {
    /* PPT蓝色主题配色方案 */
    --primary-color: #1e4a8c;        /* 深蓝 - 主色 */
    --primary-dark: #153668;         /* 更深蓝 */
    --primary-light: #2d5aa0;        /* 浅蓝 */
    --accent-color: #c41230;         /* 红色强调 */
    --secondary-color: #f5a962;      /* 暖橙色 */
    --text-dark: #333333;            /* 深灰文字 */
    --text-light: #666666;           /* 浅灰文字 */
    --text-muted: #999999;           /* 弱化文字 */
    --bg-light: #f5f7fa;             /* 浅背景 */
    --bg-white: #ffffff;             /* 白色 */
    --border-color: #e0e4e8;         /* 边框色 */
    
    /* 字体 */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    
    /* 间距 */
    --section-padding: 80px;
    --container-max-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   导航栏
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-contact .phone-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.nav-contact .phone-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* ========================================
   首页Banner
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 74, 140, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 20px 60px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
}

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

.hero-stats {
    display: flex;
    gap: 60px;
    margin-top: 60px;
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.95);
    padding: 30px 60px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

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

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
}

/* ========================================
   按钮样式
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(30, 74, 140, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 74, 140, 0.4);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--bg-white);
}

.btn-secondary:hover {
    background: transparent;
    color: var(--bg-white);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

/* ========================================
   通用区块样式
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header.light {
    color: var(--bg-white);
}

.section-header.light .section-title {
    color: var(--bg-white);
}

.section-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--bg-white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 15px;
}

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

/* ========================================
   关于我们预览
   ======================================== */
.about-preview {
    padding: var(--section-padding) 0;
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-weight: 500;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 20px;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* ========================================
   发展历程
   ======================================== */
.history {
    padding: var(--section-padding) 0;
    background: var(--bg-white);
}

.history-image {
    text-align: center;
}

.history-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* ========================================
   服务介绍
   ======================================== */
.services {
    padding: var(--section-padding) 0;
    background: var(--bg-light);
}

.services-image {
    text-align: center;
    margin-bottom: 50px;
}

.services-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.service-icon i {
    font-size: 32px;
    color: var(--bg-white);
}

.service-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.service-card > p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-card ul {
    list-style: none;
    text-align: left;
    padding: 0 20px;
}

.service-card ul li {
    font-size: 14px;
    color: var(--text-light);
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
    position: relative;
    padding-left: 20px;
}

.service-card ul li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-card ul li:last-child {
    border-bottom: none;
}

/* ========================================
   服务优势
   ======================================== */
.advantage {
    padding: var(--section-padding) 0;
    background: var(--bg-white);
}

.advantage-image {
    text-align: center;
}

.advantage-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* ========================================
   生产实力
   ======================================== */
.strength {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
}

.strength-image {
    text-align: center;
    margin-bottom: 50px;
}

.strength-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.strength-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.strength-item {
    text-align: center;
    padding: 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.strength-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.strength-icon i {
    font-size: 28px;
    color: var(--primary-color);
}

.strength-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.strength-item p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.6;
}

/* ========================================
   核心设备
   ======================================== */
.equipment {
    padding: var(--section-padding) 0;
    background: var(--bg-light);
}

.equipment-image {
    text-align: center;
}

.equipment-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* ========================================
   科研中心
   ======================================== */
.research {
    padding: var(--section-padding) 0;
    background: var(--bg-white);
}

.research-image {
    text-align: center;
    margin-bottom: 40px;
}

.research-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.research-tech {
    text-align: center;
}

.research-tech img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* ========================================
   质量中心
   ======================================== */
.quality {
    padding: var(--section-padding) 0;
    background: var(--bg-light);
}

.quality-image {
    text-align: center;
}

.quality-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* ========================================
   供应链网络
   ======================================== */
.supply-chain {
    padding: var(--section-padding) 0;
    background: var(--bg-white);
}

.supply-image {
    text-align: center;
}

.supply-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* ========================================
   服务保障
   ======================================== */
.guarantee {
    padding: var(--section-padding) 0;
    background: var(--bg-light);
}

.guarantee-image {
    text-align: center;
}

.guarantee-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* ========================================
   产品展示
   ======================================== */
.products-preview {
    padding: var(--section-padding) 0;
    background: var(--bg-white);
}

.product-showcase {
    text-align: center;
}

.product-showcase img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* ========================================
   联系CTA
   ======================================== */
.contact-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    text-align: center;
}

.contact-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 40px;
}

.reasons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 50px;
}

.reason-item {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
    color: var(--bg-white);
    font-size: 15px;
    font-weight: 500;
}

.reason-item span {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: var(--bg-white);
    color: var(--primary-color);
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 12px;
    margin-right: 8px;
}

.contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-buttons .btn-primary {
    background: var(--bg-white);
    color: var(--primary-color);
}

.contact-buttons .btn-primary:hover {
    background: var(--text-dark);
    color: var(--bg-white);
}

.contact-buttons .btn-secondary {
    border-color: var(--bg-white);
    color: var(--bg-white);
}

.contact-buttons .btn-secondary:hover {
    background: var(--bg-white);
    color: var(--primary-color);
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 60px 0 30px;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
}

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

.footer-section h3,
.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--bg-white);
}

.footer-section p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.footer-contact i {
    color: var(--primary-light);
    width: 16px;
}

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

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

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

.footer-section ul li a:hover {
    color: var(--primary-light);
}

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

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

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

@media (max-width: 768px) {
    .nav-menu,
    .nav-contact {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .services-grid,
    .strength-content {
        grid-template-columns: 1fr;
    }
    
    .reasons {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        margin: 0 auto 20px;
    }
    
    .footer-contact p {
        justify-content: center;
    }
}

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

.service-card,
.strength-item,
.reason-item {
    animation: fadeInUp 0.6s ease forwards;
}
