/* 全局样式与变量 */
:root {
    --bg-color: #0a0a0f;
    --text-color: #e0e0e0;
    --primary-color: #00f0ff; /* 霓虹蓝 */
    --secondary-color: #ff00e6; /* 霓虹粉 */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Helvetica Neue', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* 动态背景 Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.logo .dot {
    color: var(--secondary-color);
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 30px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* 移动端菜单 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    right: 0;
    width: 200px;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    z-index: 99;
    border-radius: 0 0 0 15px;
    border-left: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.mobile-menu a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: color 0.3s;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    color: var(--primary-color);
}

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

/* 首屏区域 */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 6rem;
    font-weight: 900;
    letter-spacing: 10px;
    color: #fff;
    text-transform: uppercase;
    position: relative;
}

/* 故障动画效果 */
.glitch {
    position: relative;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--secondary-color);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--primary-color);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(17px, 9999px, 94px, 0); }
    20% { clip: rect(43px, 9999px, 64px, 0); }
    40% { clip: rect(86px, 9999px, 14px, 0); }
    60% { clip: rect(24px, 9999px, 68px, 0); }
    80% { clip: rect(65px, 9999px, 33px, 0); }
    100% { clip: rect(12px, 9999px, 81px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    20% { clip: rect(13px, 9999px, 47px, 0); }
    40% { clip: rect(89px, 9999px, 13px, 0); }
    60% { clip: rect(11px, 9999px, 69px, 0); }
    80% { clip: rect(54px, 9999px, 23px, 0); }
    100% { clip: rect(31px, 9999px, 86px, 0); }
}

.subtitle {
    font-size: 1.5rem;
    margin-top: 20px;
    color: #aaa;
    letter-spacing: 2px;
}

.cta-buttons {
    margin-top: 40px;
}

.btn-primary, .btn-secondary {
    padding: 15px 40px;
    font-size: 1rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 30px var(--primary-color);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: #fff;
    box-shadow: 0 0 30px var(--secondary-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    animation: bounce 2s infinite;
    font-size: 1.5rem;
    color: var(--primary-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* 功能区域 */
.features {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #fff;
}

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

/* 玻璃拟态卡片 */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

.icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* 小程序展示区域 */
.app-section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.app-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px;
    gap: 50px;
    flex-wrap: wrap;
}

.app-info {
    flex: 1;
    min-width: 300px;
}

.app-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.app-info p {
    color: #aaa;
    margin-bottom: 10px;
}

.hint {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-top: 30px;
}

/* 二维码样式 */
.qr-placeholder {
    margin-top: 30px;
    text-align: center;
}

.qr-code {
    width: 150px;
    height: 150px;
    background: #fff;
    margin: 0 auto 10px;
    padding: 10px;
    border-radius: 10px;
}

.qr-inner {
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.qr-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(45deg, #333 25%, transparent 25%),
        linear-gradient(-45deg, #333 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #333 75%),
        linear-gradient(-45deg, transparent 75%, #333 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0.3;
}

.qr-inner svg {
    width: 80%;
    height: 80%;
    z-index: 1;
}

/* 手机模拟器 */
.app-preview {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 300px;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: #111;
    border-radius: 30px;
    padding: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    position: relative;
    border: 4px solid #333;
}

.notch {
    width: 120px;
    height: 25px;
    background: #000;
    margin: 0 auto;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.screen {
    width: 100%;
    height: 100%;
    background: #f0f2f5;
    border-radius: 25px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.app-header {
    background: #007bff;
    color: #fff;
    padding: 20px;
    text-align: center;
    font-weight: bold;
}

.app-content {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
}

.msg {
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    font-size: 0.9rem;
}

.bot {
    background: #e4e6eb;
    color: #000;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.user {
    background: #007bff;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.app-input {
    background: #fff;
    padding: 15px;
    border-top: 1px solid #ddd;
    color: #999;
    font-size: 0.9rem;
}

/* 页脚 */
footer {
    padding: 40px 0;
    text-align: center;
    background: rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

/* 关于我们区域 */
.about-section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.about-content {
    padding: 50px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #aaa;
    margin-bottom: 40px;
}

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

.about-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

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

/* 三大人群入口 */
.audience-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-color) 0%, #111 100%);
    position: relative;
    z-index: 1;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #888;
    margin-top: -40px;
    margin-bottom: 60px;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.audience-card {
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.audience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.audience-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 240, 255, 0.1);
}

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

.audience-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.audience-card h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 15px;
}

.audience-card p {
    color: #aaa;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.audience-tag {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--primary-color);
    background: rgba(0, 240, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid rgba(0, 240, 255, 0.3);
}

/* 解决方案区域 */
.services-section {
    padding: 100px 0;
    background: #0d0d12;
    position: relative;
    z-index: 1;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 30px;
}

.service-icon {
    font-size: 2.5rem;
    width: 70px;
    height: 70px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-content h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 10px;
}

.service-content p {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 统计数据区域 */
.stats-section {
    padding: 60px 0;
    background: var(--bg-color);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
}

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

.stat-card .stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.stat-card .stat-label {
    font-size: 1rem;
    color: #666;
}

/* 分人群指南区域 */
.guide-section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.guide-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
}

.guide-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.guide-icon {
    font-size: 2.5rem;
}

.guide-header h3 {
    font-size: 1.5rem;
    color: #fff;
}

.guide-content h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.guide-content ul {
    list-style: none;
    margin-bottom: 30px;
}

.guide-content li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #aaa;
    font-size: 1rem;
}

.guide-content li:last-child {
    border-bottom: none;
}

.guide-content strong {
    color: #fff;
    margin-right: 10px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
        letter-spacing: 5px;
    }
    .navbar {
        padding: 15px 20px;
    }
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .mobile-menu.active {
        display: block;
    }
    .app-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .qr-placeholder {
        display: inline-block;
    }
    .phone-mockup {
        transform: scale(0.8);
    }
    .about-stats {
        flex-direction: column;
        align-items: center;
    }
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    .section-subtitle {
        margin-top: 0;
        margin-bottom: 50px;
    }
}

/* 针对小屏幕手机的额外调整 */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }
    .hero .subtitle {
        font-size: 1.1rem;
    }
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    .section-subtitle {
        margin-top: 0;
        margin-bottom: 40px;
        font-size: 1rem;
    }
    .btn-primary, .btn-secondary {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}

/* 针对大屏手机横屏或平板的调整 */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero h1 {
        font-size: 4rem;
        letter-spacing: 8px;
    }
}
