/* 云戏公司官网 - 数字资产中心版 */
/* 设计规范：深色主题 + 科技蓝紫渐变 */

:root {
    /* 默认配色 - 蓝紫渐变 */
    --primary-color: #dc2626;
    --primary-dark: #b91c1c;
    --secondary-color: #db2777;
    --accent-color: #f43f5e;
    --bg-dark: #0f0810;
    --bg-card: #1f0a14;
    --bg-card-hover: #2f1a24;
    --text-primary: #fdf2f8;
    --text-secondary: #fbcfe8;
    --text-muted: #f9a8d4;
    --border-color: #1f0a14;
    --gradient-primary: linear-gradient(135deg, #dc2626 0%, #db2777 100%);
    --gradient-dark: linear-gradient(135deg, #0f0810 0%, #1f0a14 100%);
    --shadow-lg: 0 10px 15px -3px rgba(220, 38, 38, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(220, 38, 38, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 40px;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0 40px;
    background: rgba(15, 23, 42, 0.98);
}

.nav-container {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
}

.nav-logo img {
    height: 40px;
    width: auto;
    border-radius: 4px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid #ffffff55;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-lang {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-lang:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

/* 汉堡菜单 - 桌面端隐藏 */
.hamburger {
    display: none;
}

/* Hero Banner */
.hero {
    padding: 120px 40px 50px 40px;
    background: url('/images/banner-bg.jpg') center / cover no-repeat;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* 区块通用样式 */
.section {
    padding: 100px 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 auto;
}

/* 卡片样式 */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

/* 网格布局 */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* 关于我们 */
.about {
    background: var(--bg-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.about-image {
    width: 100%;
    height: 400px;
    background: url('/images/index_yunyanyizhongxin.jpg') center / cover no-repeat;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: white;
}

.about-content h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.about-content p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* 产品与技术 */
.products {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #1a2332 100%);
}

/* 解决方案 */
.solutions {
    background: var(--bg-dark);
}

/* 数字资产中心 */
.assets {
    background: linear-gradient(180deg, #1a2332 0%, var(--bg-dark) 100%);
}

.asset-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto 60px;
}

.asset-category {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.asset-category:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.asset-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
}

.asset-category h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.asset-category p {
    font-size: 14px;
    color: var(--text-muted);
}

.asset-count {
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 16px;
}

/* 产品卡片样式 */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}



.product-bg-1 {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%), url('/images/index_xrxunipaishexitong.jpg');
    background-size: cover;
    background-position: center;
}

.product-bg-2 {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(14, 165, 233, 0.3) 100%), url('/images/index_shuziluanshengjuchang.jpg');
    background-size: cover;
    background-position: center;
}

.product-bg-3 {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(52, 211, 153, 0.3) 100%), url('/images/index_zhinengpaishexitong.jpg');
    background-size: cover;
    background-position: center;
}

.product-bg-4 {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(168, 85, 247, 0.3) 100%), url('/images/index_gongxingfuwupingtai.jpg');
    background-size: cover;
    background-position: center;
}

.product-bg-5 {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.3) 0%, rgba(244, 63, 94, 0.3) 100%), url('/images/index_xunipaishexitong.jpg');
    background-size: cover;
    background-position: center;
}

.product-bg-6 {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.3) 0%, rgba(239, 68, 68, 0.3) 100%), url('/images/index_zhihuiliaoyukongjian.jpg');
    background-size: cover;
    background-position: center;
}

.product-icon {
    font-size: 56px;
    position: relative;
    z-index: 1;
    color: white;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.product-content {
    padding: 24px;
}

.product-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.product-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 资源池 */
.resources {
    background: var(--bg-dark);
}

/* 案例展示 */
.cases {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #1a2332 100%);
}

/* 新闻中心 */
.news {
    background: var(--bg-dark);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.news-image {
    width: 100%;
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
}

.news-content {
    padding: 24px;
}

.news-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.news-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 页脚 */
.footer {
    background: #0a0f1a;
    border-top: 1px solid var(--border-color);
    padding: 60px 40px 30px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-logo-img {
    height: 40px;
    width: auto;
    vertical-align: middle;
    border-radius: 8px;
}
.footer-logo-text {
    line-height: 40px;
}

.footer-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    color: white;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .grid-3,
    .grid-4,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }
    
    .nav-menu {
        display: none;
    }

    .nav-btn-visit {
        display: none;
    }

    /* 汉堡菜单按钮 */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 28px;
        height: 22px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        position: relative;
        z-index: 1100;
    }
    .hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--text-primary);
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* 移动端菜单面板 */
    .nav-menu-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        background: var(--bg-dark);
        border-bottom: 1px solid var(--border-color);
        padding: 0 20px;
        margin-top: 70px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, padding 0.35s ease;
    }
    .nav-menu-mobile.active {
        max-height: 600px;
        padding: 20px 20px;
    }
    .nav-menu-mobile a {
        display: block;
        text-decoration: none;
        color: var(--text-secondary);
        font-size: 16px;
        font-weight: 500;
        padding: 12px 20px;
        transition: color 0.3s ease;
        text-align: center;
        width: 100%;
    }
    .nav-menu-mobile a:hover,
    .nav-menu-mobile a.active {
        color: var(--primary-color);
    }
    
    .hero {
        padding: 120px 20px 80px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .section {
        padding: 60px 20px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .grid-3,
    .grid-4,
    .news-grid,
    .asset-categories {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* 配色选择器样式 */
.theme-switcher {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
}

.theme-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-options {
    position: absolute;
    bottom: 60px;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    display: none;
    flex-direction: column;
    gap: 10px;
    min-width: 150px;
    box-shadow: var(--shadow-xl);
}

.theme-options.active {
    display: flex;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 14px;
}

.theme-option:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color);
}

.theme-color {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex-shrink: 0;
}

.theme-name {
    white-space: nowrap;
}

/* 子页面Hero Banner - 全局样式 */
.page-hero {
    padding: 150px 40px 80px;
    background: url('../images/banner-bg.png') center / cover no-repeat;
    text-align: center;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.page-hero > * {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}


