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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: #f9fafb;
    color: #1a1a2e;
    line-height: 1.8;
    font-size: 16px;
    scroll-behavior: smooth;
}

a {
    color: #2d8a4e;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
    color: #1b5e20;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* 粘性头部 + 毛玻璃效果 */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(45, 138, 78, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

.nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav a {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.nav a:hover {
    border-bottom-color: #fff;
    text-decoration: none;
    color: #e8f5e9;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.3s ease;
}

.menu-toggle:hover {
    transform: rotate(90deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: #2d8a4e;
    padding: 20px;
    z-index: 999;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-menu a {
    display: block;
    color: #fff;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 16px;
    transition: padding-left 0.3s ease, background 0.3s ease;
}

.mobile-menu a:hover {
    padding-left: 10px;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* Hero 渐变Banner */
.hero {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 80px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: heroGlow 10s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, 20px); }
}

.hero h1 {
    font-size: 42px;
    color: #1b5e20;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 18px;
    color: #2e7d32;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.9;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.hero .btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* 按钮通用 */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transition: width 0.5s ease, height 0.5s ease;
    transform: translate(-50%, -50%);
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: #2d8a4e;
    color: #fff;
}

.btn-primary:hover {
    background: #1b5e20;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 138, 78, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #2d8a4e;
    color: #2d8a4e;
}

.btn-outline:hover {
    background: #2d8a4e;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 138, 78, 0.3);
}

/* 通用段落 */
.section {
    padding: 60px 0;
}

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

.section-title h2 {
    font-size: 32px;
    color: #1b5e20;
    margin-bottom: 12px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #2d8a4e;
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-title p {
    color: #555;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* 网格系统 */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 24px;
}

/* 圆角卡片 + hover动画 */
.card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2d8a4e, #81c784);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.card h3 {
    color: #1b5e20;
    margin-bottom: 12px;
    font-size: 20px;
}

.card h4 {
    color: #2d8a4e;
    margin-bottom: 8px;
    font-size: 17px;
}

.card p {
    color: #444;
    font-size: 15px;
    line-height: 1.7;
}

.icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: #e8f5e9;
    transition: background 0.3s ease, transform 0.3s ease;
}

.card:hover .icon-wrap {
    background: #c8e6c9;
    transform: scale(1.1);
}

.icon-wrap svg {
    width: 28px;
    height: 28px;
    fill: #2d8a4e;
}

/* 关于区域 */
.about-section {
    background: #fff;
}

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

.about-text h3 {
    color: #1b5e20;
    font-size: 24px;
    margin-bottom: 16px;
}

.about-text p {
    margin-bottom: 16px;
    color: #444;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #f1f8e9;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-item .number {
    font-size: 36px;
    font-weight: 800;
    color: #2d8a4e;
    display: block;
}

.stat-item .label {
    color: #555;
    font-size: 14px;
    margin-top: 4px;
}

/* 产品区域 */
.products-section {
    background: #f1f8e9;
}

/* FAQ区域 */
.faq-section {
    background: #fff;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
    transition: background 0.3s ease;
}

.faq-item:hover {
    background: #f9fafb;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #1b5e20;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #2d8a4e;
}

.faq-question .icon {
    font-size: 24px;
    transition: transform 0.3s ease;
    color: #2d8a4e;
}

.faq-answer {
    padding-top: 12px;
    color: #444;
    line-height: 1.8;
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 1000px; }
}

.faq-answer.active {
    display: block;
}

/* 教程区域 */
.howto-section {
    background: #f9fafb;
}

.howto-steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateX(5px);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2d8a4e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    transition: background 0.3s ease, transform 0.3s ease;
}

.step:hover .step-number {
    background: #1b5e20;
    transform: scale(1.1);
}

.step-content h4 {
    color: #1b5e20;
    margin-bottom: 6px;
    font-size: 18px;
}

.step-content p {
    color: #555;
    font-size: 15px;
}

/* 文章区域 */
.articles-section {
    background: #fff;
}

.article-card {
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease, padding-left 0.3s ease;
}

.article-card:last-child {
    border-bottom: none;
}

.article-card:hover {
    background: #f9fafb;
    padding-left: 25px;
}

.article-card h3 {
    font-size: 18px;
    color: #1b5e20;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.article-card:hover h3 {
    color: #2d8a4e;
}

.article-card .meta {
    color: #888;
    font-size: 13px;
    margin-bottom: 8px;
    display: flex;
    gap: 16px;
}

.article-card p {
    color: #555;
    font-size: 14px;
    line-height: 1.7;
}

.article-card .read-more {
    color: #2d8a4e;
    font-weight: 500;
    font-size: 14px;
    display: inline-block;
    margin-top: 8px;
    transition: gap 0.3s ease;
}

.article-card .read-more:hover {
    gap: 8px;
}

.article-card .read-more::after {
    content: ' →';
    transition: margin-left 0.3s ease;
}

.article-card .read-more:hover::after {
    margin-left: 5px;
}

/* 联系区域 */
.contact-section {
    background: #f1f8e9;
}

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

