/* ============================================================
   C7娱乐官网 - 完整样式表 (style.css)
   包含：UI组件、响应式、暗色模式、动画、玻璃态、渐变等
   所有样式内联，无外部依赖
   ============================================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0a0e27;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
}

body.light {
    background: #f4f6fc;
    color: #1a1a2e;
}

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

a:hover {
    color: #ffed4a;
}

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

ul {
    list-style: none;
}

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

/* ---------- 通用区块 ---------- */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: #ffd700;
}

body.light .section-title {
    color: #0a0e27;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 50px;
}

body.light .section-subtitle {
    color: #555;
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #0a0e27;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid #ffd700;
    color: #ffd700;
    box-shadow: none;
}

.btn-outline:hover {
    background: #ffd700;
    color: #0a0e27;
}

/* ---------- 毛玻璃效果 ---------- */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

body.light .glass {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.1);
}

/* ---------- 渐变Banner背景 ---------- */
.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255, 215, 0, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 20%, rgba(0, 150, 255, 0.05) 0%, transparent 50%);
    z-index: 0;
}

/* ---------- 圆角卡片通用 ---------- */
.hero-card,
.stat-item,
.product-card,
.feature-item,
.solution-card,
.service-item,
.partner-item,
.testimonial-card,
.news-card,
.faq-item,
.howto-step,
.contact-form input,
.contact-form textarea {
    border-radius: 20px;
}

/* ---------- 头部导航 ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s;
}

.header.scrolled {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

body.light .header.scrolled {
    background: rgba(244, 246, 252, 0.95);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffd700;
    letter-spacing: 1px;
}

.logo span {
    color: #fff;
}

body.light .logo span {
    color: #0a0e27;
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav a {
    color: #ccc;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: #ffd700;
}

body.light .nav a {
    color: #333;
}

body.light .nav a:hover,
body.light .nav a.active {
    color: #0a0e27;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: width 0.3s;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

/* ---------- 汉堡菜单 ---------- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

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

/* ---------- 主题切换 ---------- */
.theme-toggle {
    background: none;
    border: none;
    color: #ffd700;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s;
}

.theme-toggle:hover {
    transform: rotate(20deg);
}

/* ---------- Hero区域 ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #fff;
}

body.light .hero-content h1 {
    color: #0a0e27;
}

.hero-content h1 span {
    color: #ffd700;
}

.hero-content p {
    font-size: 1.2rem;
    color: #bbb;
    margin-bottom: 30px;
    max-width: 500px;
}

body.light .hero-content p {
    color: #555;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    text-align: center;
}

.hero-card .icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero-card h3 {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

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

body.light .hero-card p {
    color: #555;
}

/* ---------- Banner轮播 ---------- */
.banner-slider {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin: 40px 0;
}

.banner-slide {
    display: none;
    padding: 60px 40px;
    text-align: center;
    min-height: 300px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.banner-slide.active {
    display: flex;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.banner-slide h2 {
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 15px;
}

.banner-slide p {
    font-size: 1.1rem;
    color: #ddd;
    max-width: 600px;
}

body.light .banner-slide p {
    color: #444;
}

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

.banner-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #555;
    cursor: pointer;
    transition: all 0.3s;
}

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

/* ---------- 统计数据 ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 60px 0;
}

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

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffd700;
}

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

body.light .stat-label {
    color: #555;
}

/* ---------- 关于我们 ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 20px;
}

body.light .about-text h2 {
    color: #0a0e27;
}

.about-text p {
    margin-bottom: 15px;
    color: #ccc;
}

body.light .about-text p {
    color: #444;
}

.about-image {
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255,215,0,0.05);
    padding: 40px;
    text-align: center;
}

.about-image svg {
    max-width: 300px;
    margin: 0 auto;
}

/* ---------- 时间线 ---------- */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #ffd700, transparent);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding: 20px 0;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    align-self: flex-end;
    justify-content: flex-start;
    left: 50%;
}

.timeline-item:nth-child(even) {
    left: 0;
}

.timeline-content {
    padding: 20px 30px;
    width: 90%;
    position: relative;
}

.timeline-content .year {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffd700;
}

.timeline-content h4 {
    color: #fff;
    margin: 8px 0;
}

body.light .timeline-content h4 {
    color: #0a0e27;
}

.timeline-content p {
    color: #aaa;
    font-size: 0.9rem;
}

body.light .timeline-content p {
    color: #555;
}

/* ---------- 产品网格 ---------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    padding: 30px;
    text-align: center;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.product-card h3 {
    color: #ffd700;
    margin-bottom: 10px;
}

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

body.light .product-card p {
    color: #555;
}

/* ---------- 特点网格 ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    padding: 30px;
    text-align: center;
}

.feature-item .num {
    font-size: 2rem;
    font-weight: 800;
    color: #ffd700;
    margin-bottom: 10px;
}

.feature-item h4 {
    color: #fff;
    margin-bottom: 8px;
}

body.light .feature-item h4 {
    color: #0a0e27;
}

.feature-item p {
    color: #aaa;
    font-size: 0.9rem;
}

body.light .feature-item p {
    color: #555;
}

/* ---------- 解决方案 ---------- */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.solution-card {
    padding: 35px;
}

.solution-card h3 {
    color: #ffd700;
    margin-bottom: 12px;
}

.solution-card p {
    color: #bbb;
}

body.light .solution-card p {
    color: #555;
}

