/* 全局重置与基础 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    color: #1a202c;
    line-height: 1.8;
    font-size: 16px;
    transition: background 0.5s ease, color 0.3s ease;
    min-height: 100vh;
}

body.dark {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
    color: #e2e8f0;
}

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

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

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

/* 导航栏 - 毛玻璃效果 */
.navbar {
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(233, 69, 96, 0.2);
    transition: background 0.4s ease;
}

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

.navbar .logo {
    font-size: 26px;
    font-weight: 800;
    color: #e94560;
    text-shadow: 0 2px 10px rgba(233, 69, 96, 0.3);
    letter-spacing: 1px;
}

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

.navbar .nav-links li a {
    color: #e0e0e0;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 15px;
    font-weight: 500;
}

.navbar .nav-links li a:hover {
    background: rgba(233, 69, 96, 0.2);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.navbar .nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #e94560;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar .nav-links li a:hover::after {
    width: 60%;
}

.menu-toggle {
    display: none;
    background: rgba(233, 69, 96, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(233, 69, 96, 0.3);
    border-color: #e94560;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .navbar .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 16px;
        background: rgba(22, 33, 62, 0.95);
        backdrop-filter: blur(16px);
        padding: 16px;
        border-radius: 12px;
        border: 1px solid rgba(233, 69, 96, 0.2);
    }

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

    .navbar .nav-links li {
        width: 100%;
    }

    .navbar .nav-links li a {
        display: block;
        padding: 12px 16px;
        border-radius: 8px;
    }
}

/* 面包屑 */
.breadcrumb {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 14px;
    color: #4a5568;
}

body.dark .breadcrumb {
    background: rgba(30, 30, 30, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #a0aec0;
}

.breadcrumb a {
    color: #e94560;
}

.breadcrumb span {
    margin: 0 8px;
    opacity: 0.5;
}

/* 首屏 Banner - 渐变 + 毛玻璃 */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    color: #fff;
    padding: 80px 0;
    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(233, 69, 96, 0.1) 0%, transparent 60%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

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

.hero h1 {
    font-size: 40px;
    margin-bottom: 20px;
    line-height: 1.3;
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 28px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

.hero .btn {
    display: inline-block;
    background: linear-gradient(135deg, #e94560, #ff6b81);
    color: #fff;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 18px;
    margin: 6px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero .btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 30px rgba(233, 69, 96, 0.5);
    text-decoration: none;
    background: linear-gradient(135deg, #c23152, #e94560);
}

.hero .btn:active {
    transform: translateY(-2px);
}

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

.section-title {
    font-size: 30px;
    margin-bottom: 36px;
    border-left: 5px solid #e94560;
    padding-left: 20px;
    color: #1a1a2e;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20px;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #e94560, transparent);
    border-radius: 2px;
}

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

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

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

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

/* 卡片 - 圆角 + 毛玻璃 + hover动画 */
.card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(233, 69, 96, 0.2);
}

body.dark .card {
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

body.dark .card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(233, 69, 96, 0.3);
}

.card h3 {
    color: #e94560;
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 700;
}

.card h4 {
    color: #2d3748;
    margin: 16px 0 8px;
    font-size: 18px;
    font-weight: 600;
}

body.dark .card h4 {
    color: #cbd5e0;
}

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

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

.card ul {
    list-style: none;
    padding-left: 0;
    color: #4a5568;
    font-size: 15px;
}

.card ul li {
    padding: 6px 0 6px 24px;
    position: relative;
}

.card ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #e94560;
    font-weight: bold;
}

body.dark .card ul {
    color: #a0aec0;
}

/* 文章卡片 */
.article-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.article-card:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

body.dark .article-card {
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

body.dark .article-card:hover {
    background: rgba(30, 30, 30, 0.8);
}

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

.article-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #1a202c;
    font-weight: 600;
}

body.dark .article-card h3 {
    color: #e2e8f0;
}

.article-card .meta {
    color: #718096;
    font-size: 14px;
    margin-bottom: 10px;
}

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

body.dark .article-card p {
    color: #a0aec0;
}

.article-card .read-more {
    color: #e94560;
    font-weight: 600;
    display: inline-block;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.article-card .read-more:hover {
    transform: translateX(4px);
    color: #ff6b81;
}

/* FAQ 项目 */
.faq-item {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 18px 24px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(233, 69, 96, 0.1);
}

body.dark .faq-item {
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

body.dark .faq-item:hover {
    background: rgba(30, 30, 30, 0.8);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-weight: 600;
    font-size: 17px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #2d3748;
}

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

.faq-question::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    transition: all 0.4s ease;
    color: #e94560;
}

.faq-item.active .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.3s ease;
    padding: 0 16px;
    color: #4a5568;
    font-size: 15px;
    line-height: 1.7;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 600px;
    padding: 16px 16px 4px;
    opacity: 1;
}

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

/* HowTo 步骤 */
.howto-step {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    border-left: 5px solid #e94560;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

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

body.dark .howto-step {
    background: rgba(30, 30, 30, 0.7);
}

.howto-step h4 {
    color: #e94560;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
}

.howto-step p {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.7;
}

body.dark .howto-step p {
    color: #a0aec0;
}

/* 团队成员 */
.team-member {
    text-align: center;
    padding: 24px 16px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.team-member:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-4px);
}

body.dark .team-member {
    background: rgba(30, 30, 30, 0.3);
}

body.dark .team-member:hover {
    background: rgba(30, 30, 30, 0.6);
}

.team-member svg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 12px;
    box-shadow: 0 4px 16px rgba(233, 69, 96, 0.3);
    transition: transform 0.3s ease;
}

.team-member:hover svg {
    transform: scale(1.05);
}

.team-member h4 {
    color: #1a1a2e;
    font-size: 18px;
    font-weight: 600;
}

body.dark .team-member h4 {
    color: #e2e8f0;
}

.team-member p {
    color: #718096;
    font-size: 14px;
    margin-top: 4px;
}

/* 联系信息 */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.contact-info .item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.contact-info .item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(233, 69, 96, 0.2);
}

