* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #06B6D4;
    --secondary-color: #3B82F6;
    --accent-color: #10B981;
    --dark-bg: #0F172A;
    --light-bg: #F1F5F9;
    --text-dark: #0F172A;
    --text-light: #64748B;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu > li {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(6, 182, 212, 0.1);
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(6, 182, 212, 0.1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* 下拉菜单 */
.nav-dropdown {
    position: relative;
}

.nav-dropdown::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background: var(--white);
    min-width: 180px;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 10px 0;
    list-style: none;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: rgba(6, 182, 212, 0.1);
    color: var(--primary-color);
}

/* 首页英雄区 */
.hero-section {
    padding: 150px 0 80px;
    background: url('img/bj.png') center center / cover no-repeat;
    position: relative;
    color: var(--white);
    margin-top: 70px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 28px;
    margin-bottom: 15px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-description {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.btn {
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* 手机模型 */
.phone-mockup {
    width: 300px;
    height: 600px;
    background: var(--dark-bg);
    border-radius: 40px;
    padding: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    animation: float 3s ease-in-out infinite;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.app-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}

.live-demo {
    text-align: center;
    color: var(--white);
}

.live-badge {
    background: rgba(239, 68, 68, 0.9);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

/* 直播间展示区 */
.live-rooms-section {
    padding: 100px 0;
    background: var(--white);
}

.live-rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.live-room-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.live-room-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.live-room-video {
    position: relative;
    width: 100%;
    padding-top: 133.33%; /* 3:4 ratio */
    background: #000;
    overflow: hidden;
}

.live-room-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.live-room-card:hover .live-overlay {
    opacity: 1;
}

.live-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    align-self: flex-start;
    animation: pulse 2s ease-in-out infinite;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.live-room-card:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
}

.live-room-info {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
}

.live-room-info .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.live-room-info .nickname {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 视频弹窗 */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.video-modal.active {
    display: block;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
}

.video-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    animation: scaleIn 0.3s ease;
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.video-modal-content video {
    width: 100%;
    height: auto;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 特色功能区 */
.features-section {
    padding: 100px 0;
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 64px;
    height: 64px;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 下载区域 */
.download-section {
    padding: 100px 0;
    background: url('img/bg.0ee8ad155b7ac2d28654e53717510cdb.jpg') center center / cover no-repeat;
}

.download-section .section-title {
    color: var(--white);
}

.download-section .section-subtitle {
    color: var(--white);
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.download-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.download-card-wrapper {
    flex: 0 0 auto;
}

.download-single {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.download-card {
    background: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 50%, #10B981 100%);
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
}

.download-icon {
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-icon svg {
    width: 80px;
    height: 80px;
}

.download-card h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.download-card p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-download {
    background: var(--white);
    color: var(--primary-color);
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-download:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

.qr-section {
    margin-top: 80px;
    text-align: center;
}

.qr-section-inline {
    flex: 0 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-code {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
}

.qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.qr-placeholder svg {
    width: 80px;
    height: 80px;
}

.qr-placeholder p {
    font-size: 16px;
    color: var(--text-light);
    margin: 0;
}

.qr-text {
    color: var(--white);
    font-size: 16px;
}

/* 关于我们区域 */
.about-section {
    padding: 100px 0;
    background: url('img/bg.de441cd2.jpg') center center / cover no-repeat;
    color: var(--white);
}

.about-section .section-title {
    color: var(--white);
}

.about-content {
    max-width: 900px;
    margin: 60px auto 0;
    text-align: center;
}

.about-text {
    font-size: 18px;
    line-height: 2;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.about-text p {
    font-size: 18px;
    line-height: 2;
    color: var(--white);
    margin: 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 法律法规弹窗 */
.legal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.legal-modal.active {
    display: block;
}

.legal-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.legal-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    overflow-y: auto;
    animation: scaleIn 0.3s ease;
}

.legal-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.legal-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

#legalTitle {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    padding-right: 40px;
}

.legal-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
}

.legal-text p {
    margin-bottom: 15px;
}

.legal-text h1, .legal-text h2, .legal-text h3 {
    margin-top: 20px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

/* 页脚 */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-company {
    margin-bottom: 10px;
}

.footer-company p {
    margin: 8px 0;
    line-height: 1.6;
}

.company-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px !important;
}

.company-address,
.company-phone {
    font-size: 14px;
    opacity: 0.85;
}

.company-phone a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.company-phone a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-copyright {
    margin: 10px 0;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-icp {
    margin-top: 5px;
}

.footer-icp a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.7;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.footer-icp a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* 响应式设计 */
@media (max-width: 968px) {
    .hero-section .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 24px;
    }

    .live-rooms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-section {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .phone-mockup {
        width: 250px;
        height: 500px;
    }

    .section-title {
        font-size: 32px;
    }

    .features-grid,
    .download-options {
        grid-template-columns: 1fr;
    }

    .live-rooms-grid {
        grid-template-columns: 1fr;
    }

    .video-modal-content {
        width: 95%;
    }

    .video-modal-close {
        top: -45px;
        width: 36px;
        height: 36px;
    }

    .download-container {
        flex-direction: column;
        gap: 30px;
    }

    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        padding-left: 20px;
        margin-top: 0;
    }

    .nav-dropdown.active .dropdown-menu {
        display: block;
    }

    .legal-modal-content {
        width: 95%;
        padding: 30px 20px;
        max-height: 90vh;
    }

    #legalTitle {
        font-size: 22px;
    }
}

