/* 皇冠体育-官方授权平台-CROWNSPORTS - style.css */
/* 整体重置与基础 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f8f9fa;
    color: #1a1a2e;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}
body.dark {
    background: #0f0f1a;
    color: #e0e0e0;
}
a {
    color: #1a3a5c;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
body.dark a {
    color: #8ab4f8;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.btn-primary {
    background: linear-gradient(135deg, #f0b429, #d4941a);
    color: #1a1a2e;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(240,180,41,0.3);
}
.btn-outline {
    background: transparent;
    border: 2px solid #f0b429;
    color: #f0b429;
}
.btn-outline:hover {
    background: #f0b429;
    color: #1a1a2e;
}

/* 通用区块 */
.section {
    padding: 80px 0;
}
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}
.section-subtitle {
    text-align: center;
    color: #6c757d;
    margin-bottom: 48px;
    font-size: 1.1rem;
}
body.dark .section-subtitle {
    color: #aaa;
}

/* 卡片 */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}
body.dark .card {
    background: #1e1e32;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
body.dark .card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* 网格布局 */
.grid {
    display: grid;
    gap: 32px;
}
.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* 辅助类 */
.text-center {
    text-align: center;
}
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}
.flex-center {
    justify-content: center;
}

/* 头部导航 */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(26,26,46,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    transition: background 0.3s;
}
body.dark header {
    background: rgba(15,15,26,0.95);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f0b429, #d4941a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav {
    display: flex;
    gap: 24px;
    list-style: none;
}
.nav a {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}
.nav a:hover,
.nav a.active {
    border-bottom-color: #f0b429;
    color: #fff;
    text-decoration: none;
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
}

/* Hero 区 */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f0b429, #d4941a);
}
.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}
.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 32px;
    color: rgba(255,255,255,0.8);
}
.hero .btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.badge {
    display: inline-block;
    background: rgba(240,180,41,0.2);
    color: #f0b429;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
}

/* 关于 */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
}
.about-content p {
    margin-bottom: 16px;
}

/* 服务 */
.service-item h3 {
    color: #f0b429;
    margin-bottom: 8px;
    font-size: 1.2rem;
}
.service-item p {
    color: #6c757d;
}
body.dark .service-item p {
    color: #bbb;
}

/* 优势 */
.advantage-item {
    text-align: center;
    padding: 24px;
}
.advantage-item .icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}
.advantage-item h3 {
    margin-bottom: 8px;
    font-size: 1.15rem;
}

/* 用户心声 */
.testimonial-item {
    font-style: italic;
    position: relative;
    padding-top: 24px;
}
.testimonial-item::before {
    content: '\201C';
    font-size: 3rem;
    color: #f0b429;
    position: absolute;
    top: -8px;
    left: 0;
    line-height: 1;
}
.testimonial-item .author {
    margin-top: 16px;
    font-style: normal;
    font-weight: 600;
    color: #f0b429;
}

/* 案例 */
.case-item {
    border-left: 4px solid #f0b429;
    padding-left: 20px;
}
.case-item h3 {
    margin-bottom: 6px;
}
.case-item .meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 8px;
}
body.dark .case-item .meta {
    color: #aaa;
}

/* 知识中心 */
.insight-item {
    border-bottom: 1px solid #e9ecef;
    padding: 16px 0;
}
body.dark .insight-item {
    border-bottom-color: #2a2a3e;
}
.insight-item:last-child {
    border-bottom: none;
}
.insight-item h3 {
    margin-bottom: 4px;
}
.insight-item .date {
    font-size: 0.85rem;
    color: #6c757d;
}
body.dark .insight-item .date {
    color: #aaa;
}
.search-bar {
    display: flex;
    max-width: 400px;
    margin: 0 auto 48px;
}
.search-bar input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 6px 0 0 6px;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s;
}
body.dark .search-bar input {
    background: #252540;
    border-color: #3a3a4e;
    color: #e0e0e0;
}
.search-bar input:focus {
    border-color: #f0b429;
}
.search-bar button {
    padding: 12px 20px;
    background: #f0b429;
    border: none;
    border-radius: 0 6px 6px 0;
    color: #1a1a2e;
    font-weight: 600;
    cursor: pointer;
}