body.dark .contact-info .item {
    background: rgba(30, 30, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-info .item h4 {
    color: #e94560;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 700;
}

.contact-info .item p {
    color: #4a5568;
    font-size: 15px;
}

body.dark .contact-info .item p {
    color: #a0aec0;
}

/* 页脚 */
.footer {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(12px);
    color: #cbd5e0;
    padding: 48px 0 24px;
    margin-top: 48px;
    border-top: 1px solid rgba(233, 69, 96, 0.1);
}

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

.footer h4 {
    color: #e94560;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 700;
    position: relative;
    padding-bottom: 8px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #e94560, transparent);
    border-radius: 2px;
}

.footer a {
    color: #a0aec0;
    display: block;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.footer a:hover {
    color: #fff;
    transform: translateX(4px);
    text-decoration: none;
}

.footer .copyright {
    grid-column: 1 / -1;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    margin-top: 24px;
    font-size: 14px;
    color: #718096;
}

.footer .copyright p {
    margin-bottom: 4px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: linear-gradient(135deg, #e94560, #ff6b81);
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 999;
    border: none;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 30px rgba(233, 69, 96, 0.5);
    background: linear-gradient(135deg, #c23152, #e94560);
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* 暗黑模式切换按钮 */
.dark-toggle {
    background: rgba(233, 69, 96, 0.1);
    border: 1px solid rgba(233, 69, 96, 0.4);
    color: #e94560;
    padding: 8px 18px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.dark-toggle:hover {
    background: rgba(233, 69, 96, 0.2);
    border-color: #e94560;
    color: #fff;
    transform: scale(1.02);
}

/* 搜索框 */
.search-box {
    display: flex;
    gap: 12px;
    margin: 24px 0;
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: #e94560;
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.15);
    background: rgba(255, 255, 255, 0.9);
}

body.dark .search-box input {
    background: rgba(30, 30, 30, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

body.dark .search-box input:focus {
    border-color: #e94560;
    background: rgba(30, 30, 30, 0.9);
}

.search-box button {
    background: linear-gradient(135deg, #e94560, #ff6b81);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(233, 69, 96, 0.3);
}

.search-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(233, 69, 96, 0.4);
    background: linear-gradient(135deg, #c23152, #e94560);
}

.search-box button:active {
    transform: translateY(0);
}

/* 动画 - fade-in */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* 轮播 */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin: 24px 0;
    background: linear-gradient(135deg, #16213e, #1a1a2e);
    color: #fff;
    padding: 48px 32px;
    text-align: center;
    min-height: 220px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.carousel .slide {
    display: none;
    animation: carouselFade 0.6s ease;
}

.carousel .slide.active {
    display: block;
}

.carousel .slide h3 {
    font-size: 26px;
    margin-bottom: 12px;
    font-weight: 700;
}

.carousel .slide p {
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.7;
}

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

.carousel .dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel .dots span.active {
    background: #e94560;
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(233, 69, 96, 0.5);
}

.carousel .dots span:hover {
    background: rgba(255, 255, 255, 0.6);
}

@keyframes carouselFade {
    from {
        opacity: 0.3;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 统计数字 */
.stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    margin: 32px 0;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    padding: 24px 32px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    min-width: 140px;
}

.stat-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

body.dark .stat-item {
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-number {
    font-size: 40px;
    font-weight: 800;
    color: #e94560;
    text-shadow: 0 2px 8px rgba(233, 69, 96, 0.2);
}

.stat-label {
    font-size: 16px;
    color: #4a5568;
    margin-top: 4px;
    font-weight: 500;
}

body.dark .stat-label {
    color: #a0aec0;
}

/* 图片占位 */
.img-placeholder {
    background: linear-gradient(135deg, #e0e0e0, #f0f0f0);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 14px;
    min-height: 140px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

body.dark .img-placeholder {
    background: linear-gradient(135deg, #2d3748, #4a5568);
    color: #a0aec0;
}

/* 响应式调整 */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 28px;
    }

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

    .section-title {
        font-size: 24px;
    }

    .card {
        padding: 20px;
    }

    .stats {
        gap: 16px;
    }

    .stat-item {
        min-width: 100px;
        padding: 16px 20px;
    }

    .stat-number {
        font-size: 32px;
    }

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

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

    .footer .container {
        gap: 24px;
    }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #e94560, #c23152);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff6b81, #e94560);
}

/* 选中文本样式 */
::selection {
    background: rgba(233, 69, 96, 0.3);
    color: #1a1a2e;
}

body.dark ::selection {
    background: rgba(233, 69, 96, 0.4);
    color: #fff;
}