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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.8;
    color: #2c3e50;
    background: #f0f2f5;
    transition: background 0.4s ease, color 0.4s ease;
}

a {
    color: #1a73e8;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
    color: #1557b0;
}

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

ul, ol {
    padding-left: 1.5rem;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 头部导航 */
.header {
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
    transition: background 0.4s ease;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.logo svg {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.nav {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.nav a {
    color: #ddd;
    font-size: 0.95rem;
    padding: 0.3rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #e74c3c;
    transition: width 0.3s ease;
}

.nav a:hover {
    color: #fff;
}

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

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

.menu-toggle:hover {
    transform: scale(1.1);
}

/* 搜索框 */
.search-box {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 25px;
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: background 0.3s ease, border-color 0.3s ease;
}

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

.search-box input {
    border: none;
    outline: none;
    padding: 0.3rem;
    font-size: 0.9rem;
    width: 120px;
    background: transparent;
    color: #fff;
    transition: width 0.3s ease;
}

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

.search-box input:focus {
    width: 160px;
}

.search-box button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    transition: color 0.3s ease, transform 0.3s ease;
}

.search-box button:hover {
    color: #fff;
    transform: scale(1.1);
}

/* 面包屑 */
.breadcrumb {
    padding: 0.8rem 0;
    font-size: 0.9rem;
    color: #888;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    margin-bottom: 0;
}

.breadcrumb a {
    color: #1a73e8;
}

/* Banner */
.banner {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #e74c3c 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    color: #fff;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: pulseGlow 6s ease infinite;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.banner h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
}

.banner p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    opacity: 0.9;
    animation: fadeInUp 1.2s ease;
}

.banner .btn {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    animation: fadeInUp 1.4s ease;
}

.banner .btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 30px rgba(231, 76, 60, 0.6);
    background: #c0392b;
    text-decoration: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 通用section */
.section {
    padding: 4rem 0;
}

.section h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    color: #2c3e50;
    transition: color 0.4s ease;
}

.section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #e74c3c, #f39c12);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

/* 网格系统 */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1.5rem;
}

/* 卡片 */
.card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 1.8rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.4s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

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

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #2c3e50;
}

.card h4 {
    font-size: 1.1rem;
    margin: 1.2rem 0 0.5rem;
    color: #34495e;
}

.card p {
    color: #555;
    transition: color 0.4s ease;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid rgba(224, 224, 224, 0.6);
    padding: 1.2rem 0;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: #e74c3c;
}

.faq-question {
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.faq-item:hover .faq-question {
    color: #e74c3c;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
    color: #444;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-top: 0.8rem;
}

.faq-toggle {
    font-size: 1.3rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* 教程步骤 */
.howto-step {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-left: 4px solid #e74c3c;
    padding: 1.2rem 1.8rem;
    margin-bottom: 1rem;
    border-radius: 0 12px 12px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.howto-step:hover {
    transform: translateX(6px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.howto-step strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: #2c3e50;
}

/* 文章列表 */
.article-list .article-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(224, 224, 224, 0.6);
}

.article-item h3 {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.article-item:hover h3 {
    color: #e74c3c;
}

.article-item .meta {
    color: #888;
    font-size: 0.9rem;
    margin: 0.3rem 0;
}

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

.read-more {
    color: #1a73e8;
    font-weight: 500;
    transition: color 0.3s ease, gap 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.read-more:hover {
    color: #e74c3c;
    gap: 0.6rem;
}

/* 页脚 */
.footer {
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ccc;
    padding: 2.5rem 0;
    font-size: 0.9rem;
}

.footer a {
    color: #bbb;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #e74c3c;
}

.footer .grid-4 {
    gap: 1rem;
}

.footer h4 {
    color: #fff;
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #e74c3c;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(231, 76, 60, 0.3);
    z-index: 999;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 24px rgba(231, 76, 60, 0.5);
    background: #c0392b;
}

/* 暗黑模式切换 */
.dark-mode-toggle {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: rgba(44, 62, 80, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    z-index: 999;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}

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

.dark-mode .card {
    background: rgba(22, 33, 62, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ddd;
    border-color: rgba(255,255,255,0.05);
}

.dark-mode .card h3,
.dark-mode .card h4 {
    color: #eee;
}

.dark-mode .card p {
    color: #aaa;
}

.dark-mode .header {
    background: rgba(15, 15, 26, 0.95);
}

.dark-mode .footer {
    background: rgba(15, 15, 26, 0.95);
}

.dark-mode .banner {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #2c3e50 100%);
}

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

.dark-mode .faq-item {
    border-color: rgba(51, 51, 51, 0.6);
}

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

.dark-mode .faq-answer {
    color: #bbb;
}

.dark-mode .howto-step {
    background: rgba(22, 33, 62, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.dark-mode .howto-step strong {
    color: #eee;
}

.dark-mode .search-box input {
    color: #fff;
}

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

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

.dark-mode .nav a {
    color: #aaa;
}

.dark-mode .nav a:hover {
    color: #fff;
}

.dark-mode .back-to-top {
    background: #e74c3c;
}

.dark-mode .breadcrumb {
    background: rgba(0,0,0,0.2);
    color: #aaa;
}

.dark-mode .article-item .meta {
    color: #777;
}

.dark-mode .article-item p {
    color: #aaa;
}

/* 滚动动画 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 统计数字 */
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e74c3c;
    transition: color 0.4s ease;
}

/* 客户logo */
.client-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.client-logos svg {
    width: 80px;
    height: 40px;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.client-logos svg:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* 订阅 */
.newsletter {
    background: rgba(236, 240, 241, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
}

.newsletter input {
    padding: 0.7rem 1.2rem;
    border: 1px solid rgba(204, 204, 204, 0.5);
    border-radius: 25px;
    width: 280px;
    max-width: 100%;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.newsletter input:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
    outline: none;
}

.newsletter button {
    padding: 0.7rem 1.8rem;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    margin-left: 0.5rem;
}

.newsletter button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(231, 76, 60, 0.3);
    background: #c0392b;
}

/* 网站地图链接 */
.sitemap-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.sitemap-links a {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    border: 1px solid rgba(221, 221, 221, 0.5);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: #2c3e50;
}

.sitemap-links a:hover {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
    transform: translateY(-2px);
    text-decoration: none;
}

/* 响应式 */
@media (max-width: 768px) {
    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0;
        background: rgba(44, 62, 80, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 0 0 12px 12px;
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        padding: 0.5rem 1rem;
        border-radius: 8px;
        transition: background 0.3s ease;
    }

    .nav a:hover {
        background: rgba(255,255,255,0.1);
    }

    .nav a::after {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

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

    .banner h1 {
        font-size: 2rem;
    }

    .banner p {
        font-size: 1rem;
    }

    .section h2 {
        font-size: 1.8rem;
    }

    .search-box input {
        width: 80px;
    }

    .search-box input:focus {
        width: 120px;
    }

    .card {
        padding: 1.2rem;
    }

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

    .dark-mode-toggle {
        bottom: 1rem;
        left: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .newsletter input {
        width: 200px;
    }

    .newsletter button {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .banner h1 {
        font-size: 1.6rem;
    }

    .banner {
        padding: 2.5rem 0;
    }

    .section {
        padding: 2.5rem 0;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        gap: 1rem;
    }
}