/* 
 * 体育比分网站样式表
 * 全新设计 - 深色主题配橙色强调
 * 移动端优先响应式设计
 */

/* CSS变量定义 */
:root {
    --primary-dark: #0d1117;
    --secondary-dark: #161b22;
    --accent-orange: #ff6b35;
    --accent-blue: #4a90d9;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --border-color: #30363d;
    --success-green: #3fb950;
    --warning-yellow: #d29922;
    --gradient-start: #1a1f2e;
    --gradient-end: #0d1117;
    --card-bg: rgba(22, 27, 34, 0.95);
    --shadow-color: rgba(0, 0, 0, 0.4);
}

/* 基础重置 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 图片响应式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 链接样式 */
a {
    color: var(--accent-orange);
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
    color: var(--accent-blue);
    opacity: 0.9;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 头部导航 - 非sticky */
.site-header {
    background: var(--secondary-dark);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-wrap img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

.site-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

/* 主导航 */
.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nav-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: #fff;
}

/* CTA按钮 */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-orange) 0%, #ff8c42 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    color: #fff;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: var(--primary-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero区域 */
.hero-section {
    position: relative;
    padding: 3rem 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.875rem;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-item::after {
    content: '>';
    color: var(--text-secondary);
}

.breadcrumb-item:last-child::after {
    content: '';
}

.breadcrumb-link {
    color: var(--text-secondary);
}

.breadcrumb-link:hover {
    color: var(--accent-orange);
}

.breadcrumb-current {
    color: var(--text-primary);
}

/* 卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* 通用卡片 */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-color);
}

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--accent-orange);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* 实时比分模块 */
.live-score-section {
    background: var(--secondary-dark);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(63, 185, 80, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--success-green);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--success-green);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 比分卡片 */
.score-card {
    background: var(--primary-dark);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.score-league {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.score-time {
    color: var(--accent-orange);
    font-weight: 600;
}

.score-teams {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: var(--secondary-dark);
    border-radius: 6px;
}

.team-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.team-score {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-orange);
    min-width: 40px;
    text-align: center;
}

/* 内容区块 */
.content-section {
    padding: 3rem 0;
}

.content-block {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.content-block h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    border-left: 4px solid var(--accent-orange);
    padding-left: 1rem;
}

.content-block h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: var(--text-primary);
}

.content-block p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.content-block ul, .content-block ol {
    margin: 1rem 0 1rem 1.5rem;
    color: var(--text-secondary);
}

.content-block li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* 作者信息 */
.author-box {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--primary-dark);
    border-radius: 12px;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-orange);
}

.author-info {
    flex: 1;
    min-width: 200px;
}

.author-name {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.author-title {
    font-size: 0.875rem;
    color: var(--accent-orange);
    margin-bottom: 0.75rem;
}

.author-bio {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 用户评论 */
.reviews-section {
    margin: 2rem 0;
}

.review-card {
    background: var(--primary-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.reviewer-name {
    font-weight: 600;
    font-size: 1rem;
}

.reviewer-location {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.star {
    color: var(--warning-yellow);
    font-size: 1rem;
}

.star.empty {
    color: var(--border-color);
}

.rating-value {
    margin-left: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.review-content {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* FAQ区块 */
.faq-section {
    margin: 2rem 0;
}

.faq-item {
    background: var(--primary-dark);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--secondary-dark);
}

.faq-icon {
    font-size: 1.25rem;
    color: var(--accent-orange);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* 支付方式 */
.payment-section {
    padding: 2rem;
    background: var(--secondary-dark);
    border-radius: 16px;
    margin: 2rem 0;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.payment-item {
    background: var(--primary-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.payment-item:hover {
    transform: translateY(-3px);
}

.payment-item img {
    max-height: 40px;
    margin: 0 auto 0.5rem;
}

.payment-name {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* 牌照区块 */
.license-section {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: var(--secondary-dark);
    border-radius: 16px;
    margin: 2rem 0;
    flex-wrap: wrap;
    align-items: center;
}

.license-badge {
    width: 150px;
    flex-shrink: 0;
}

.license-info {
    flex: 1;
    min-width: 250px;
}

.license-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent-orange);
}

.license-number {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* 客服支持 */
.support-section {
    background: var(--secondary-dark);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.support-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--primary-dark);
    border-radius: 10px;
}

.support-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-orange);
    border-radius: 10px;
    font-size: 1.5rem;
}

.support-text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.support-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* 页脚 */
.site-footer {
    background: var(--secondary-dark);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-orange);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: #fff;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-disclaimer {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.age-restriction {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-dark);
    border: 2px solid var(--warning-yellow);
    border-radius: 8px;
    font-weight: 700;
    color: var(--warning-yellow);
}

.copyright {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* APP下载页面 */
.app-hero {
    display: flex;
    gap: 3rem;
    align-items: center;
    padding: 3rem 0;
    flex-wrap: wrap;
}

.app-info {
    flex: 1;
    min-width: 300px;
}

.app-preview {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.app-preview img {
    max-width: 300px;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px var(--shadow-color);
}

.download-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--primary-dark);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.download-btn:hover {
    border-color: var(--accent-orange);
    background: var(--secondary-dark);
}

.download-btn .icon {
    font-size: 2rem;
}

.download-btn .text {
    text-align: left;
}

.download-btn .text small {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.download-btn .text span {
    font-size: 1.1rem;
    font-weight: 600;
}

/* 特性列表 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-orange) 0%, #ff8c42 100%);
    border-radius: 10px;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--primary-dark);
    font-weight: 600;
    color: var(--text-primary);
}

.data-table tr:hover {
    background: var(--secondary-dark);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .content-block {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        padding-top: 1rem;
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        margin: 0 auto;
    }
    
    .license-section {
        flex-direction: column;
        text-align: center;
    }
    
    .license-badge {
        margin: 0 auto;
    }
    
    .app-hero {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .download-buttons {
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .content-block {
        padding: 1rem;
    }
    
    .content-block h2 {
        font-size: 1.25rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 打印样式 */
@media print {
    .site-header,
    .site-footer,
    .cta-btn {
        display: none;
    }
    
    body {
        background: #fff;
        color: #000;
    }
}

/* 无障碍优化 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    :root {
        --border-color: #fff;
        --text-secondary: #ccc;
    }
}
