/* home.css */
body {
    background-color: #050a10; /* 深空蓝黑底色，衬托数据感 */
    margin: 0;
    overflow: hidden;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.container {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #e0e6ed;
    pointer-events: none; /* 让背景可以通过容器交互 */
}

/* 允许内容区域响应交互 */
.main-content, .corner-info, .pro-btn, .chart-wrapper {
    pointer-events: auto;
}

/* 扫描线效果 */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(52, 152, 219, 0.15);
    z-index: 20;
    animation: scan 4s linear infinite;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

@keyframes scan {
    0% { top: -10%; }
    100% { top: 110%; }
}

/* 角落信息 */
.corner-info {
    position: absolute;
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 2px;
    color: #3498db;
    padding: 30px;
    opacity: 0.6;
}
.tl { top: 0; left: 0; }
.tr { top: 0; right: 0; }

/* 主内容布局 */
.main-content {
    max-width: 1100px;
    width: 100%;
    padding: 0 50px;
    text-align: center;
}

.hero-section {
    margin-bottom: 80px;
}

.hero-section h1 {
    font-size: 64px;
    font-weight: 200;
    letter-spacing: 15px;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.sub-reveal {
    font-size: 12px;
    letter-spacing: 8px;
    color: #3498db;
}

/* 引导文案 */
.intro-text {
    max-width: 700px;
    margin: 0 auto 60px;
    text-align: center;
}

.intro-text p {
    font-size: 16px;
    line-height: 2;
    color: #a0aec0;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.intro-text p:last-child {
    margin-bottom: 0;
    color: #718096;
}

/* 数据图表区域 */
.chart-wrapper {
    background: rgba(10, 15, 25, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(52, 152, 219, 0.15);
    border-radius: 4px;
    padding: 20px 30px;
    margin: 0 auto 50px;
    max-width: 800px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(52, 152, 219, 0.1);
}

.chart-title {
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 2px;
    color: #718096;
}

.chart-status {
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 2px;
    color: #3498db;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: #2ecc71;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 5px #2ecc71; }
    50% { opacity: 0.5; box-shadow: 0 0 15px #2ecc71; }
}

.chart-container {
    width: 100%;
    height: 200px;
}

/* 高级按钮 */
.pro-btn {
    display: inline-block;
    padding: 20px 60px;
    border: 1px solid rgba(52, 152, 219, 0.5);
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 5px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.pro-btn:hover {
    background: rgba(52, 152, 219, 0.2);
    border-color: #3498db;
    box-shadow: 0 0 30px rgba(52, 152, 219, 0.4);
    letter-spacing: 8px;
}

/* 平板适配 */
@media screen and (max-width: 1024px) {
    .hero-section h1 {
        font-size: 48px;
        letter-spacing: 10px;
    }

    .hero-section {
        margin-bottom: 50px;
    }

    .intro-text {
        margin-bottom: 40px;
    }

    .chart-wrapper {
        margin-bottom: 40px;
    }
}

/* 手机适配 */
@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .container {
        height: auto;
        min-height: 100vh;
        padding: 60px 0;
    }

    .main-content {
        padding: 0 20px;
    }

    /* 角落信息在小屏隐藏 */
    .corner-info {
        display: none;
    }

    .hero-section {
        margin-bottom: 40px;
    }

    .hero-section h1 {
        font-size: 32px;
        letter-spacing: 8px;
        line-height: 1.4;
    }

    .sub-reveal {
        font-size: 11px;
        letter-spacing: 5px;
    }

    .intro-text {
        margin-bottom: 30px;
    }

    .intro-text p {
        font-size: 14px;
        line-height: 1.8;
    }

    .chart-wrapper {
        padding: 15px 20px;
        margin-bottom: 30px;
    }

    .chart-container {
        height: 180px;
    }

    .pro-btn {
        padding: 16px 40px;
        font-size: 13px;
        letter-spacing: 3px;
    }

    .pro-btn:hover {
        letter-spacing: 5px;
    }
}

/* 小屏手机 */
@media screen and (max-width: 480px) {
    .hero-section h1 {
        font-size: 26px;
        letter-spacing: 5px;
    }

    .sub-reveal {
        font-size: 10px;
        letter-spacing: 3px;
    }

    .intro-text p {
        font-size: 13px;
        line-height: 1.7;
    }

    .chart-container {
        height: 150px;
    }

    .chart-title {
        font-size: 10px;
    }

    .pro-btn {
        padding: 14px 30px;
        font-size: 12px;
        letter-spacing: 2px;
    }
}