/* FAQ */
.faq-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}
body.dark .faq-item {
    border-color: #2a2a3e;
}
.faq-question {
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: inherit;
    transition: background 0.3s;
}
.faq-question:hover {
    background: rgba(240,180,41,0.08);
}
.faq-question .arrow {
    transition: transform 0.3s;
}
.faq-item.active .faq-question .arrow {
    transform: rotate(180deg);
}
.faq-answer {
    padding: 0 20px 16px;
    display: none;
}
.faq-item.active .faq-answer {
    display: block;
}

/* 操作指南 */
.howto-steps {
    counter-reset: step;
}
.howto-step {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}
.howto-step::before {
    counter-increment: step;
    content: counter(step);
    background: #f0b429;
    color: #1a1a2e;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.howto-step h3 {
    margin-bottom: 4px;
    font-size: 1.05rem;
}
.howto-step p {
    color: #6c757d;
}
body.dark .howto-step p {
    color: #bbb;
}

/* 联系 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}
.contact-item {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}
body.dark .contact-item {
    background: #252540;
}
.contact-item h4 {
    margin-bottom: 4px;
    color: #f0b429;
}
.contact-item p {
    font-size: 0.95rem;
}

/* 页脚 */
footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.7);
    padding: 48px 0 24px;
}
body.dark footer {
    background: #0a0a14;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}
.footer-grid h4 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 1rem;
}
.footer-grid ul {
    list-style: none;
}
.footer-grid li {
    margin-bottom: 8px;
}
.footer-grid a {
    color: rgba(255,255,255,0.6);
}
.footer-grid a:hover {
    color: #f0b429;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.9rem;
}
.footer-bottom a {
    color: rgba(255,255,255,0.6);
    margin: 0 8px;
}
.footer-bottom a:hover {
    color: #f0b429;
}

/* 返回顶部 */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f0b429;
    color: #1a1a2e;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(240,180,41,0.3);
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

/* 暗黑模式切换按钮 */
.dark-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    transition: transform 0.3s;
}
.dark-toggle:hover {
    transform: rotate(20deg);
}

/* 移动菜单 */
.nav-mobile {
    display: none;
}

/* 统计数字 */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    text-align: center;
    margin: 32px 0;
}
.stat-item .number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #f0b429;
    display: block;
}
.stat-item .label {
    color: #6c757d;
    font-size: 0.95rem;
}
body.dark .stat-item .label {
    color: #aaa;
}

/* 响应式 */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    .nav-toggle {
        display: block;
    }
    .nav-mobile {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(26,26,46,0.98);
        z-index: 200;
        padding: 80px 24px 24px;
        transform: translateX(100%);
        transition: transform 0.3s;
    }
    .nav-mobile.open {
        transform: translateX(0);
    }
    .nav-mobile a {
        display: block;
        padding: 16px 0;
        color: #fff;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .nav-mobile .close-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        color: #fff;
        font-size: 1.8rem;
        cursor: pointer;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero {
        padding: 80px 0 60px;
    }
    .section {
        padding: 48px 0;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 系统暗色模式支持 */
@media (prefers-color-scheme: dark) {
    body:not(.light) {
        background: #0f0f1a;
        color: #e0e0e0;
    }
    body:not(.light) .card {
        background: #1e1e32;
    }
    body:not(.light) .section-subtitle {
        color: #aaa;
    }
    body:not(.light) .service-item p {
        color: #bbb;
    }
    body:not(.light) .case-item .meta {
        color: #aaa;
    }
    body:not(.light) .insight-item {
        border-bottom-color: #2a2a3e;
    }
    body:not(.light) .insight-item .date {
        color: #aaa;
    }
    body:not(.light) .faq-item {
        border-color: #2a2a3e;
    }
    body:not(.light) .howto-step p {
        color: #bbb;
    }
    body:not(.light) .contact-item {
        background: #252540;
    }
    body:not(.light) .search-bar input {
        background: #252540;
        border-color: #3a3a4e;
        color: #e0e0e0;
    }
    body:not(.light) .stat-item .label {
        color: #aaa;
    }
    body:not(.light) footer {
        background: #0a0a14;
    }
}