/* 全局重置与基础样式 */
* {
    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: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    transition: background 0.3s, color 0.3s;
    min-height: 100vh;
}

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

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

/* 头部 - 毛玻璃效果 */
.header {
    background: rgba(45, 140, 240, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 20px rgba(45, 140, 240, 0.3);
}

body.dark .header {
    background: rgba(22, 33, 62, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

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

/* Logo */
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(120deg, #fff, #f0f0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
    transition: transform 0.3s;
}

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

/* 导航 */
.nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nav a {
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s;
    position: relative;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.nav a:hover,
.nav a.active {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fff;
    transition: all 0.3s;
    transform: translateX(-50%);
    border-radius: 2px;
}

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

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background 0.3s;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* 搜索框 */
.search-box {
    display: flex;
    gap: 5px;
    margin-top: 10px;
    width: 100%;
}

.search-box input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 20px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-box input:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 4px 20px rgba(45, 140, 240, 0.3);
    transform: scale(1.02);
}

.search-box button {
    padding: 10px 24px;
    background: linear-gradient(135deg, #ff8c00, #ff6a00);
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(255, 140, 0, 0.3);
}

.search-box button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
}

/* 面包屑 */
.breadcrumb {
    background: rgba(238, 242, 247, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 12px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark .breadcrumb {
    background: rgba(34, 34, 34, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.breadcrumb a:hover {
    color: #ff8c00;
}

.breadcrumb span {
    color: #999;
}

/* Banner - 渐变风格 */
.banner {
    position: relative;
    overflow: hidden;
    height: 450px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

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

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.banner-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    max-width: 800px;
    margin: 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: floatIn 1s ease-out;
}

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

.banner h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    background: linear-gradient(120deg, #fff, #f0f0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.banner p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.8;
}

.banner .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s;
}

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

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

.banner-dots span {
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.banner-dots span.active {
    background: #fff;
    transform: scale(1.2);
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.banner-dots span:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

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

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 50px;
    color: #2d8cf0;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #2d8cf0, #ff8c00);
    margin: 15px auto 0;
    border-radius: 2px;
    animation: lineWidth 2s ease-in-out infinite;
}

@keyframes lineWidth {
    0%, 100% { width: 60px; }
    50% { width: 100px; }
}

body.dark .section-title {
    color: #4a9eff;
}

body.dark .section-title::after {
    background: linear-gradient(90deg, #4a9eff, #ff8c00);
}

/* 网格布局 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* 卡片 - 毛玻璃效果 */
.card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
    transition: opacity 0.4s;
}

body.dark .card {
    background: rgba(42, 42, 74, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(45, 140, 240, 0.15);
    border-color: rgba(45, 140, 240, 0.3);
}

body.dark .card:hover {
    box-shadow: 0 16px 48px rgba(74, 158, 255, 0.2);
    border-color: rgba(74, 158, 255, 0.3);
}

.card svg {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.4s;
}

.card:hover svg {
    transform: rotate(5deg) scale(1.1);
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #2d8cf0;
    position: relative;
    display: inline-block;
}

body.dark .card h3 {
    color: #4a9eff;
}

.card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
}

body.dark .card p {
    color: #bbb;
}

/* FAQ 样式 */
.faq-item {
    border-bottom: 1px solid rgba(224, 224, 224, 0.5);
    padding: 18px 0;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark .faq-item {
    border-color: rgba(68, 68, 68, 0.5);
    background: rgba(42, 42, 74, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateX(5px);
}

body.dark .faq-item:hover {
    background: rgba(42, 42, 74, 0.5);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
}

body.dark .faq-question {
    color: #e0e0e0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding-top: 0;
    color: #555;
    line-height: 1.7;
}

body.dark .faq-answer {
    color: #ccc;
}

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

.faq-toggle {
    font-size: 1.5rem;
    transition: transform 0.4s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 140, 240, 0.1);
    border-radius: 50%;
    color: #2d8cf0;
}

body.dark .faq-toggle {
    background: rgba(74, 158, 255, 0.1);
    color: #4a9eff;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    background: rgba(45, 140, 240, 0.2);
}

/* 步骤列表 */
.howto-steps {
    list-style: none;
    counter-reset: step;
}

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

.howto-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2d8cf0, #4a9eff);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(45, 140, 240, 0.3);
    transition: transform 0.3s;
}

.howto-steps li:hover::before {
    transform: scale(1.1) rotate(10deg);
}

/* 文章列表 */
.articles .article-item {
    margin-bottom: 25px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: all 0.4s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body.dark .articles .article-item {
    background: rgba(42, 42, 74, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.articles .article-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(45, 140, 240, 0.1);
    border-color: rgba(45, 140, 240, 0.2);
}

.article-item h3 {
    color: #2d8cf0;
    margin-bottom: 10px;
    transition: color 0.3s;
}

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

.article-item .meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-item .summary {
    color: #555;
    margin-bottom: 12px;
    line-height: 1.7;
}

body.dark .article-item .summary {
    color: #ccc;
}

.article-item .read-more {
    color: #ff8c00;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.article-item .read-more:hover {
    color: #e67e00;
    transform: translateX(5px);
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ccc;
    padding: 50px 0 0;
    margin-top: 80px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(135deg, transparent 33%, rgba(255, 255, 255, 0.1) 33%, rgba(255, 255, 255, 0.1) 66%, transparent 66%);
    background-size: 30px 20px;
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.1rem;
    position: relative;
    display: inline-block;
}

.footer h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #2d8cf0, #4a9eff);
    margin-top: 8px;
    border-radius: 2px;
}

.footer a {
    color: #aaa;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: all 0.3s;
    padding: 4px 0;
}

.footer a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer p {
    line-height: 1.7;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 返回顶部按钮 - 毛玻璃 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: rgba(45, 140, 240, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(45, 140, 240, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-to-top.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(45, 140, 240, 0.4);
    background: rgba(45, 140, 240, 0.95);
}

/* 暗色模式切换按钮 */
.dark-mode-toggle {
    position: fixed;
    bottom: 95px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: rgba(51, 51, 51, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode-toggle:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

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

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

/* 响应式设计 */
@media (max-width: 768px) {
    .nav {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
        gap: 10px;
    }
    
    .nav.show {
        display: flex;
        animation: slideDown 0.4s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav a {
        width: 100%;
        text-align: center;
        padding: 12px;
        border-radius: 12px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .banner h1 {
        font-size: 1.8rem;
    }
    
    .banner p {
        font-size: 1rem;
    }
    
    .banner {
        height: 350px;
    }
    
    .banner-content {
        padding: 20px;
        margin: 0 15px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 35px;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card {
        padding: 20px;
    }
    
    .footer .container {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
    
    .back-to-top,
    .dark-mode-toggle {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .dark-mode-toggle {
        bottom: 80px;
    }
    
    .back-to-top {
        bottom: 25px;
        right: 25px;
    }
    
    .dark-mode-toggle {
        right: 25px;
    }
    
    .search-box input {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    
    .search-box button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .banner h1 {
        font-size: 1.4rem;
    }
    
    .banner p {
        font-size: 0.9rem;
    }
    
    .banner {
        height: 280px;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .footer .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer h4::after {
        margin: 8px auto 0;
    }
    
    .logo {
        font-size: 1.4rem;
    }
}