/* ---------- 服务网格 ---------- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.service-item {
    padding: 30px;
    text-align: center;
}

.service-item .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.service-item h4 {
    color: #fff;
    margin-bottom: 8px;
}

body.light .service-item h4 {
    color: #0a0e27;
}

.service-item p {
    color: #aaa;
    font-size: 0.9rem;
}

body.light .service-item p {
    color: #555;
}

/* ---------- 合作伙伴 ---------- */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
}

.partner-item {
    padding: 20px;
    text-align: center;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.partner-item:hover {
    opacity: 1;
}

.partner-item svg {
    max-height: 40px;
    margin: 0 auto;
    fill: #aaa;
}

body.light .partner-item svg {
    fill: #555;
}

/* ---------- 客户评价 ---------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    padding: 30px;
}

.testimonial-card .stars {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.testimonial-card p {
    color: #ccc;
    font-style: italic;
    margin-bottom: 15px;
}

body.light .testimonial-card p {
    color: #555;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-card .author .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffd700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #0a0e27;
}

.testimonial-card .author .name {
    font-weight: 600;
    color: #fff;
}

body.light .testimonial-card .author .name {
    color: #0a0e27;
}

.testimonial-card .author .role {
    font-size: 0.85rem;
    color: #aaa;
}

body.light .testimonial-card .author .role {
    color: #555;
}

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

.news-card {
    padding: 25px;
}

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

.news-card h4 {
    color: #fff;
    margin-bottom: 10px;
}

body.light .news-card h4 {
    color: #0a0e27;
}

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

body.light .news-card p {
    color: #555;
}

/* ---------- FAQ ---------- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 18px 0;
}

body.light .faq-item {
    border-color: rgba(0,0,0,0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #fff;
    font-size: 1.05rem;
}

body.light .faq-question {
    color: #0a0e27;
}

.faq-question .toggle {
    font-size: 1.4rem;
    transition: transform 0.3s;
    color: #ffd700;
}

.faq-item.open .faq-question .toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
    color: #bbb;
}

body.light .faq-answer {
    color: #555;
}

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

/* ---------- 如何开始 ---------- */
.howto-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    counter-reset: step;
}

.howto-step {
    padding: 30px;
    text-align: center;
    position: relative;
}

.howto-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: -10px;
    left: -10px;
    width: 40px;
    height: 40px;
    background: #ffd700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #0a0e27;
    font-size: 1.2rem;
}

.howto-step h4 {
    color: #fff;
    margin-bottom: 10px;
}

body.light .howto-step h4 {
    color: #0a0e27;
}

.howto-step p {
    color: #aaa;
    font-size: 0.9rem;
}

body.light .howto-step p {
    color: #555;
}

/* ---------- 联系 ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    color: #ffd700;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 10px;
    color: #ccc;
}

body.light .contact-info p {
    color: #444;
}

.contact-info .item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.contact-info .item .icon {
    color: #ffd700;
    font-size: 1.2rem;
    min-width: 24px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 1rem;
    margin-bottom: 15px;
    outline: none;
    transition: border 0.3s;
}

body.light .contact-form input,
body.light .contact-form textarea {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.15);
    color: #0a0e27;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #ffd700;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* ---------- 页脚 ---------- */
.footer {
    background: rgba(0,0,0,0.3);
    padding: 60px 0 30px;
    margin-top: 60px;
}

body.light .footer {
    background: rgba(0,0,0,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col p,
.footer-col a {
    color: #aaa;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
}

body.light .footer-col p,
body.light .footer-col a {
    color: #555;
}

.footer-col a:hover {
    color: #ffd700;
}

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

body.light .footer-bottom {
    border-color: rgba(0,0,0,0.1);
    color: #888;
}

.footer-bottom a {
    color: #777;
}

body.light .footer-bottom a {
    color: #888;
}

.footer-bottom a:hover {
    color: #ffd700;
}

/* ---------- 回到顶部 ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffd700;
    color: #0a0e27;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255,215,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

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

.back-to-top:hover {
    transform: translateY(-5px);
}

/* ---------- 移动端菜单 ---------- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(10,14,39,0.98);
    backdrop-filter: blur(20px);
    padding: 80px 30px 30px;
    transition: right 0.4s;
    z-index: 999;
}

body.light .mobile-menu {
    background: rgba(244,246,252,0.98);
}

.mobile-menu.open {
    right: 0;
}

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

body.light .mobile-menu a {
    color: #333;
    border-color: rgba(0,0,0,0.05);
}

.mobile-menu a:hover {
    color: #ffd700;
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ---------- 搜索框 ---------- */
.search-box {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto 40px;
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 1rem;
    outline: none;
}

body.light .search-box input {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.15);
    color: #0a0e27;
}

.search-box input:focus {
    border-color: #ffd700;
}

.search-box button {
    padding: 12px 24px;
    border-radius: 50px;
    border: none;
    background: #ffd700;
    color: #0a0e27;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.search-box button:hover {
    background: #ffed4a;
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #ffd700;
    border-radius: 4px;
}

body.light ::-webkit-scrollbar-track {
    background: #f4f6fc;
}

body.light ::-webkit-scrollbar-thumb {
    background: #0a0e27;
}

/* ---------- IntersectionObserver 动画 ---------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- 响应式设计 ---------- */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content p {
        margin: 0 auto 30px;
    }
    .hero-buttons {
        justify-content: center;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .timeline::before {
        left: 20px;
    }
    .timeline-item,
    .timeline-item:nth-child(odd) {
        width: 100%;
        left: 0;
        justify-content: flex-start;
        padding-left: 50px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .section {
        padding: 50px 0;
    }
    .stat-number {
        font-size: 2rem;
    }
}