/* 金年会官网 - 完整样式表 */
/* 全局重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
    color: #e0e0e0;
    line-height: 1.7;
    transition: background 0.3s, color 0.3s;
    min-height: 100vh;
}

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

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

a:hover {
    color: #ff6b81;
}

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

/* 头部导航 */
.header {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
    padding: 20px 0;
    border-bottom: 1px solid rgba(42, 42, 74, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.logo {
    font-size: 28px;
    font-weight: 800;
    color: #e94560;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(233, 69, 96, 0.3);
    background: linear-gradient(45deg, #e94560, #ff6b81);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo span {
    color: #fff;
    -webkit-text-fill-color: #fff;
}

.nav {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.nav a {
    color: #ccc;
    font-size: 15px;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #e94560, #ff6b81);
    transition: width 0.3s;
}

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

.nav a:hover,
.nav a.active {
    color: #e94560;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s;
}

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

.mobile-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: rgba(26, 26, 46, 0.98);
    padding: 20px;
    gap: 12px;
    border-radius: 0 0 16px 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mobile-menu.open {
    display: flex;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu a {
    color: #ccc;
    padding: 10px 0;
    border-bottom: 1px solid rgba(42, 42, 74, 0.5);
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: #e94560;
}

/* 英雄区域 / Banner轮播 */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 50%, #16213e 100%);
    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.15) 0%, transparent 70%);
    animation: heroGlow 10s infinite alternate;
    pointer-events: none;
}

@keyframes heroGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(10%, 10%) scale(1.1);
    }
    100% {
        transform: translate(20%, 20%) scale(1.2);
    }
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero h1 span {
    background: linear-gradient(45deg, #e94560, #ff6b81);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 20px;
    color: #aaa;
    max-width: 700px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 1;
}

.hero .btn {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(45deg, #e94560, #ff6b81);
    color: #fff;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.hero .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(233, 69, 96, 0.5);
}

/* Banner轮播 */
.banner-slider {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    height: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px;
    text-align: center;
}

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

.banner-slide h2 {
    font-size: 42px;
    color: #fff;
    margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    font-weight: 800;
}

.banner-slide p {
    color: #ddd;
    font-size: 18px;
    max-width: 600px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.banner-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    position: relative;
    z-index: 2;
}

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

.banner-dots span.active {
    background: #e94560;
    border-color: #fff;
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
}

.banner-dots span:hover {
    background: rgba(233, 69, 96, 0.6);
}

/* 通用章节 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 48px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #e94560, #ff6b81);
    margin: 16px auto 0;
    border-radius: 2px;
}

.section-title span {
    background: linear-gradient(45deg, #e94560, #ff6b81);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(233, 69, 96, 0.05), transparent);
    transition: left 0.6s;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(233, 69, 96, 0.5);
}

.card h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 12px;
}

.card h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 8px;
}

.card p {
    color: #aaa;
    font-size: 15px;
    line-height: 1.8;
}

/* 网格布局 */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

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

.grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 25px;
}

/* 工具类 */
.text-center {
    text-align: center;
}

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

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

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

/* 数据统计 */
.stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 52px;
    font-weight: 800;
    background: linear-gradient(45deg, #e94560, #ff6b81);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    color: #aaa;
    font-size: 16px;
    margin-top: 8px;
    letter-spacing: 1px;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid rgba(42, 42, 74, 0.5);
    padding: 20px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    padding: 0 10px;
}

.faq-question::after {
    content: '+';
    font-size: 28px;
    color: #e94560;
    transition: transform 0.4s, color 0.3s;
    font-weight: 300;
}

.faq-item.open .faq-question::after {
    transform: rotate(45deg);
    color: #ff6b81;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
    color: #aaa;
    padding: 0 10px;
    font-size: 15px;
    line-height: 1.8;
}

.faq-item.open .faq-answer {
    max-height: 400px;
    padding-top: 16px;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #0a0a1a 0%, #0f0f1a 100%);
    padding: 50px 0 30px;
    border-top: 1px solid rgba(42, 42, 74, 0.5);
}

.footer .container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #e94560;
}

.footer p,
.footer a {
    color: #888;
    font-size: 14px;
    line-height: 2;
    transition: color 0.3s;
}

.footer a:hover {
    color: #e94560;
    padding-left: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(42, 42, 74, 0.5);
    margin-top: 30px;
    color: #666;
    font-size: 13px;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #e94560, #ff6b81);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.3);
}

.back-to-top.show {
    display: flex;
    animation: fadeInUp 0.3s ease;
}

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

.back-to-top:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 30px rgba(233, 69, 96, 0.5);
}

/* 搜索框 */
.search-box {
    display: flex;
    gap: 10px;
    margin: 30px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-box input {
    flex: 1;
    padding: 14px 24px;
    border: 1px solid rgba(42, 42, 74, 0.5);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.search-box input::placeholder {
    color: #666;
}

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

.search-box button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.5);
}

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

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

