/* css/module1_hero.css */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #030508; /* 极深蓝/黑背景 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
}

/* 首屏全屏容器 */
.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* 粒子背景 */
#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 内容层级提升 */
.hero-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 900px;
}

/* 终端风格视窗 */
.terminal-window {
    background: rgba(10, 15, 30, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 170, 255, 0.1);
    overflow: hidden;
}

.terminal-header {
    background: #1a1b26;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-buttons .btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.btn.close { background-color: #ff5f56; box-shadow: 0 0 5px #ff5f56; }
.btn.minimize { background-color: #ffbd2e; box-shadow: 0 0 5px #ffbd2e; }
.btn.maximize { background-color: #27c93f; box-shadow: 0 0 5px #27c93f; }

.terminal-title {
    flex: 1;
    text-align: center;
    color: #a9b1d6;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.terminal-body {
    padding: 40px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 打字机标题样式 */
.glow-title {
    font-family: 'Fira Code', monospace;
    font-size: 2.2rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 170, 255, 0.8);
    line-height: 1.5;
    display: inline;
    white-space: pre-wrap; /* 允许换行 */
}

/* 强调文字颜色 */
.highlight-cyan { color: #00f3ff; }
.highlight-green { color: #27c93f; }

/* 光标闪烁动画 */
.cursor {
    display: inline-block;
    width: 12px;
    height: 2.2rem;
    background-color: #00f3ff;
    vertical-align: bottom;
    animation: blink 1s step-end infinite;
    margin-left: 5px;
    box-shadow: 0 0 10px #00f3ff;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* 副标题标签渐显 */
.hero-tags {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    opacity: 1;
    transition: opacity 1.5s ease, transform 1.5s ease;
    transform: translateY(0);
}
.hero-tags.hidden {
    opacity: 0;
    transform: translateY(20px);
}
.tag {
    font-family: 'Fira Code', monospace;
    color: #7aa2f7;
    background: rgba(122, 162, 247, 0.1);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    border: 1px solid rgba(122, 162, 247, 0.3);
}

/* 滚动提示符 */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: opacity 1s ease;
}
.scroll-indicator.hidden { opacity: 0; }
.scroll-indicator .mouse {
    width: 24px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    margin: 0 auto 10px;
    position: relative;
}
.scroll-indicator .mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}
@keyframes scrollDown {
    0% { top: 6px; opacity: 1; }
    100% { top: 18px; opacity: 0; }
}

@media (max-width: 768px) {
    .glow-title { font-size: 1.5rem; }
    .cursor { height: 1.5rem; }
    .terminal-body { padding: 20px; }
}