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

:root {
    --primary-color: #10b981;
    --primary-dark: #059669;
    --primary-light: #34d399;
    --secondary-color: #3b82f6;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --bg-light: #f0fdf4;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

/* 顶部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-icon {
    font-size: 32px;
    filter: drop-shadow(2px 2px 4px rgba(16, 185, 129, 0.3));
}

.logo-text .company-name {
    font-size: 17px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.logo-text .company-subtitle {
    font-size: 11px;
    color: var(--text-gray);
    letter-spacing: 1px;
}

.menu-btn {
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
}

.menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* 移动端菜单 */
.mobile-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 999;
}

.mobile-nav.active {
    max-height: 350px;
}

.nav-link {
    display: block;
    padding: 15px 20px;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-size: 15px;
}

.nav-link:last-child {
    border-bottom: none;
}

.nav-link.active,
.nav-link:active {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    color: white;
}

/* 首页轮播 */
.hero {
    margin-top: 60px;
    position: relative;
    height: 65vh;
    min-height: 450px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    opacity: 0;
    transition: opacity 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide:nth-child(2) {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.hero-slide:nth-child(3) {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
}

.hero-content {
    position: relative;
    text-align: center;
    color: white;
    padding: 20px;
    z-index: 1;
}

.hero-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 12px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 16px;
    margin-bottom: 24px;
    opacity: 0.95;
    letter-spacing: 3px;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 13px 36px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
    transform: scale(0.95);
}

.btn-primary.full-width {
    width: 100%;
}

.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    width: 28px;
    border-radius: 4px;
    background: white;
}

/* 通用区块样式 */
.section {
    padding: 55px 0;
}

.section.bg-light {
    background: var(--bg-light);
}

.section-title {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 35px;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* 关于我们 */
.about-text {
    margin-bottom: 30px;
    padding: 0 5px;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-gray);
    text-indent: 2em;
    font-size: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 25px 20px;
    border-radius: 16px;
    text-align: center;
    color: white;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.stat-card:active {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(16, 185, 129, 0.4);
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 8px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.stat-number {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    opacity: 0.95;
}

/* 产品中心 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.product-card {
    background: white;
    padding: 22px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.product-card:active {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.product-icon {
    font-size: 42px;
    margin-bottom: 12px;
}

.product-title {
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.product-desc {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 12px;
}

.product-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
    border-radius: 12px;
    font-size: 11px;
}

/* 研发实力 */
.research-intro {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 10px;
}

.research-intro p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 14px;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.research-card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.research-card:active {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.research-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.research-card h3 {
    font-size: 16px;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.research-card p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* 新闻动态 */
.news-grid {
    display: grid;
    gap: 20px;
}

.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    gap: 15px;
    padding: 20px;
}

.news-card:active {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.news-date {
    flex-shrink: 0;
    width: 70px;
    text-align: center;
    padding: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 12px;
    color: white;
}

.news-date .day {
    display: block;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

.news-date .month {
    display: block;
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.9;
}

.news-content {
    flex: 1;
}

.news-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.news-desc {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 10px;
}

.news-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-light);
    color: var(--primary-dark);
    border-radius: 12px;
    font-size: 11px;
    border: 1px solid var(--primary-light);
}

/* 联系我们 */
.contact-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 15px;
    margin-bottom: 6px;
    color: var(--primary-dark);
}

.contact-text p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

.contact-form {
    background: white;
    padding: 28px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    font-size: 19px;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* 底部 */
.footer {
    background: linear-gradient(135deg, var(--text-dark), #374151);
    color: white;
    padding: 45px 0 25px;
}

.footer-content {
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    font-size: 36px;
    filter: drop-shadow(2px 2px 6px rgba(16, 185, 129, 0.5));
}

.footer-text .company-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.footer-text p {
    font-size: 13px;
    opacity: 0.85;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:active {
    opacity: 1;
    color: var(--primary-light);
}

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

.footer-bottom p {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 5px;
    line-height: 1.6;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 100;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:active {
    transform: scale(0.9);
}

/* 响应式优化 */
@media (min-width: 768px) {
    .hero-title {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 19px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .research-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        flex-direction: row;
    }
    
    .contact-info,
    .contact-form {
        flex: 1;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 26px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .products-grid,
    .research-grid {
        grid-template-columns: 1fr;
    }
}