.contact-item {
    text-align: center;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.contact-item svg {
    width: 36px;
    height: 36px;
    fill: #2d8a4e;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.contact-item:hover svg {
    transform: scale(1.2);
}

.contact-item h4 {
    color: #1b5e20;
    margin-bottom: 8px;
    font-size: 18px;
}

.contact-item p {
    color: #555;
    font-size: 14px;
}

/* 底部 */
.footer {
    background: #1b5e20;
    color: #fff;
    padding: 40px 0 20px;
}

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

.footer h4 {
    color: #a5d6a7;
    margin-bottom: 16px;
    font-size: 17px;
    position: relative;
    display: inline-block;
}

.footer h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: #81c784;
    margin-top: 4px;
}

.footer p,
.footer a {
    color: #c8e6c9;
    font-size: 14px;
    line-height: 2;
}

.footer-links a {
    display: block;
    transition: padding-left 0.3s ease, color 0.3s ease;
}

.footer-links a:hover {
    padding-left: 5px;
    color: #fff;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #a5d6a7;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #2d8a4e;
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: #1b5e20;
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Banner 轮播 */
.banner-slider {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 30px;
}

.banner-slide {
    display: none;
    padding: 40px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.banner-slide.active {
    display: block;
}

.banner-slide h3 {
    color: #1b5e20;
    font-size: 24px;
    margin-bottom: 12px;
}

.banner-slide p {
    color: #2e7d32;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.banner-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.dot:hover {
    transform: scale(1.3);
}

.dot.active {
    background: #2d8a4e;
}

/* 搜索框 */
.search-box {
    display: flex;
    gap: 8px;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 4px 16px;
    transition: background 0.3s ease;
}

.search-box:focus-within {
    background: rgba(255, 255, 255, 0.3);
}

.search-box input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 8px 4px;
    font-size: 14px;
    outline: none;
    width: 120px;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box button {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.search-box button:hover {
    transform: scale(1.2);
}

/* 暗色模式 */
.dark-mode {
    background: #1a1a2e;
    color: #e0e0e0;
}

.dark-mode .card {
    background: #2a2a3e;
    color: #e0e0e0;
}

.dark-mode .hero {
    background: linear-gradient(135deg, #1b5e20, #2d8a4e);
}

.dark-mode .hero h1 {
    color: #fff;
}

.dark-mode .hero p {
    color: #e8f5e9;
}

.dark-mode .section-title h2 {
    color: #a5d6a7;
}

.dark-mode .section-title h2::after {
    background: #81c784;
}

.dark-mode .faq-question {
    color: #a5d6a7;
}

.dark-mode .about-text p,
.dark-mode .card p,
.dark-mode .step-content p {
    color: #ccc;
}

.dark-mode .stat-item {
    background: #2a3e2a;
}

.dark-mode .stat-item .number {
    color: #81c784;
}

.dark-mode .contact-item {
    background: #2a2a3e;
}

.dark-mode .contact-item h4 {
    color: #a5d6a7;
}

.dark-mode .contact-item p {
    color: #ccc;
}

.dark-mode .btn-primary {
    background: #81c784;
    color: #1a1a2e;
}

.dark-mode .btn-primary:hover {
    background: #66bb6a;
}

.dark-mode .btn-outline {
    border-color: #81c784;
    color: #81c784;
}

.dark-mode .btn-outline:hover {
    background: #81c784;
    color: #1a1a2e;
}

.dark-mode .footer {
    background: #0d1b0e;
}

.dark-mode .footer h4 {
    color: #81c784;
}

.dark-mode .footer p,
.dark-mode .footer a {
    color: #a5d6a7;
}

.dark-mode .faq-item {
    border-bottom-color: #333;
}

.dark-mode .article-card {
    border-bottom-color: #333;
}

.dark-mode .about-section,
.dark-mode .faq-section,
.dark-mode .articles-section {
    background: #1a1a2e;
}

.dark-mode .products-section,
.dark-mode .contact-section,
.dark-mode .howto-section {
    background: #222236;
}

.dark-mode .icon-wrap {
    background: #2a3e2a;
}

.dark-mode .icon-wrap svg {
    fill: #81c784;
}

.dark-mode .sticky-header {
    background: rgba(26, 26, 46, 0.97);
}

.dark-mode .banner-slide {
    background: linear-gradient(135deg, #1b5e20, #2d8a4e);
}

.dark-mode .banner-slide h3,
.dark-mode .banner-slide p {
    color: #fff;
}

.dark-mode .search-box {
    background: rgba(255, 255, 255, 0.1);
}

.dark-mode .search-box:focus-within {
    background: rgba(255, 255, 255, 0.2);
}

.dark-mode .faq-item:hover {
    background: #222236;
}

.dark-mode .article-card:hover {
    background: #222236;
}

/* 滚动动画 (配合JS动态添加) */
.card,
.article-card,
.contact-item,
.step {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.card.visible,
.article-card.visible,
.contact-item.visible,
.step.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式布局 */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .mobile-menu {
        display: block;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero {
        padding: 60px 16px 40px;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section {
        padding: 40px 0;
    }

    .section-title h2 {
        font-size: 26px;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .search-box {
        display: none;
    }

    .banner-slide {
        padding: 24px 16px;
    }

    .banner-slide h3 {
        font-size: 20px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 16px;
    }

    .btn {
        padding: 12px 28px;
        font-size: 14px;
    }

    .section-title h2 {
        font-size: 22px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat-item .number {
        font-size: 28px;
    }
}