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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5;
    color: #1a1a2e;
    transition: background 0.3s, color 0.3s;
}

body.dark {
    background: #0f0f23;
    color: #e0e0e0;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* 渐变背景 */
.gradient-bg {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* 毛玻璃效果 */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.dark .glass {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.05);
}

/* 圆角卡片 */
.card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.dark .card {
    background: #1e1e3a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #1a1a2e;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

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

.btn-outline:hover {
    background: #ffd700;
    color: #1a1a2e;
}

/* 标题与文字 */
.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    text-align: center;
    margin-bottom: 50px;
}

.dark .section-subtitle {
    color: #aaa;
}

.text-gold {
    color: #ffd700;
}

/* 栅格系统 */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

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

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

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

/* 布局辅助 */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.py-80 {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .py-80 {
        padding: 50px 0;
    }
}

/* Hero 区域 */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 900'%3E%3Cpath fill='rgba(255,215,0,0.03)' d='M0,0 L1440,0 L1440,900 L0,900 Z'/%3E%3Ccircle cx='200' cy='200' r='300' fill='rgba(255,215,0,0.05)'/%3E%3Ccircle cx='1200' cy='600' r='400' fill='rgba(255,215,0,0.04)'/%3E%3C/svg%3E") no-repeat center/cover;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Banner 轮播 */
.banner-slider {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    min-height: 400px;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

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

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

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.3);
    cursor: pointer;
    transition: background 0.3s;
}

.banner-dot.active {
    background: #ffd700;
}

/* 统计数据 */
.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: #ffd700;
}

.stat-label {
    font-size: 16px;
    margin-top: 5px;
    opacity: 0.8;
}

/* 团队成员 */
.team-member {
    text-align: center;
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
}

/* 产品卡片 */
.product-card {
    padding: 30px;
    text-align: center;
}

.product-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
}

.faq-question {
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 10px;
    color: #aaa;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 10px;
}

/* 用户评价 */
.testimonial-card {
    text-align: center;
    padding: 30px;
}

.testimonial-card img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 合作伙伴 */
.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.partner-item:hover {
    opacity: 1;
}

/* 新闻卡片 */
.news-card .news-date {
    font-size: 14px;
    color: #999;
    margin-bottom: 8px;
}

.news-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

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

/* 页脚 */
.footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 60px 0 30px;
}

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

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

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* 移动端导航 */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #1a1a2e;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        z-index: 1000;
    }
    .nav-links.open {
        display: flex;
    }
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffd700;
}

/* 暗色模式切换 */
.dark-mode-toggle {
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s;
}

.dark-mode-toggle:hover {
    border-color: #ffd700;
    color: #ffd700;
}

/* 回到顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffd700;
    color: #1a1a2e;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.back-to-top.visible {
    display: flex;
}

/* 搜索入口 */
.search-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 8px 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-entry:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

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

/* 面包屑 */
.breadcrumb {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: #999;
    padding: 15px 0;
}

.breadcrumb a {
    color: #ffd700;
}

.breadcrumb span {
    color: #666;
}

.dark .breadcrumb span {
    color: #aaa;
}

/* 网站地图 */
.sitemap-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px 0;
}

.sitemap-links a {
    color: #ffd700;
    font-size: 14px;
}

.sitemap-links a:hover {
    text-decoration: underline;
}

/* 上一篇/下一篇 */
.prev-next {
    display: flex;
    justify-content: space-between;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
}

.prev-next a {
    color: #ffd700;
    font-weight: 500;
}

.prev-next a:hover {
    text-decoration: underline;
}

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

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

.scroll-animation-delay-1 {
    transition-delay: 0.1s;
}

.scroll-animation-delay-2 {
    transition-delay: 0.2s;
}

.scroll-animation-delay-3 {
    transition-delay: 0.3s;
}

.scroll-animation-delay-4 {
    transition-delay: 0.4s;
}

.scroll-animation-delay-5 {
    transition-delay: 0.5s;
}

/* HowTo 步骤 */
.howto-step {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.howto-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffd700;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.howto-step-content h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.howto-step-content p {
    font-size: 14px;
    color: #aaa;
}