/* ===== 大发娱乐官网 Style.css ===== */
/* 全局重置与基础 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
    background: #f8f9fa;
    color: #1a1a2e;
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

body.dark {
    background: #0f0f1a;
    color: #e0e0e0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* 毛玻璃效果 */
.glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.glass:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

body.dark .glass {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark .glass:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* 按钮通用 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
    text-align: center;
    line-height: 1.4;
}

.btn-primary {
    background: linear-gradient(135deg, #f0c040, #e6a800);
    color: #1a1a2e;
    box-shadow: 0 4px 15px rgba(240, 192, 64, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(240, 192, 64, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid #f0c040;
    color: #f0c040;
}

.btn-outline:hover {
    background: #f0c040;
    color: #1a1a2e;
    transform: translateY(-2px);
}

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

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #f0c040;
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-title p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

body.dark .section-title p {
    color: #aaa;
}

/* 网格与弹性布局 */
.grid {
    display: grid;
    gap: 30px;
}

.flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* 滚动渐入动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar .container.flex {
    justify-content: space-between;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: #f0c040;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.nav-menu a {
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

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

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

.nav-menu a:hover {
    color: #f0c040;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #f0c040;
    transition: transform 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

#darkToggle {
    padding: 8px 16px;
    font-size: 14px;
}

/* ===== Hero 区域 ===== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

#hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(240, 192, 64, 0.15) 0%, transparent 60%),
                radial-gradient(circle at 70% 50%, rgba(240, 192, 64, 0.1) 0%, transparent 60%);
    animation: heroGlow 8s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes heroGlow {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.2) rotate(5deg); }
}

#hero .container {
    position: relative;
    z-index: 2;
}

#hero h1 {
    font-size: 64px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

#hero h1 span {
    color: #f0c040;
}

#hero p {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto 30px;
    animation: fadeInUp 1.2s ease;
}

#hero .btn {
    font-size: 18px;
    padding: 16px 40px;
    animation: fadeInUp 1.4s ease;
}

#hero .btn-outline {
    border-color: #fff;
    color: #fff;
}

#hero .btn-outline:hover {
    background: #fff;
    color: #1a1a2e;
}

#hero .flex {
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

#hero .flex span {
    animation: fadeInUp 1.6s ease;
}

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

/* ===== About 区域 ===== */
#about .grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

#about .glass {
    padding: 40px;
}

#about h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #f0c040;
}

#about p {
    margin-bottom: 15px;
}

/* ===== Milestones 区域 ===== */
#milestones {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    color: #fff;
}

#milestones .section-title h2 {
    color: #fff;
}

#milestones .section-title p {
    color: rgba(255, 255, 255, 0.7);
}

#milestones .grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

#milestones .glass {
    padding: 30px;
    text-align: center;
}

#milestones .glass:hover {
    transform: translateY(-8px) scale(1.02);
}

#milestones .glass div:first-child {
    font-size: 40px;
    font-weight: 800;
    color: #f0c040;
}

#milestones h4 {
    margin: 10px 0;
    font-size: 18px;
}

#milestones p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== Products 区域 ===== */
#products .grid {
    grid-template-columns: repeat(3, 1fr);
}

#products .glass {
    padding: 30px;
    text-align: center;
}

#products .glass div:first-child {
    font-size: 50px;
    margin-bottom: 15px;
}

#products h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

/* ===== Advantages 区域 ===== */
#advantages {
    background: #f0f0f5;
}

body.dark #advantages {
    background: #14141f;
}

#advantages .grid {
    grid-template-columns: repeat(3, 1fr);
}

#advantages .glass {
    padding: 30px;
    text-align: center;
}

#advantages .glass div:first-child {
    font-size: 40px;
    color: #f0c040;
    margin-bottom: 10px;
}

#advantages h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* ===== Solutions 区域 ===== */
#solutions .grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

#solutions .glass {
    padding: 30px;
}

#solutions h3 {
    font-size: 22px;
    color: #f0c040;
    margin-bottom: 15px;
}

/* ===== Partners 区域 ===== */
#partners {
    background: #f0f0f5;
}

body.dark #partners {
    background: #14141f;
}

#partners .flex {
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

#partners .glass {
    padding: 20px 30px;
    font-size: 20px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#partners .glass:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 30px rgba(240, 192, 64, 0.2);
}

/* ===== Testimonials 区域 ===== */
#testimonials .grid {
    grid-template-columns: repeat(3, 1fr);
}

#testimonials .glass {
    padding: 30px;
}

#testimonials .glass div:first-child {
    font-size: 30px;
    color: #f0c040;
    margin-bottom: 10px;
}

#testimonials p {
    margin-bottom: 15px;
}

#testimonials p:last-child {
    font-weight: 600;
}

/* ===== News 区域 ===== */
#news {
    background: #f0f0f5;
}

body.dark #news {
    background: #14141f;
}

#news .grid {
    grid-template-columns: repeat(3, 1fr);
}

#news .glass {
    padding: 25px;
}

#news .glass div:first-child {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}

#news h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* ===== FAQ 区域 ===== */
#faq .grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

