/* style.css - 今年会 (中国)官方网站登录入口-JNH GAME */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: #f8f9fc;
    color: #1a1a2e;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

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

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

a:hover {
    color: #ffd700;
}

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

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

.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.dark .glass {
    background: rgba(20, 20, 40, 0.7);
    border-color: rgba(255, 255, 255, 0.05);
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    background: linear-gradient(135deg, #f0c27f, #fc5c7d);
    color: #fff;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(240, 194, 127, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(240, 194, 127, 0.4);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dark header {
    background: rgba(15, 15, 26, 0.85);
    border-color: rgba(255, 255, 255, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f0c27f, #fc5c7d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nav a {
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a2e;
    transition: all 0.3s;
}

.dark .nav a {
    color: #ccc;
}

.nav a:hover,
.nav a.active {
    background: linear-gradient(135deg, #f0c27f, #fc5c7d);
    color: #fff;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #1a1a2e;
    border-radius: 3px;
    transition: all 0.3s;
}

.dark .menu-toggle span {
    background: #e0e0e0;
}

.dark-mode-toggle {
    background: none;
    border: 2px solid #f0c27f;
    border-radius: 30px;
    padding: 6px 14px;
    color: #f0c27f;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.dark-mode-toggle:hover {
    background: #f0c27f;
    color: #1a1a2e;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 120px 20px 80px;
}

.hero .container {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero .btn {
    font-size: 1.1rem;
    padding: 16px 48px;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.hero-bg-shapes svg {
    position: absolute;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

.banner-carousel {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 40px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.banner-slide {
    display: none;
    animation: fadeIn 0.8s ease;
}

.banner-slide.active {
    display: block;
}

.banner-slide svg {
    width: 100%;
    height: auto;
    border-radius: 24px;
}

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

.banner-dots button {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #f0c27f;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.banner-dots button.active {
    background: #f0c27f;
    transform: scale(1.2);
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    background: linear-gradient(135deg, #f0c27f, #fc5c7d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.dark .section-title p {
    color: #aaa;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

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

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

.card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s;
}

.dark .card {
    background: rgba(20, 20, 40, 0.6);
    border-color: rgba(255, 255, 255, 0.05);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.card-icon {
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 700;
}

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

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

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #f0c27f, #fc5c7d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    margin-top: 8px;
}

.dark .stat-label {
    color: #aaa;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 16px 0;
    cursor: pointer;
}

.dark .faq-item {
    border-color: rgba(255, 255, 255, 0.08);
}

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

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

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

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-item .arrow {
    transition: transform 0.3s;
}

.faq-item.open .arrow {
    transform: rotate(180deg);
}

.testimonial-card {
    text-align: center;
    padding: 40px 30px;
}

.testimonial-card .quote {
    font-style: italic;
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: #444;
}

.dark .testimonial-card .quote {
    color: #ccc;
}

.testimonial-card .author {
    font-weight: 700;
    color: #f0c27f;
}

.news-card .date {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 8px;
}

.news-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.news-card p {
    color: #666;
    font-size: 0.9rem;
}

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

.footer {
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

.footer a {
    color: rgba(255, 255, 255, 0.6);
}

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

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

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

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0c27f, #fc5c7d);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(240, 194, 127, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

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

.breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #f0c27f;
}

.search-box {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 20px auto;
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 30px;
    border: 1px solid #ddd;
    background: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    outline: none;
}

.dark .search-box input {
    background: rgba(20, 20, 40, 0.6);
    border-color: #333;
    color: #fff;
}

.search-box button {
    padding: 12px 24px;
    border-radius: 30px;
    background: linear-gradient(135deg, #f0c27f, #fc5c7d);
    color: #fff;
    border: none;
    cursor: pointer;
}

.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    padding: 20px 0;
}

.friend-links a {
    color: #666;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.dark .friend-links a {
    color: #999;
}

.friend-links a:hover {
    color: #f0c27f;
}

.sitemap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.sitemap a {
    color: #666;
    font-size: 0.9rem;
}

.dark .sitemap a {
    color: #999;
}

.sitemap a:hover {
    color: #f0c27f;
}

.related-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a {
    padding: 8px 16px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.5);
    color: #1a1a2e;
    font-size: 0.9rem;
}

.dark .pagination a {
    background: rgba(20, 20, 40, 0.5);
    color: #ccc;
}

.pagination a.active {
    background: linear-gradient(135deg, #f0c27f, #fc5c7d);
    color: #fff;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    backdrop-filter: blur(8px);
}

.mobile-menu.open {
    display: block;
}

.mobile-menu-content {
    background: #fff;
    width: 80%;
    max-width: 400px;
    height: 100%;
    padding: 40px 30px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s;
}

.dark .mobile-menu-content {
    background: #1a1a2e;
}

.mobile-menu.open .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-content a {
    display: block;
    padding: 12px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .mobile-menu-content a {
    border-color: rgba(255, 255, 255, 0.05);
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

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

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .section {
        padding: 50px 0;
    }
    .banner-carousel {
        max-width: 100%;
    }
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 0 12px;
    }
    .logo {
        font-size: 1.4rem;
    }
    .btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
    .section-title h2 {
        font-size: 1.6rem;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

.dark .glass,
.dark .card {
    background: rgba(20, 20, 40, 0.6);
}

.dark .btn {
    box-shadow: 0 4px 15px rgba(240, 194, 127, 0.2);
}

.dark .hero {
    background: linear-gradient(135deg, #0a0a1a 0%, #12122a 50%, #1a1a3e 100%);
}