/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333333;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e9 100%);
    transition: background 0.3s, color 0.3s;
}

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

/* 导航吸顶 */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #2d572c 0%, #3d7a3c 100%);
    color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.navbar .nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.navbar .nav-links a {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.navbar .nav-links a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.navbar .menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: #ffffff;
}

@media (max-width: 768px) {
    .navbar .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
        background: rgba(45, 87, 44, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 12px;
        padding: 10px;
    }

    .navbar .nav-links.active {
        display: flex;
    }

    .navbar .menu-toggle {
        display: block;
    }
}

/* Banner轮播 */
.banner {
    position: relative;
    overflow: hidden;
    height: 400px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 50%, #a5d6a7 100%);
}

.banner .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    padding: 0 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.1) 0%, rgba(102, 187, 106, 0.1) 100%);
}

.banner .slide.active {
    opacity: 1;
}

.banner .slide h2 {
    font-size: 2.5rem;
    color: #2d572c;
    margin-bottom: 15px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.banner .slide p {
    font-size: 1.2rem;
    color: #555555;
    max-width: 700px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 12px 24px;
    border-radius: 12px;
    display: inline-block;
}

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

.banner .dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #bbbbbb;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.banner .dots span.active {
    background: #2d572c;
    transform: scale(1.2);
}

/* 通用区块 */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    color: #2d572c;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #2d572c, #66bb6a);
    margin: 10px auto;
    border-radius: 2px;
}

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

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

@media (max-width: 768px) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

.card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

/* 数字动画 */
.stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin: 40px 0;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 20px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: scale(1.05);
}

.stat-item .number {
    font-size: 3rem;
    font-weight: 700;
    color: #2d572c;
    background: linear-gradient(135deg, #2d572c, #66bb6a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item .label {
    color: #666666;
    font-size: 1rem;
}

/* 面包屑 */
.breadcrumb {
    background: rgba(232, 245, 233, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.breadcrumb span {
    color: #555555;
}

.breadcrumb a {
    color: #2d572c;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #66bb6a;
}

/* 文章列表 */
.article-item {
    border-bottom: 1px solid rgba(224, 224, 224, 0.5);
    padding: 20px 0;
    transition: background 0.3s;
    border-radius: 8px;
    padding: 20px;
}

.article-item:hover {
    background: rgba(255, 255, 255, 0.5);
}

.article-item h4 {
    color: #2d572c;
    margin-bottom: 8px;
}

.article-item .meta {
    color: #888888;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.article-item p {
    color: #555555;
}

.article-item .read-more {
    color: #2d572c;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.article-item .read-more:hover {
    color: #66bb6a;
}

/* FAQ */
.faq-item {
    border: 1px solid rgba(221, 221, 221, 0.5);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.faq-question {
    background: rgba(241, 248, 233, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: rgba(200, 230, 201, 0.8);
}

.faq-question .icon {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.faq-question.active .icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s;
    background: rgba(255, 255, 255, 0.5);
}

.faq-answer.open {
    max-height: 500px;
    padding: 15px 20px;
}

/* HowTo */
.howto-steps {
    list-style: none;
    counter-reset: step;
}

.howto-steps li {
    counter-increment: step;
    margin-bottom: 20px;
    padding-left: 50px;
    position: relative;
}

.howto-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #2d572c, #66bb6a);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 表格 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

th,
td {
    padding: 12px 15px;
    border: 1px solid rgba(221, 221, 221, 0.5);
    text-align: left;
}

th {
    background: linear-gradient(135deg, #2d572c, #3d7a3c);
    color: #ffffff;
}

tr:nth-child(even) {
    background: rgba(241, 248, 233, 0.5);
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #1b3a1b 0%, #2d572c 100%);
    color: #cccccc;
    padding: 40px 0;
    margin-top: 40px;
}

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

@media (max-width: 768px) {
    .footer .container {
        grid-template-columns: 1fr;
    }
}

.footer h4 {
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.footer a {
    color: #a5d6a7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #66bb6a;
}

.footer .copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(61, 122, 60, 0.5);
    grid-column: 1 / -1;
}

/* 返回顶部 */
.back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2d572c, #66bb6a);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    z-index: 999;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.back-top.show {
    display: block;
}

.back-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* 暗黑模式 */
.dark-mode {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
}

.dark-mode .navbar {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
}

.dark-mode .card {
    background: rgba(31, 31, 58, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #dddddd;
    border-color: rgba(255, 255, 255, 0.1);
}

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

.dark-mode .footer {
    background: linear-gradient(135deg, #0f0f23 0%, #16213e 100%);
}

.dark-mode .breadcrumb {
    background: rgba(42, 42, 74, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.dark-mode .faq-question {
    background: rgba(42, 42, 74, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.dark-mode table th {
    background: linear-gradient(135deg, #16213e, #1a1a2e);
}

.dark-mode table td {
    border-color: #333333;
}

.dark-mode .banner {
    background: linear-gradient(135deg, #1f1f3a 0%, #2a2a4a 100%);
}

.dark-mode .banner .slide h2 {
    color: #a5d6a7;
}

.dark-mode .banner .slide p {
    color: #bbbbbb;
    background: rgba(0, 0, 0, 0.4);
}

.dark-mode .stat-item .number {
    background: linear-gradient(135deg, #a5d6a7, #66bb6a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark-mode .article-item {
    border-color: #333333;
}

.dark-mode .stat-item {
    background: rgba(31, 31, 58, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* 搜索 */
.search-box {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.search-box input {
    flex: 1;
    padding: 12px;
    border: 2px solid rgba(221, 221, 221, 0.5);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: #2d572c;
    outline: none;
}

.search-box button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #2d572c, #66bb6a);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
}

.search-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* SVG图片样式 */
.svg-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto 15px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 移动端调整 */
@media (max-width: 768px) {
    .banner {
        height: 300px;
    }

    .banner .slide h2 {
        font-size: 1.8rem;
    }

    .banner .slide p {
        font-size: 1rem;
        padding: 10px 16px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .stats {
        gap: 20px;
    }

    .stat-item .number {
        font-size: 2.2rem;
    }
}