/* ============================================================
 * home.css — 首页 index.html 专属（渐变背景 / 胶囊导航 / 页脚）
 * ============================================================ */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--page-grad) fixed;
    color: #fff;
    padding: 24px;
}
/* —— 背景装饰：梦想之路的光带小路（内联 SVG，左下 → 右上） —— */
.road {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
/* 亮段沿路径循环前进；dasharray 60+160=220，位移一整个周期无缝衔接 */
@keyframes road-march {
    to { stroke-dashoffset: -220; }
}
.road-march {
    animation: road-march 6s linear infinite;
}
/* 系统要求减少动态效果时，只保留静态光带 */
@media (prefers-reduced-motion: reduce) {
    .road-march { animation: none; }
}

/* 定位元素默认画在普通流内容之上，故正文需显式抬到光带上面 */
.hero, .nav, .tip {
    position: relative;
    z-index: 1;
}

.hero {
    font-size: 72px;
    letter-spacing: 16px;
    margin-bottom: 48px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
/* —— 导航：分组卡片（个股独占整行 + 行业 / 我的 两列） —— */
.nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 460px));
    gap: 18px;
    margin-bottom: 40px;
}
.nav .group {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    padding: 18px 20px 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 24px rgba(8, 16, 40, 0.28);
    transition: border-color 0.25s ease, background 0.25s ease;
}
.nav .group:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.09);
}
/* 「个股」内容最多，横跨整行 */
.nav .group.wide { grid-column: 1 / -1; }
.nav .group h3 {
    font-size: 15px;
    font-weight: normal;
    letter-spacing: 4px;
    color: #8fc2ff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.nav .group h3::before {
    content: "";
    width: 5px;
    height: 16px;
    border-radius: 3px;
    background: #8fc2ff;
}
.nav .group .sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.nav .links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.nav .links a {
    color: #e8f0ff;
    text-decoration: none;
    font-size: 15px;
    padding: 7px 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    white-space: nowrap;
    transition: all 0.25s ease;
}
.nav .links a:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}
/* 窄屏：三张卡收成单列 */
@media (max-width: 860px) {
    .nav { grid-template-columns: 1fr; }
}
.tip {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
}
