/* 全局样式和CSS变量 */
:root {
    /* 颜色主题 */
    --primary-color: #00d4ff;
    --secondary-color: #ff3366;
    --accent-color: #00ff88;
    --bg-dark: #0a0e27;
    --bg-darker: #050810;
    --bg-card: #1a1f3a;
    --text-primary: #ffffff;
    --text-secondary: #a0a6b8;
    --text-accent: #00d4ff;
    --border-color: #2a3042;
    --success-color: #00ff88;
    --warning-color: #ffaa00;
    --error-color: #ff3366;
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #0080ff 100%);
    --gradient-secondary: linear-gradient(135deg, #ff3366 0%, #ff6b3d 100%);
    --gradient-success: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    --gradient-cyber: linear-gradient(45deg, #00d4ff, #ff3366, #00ff88);
    
    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
    
    /* 字体 */
    --font-primary: 'Rajdhani', sans-serif;
    --font-mono: 'Orbitron', monospace;
    
    /* 动画时长 */
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* 背景动画容器 */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--bg-darker);
}

/* 矩阵雨效果 */
.matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="20" fill="%2300d4ff" opacity="0.1">01010110</text></svg>') repeat;
    animation: matrixFall 20s linear infinite;
}

/* 网格背景 */
.cyber-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 30s linear infinite;
}

/* 浮动粒子 */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.floating-particles::before,
.floating-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}

.floating-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-particles::after {
    top: 60%;
    left: 80%;
    animation-delay: 5s;
}

/* 导航栏 */
.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    margin-right: 0.5rem;
    font-size: 2rem;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.nav-link:hover::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

/* 按钮样式 */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* 英雄区域 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 5rem 2rem 2rem;
    position: relative;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 500px; /* 固定右侧宽度 */
    gap: 4rem;
    align-items: center;
}

.hero-visual {
    width: 100%;
    max-width: 500px;
    overflow: hidden; /* 防止内容溢出 */
    transition: opacity 0.3s ease-out; /* 淡出过渡效果 */
    will-change: transform, opacity; /* 优化性能 */
}

.hero-title {
    font-family: var(--font-mono);
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    /* 使用清晰的青色 */
    color: #00d4ff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    /* 提高文字渲染质量 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* 添加简单的颜色变化动画 */
    animation: colorShift 4s ease-in-out infinite;
}

/* 简单的颜色变化动画，不会造成模糊 */
@keyframes colorShift {
    0%, 100% { 
        color: #00d4ff; 
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    }
    25% { 
        color: #00ff88; 
        text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    }
    50% { 
        color: #ff3366; 
        text-shadow: 0 0 20px rgba(255, 51, 102, 0.5);
    }
    75% { 
        color: #ffaa00; 
        text-shadow: 0 0 20px rgba(255, 170, 0, 0.5);
    }
}



