/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --secondary-color: #00a651;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f5f5f5;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

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

/* 页面加载动画 */
@keyframes pageLoad {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    animation: pageLoad 0.6s ease;
}

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

/* 导航栏 */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    background: rgba(255, 255, 255, 0.98);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--text-light);
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 15px;
    transition: var(--transition);
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    position: relative;
}

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



/* 轮播图 */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slider {
    height: 100%;
}

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

.slide.active {
    opacity: 1;
}

.slide:nth-child(1) {
    background: #0066cc;
}

.slide:nth-child(2) {
    background: #00a651;
}

.slide:nth-child(3) {
    background: #6a4c93;
}

.slide-content {
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.slide-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.slider-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    border: none;
    color: var(--white);
    font-size: 40px;
    padding: 10px 20px;
    cursor: pointer;
    transition: var(--transition);
}

.slider-controls button:hover {
    background: rgba(255,255,255,0.5);
}

.slider-controls .prev {
    left: 20px;
}

.slider-controls .next {
    right: 20px;
}

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

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

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--text-dark);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 15px auto 0;
    animation: expandWidth 1s ease 0.3s backwards;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 60px;
    }
}

/* 关于我们 */
.about {
    background: var(--bg-light);
}

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

.about-text h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

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

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: default;
}

.stat-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,102,204,0.2);
}

.stat-item h4 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

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

/* 产品中心 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.product-image {
    height: 200px;
    background: #e0e0e0;
}

.product-card h3 {
    padding: 20px 20px 10px;
    font-size: 20px;
    color: var(--text-dark);
}

.product-card p {
    padding: 0 20px;
    color: var(--text-light);
    font-size: 14px;
}

.product-link {
    display: block;
    padding: 15px 20px;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.product-link::after {
    content: '→';
    position: absolute;
    right: 20px;
    transition: all 0.3s ease;
}

.product-link:hover {
    padding-left: 25px;
    background: rgba(0,102,204,0.05);
}

.product-link:hover::after {
    right: 15px;
    transform: translateX(5px);
}

/* 研发创新 */
.research {
    background: var(--bg-light);
}

.research-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.research-item {
    text-align: center;
    padding: 40px 20px;
    background: var(--white);
    border-radius: 10px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.research-item::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,102,204,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.6s ease;
}

.research-item:hover::after {
    opacity: 1;
    top: -25%;
    right: -25%;
}

.research-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,102,204,0.15);
}

.research-icon {
    font-size: 60px;
    margin-bottom: 20px;
    display: inline-block;
    transition: all 0.4s ease;
}

.research-item:hover .research-icon {
    transform: scale(1.2) rotateY(360deg);
}

.research-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.research-item p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 新闻中心 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.news-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.news-date {
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 15px;
}

.news-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.news-card p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.news-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.news-link:hover {
    text-decoration: underline;
}

/* 联系我们 */
.contact {
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

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

.contact-item {
    padding: 25px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.contact-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-light);
}

.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    transition: var(--transition);
}

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

.contact-form button {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.contact-form button:hover {
    background: #0052a3;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section p,
.footer-section li {
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
}

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

.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white);
}

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

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

/* 产品图片悬停放大效果 */
.product-image {
    transition: transform 0.5s ease;
}

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

/* 联系表单焦点效果 */
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}

/* 页脚链接悬停效果 */
.footer-section a {
    position: relative;
}

.footer-section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width 0.3s ease;
}

.footer-section a:hover::after {
    width: 100%;
}



/* 响应式设计 */
@media (max-width: 768px) {
    .nav-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero-slider {
        height: 400px;
    }
    
    .slide-content h2 {
        font-size: 32px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .product-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
}
