/* style.css - 开云体育官网 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 100%);
    color: #e0e0e0;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
    min-height: 100vh;
}

body.dark-mode {
    background: linear-gradient(135deg, #050510 0%, #0d0d2a 100%);
    color: #c0c0c0;
}

a {
    color: #ff6b35;
    text-decoration: none;
    transition: color 0.3s, text-shadow 0.3s;
}

a:hover {
    color: #ff8c5a;
    text-shadow: 0 0 8px rgba(255,107,53,0.4);
}

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

/* Header & Navigation */
header {
    background: rgba(10,10,30,0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
    border-bottom: 1px solid rgba(255,107,53,0.15);
}

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

.logo svg {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(255,107,53,0.3));
    transition: transform 0.3s;
}

.logo svg:hover {
    transform: scale(1.05);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

nav ul li a {
    color: #e0e0e0;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 24px;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #ff6b35;
    transition: width 0.3s;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 60%;
}

nav ul li a:hover, nav ul li a.active {
    background: rgba(255,107,53,0.15);
    color: #ff6b35;
    box-shadow: 0 0 20px rgba(255,107,53,0.1);
}

.nav-toggle {
    display: none;
    background: none;
    border: 2px solid rgba(255,107,53,0.4);
    color: #ff6b35;
    font-size: 28px;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 12px;
    transition: background 0.3s, border-color 0.3s;
}

.nav-toggle:hover {
    background: rgba(255,107,53,0.1);
    border-color: #ff6b35;
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(10,10,30,0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 20px;
        border-radius: 20px;
        margin-top: 12px;
        border: 1px solid rgba(255,107,53,0.2);
    }
    nav ul.show {
        display: flex;
    }
    .nav-toggle {
        display: block;
    }
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: none;
    border: 2px solid #ff6b35;
    color: #ff6b35;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.dark-mode-toggle:hover {
    background: #ff6b35;
    color: #0a0a1a;
    box-shadow: 0 0 20px rgba(255,107,53,0.3);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a1a3e 0%, #0a0a1a 50%, #2a1a3e 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(255,107,53,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(255,107,53,0.1) 0%, transparent 60%);
    animation: heroPulse 6s ease-in-out infinite alternate;
}

@keyframes heroPulse {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #ff6b35, #ff9a56, #ff6b35);
    background-size: 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero p {
    font-size: 1.2rem;
    max-width: 750px;
    margin: 0 auto 30px;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero .btn {
    background: linear-gradient(135deg, #ff6b35, #ff8c5a);
    color: #fff;
    padding: 16px 48px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
    box-shadow: 0 4px 20px rgba(255,107,53,0.3);
    position: relative;
    overflow: hidden;
}

.hero .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.hero .btn:hover::before {
    left: 100%;
}

.hero .btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 10px 40px rgba(255,107,53,0.5);
}

.hero .banner-slider {
    margin-top: 50px;
    display: flex;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,107,53,0.1);
}

.banner-slide {
    min-width: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.banner-slide svg {
    width: 100%;
    max-height: 320px;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
}

/* Sections */
section {
    padding: 90px 0;
}

section:nth-child(even) {
    background: rgba(255,107,53,0.02);
}

body.dark-mode section:nth-child(even) {
    background: rgba(255,107,53,0.03);
}

h2 {
    font-size: 2.4rem;
    margin-bottom: 45px;
    text-align: center;
    position: relative;
    color: #fff;
}

h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #ff9a56);
    margin: 12px auto 0;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(255,107,53,0.3);
}

h3 {
    font-size: 1.6rem;
    margin: 20px 0 12px;
    color: #ffd;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transition: transform 0.4s, box-shadow 0.4s, border-color 0.3s;
    border: 1px solid rgba(255,107,53,0.1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,107,53,0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(255,107,53,0.1);
    border-color: rgba(255,107,53,0.3);
}

body.dark-mode .card {
    background: rgba(255,255,255,0.02);
    border-color: rgba(255,107,53,0.05);
}

.card svg {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 16px;
    margin-bottom: 15px;
    transition: transform 0.4s;
}

.card:hover svg {
    transform: scale(1.02);
}

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

.stat-number {
    font-size: 3.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b35, #ff9a56);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.testimonial {
    font-style: italic;
    padding: 24px;
    border-left: 4px solid #ff6b35;
    background: rgba(255,107,53,0.04);
    border-radius: 16px;
    position: relative;
}

.testimonial::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -10px;
    left: 10px;
    color: rgba(255,107,53,0.2);
    font-family: serif;
}

.faq-item {
    margin-bottom: 16px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,107,53,0.08);
    transition: border-color 0.3s;
}

.faq-item:hover {
    border-color: rgba(255,107,53,0.2);
}

.faq-question {
    padding: 20px 28px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s, color 0.3s;
    color: #e0e0e0;
}

.faq-question:hover {
    background: rgba(255,107,53,0.08);
    color: #ff6b35;
}

.faq-question span {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s;
    padding: 0 28px;
    color: #b0b0b0;
}

.faq-answer.open {
    max-height: 400px;
    padding: 18px 28px 24px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.contact-info div {
    background: rgba(255,107,53,0.08);
    padding: 20px 36px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,107,53,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-info div:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255,107,53,0.15);
}

footer {
    background: rgba(10,10,30,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #888;
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid rgba(255,107,53,0.1);
}

footer a {
    color: #ff6b35;
    transition: color 0.3s;
}

footer a:hover {
    color: #ff8c5a;
}

footer .links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

footer .links a {
    padding: 6px 12px;
    border-radius: 12px;
    transition: background 0.3s;
}

footer .links a:hover {
    background: rgba(255,107,53,0.1);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #ff6b35, #ff8c5a);
    color: #fff;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255,107,53,0.4);
    transition: opacity 0.4s, transform 0.4s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    border: none;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    box-shadow: 0 8px 30px rgba(255,107,53,0.6);
    transform: translateY(-4px) scale(1.05);
}

/* Scroll Animation */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    h2 { font-size: 1.8rem; }
    .grid { grid-template-columns: 1fr; }
    .contact-info div { padding: 16px 24px; }
    .hero .btn { padding: 14px 36px; font-size: 1rem; }
    .stat-number { font-size: 2.5rem; }
}

@media (max-width: 480px) {
    .hero { padding: 60px 0; }
    .hero h1 { font-size: 1.8rem; }
    section { padding: 60px 0; }
    .card { padding: 20px; }
    .banner-slide { padding: 20px; }
}

/* Additional Enhancements */
::selection {
    background: rgba(255,107,53,0.3);
    color: #fff;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff6b35, #ff9a56);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff8c5a;
}