/* index.css 仅包含首页特有的样式 */

/* 首屏 Hero Section */
.hero {
    min-height: 70vh; /* 适当降低首屏总体高度 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* 居中对齐 */
    text-align: center; /* 文本居中 */
    padding-top: 4rem;
    padding-bottom: 4rem;
    position: relative;
    background: #0a0a0a; /* 纯净深色背景，更好衬托红蓝白颗粒 */
    color: #ffffff; /* 文字反转为纯白 */
    overflow: hidden; /* 防止颗粒绘制溢出 */
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* 去除了 pointer-events: none 以便让 Canvas 能够接收鼠标事件 */
}

.hero h1, .hero p, .hero .actions {
    position: relative;
    z-index: 1; /* 确保内容在画布上方 */
    pointer-events: auto; /* 保证上层按钮和文字正常交互 */
}

.hero h1 {
    font-size: 5rem;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    color: #ffffff; /* 覆盖原本的 fg 颜色 */
}

.hero p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.85); /* 覆盖原本的 muted 颜色 */
    max-width: 800px;
    margin: 0 auto 3rem; /* 水平居中 */
}

.hero .btn {
    background: #ffffff;
    color: var(--fg);
    border-color: #ffffff;
}

.hero .btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--fg);
}

.hero .btn-outline {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
}

.hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.hero .actions {
    display: flex;
    gap: 1rem;
    justify-content: center; /* 按钮居中 */
}

/* 首页新增：核心服务预览区块 */
.home-section {
    padding: 6rem 4rem;
    text-align: center;
}

.home-section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.home-section-subtitle {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 4rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: left; /* 卡片内文本左对齐 */
}

.service-card {
    border: 1px solid var(--border);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--fg);
}

.service-card i {
    width: 32px;
    height: 32px;
    margin-bottom: 1.5rem;
    color: var(--fg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--muted);
    line-height: 1.6;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .hero h1 { font-size: 3.5rem; }
    .home-section { padding: 4rem 2rem; }
}