.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.stat-number {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* 网络终端效果 */
.cyber-terminal {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    width: 100%;
    max-width: 500px; /* 固定最大宽度 */
    min-width: 400px; /* 设置最小宽度 */
}

.terminal-header {
    background: var(--bg-darker);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: center; /* 标题居中 */
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: relative; /* 为绝对定位的控制按钮提供参考 */
}

.terminal-title {
    font-family: var(--font-mono);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.terminal-controls {
    position: absolute; /* 绝对定位到左上角 */
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* macOS风格的控制按钮颜色 */
.control.red { 
    background: #ff5f57; 
    border: 1px solid #e0443e;
}

.control.yellow { 
    background: #ffbd2e; 
    border: 1px solid #dea123;
}

.control.green { 
    background: #28ca42; 
    border: 1px solid #1aab29;
}

/* 控制按钮悬停效果 */
.control:hover {
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* 添加macOS风格的按钮图标（可选） */
.control.red:hover::after {
    content: "×";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8px;
    color: #8b0000;
    font-weight: bold;
}

.control.yellow:hover::after {
    content: "−";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8px;
    color: #8b4500;
    font-weight: bold;
}

.control.green:hover::after {
    content: "+";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8px;
    color: #006400;
    font-weight: bold;
}

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
}

.terminal-line {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    width: 100%;
    min-height: 1.2em;
}

.prompt {
    color: var(--success-color);
    white-space: nowrap;
    flex-shrink: 0;
}

.command {
    color: var(--text-primary);
    margin-left: 0.5rem;
    flex: 1;
    min-width: 0; /* 允许flex item收缩 */
    word-break: break-all; /* 允许在任何字符处换行 */
    overflow-wrap: break-word; /* 在合适的断点换行 */
    white-space: pre-wrap; /* 保持空格，允许换行 */
    max-width: calc(100% - 120px); /* 为prompt留出空间 */
}

.terminal-output {
    margin-top: 1rem;
}

.scan-result {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    background: rgba(0, 212, 255, 0.1);
}

.success { color: var(--success-color); }
.warning { color: var(--warning-color); }
.info { color: var(--primary-color); }

/* 特色功能区域 */
.features {
    padding: 5rem 2rem;
    background: rgba(26, 31, 58, 0.5);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3列布局，2行共6个 */
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    /* 确保卡片高度一致 */
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1; /* 让段落占据剩余空间 */
}

.feature-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto; /* 推到底部 */
}

.tech-tag {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--primary-color);
}

/* 模块展示区域 */
.modules {
    padding: 5rem 2rem;
}

.modules-container {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.module-tab-nav {
    display: flex;
    background: var(--bg-darker);
}

.tab-btn {
    flex: 1;
    padding: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
}

.tab-btn.active {
    color: var(--primary-color);
    background: var(--bg-card);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.module-content {
    padding: 2rem;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.module-item {
    background: rgba(0, 212, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all var(--transition-normal);
}

.module-item:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
}

.module-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.module-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 0.75rem;
}

.module-header h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.module-item p {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 统计数据区域 */
.stats-section {
    padding: 3rem 2rem;
    background: var(--bg-card);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-darker);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.stat-info .stat-number {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-info .stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 关于我们区域 */
.about-section {
    padding: 5rem 2rem;
    background: var(--bg-dark);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.about-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.about-card:hover::before {
    transform: scaleX(1);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.about-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.company-info {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 3rem;
    text-align: center;
}

.company-description h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.company-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.company-values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all var(--transition-normal);
}

.value-item:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-3px);
}

.value-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.value-item span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* 页脚 */
.footer {
    background: var(--bg-darker);
    padding: 3rem 2rem 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p,
.footer-section li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-visual {
        max-width: 100%;
        position: static !important; /* 移动端禁用视差效果 */
        transform: none !important;
        opacity: 1 !important;
    }
    
    .cyber-terminal {
        min-width: 300px;
        max-width: 100%;
    }
    
    .command {
        font-size: 0.8rem;
        max-width: calc(100% - 100px);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .auth-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr; /* 移动端单列 */
    }
    
    .about-grid {
        grid-template-columns: 1fr; /* 关于我们移动端单列 */
    }
    
    .company-values {
        grid-template-columns: repeat(2, 1fr); /* 价值观移动端2列 */
        gap: 1rem;
    }
}

/* 平板尺寸 */
@media (max-width: 1024px) and (min-width: 769px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr); /* 平板端2列3行 */
    }
    
    .about-grid {
        grid-template-columns: repeat(2, 1fr); /* 关于我们平板端2列 */
    }
    
    .company-values {
        grid-template-columns: repeat(4, 1fr); /* 价值观保持4列 */
    }
}
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* 动画关键帧 */
@keyframes matrixFall {
    0% { transform: translateY(-100vh); }
    100% { transform: translateY(100vh); }
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glitch效果 */
.glitch {
    position: relative;
    animation: glitch 2s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 确保伪元素不影响主文字的渲染 */
    pointer-events: none;
    -webkit-background-clip: none;
    background-clip: initial;
}

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: var(--error-color);
    z-index: -1;
    opacity: 0.3;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: var(--primary-color);
    z-index: -2;
    opacity: 0.3;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(-2px, -2px); }
    20% { transform: translate(2px, 2px); }
    30% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    15% { transform: translate(2px, -2px); }
    25% { transform: translate(-2px, 2px); }
    35% { transform: translate(2px, 2px); }
    45% { transform: translate(-2px, -2px); }
}

/* 打字机效果 */
.typing {
    /* 移除 border-right，通过JavaScript动态添加光标 */
    /* 移除 white-space: nowrap 允许换行 */
    /* 移除 overflow: hidden 防止文字被截断 */
    /* 移除默认的typing动画，使用JavaScript控制 */
    position: relative;
}

/* 打字机光标 */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: var(--primary-color);
    animation: blink-caret 0.75s step-end infinite;
    margin-left: 1px;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary-color); }
}