/* 全局重置与变量 */
:root {
    --bg-color: #0a0b10;
    --bg-darker: #050508;
    --text-color: #e0e6ed;
    --accent-color: #00f3ff; /* 赛博青 */
    --secondary-color: #7000ff;
    --font-main: 'Fira Code', monospace; /* 科技感等宽字体 */
}

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

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

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 11, 16, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--accent-color);
}

/* Hero 区域 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at center, #1a1c29 0%, #0a0b10 100%);
}

.hero-content {
    text-align: left;
    z-index: 2;
    width: 100%;
}

.terminal-text {
    color: var(--accent-color);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.cursor {
    display: inline-block;
    width: 10px;
    background-color: var(--accent-color);
    animation: blink 1s infinite;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-family: 'Share Tech Mono', monospace;
}

.highlight {
    color: transparent;
    -webkit-text-stroke: 1px var(--accent-color);
    position: relative;
}

.subtitle {
    font-size: 1.2rem;
    color: #8892b0;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* 按钮风格 */
.btn-tech {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: bold;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-tech::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: var(--accent-color);
    transition: 0.3s;
    z-index: -1;
}

.btn-tech:hover {
    color: #000;
}

.btn-tech:hover::before {
    left: 0;
}

/* 动画 */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* 通用 Section */
.section {
    padding: 80px 0;
}

.bg-darker {
    background-color: var(--bg-darker);
    border-top: 1px solid #1f2235;
    border-bottom: 1px solid #1f2235;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent-color);
    position: relative;
}

/* 网格卡片 */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.1);
}

.icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: bold;
}

/* 技术栈标签 */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.tech-stack span {
    padding: 8px 16px;
    background: #111;
    border: 1px solid #333;
    color: #aaa;
    font-size: 0.9rem;
}

.tech-stack span:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* 联系方式框 */
.contact-box {
    border: 1px dashed #333;
    padding: 2rem;
    display: inline-block;
    background: #000;
}

.contact-box a:hover {
    text-decoration: underline;
    color: var(--accent-color);
}

/* 底部 */
footer {
    padding: 2rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: #555;
    border-top: 1px solid #111;
}

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

/* 响应式简单处理 */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .nav-links { display: none; } /* 简单隐藏，实际项目可加JS展开 */
}