/* 暗黑模式切换按钮 */
.dark-mode-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(42, 42, 74, 0.5);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dark-mode-toggle:hover {
    border-color: #e94560;
    background: rgba(233, 69, 96, 0.1);
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.2);
}

/* 面包屑 */
.breadcrumb {
    display: flex;
    gap: 8px;
    padding: 20px 0;
    font-size: 14px;
    color: #888;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #e94560;
    transition: color 0.3s;
}

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

.breadcrumb span {
    color: #aaa;
}

/* HowTo步骤 */
.howto-steps {
    counter-reset: step;
}

.howto-step {
    padding: 20px 0;
    border-bottom: 1px solid rgba(42, 42, 74, 0.5);
    display: flex;
    gap: 24px;
    align-items: flex-start;
    transition: background 0.3s;
}

.howto-step:hover {
    background: rgba(255, 255, 255, 0.02);
}

.howto-step::before {
    counter-increment: step;
    content: counter(step);
    background: linear-gradient(45deg, #e94560, #ff6b81);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.howto-step h4 {
    color: #fff;
    margin-bottom: 6px;
    font-size: 18px;
}

.howto-step p {
    color: #aaa;
    font-size: 15px;
    line-height: 1.8;
}

/* 合作伙伴Logo */
.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 30px 0;
}

.partner-logos svg {
    width: 130px;
    height: 65px;
    opacity: 0.6;
    transition: all 0.4s;
    filter: grayscale(0.5);
}

.partner-logos svg:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.05);
}

/* 客户评价 */
.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(233, 69, 96, 0.5);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.testimonial-card p {
    font-style: italic;
    color: #ccc;
    font-size: 16px;
    line-height: 1.8;
}

.testimonial-card .author {
    margin-top: 20px;
    font-weight: 600;
    color: #e94560;
    font-size: 15px;
}

/* 新闻列表 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-item {
    padding: 16px 0;
    border-bottom: 1px solid rgba(42, 42, 74, 0.5);
    transition: padding-left 0.3s;
}

.news-item:hover {
    padding-left: 10px;
}

.news-item h4 {
    color: #fff;
    margin-bottom: 6px;
    font-size: 16px;
    transition: color 0.3s;
}

.news-item:hover h4 {
    color: #e94560;
}

.news-item .date {
    color: #666;
    font-size: 13px;
}

.news-item p {
    color: #aaa;
    font-size: 14px;
    margin-top: 8px;
}

/* 相关文章 */
.related-articles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* 网站地图 */
.sitemap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}

.sitemap h4 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 16px;
    position: relative;
    padding-bottom: 8px;
}

.sitemap h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 20px;
    height: 2px;
    background: #e94560;
}

.sitemap a {
    display: block;
    color: #888;
    padding: 6px 0;
    font-size: 14px;
    transition: all 0.3s;
}

.sitemap a:hover {
    color: #e94560;
    padding-left: 8px;
}

/* 联系信息 */
.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.contact-info .item {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.contact-info .item:hover {
    border-color: rgba(233, 69, 96, 0.5);
    transform: translateY(-3px);
}

.contact-info .item h4 {
    color: #fff;
    margin-bottom: 8px;
    font-size: 16px;
}

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

/* 信任徽章 */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    padding: 30px 0;
}

.trust-badges .badge {
    padding: 10px 24px;
    background: rgba(233, 69, 96, 0.1);
    border: 1px solid rgba(233, 69, 96, 0.3);
    border-radius: 25px;
    color: #e94560;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: default;
}

.trust-badges .badge:hover {
    background: rgba(233, 69, 96, 0.2);
    border-color: #e94560;
    transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

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

    .hero h1 {
        font-size: 32px;
    }

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

    .banner-slider {
        height: 280px;
    }

    .banner-slide h2 {
        font-size: 26px;
    }

    .banner-slide p {
        font-size: 15px;
    }

    .footer .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stats {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

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

    .section {
        padding: 50px 0;
    }

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

    .contact-info {
        grid-template-columns: 1fr;
    }

    .related-articles {
        grid-template-columns: 1fr;
    }

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

    .search-box {
        flex-direction: column;
        gap: 12px;
    }

    .search-box button {
        width: 100%;
    }

    .card {
        padding: 20px;
    }

    .howto-step {
        gap: 16px;
    }

    .howto-step::before {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }

    .banner-slider {
        height: 350px;
    }

    .hero h1 {
        font-size: 40px;
    }
}

@media (min-width: 1025px) {
    .banner-slider {
        height: 500px;
    }
}

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

::-webkit-scrollbar-track {
    background: rgba(26, 26, 46, 0.5);
}

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

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

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

/* 焦点样式 */
:focus-visible {
    outline: 2px solid #e94560;
    outline-offset: 2px;
}

/* 打印样式 */
@media print {
    .header,
    .footer,
    .back-to-top,
    .search-box,
    .nav-toggle,
    .mobile-menu,
    .dark-mode-toggle {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .card {
        border: 1px solid #ddd;
        box-shadow: none;
        background: #fff;
    }
}