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

:root {
    --primary-color: #1a5f7a;
    --secondary-color: #159895;
    --accent-color: #57c5b6;
    --dark-color: #2c3e50;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: var(--dark-color);
}

.logo-text span {
    color: var(--primary-color);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    font-size: 15px;
    color: var(--text-color);
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

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

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

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

/* Hero Slider */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a5f7a 0%, #159895 100%);
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

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

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
    width: 80%;
}

.slide-content h2 {
    font-size: 42px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: 18px;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

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

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

.dot:hover {
    background: rgba(255,255,255,0.8);
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* Section */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.section-title .subtitle {
    color: var(--text-light);
    font-size: 16px;
}

.title-line {
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 15px auto 0;
}

/* Features */
.features {
    background: var(--light-bg);
}

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

.feature-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: white;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

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

/* About Preview */
.about-preview {
    background: var(--white);
}

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

.about-text h2 {
    font-size: 32px;
    color: var(--dark-color);
    margin-bottom: 20px;
}

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

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

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 10px;
}

.stat-item .number {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
}

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

.about-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.about-image .img-block {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 5px;
    font-size: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(26, 95, 122, 0.3);
}

/* Products */
.products {
    background: var(--light-bg);
}

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

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.product-image {
    height: 200px;
    background: linear-gradient(135deg, #e8f4f8, #d1f2eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.product-info p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.product-info .price {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: bold;
}

/* News */
.news {
    background: var(--white);
}

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

.news-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: white;
}

.news-content {
    padding: 20px;
}

.news-date {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 17px;
    margin-bottom: 10px;
    color: var(--dark-color);
    line-height: 1.4;
}

.news-content p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
}

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

/* Contact */
.contact {
    background: var(--light-bg);
}

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

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

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

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

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

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

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 40px 0 20px;
}

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

.footer-brand h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

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

.footer h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: white;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

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

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 60px 0;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-header p {
    opacity: 0.9;
}

/* About Page */
.about-hero {
    background: linear-gradient(135deg, #1a5f7a 0%, #159895 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.about-hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.about-hero p {
    font-size: 18px;
    opacity: 0.9;
}

.about-section {
    padding: 60px 0;
}

.about-section:nth-child(even) {
    background: var(--light-bg);
}

.about-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

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

.about-section ul {
    margin-top: 15px;
}

.about-section li {
    padding: 8px 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-section li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
}

/* Products Page */
.products-page {
    padding: 60px 0;
}

.products-page .products-grid {
    margin-top: 40px;
}

/* News Page */
.news-page {
    padding: 60px 0;
}

.news-page .news-grid {
    margin-top: 40px;
}

/* News Detail */
.news-detail {
    padding: 40px 0 60px;
}

.news-detail-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.news-detail-header {
    margin-bottom: 30px;
}

.news-detail-header h1 {
    font-size: 28px;
    color: var(--dark-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

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

.news-detail-content {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 16px;
}

.news-detail-content p {
    margin-bottom: 20px;
}

.news-detail-content h2 {
    color: var(--dark-color);
    margin: 30px 0 15px;
    font-size: 22px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 15px;
}

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

/* Contact Page */
.contact-page {
    padding: 60px 0;
}

/* Responsive */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .products-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero {
        height: 350px;
    }
    
    .slide-content h2 {
        font-size: 28px;
    }
    
    .features-grid,
    .products-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
