/* CSS Variables - 科技感配色 */
:root {
    --primary-color: #0f4c81;
    --secondary-color: #ff6b00;
    --dark-color: #16213e;
    --light-color: #f8f9fa;
    --accent-color: #00b894;
    --bg-light: #f0f2f5;
    --bg-dark: #16213e;
    --bg-accent: #e3f2fd;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Styles */
body {
    font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles - 科技感导航 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 76, 129, 0.95);
    color: white;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.header-scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
}

/* Hero Section - 科技感背景 */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    z-index: -1;
}

/* 科技感网格背景 */
.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Button Styles - 科技感按钮 */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--secondary-color);
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.5);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    box-shadow: none;
}

.btn-outline::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.hero-buttons .btn {
    margin: 0 10px;
}

/* Section Common Styles */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
    margin-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Products Section - 科技感产品展示 */
.products {
    background-color: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

.product-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-img::after {
    opacity: 1;
}

.product-info {
    padding: 25px;
}

.product-name {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 600;
}

.product-desc {
    margin-bottom: 15px;
    color: #666;
    font-size: 0.95rem;
}

.product-ratings {
    margin-bottom: 15px;
}

.product-ratings i {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.product-info .btn {
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 0.9rem;
}

/* Features Section - 科技感优势展示 */
.features {
    background-color: var(--bg-accent);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(15, 76, 129, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 76, 129, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
    z-index: 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.feature-item {
    text-align: center;
    padding: 40px 25px;
    background-color: white;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.feature-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

.feature-item p {
    color: #666;
    font-size: 1rem;
}

/* News Section - 科技感资讯展示 */
.news {
    background-color: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img img {
    transform: scale(1.05);
}

.news-content {
    padding: 25px;
}

.news-tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--bg-accent);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 20px;
    margin-bottom: 10px;
}

.news-date {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 15px;
}

.news-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.4;
}

.news-excerpt {
    margin-bottom: 20px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.news-content .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* Testimonials Section - 科技感评价展示 */
.testimonials {
    background-color: var(--bg-dark);
    color: white;
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.03) 2px, transparent 2px),
        radial-gradient(rgba(255, 255, 255, 0.03) 2px, transparent 2px);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    z-index: 0;
}

.testimonials .section-title h2 {
    color: white;
}

.testimonials .section-title p {
    color: rgba(255, 255, 255, 0.7);
}

.testimonials .section-title h2::after {
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.testimonial-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-item {
    min-width: 100%;
    padding: 0 30px;
    text-align: center;
}

.testimonial-rating {
    margin-bottom: 20px;
}

.testimonial-rating i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin: 0 2px;
}

.testimonial-text {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 30px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding: 0 40px;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 0;
    font-size: 4rem;
    color: rgba(255, 107, 0, 0.2);
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    border: 3px solid var(--secondary-color);
}

.author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    text-align: left;
}

.author-name {
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.author-title {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 2;
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Contact Section - 科技感联系表单 */
.contact {
    background-color: white;
    padding-bottom: 120px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    background-color: var(--bg-accent);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1), transparent);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 15px;
    min-width: 30px;
}

.contact-details h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 600;
}

.contact-details p {
    color: #666;
    font-size: 1rem;
}

.social-links {
    display: flex;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: white;
    color: var(--primary-color);
    border-radius: 50%;
    margin-right: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    background-color: var(--secondary-color);
    color: white;
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.3);
}

.contact-form {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.form-group textarea {
    height: 180px;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
}

/* Footer - 科技感页脚 */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 80px 0 40px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-about h3,
.footer-links h3,
.footer-newsletter h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: white;
    position: relative;
    padding-bottom: 15px;
}

.footer-about h3::after,
.footer-links h3::after,
.footer-newsletter h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.8;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 20px;
}

.footer-links a::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-size: 1rem;
}

.newsletter-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    background-color: transparent;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.newsletter-form .btn {
    padding: 12px 25px;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-policy {
    display: flex;
    gap: 20px;
}

.footer-policy a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-policy a:hover {
    color: var(--secondary-color);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3.2rem;
    }
    .section-title h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-policy {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    .nav-links.active {
        left: 0;
    }
    .nav-links li {
        margin: 15px 0;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .hero-buttons .btn {
        margin: 10px;
        display: block;
    }
    .section-title h2 {
        font-size: 2rem;
    }
    .product-grid,
    .feature-grid,
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-form input {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .logo {
        font-size: 1.5rem;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    section {
        padding: 80px 0;
    }
    .section-title h2 {
        font-size: 1.8rem;
    }
    .contact-info,
    .contact-form {
        padding: 30px 20px;
    }
    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
    }
}