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

body {
    font-family: 'Inter', sans-serif;
    background: #1a1f2e;
    color: #e2e8f0;
    line-height: 1.6;
}

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

/* 导航栏 */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(11, 17, 32, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    z-index: 100;
    padding: 16px 0;
    border-bottom: 1px solid rgba(37, 99, 235, 0.15);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #60a5fa;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: #94a3b8;
    font-weight: 500;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: #60a5fa;
}

.btn-contact {
    background: #2563eb;
    color: white !important;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-contact:hover {
    background: #1d4ed8;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: #60a5fa;
    cursor: pointer;
}

/* Hero */
.hero {
    padding: 60px 0;
    background: linear-gradient(135deg, #0f1a2b 0%, #0b1320 100%);
    border-radius: 0 0 40px 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid #1e293b;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #f0f4ff;
}

.hero .highlight {
    color: #60a5fa;
    border-bottom: 3px solid #3b82f6;
}

.hero p {
    font-size: 1.1rem;
    color: #9ca3af;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}

.btn-primary:hover {
    background: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    background: transparent;
    color: #60a5fa;
    border: 1.5px solid #3b82f6;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.1);
}

.hero-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    border: 1px solid #334155;
}

/* Section 通用 */
.section {
    padding: 80px 0;
}

.bg-light {
    background: #1a1f2e;
}

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

.section-tag {
    display: inline-block;
    background: #1e3a5f;
    color: #93c5fd;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    border: 1px solid #2d4a6e;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #f0f4ff;
    margin-bottom: 12px;
}

.section-sub {
    color: #94a3b8;
    font-size: 1.05rem;
}

/* About 区域 */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    color: #cbd5e1;
}

.about-highlight {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #93c5fd;
    font-weight: 500;
}

.highlight-item i {
    font-size: 1.2rem;
    color: #60a5fa;
}

.about-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    border: 1px solid #334155;
}

/* 业务卡片 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: #1e293b;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #334155;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.4);
    border-color: #3b82f6;
}

.service-icon {
    font-size: 2.5rem;
    color: #60a5fa;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #f1f5f9;
}

.service-card p {
    color: #9ca3af;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.service-image img {
    width: 100%;
    border-radius: 16px;
    margin-top: 10px;
    cursor: pointer;
    border: 1px solid #475569;
}

/* 助农案例 */
.case-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
}

.case-content h3 {
    font-size: 1.8rem;
    color: #bfdbfe;
    margin-bottom: 20px;
}

.case-content p {
    color: #cbd5e1;
    margin-bottom: 20px;
}

.case-list {
    list-style: none;
}

.case-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
}

.case-list i {
    color: #60a5fa;
}

/* 轮播图 - 修复宽度问题 */
.case-carousel {
    width: 100%;
}

.carousel-container {
    position: relative;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid #334155;
}

.carousel-slides {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;        /* 关键：固定宽度为父容器的100% */
    width: 100%;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 41, 59, 0.7);
    color: white;
    border: 1px solid #3b82f6;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
    z-index: 5;
}

.carousel-btn:hover {
    background: #2563eb;
    border-color: #60a5fa;
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.carousel-dot.active {
    background: #60a5fa;
    width: 24px;
    border-radius: 10px;
}

/* 统计横幅 */
.stats-banner {
    display: flex;
    justify-content: space-around;
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    border-radius: 40px;
    padding: 40px 20px;
    color: white;
    flex-wrap: wrap;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: white;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    color: #bfdbfe;
}

/* 实景展示 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    background: #1e293b;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
    border: 1px solid #334155;
}

.gallery-item:hover {
    transform: scale(1.02);
    border-color: #3b82f6;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.gallery-item p {
    padding: 12px;
    text-align: center;
    font-weight: 500;
    color: #93c5fd;
    background: #1e293b;
}

/* 联系我们 */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.contact-info {
    background: #1e293b;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid #334155;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: #60a5fa;
    width: 30px;
    text-align: center;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: #f1f5f9;
}

.info-item p {
    color: #9ca3af;
}

.contact-qr {
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-card {
    background: #1e293b;
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid #334155;
}

.qr-card img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 16px;
    cursor: pointer;
    border: 1px solid #475569;
}

.qr-card p {
    color: #93c5fd;
    font-weight: 500;
}

/* 页脚 */
footer {
    background: #0a0f1a;
    color: #e2e8f0;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #1e293b;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo img {
    height: 35px;
}

.footer-logo span {
    font-size: 1.3rem;
    font-weight: 600;
    color: #60a5fa;
}

.footer-content p {
    margin-bottom: 10px;
    opacity: 0.8;
    color: #9ca3af;
}

.copyright {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-top: 20px;
}

/* 图片模态框 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
}

.image-modal .close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001;
}

.image-modal .close-modal:hover,
.image-modal .close-modal:focus {
    color: #60a5fa;
    text-decoration: none;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 16px;
    box-shadow: 0 0 40px rgba(0,0,0,0.7);
}

/* 响应式 */
@media (max-width: 900px) {
    .hero-grid,
    .about-grid,
    .case-showcase,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding-top: 20px;
    }
    .nav-links.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 50px 0;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
    .stats-banner {
        flex-direction: column;
        gap: 30px;
    }
    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline {
        width: 100%;
        text-align: center;
    }
}