#faq .glass {
    padding: 20px;
}

.faq-item {
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-item:hover {
    background: rgba(240, 192, 64, 0.05);
    border-radius: 12px;
}

.faq-item h3 {
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item h3 span {
    font-size: 24px;
    transition: transform 0.3s ease;
}

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

.faq-item p {
    display: none;
    margin-top: 10px;
    color: #666;
}

body.dark .faq-item p {
    color: #bbb;
}

/* ===== How To 区域 ===== */
#howto {
    background: #f0f0f5;
}

body.dark #howto {
    background: #14141f;
}

#howto .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

#howto .glass {
    padding: 30px;
    text-align: center;
}

#howto .glass div:first-child {
    font-size: 50px;
    color: #f0c040;
    margin-bottom: 15px;
    font-weight: 800;
}

#howto h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* ===== Contact 区域 ===== */
#contact .grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

#contact .glass {
    padding: 40px;
}

#contact h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #f0c040;
}

#contact p {
    margin-bottom: 10px;
}

#contact input,
#contact textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

body.dark #contact input,
body.dark #contact textarea {
    border-color: #444;
    background: rgba(0, 0, 0, 0.2);
    color: #eee;
}

#contact input:focus,
#contact textarea:focus {
    outline: none;
    border-color: #f0c040;
    box-shadow: 0 0 0 3px rgba(240, 192, 64, 0.2);
}

#contact textarea {
    resize: vertical;
    min-height: 100px;
}

#contact .btn {
    width: 100%;
}

/* ===== Footer ===== */
footer {
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

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

footer h3 {
    font-size: 24px;
    color: #f0c040;
    margin-bottom: 15px;
}

footer h4 {
    color: #fff;
    margin-bottom: 15px;
}

footer p {
    font-size: 14px;
    line-height: 1.8;
}

footer ul {
    font-size: 14px;
    line-height: 2.2;
}

footer ul li a {
    transition: color 0.3s ease, padding-left 0.3s ease;
}

footer ul li a:hover {
    color: #f0c040;
    padding-left: 5px;
}

footer .border-top {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}

/* ===== Back to Top 按钮 ===== */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f0c040;
    color: #1a1a2e;
    font-size: 24px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 999;
    transition: all 0.3s ease;
    line-height: 50px;
    text-align: center;
}

#backToTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(240, 192, 64, 0.5);
    background: #e6a800;
}

/* ===== 响应式设计 ===== */
@media (max-width: 992px) {
    #hero h1 {
        font-size: 48px;
    }
    
    #hero p {
        font-size: 18px;
    }
    
    #products .grid,
    #advantages .grid,
    #testimonials .grid,
    #news .grid,
    #howto .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #milestones .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    footer .grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .section-title p {
        font-size: 16px;
    }
    
    #hero h1 {
        font-size: 36px;
    }
    
    #hero p {
        font-size: 16px;
    }
    
    #hero .btn {
        font-size: 16px;
        padding: 14px 30px;
    }
    
    #hero .flex span {
        font-size: 14px;
    }
    
    #about .grid,
    #solutions .grid,
    #faq .grid,
    #contact .grid {
        grid-template-columns: 1fr;
    }
    
    #products .grid,
    #advantages .grid,
    #testimonials .grid,
    #news .grid,
    #howto .grid {
        grid-template-columns: 1fr;
    }
    
    #milestones .grid {
        grid-template-columns: 1fr 1fr;
    }
    
    footer .grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .menu-toggle {
        display: block !important;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(26, 26, 46, 0.95);
        padding: 20px;
        border-radius: 0 0 20px 20px;
        gap: 15px;
        backdrop-filter: blur(10px);
    }
    
    .nav-menu a {
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu a:last-child {
        border-bottom: none;
    }
    
    #backToTop {
        width: 40px;
        height: 40px;
        font-size: 20px;
        line-height: 40px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    #hero h1 {
        font-size: 28px;
    }
    
    #hero p {
        font-size: 14px;
    }
    
    #hero .btn {
        font-size: 14px;
        padding: 12px 24px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    #milestones .grid {
        grid-template-columns: 1fr;
    }
    
    #partners .flex {
        gap: 20px;
    }
    
    #partners .glass {
        padding: 15px 20px;
        font-size: 16px;
    }
}

/* ===== 暗色模式额外优化 ===== */
body.dark .navbar.scrolled {
    background: rgba(15, 15, 26, 0.95);
}

body.dark .section-title h2::after {
    background: #f0c040;
}

body.dark .btn-outline {
    border-color: #f0c040;
    color: #f0c040;
}

body.dark .btn-outline:hover {
    background: #f0c040;
    color: #0f0f1a;
}

/* ===== 打印样式 ===== */
@media print {
    .navbar,
    #backToTop,
    .menu-toggle,
    #darkToggle {
        display: none !important;
    }
    
    .section {
        padding: 30px 0;
        page-break-inside: avoid;
    }
    
    body {
        background: #fff;
        color: #000;
    }
    
    .glass {
        background: #f5f5f5;
        border: 1px solid #ddd;
        box-shadow: none;
    }
}