/* style.css - 开元棋牌 - KY开元游戏APP官网下载 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', 'PingFang SC', Roboto, 'Helvetica Neue', sans-serif;
    background: #f8f9fa;
    color: #212529;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}
body.dark-mode {
    background: #121212;
    color: #e0e0e0;
}
a {
    color: inherit;
    text-decoration: none;
}
img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}
.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.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}
body.dark-mode .card {
    background: #1e1e1e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: linear-gradient(135deg, #e94560, #c23152);
    color: #fff;
}
.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(233, 69, 96, 0.3);
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 25px;
}
.grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
}
.text-center {
    text-align: center;
}
.section-title {
    font-size: 2rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}
.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 40px;
}
body.dark-mode .section-subtitle {
    color: #aaa;
}
.section {
    padding: 80px 0;
}
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}
.banner-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.banner-slide {
    display: none;
    animation: fadeIn 1s ease;
}
.banner-slide.active {
    display: block;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.stat-item {
    text-align: center;
    padding: 20px;
}
.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: #e94560;
}
.stat-label {
    font-size: 1rem;
    color: #6c757d;
    margin-top: 5px;
}
body.dark-mode .stat-label {
    color: #aaa;
}
.faq-item {
    border-bottom: 1px solid #dee2e6;
    padding: 15px 0;
    cursor: pointer;
}
.faq-question {
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-top: 10px;
    color: #6c757d;
}
.faq-item.active .faq-answer {
    max-height: 300px;
}
body.dark-mode .faq-item {
    border-color: #333;
}
body.dark-mode .faq-answer {
    color: #aaa;
}
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e94560;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}
.back-to-top.show {
    display: flex;
}
.back-to-top:hover {
    transform: scale(1.1);
}
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    transition: background 0.3s;
}
.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
}
.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}
.nav-links a {
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.3s;
    font-weight: 500;
}
.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
}
.dark-toggle {
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.dark-toggle:hover {
    border-color: #e94560;
}
.mobile-nav {
    display: none;
    flex-direction: column;
    background: #1a1a2e;
    padding: 20px;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
}
.mobile-nav a {
    color: #fff;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
}
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .stat-number {
        font-size: 2rem;
    }
}
.footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 60px 0 30px;
}
.footer a {
    color: #ccc;
}
.footer a:hover {
    color: #e94560;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
.lazy-load {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}
.lazy-load.loaded {
    opacity: 1;
    transform: translateY(0);
}
.breadcrumb {
    padding: 15px 0;
    font-size: 0.9rem;
    color: #6c757d;
}
.breadcrumb a {
    color: #6c757d;
}
.breadcrumb a:hover {
    color: #e94560;
}
body.dark-mode .breadcrumb,
body.dark-mode .breadcrumb a {
    color: #aaa;
}
.search-entry {
    display: flex;
    max-width: 500px;
    margin: 20px auto;
}
.search-entry input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 50px 0 0 50px;
    border: 1px solid #dee2e6;
    outline: none;
}
.search-entry button {
    padding: 12px 25px;
    border-radius: 0 50px 50px 0;
    border: none;
    background: #e94560;
    color: #fff;
    cursor: pointer;
}
.team-member {
    text-align: center;
}
.team-member svg {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 15px;
}
.testimonial-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}
body.dark-mode .testimonial-card {
    background: #1e1e1e;
}
.news-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}
.news-card:hover {
    transform: translateY(-5px);
}
body.dark-mode .news-card {
    background: #1e1e1e;
}
.news-card-content {
    padding: 20px;
}
.news-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.news-card p {
    color: #6c757d;
    font-size: 0.9rem;
}
body.dark-mode .news-card p {
    color: #aaa;
}
.related-articles {
    margin-top: 40px;
}
.related-articles h3 {
    margin-bottom: 20px;
}
.prev-next {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}
.prev-next a {
    color: #e94560;
    font-weight: 500;
}
.howto-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 25px;
}
.howto-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e94560;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.contact-info {
    line-height: 2;
}
.contact-info strong {
    color: #e94560;
}
body.dark-mode .contact-info strong {
    color: #ff6b81;
}
.sitemap-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}
.sitemap-links a {
    color: #6c757d;
}
body.dark-mode .sitemap-links a {
    color: #aaa;
}
.privacy-disclaimer {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 20px;
}
body.dark-mode .privacy-disclaimer {
    color: #888;
}