/* =========================================
   公司网站样式 - 完美响应式
   ========================================= */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 顶部导航 ========== */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 1.3rem;
    font-weight: bold;
}

.logo i {
    color: #667eea;
    font-size: 1.5rem;
    margin-right: 10px;
}

/* 桌面导航 */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
    font-size: 1rem;
}

.main-nav a:hover,
.main-nav a.active {
    color: #667eea;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #667eea;
    transition: width 0.3s;
}

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

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    padding: 10px;
    z-index: 1001;
}

/* 移动端菜单 */
.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 20px;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    border-bottom: 1px solid #eee;
}

.mobile-nav a {
    display: block;
    padding: 15px 0;
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
    font-weight: 500;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: #667eea;
}

/* ========== 横幅区域 ========== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    padding: 100px 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="rgba(255,255,255,0.05)" width="100" height="100"/></svg>');
    opacity: 0.3;
}

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

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    line-height: 1.3;
}

.hero .slogan {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
}

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

/* ========== 按钮样式 ========== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd6;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: #667eea;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* ========== 通用区块 ========== */
.section {
    padding: 100px 0;
}

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

.section-header h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 15px;
}

.section-header h2 i {
    color: #667eea;
    margin-right: 10px;
}

.section-subtitle {
    color: #999;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.section-header .view-all {
    display: inline-block;
    margin-top: 20px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
}

.section-header .view-all:hover {
    text-decoration: underline;
}

/* ========== 关于我们 ========== */
.about-section {
    background: #f8f9fa;
}

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

.about-text h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 25px;
}

.about-text p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.9;
    font-size: 1.05rem;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin: 40px 0;
    flex-wrap: wrap;
}

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

.stat-num {
    display: block;
    font-size: 2.8rem;
    font-weight: bold;
    color: #667eea;
}

.stat-label {
    color: #666;
    font-size: 0.95rem;
    margin-top: 5px;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    max-width: 450px;
    height: 350px;
    background: linear-gradient(135deg, #e0e0e0 0%, #f0f0f0 100%);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
}

.image-placeholder i {
    font-size: 5rem;
    margin-bottom: 15px;
}

.image-placeholder.small {
    height: 180px;
}

.image-placeholder.small i {
    font-size: 3rem;
}

/* ========== 服务项目 ========== */
.services-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.services-section .section-header h2,
.services-section .section-subtitle {
    color: white;
}

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

.service-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, background 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.2);
}

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

.service-icon i {
    font-size: 2.2rem;
    color: #667eea;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.7;
}

/* ========== 最新动态 ========== */
.news-section {
    background: #fff;
}

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

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #667eea;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.news-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    color: #999;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.news-date i {
    margin-right: 5px;
}

.news-content h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.news-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.news-content h3 a:hover {
    color: #667eea;
}

.news-content p {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    text-decoration: underline;
}

/* ========== 联系CTA ========== */
.contact-section {
    background: #f8f9fa;
    padding: 60px 0;
}

.contact-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    gap: 30px;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
}

/* ========== 页脚 ========== */
.footer {
    background: #2c3e50;
    color: white;
    padding: 80px 0 30px;
}

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

.footer-col h3,
.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-col h3 i {
    color: #667eea;
    margin-right: 10px;
}

.footer-col p {
    color: #bdc3c7;
    line-height: 1.9;
    font-size: 1rem;
}

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

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

.footer-col ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1rem;
}

.footer-col ul li a:hover {
    color: #667eea;
}

.social-links {
    margin-top: 25px;
    display: flex;
    gap: 12px;
}

.social-links a {
    display: inline-flex;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.3s;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: #667eea;
}

.contact-info li {
    color: #bdc3c7;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.7;
}

.contact-info li i {
    color: #667eea;
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    color: #7f8c8d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.footer-bottom a {
    color: #999;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #667eea;
}

/* ========== 响应式设计 ========== */

/* 平板设备 (992px以下) */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-image {
        order: -1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

/* 手机设备 (768px以下) */
@media (max-width: 768px) {
    /* 导航 */
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header .container {
        height: 60px;
    }
    
    .logo a {
        font-size: 1.1rem;
    }
    
    /* 横幅 */
    .hero {
        min-height: auto;
        padding: 80px 20px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .hero .slogan {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        padding: 14px 28px;
        width: 100%;
        max-width: 280px;
    }
    
    /* 区块 */
    .section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
    }
    
    /* 关于我们 */
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .about-stats {
        gap: 25px;
        justify-content: center;
    }
    
    .stat-num {
        font-size: 2.2rem;
    }
    
    .image-placeholder {
        height: 250px;
    }
    
    /* 服务项目 */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 30px 25px;
    }
    
    .service-icon {
        width: 65px;
        height: 65px;
    }
    
    .service-icon i {
        font-size: 1.8rem;
    }
    
    /* 最新动态 */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .news-image {
        height: 200px;
    }
    
    .news-content {
        padding: 25px;
    }
    
    .news-content h3 {
        font-size: 1.1rem;
    }
    
    /* 联系CTA */
    .contact-cta {
        flex-direction: column;
        text-align: center;
        padding: 40px 25px;
    }
    
    .cta-content h2 {
        font-size: 1.6rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        max-width: none;
    }
    
    /* 页脚 */
    .footer {
        padding: 50px 0 25px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-info li {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
}

/* 超小屏幕 (480px以下) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 60px 15px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-header h2 {
        font-size: 1.4rem;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-item {
        padding: 15px;
        background: rgba(102, 126, 234, 0.1);
        border-radius: 10px;
    }
    
    .news-content {
        padding: 20px;
    }
}
