/* ==========================================
   科技风个人网站 - CSS样式
   ========================================== */

/* CSS变量定义 */
:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #0f0f2a;
    --bg-card: #12122a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0c0;
    --text-muted: #6b6b8a;
    --accent-cyan: #00f0ff;
    --accent-blue: #0080ff;
    --accent-purple: #8000ff;
    --accent-pink: #ff00aa;
    --gradient-primary: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue), var(--accent-purple));
    --gradient-secondary: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    --border-color: rgba(0, 240, 255, 0.2);
    --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.3);
    --glow-purple: 0 0 20px rgba(128, 0, 255, 0.3);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Noto Sans SC', sans-serif;
}

/* 重置和基础样式 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* 响应式字体：最小14px，最大18px，根据视口宽度自适应 */
    font-size: clamp(14px, 0.875vw + 12px, 18px);
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

/* 粒子背景画布 */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

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

/* 全局文字排版优化 - 防止孤行寡行 */
p, .hero-desc, .advantages-intro, .advantage-card p,
.timeline-desc, .project-slide-desc, .detail-value,
.edu-major, .highlight-item, .contact-desc {
    /* 防止最后一行只有1-2个字 */
    orphans: 3;
    widows: 3;
    /* 优化文字换行 */
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* 渐变文字 */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    font-family: var(--font-body);
    white-space: nowrap;
    box-sizing: border-box;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    border: none;
    box-shadow: var(--glow-cyan);
}

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

.btn-outline {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(0, 128, 255, 0.15));
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 240, 255, 0.4);
}

.btn-outline:hover {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.3), rgba(0, 128, 255, 0.3));
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(128, 0, 255, 0.2), rgba(0, 128, 255, 0.2));
    color: var(--text-primary);
    border: 1px solid rgba(128, 0, 255, 0.4);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(128, 0, 255, 0.4), rgba(0, 128, 255, 0.4));
    border-color: rgba(128, 0, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(128, 0, 255, 0.4);
}

/* ==========================================
   导航栏 - 重新设计
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.nav-brand {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 1vw + 0.5rem, 1.8rem);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    position: relative;
}

.nav-brand::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan), 0 0 20px var(--accent-cyan);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
    50% { opacity: 0.5; transform: translateY(-50%) scale(1.2); }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
    background: rgba(0, 240, 255, 0.03);
    padding: 8px 12px;
    border-radius: 50px;
    border: 1px solid rgba(0, 240, 255, 0.1);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(0, 240, 255, 0.1);
}

.nav-links a.active {
    color: var(--bg-primary);
    background: var(--gradient-primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    background: rgba(0, 240, 255, 0.2);
    border-color: var(--accent-cyan);
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--accent-cyan);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

/* ==========================================
   Hero 区域
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 130px 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
    width: 100%;
    box-sizing: border-box;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
    font-family: var(--font-display);
    letter-spacing: 2px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 1.5vw + 0.5rem, 1.7rem);
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.hero-desc {
    color: var(--text-muted);
    font-size: clamp(0.95rem, 0.8vw + 0.5rem, 1.2rem);
    margin-bottom: 20px;
    line-height: 1.8;
    /* 强制显示为一行，左对齐 */
    white-space: nowrap;
    text-align: left;
}

/* Hero特质轮播 */
.hero-traits {
    margin-bottom: 30px;
    padding: 12px 0;
}

.trait-carousel {
    position: relative;
    height: 32px;
    overflow: hidden;
    background: rgba(0, 240, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.trait-item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--accent-cyan);
    font-size: 1rem;
    padding: 0 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

.trait-item.active {
    opacity: 1;
    visibility: visible;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
    background: rgba(0, 240, 255, 0.03);
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: 16px;
    padding: 20px 30px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
    transform: translateY(-3px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-display);
}

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

.hero-actions {
    display: flex;
    gap: 20px;
}

/* Hero 视觉效果 */
.hero-visual {
    flex: 0 0 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-circle {
    position: relative;
    width: 350px;
    height: 350px;
}

.circle-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.ring-1 {
    inset: 0;
    border-color: var(--accent-cyan);
    animation: rotate 20s linear infinite;
    opacity: 0.3;
}

.ring-2 {
    inset: 30px;
    border-color: var(--accent-blue);
    animation: rotate 15s linear infinite reverse;
    opacity: 0.5;
}

.ring-3 {
    inset: 60px;
    border-color: var(--accent-purple);
    animation: rotate 10s linear infinite;
    opacity: 0.7;
}

.circle-core {
    position: absolute;
    inset: 90px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-cyan), inset 0 0 30px rgba(0, 240, 255, 0.1);
    border: 1px solid var(--border-color);
}

.circle-core span {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 区块通用样式
   ========================================== */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: clamp(1.75rem, 2.5vw + 0.5rem, 2.8rem);
    text-align: center;
    margin-bottom: 60px;
    font-family: var(--font-display);
}

/* ==========================================
   个人优势
   ========================================== */
.advantages-intro {
    text-align: center;
    max-width: 980px;
    margin: 0 auto 50px;
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 2.0;
    /* 设置合适宽度使文字整齐分为2行 */
    word-break: keep-all;
    overflow-wrap: break-word;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.advantage-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.advantage-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
}

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

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--accent-cyan);
}

.advantage-card h3 {
    font-size: clamp(1.1rem, 1vw + 0.3rem, 1.4rem);
    margin-bottom: 15px;
    color: var(--text-primary);
}

.advantage-card p {
    color: var(--text-secondary);
    font-size: clamp(0.9rem, 0.5vw + 0.5rem, 1rem);
    line-height: 1.8;
}

/* ==========================================
   工作经历
   ========================================== */
.experience {
    background: var(--bg-secondary);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 30px);
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 30px);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent-cyan);
    z-index: 1;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    max-width: 350px;
    transition: all var(--transition-normal);
}

.timeline-content:hover {
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
}

.timeline-header {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--accent-cyan);
    font-family: var(--font-display);
}

.timeline-company {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.timeline-title {
    font-size: clamp(1.1rem, 1vw + 0.3rem, 1.3rem);
    margin-bottom: 10px;
    color: var(--text-primary);
}

.timeline-desc {
    color: var(--text-secondary);
    font-size: clamp(0.85rem, 0.5vw + 0.5rem, 0.95rem);
    line-height: 1.7;
    margin-bottom: 15px;
}

/* 工作经历成就标签 */
.timeline-achievements {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.achievement-tag {
    padding: 5px 12px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    border-radius: 15px;
    font-size: 0.75rem;
    color: var(--accent-cyan);
}

.timeline-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.timeline-skills span {
    padding: 4px 10px;
    background: var(--bg-secondary);
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ==========================================
   项目经历 - 连续横向播放流
   ========================================== */
.project-carousel-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.project-carousel {
    display: flex;
    gap: 25px;
    will-change: transform;
}

.project-slide {
    flex: 0 0 420px;
    min-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s ease;
    cursor: pointer;
    max-height: none;
}

.project-slide:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 240, 255, 0.2);
}

.project-slide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.project-slide-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.slide-counter {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-display);
}

.project-slide-title {
    font-size: clamp(1.1rem, 1vw + 0.3rem, 1.35rem);
    font-weight: 700;
    margin-bottom: 6px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-slide-subtitle {
    font-size: clamp(0.85rem, 0.5vw + 0.4rem, 0.9rem);
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.project-slide-desc {
    font-size: clamp(0.82rem, 0.4vw + 0.5rem, 0.88rem);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 18px;
}

.project-slide-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(0, 240, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 0.78rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

.detail-value {
    font-size: 0.82rem;
    color: var(--text-primary);
    line-height: 1.5;
}

/* 隐藏指示器 */
.project-carousel-indicators {
    display: none;
}

/* 隐藏轮播按钮 */
.carousel-btn {
    display: none;
}

/* 项目卡片样式（保留用于其他地方） */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.project-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
}

.project-card:hover::after {
    opacity: 1;
}

.project-header {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.project-tag {
    padding: 5px 12px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--accent-cyan);
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.project-subtitle {
    color: var(--accent-cyan);
    font-size: 1rem;
    margin-bottom: 15px;
}

.project-desc {
    margin-bottom: 15px;
}

.project-desc p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
}

/* 项目亮点轮播 */
.project-highlights {
    margin-bottom: 15px;
}

.highlight-carousel {
    position: relative;
    height: 28px;
    overflow: hidden;
    background: rgba(0, 240, 255, 0.05);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.highlight-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 0 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

.highlight-text.active {
    opacity: 1;
    visibility: visible;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-tech span {
    padding: 5px 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.project-result {
    display: flex;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.result-item {
    text-align: center;
    flex: 1;
}

.result-number {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================
   专业技能
   ========================================== */
.skills {
    background: var(--bg-secondary);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* 桌面端隐藏技能轮播指示器 */
.skills-carousel-indicators {
    display: none;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    transition: all var(--transition-normal);
}

.skill-category:hover {
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.category-icon {
    font-size: 1.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    padding: 8px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    cursor: default;
}

.skill-tag:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* ==========================================
   教育背景
   ========================================== */
.education-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    transition: all var(--transition-normal);
}

.education-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
}

.edu-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.edu-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--accent-cyan);
}

.edu-content {
    flex: 1;
}

.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.edu-header h3 {
    font-size: 1.6rem;
    color: var(--text-primary);
}

.edu-date {
    color: var(--accent-cyan);
    font-family: var(--font-display);
    font-size: 1rem;
}

.edu-major {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.edu-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 1rem;
}

.highlight-icon {
    font-size: 1.2rem;
}

/* 教育背景研究方向轮播 */
.edu-research {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.edu-research h4 {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 12px;
}

.research-carousel {
    position: relative;
    height: 32px;
    overflow: hidden;
    background: rgba(0, 240, 255, 0.05);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.research-item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--accent-cyan);
    font-size: 0.95rem;
    padding: 0 15px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

.research-item.active {
    opacity: 1;
    visibility: visible;
}

/* 联系方式荣誉轮播 */
.honor-section {
    margin: 30px 0;
}

.honor-title {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: center;
}

.honor-carousel {
    position: relative;
    height: 44px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    max-width: 450px;
    margin: 0 auto;
}

.honor-item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-primary);
    font-size: 1rem;
    padding: 0 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

.honor-item.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================
   联系方式
   ========================================== */
.contact-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-desc {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 8px;
    line-height: 2.0;
    text-align: center;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    white-space: nowrap;
}

.contact-desc:last-of-type {
    margin-bottom: 30px;
}

.contact-highlights {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* Web端：highlight-row容器内的标签也保持flex布局 */
.contact-highlights .highlight-row {
    display: contents;
}

.highlight-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.highlight-box:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.highlight-box .highlight-icon {
    font-size: 1.2rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-normal);
}

.contact-item:hover {
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
    transform: translateY(-3px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-cyan);
}

.contact-item span {
    font-size: 1.1rem;
}

/* ==========================================
   页脚
   ========================================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
}

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

.footer-brand {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-icp {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.footer-icp a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-icp a:hover {
    color: var(--accent-cyan);
}

/* ==========================================
   动画效果
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 240, 255, 0.5);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   响应式设计
   ========================================== */

/* 平板 */
@media (max-width: 992px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        flex: 0 0 auto;
        margin-top: 40px;
    }

    .tech-circle {
        width: 280px;
        height: 280px;
    }

    .circle-core {
        inset: 70px;
    }

    .circle-core span {
        font-size: 3rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 60px;
        padding-right: 0;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-content {
        max-width: 100%;
    }
}

/* 手机 */
@media (max-width: 768px) {
    /* ====== 全局移动端优化 ====== */
    html {
        font-size: 15px;
    }
    
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    * {
        box-sizing: border-box;
    }

    /* ====== 导航栏移动端优化 ====== */
    .navbar {
        padding: 8px 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: 48px;
        flex-wrap: wrap;
        width: 100%;
        box-sizing: border-box;
    }

    .nav-brand {
        font-size: 1.3rem;
        position: relative;
        order: 1;
    }

    .nav-brand::before {
        left: -12px;
        width: 5px;
        height: 5px;
    }

    .nav-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        width: 38px;
        height: 38px;
        background: rgba(0, 240, 255, 0.1);
        border: 1px solid rgba(0, 240, 255, 0.3);
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 1001;
        order: 2;
    }

    .nav-toggle:hover {
        background: rgba(0, 240, 255, 0.2);
        border-color: var(--accent-cyan);
    }

    .nav-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--accent-cyan);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 48px;
        left: auto;
        right: 16px;
        width: auto;
        min-width: 140px;
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 10px 12px;
        gap: 4px;
        border: 1px solid rgba(0, 240, 255, 0.2);
        border-radius: 12px;
        z-index: 1000;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }

    .nav-links.active {
        display: flex;
        animation: fadeIn 0.2s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-5px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 12px 16px;
        font-size: 0.95rem;
        border-radius: 8px;
        border: 1px solid transparent;
        transition: all 0.3s ease;
        text-align: right;
    }

    .nav-links a:hover,
    .nav-links a:active {
        background: rgba(0, 240, 255, 0.1);
        border-color: rgba(0, 240, 255, 0.3);
        color: var(--accent-cyan);
    }

    /* ====== Hero区域移动端优化 ====== */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 70px 16px 50px;
        gap: 30px;
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
        order: 1;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 14px;
        letter-spacing: 1.5px;
    }

    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 1.15rem;
        margin-bottom: 16px;
    }

    .hero-desc {
        font-size: 0.8rem;
        line-height: 1.7;
        margin-bottom: 16px;
        /* 移动端允许换行 */
        white-space: normal;
        orphans: 3;
        widows: 3;
        word-break: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        box-sizing: border-box;
        text-align: left;
    }

    .hero-traits {
        margin-bottom: 24px;
    }

    .trait-carousel {
        height: 36px;
    }

    .trait-item {
        font-size: 0.9rem;
        padding: 0 12px;
        /* 确保文字不换行 */
        white-space: nowrap;
    }

    .hero-stats {
        gap: 10px;
        justify-content: center;
        margin-bottom: 28px;
        flex-wrap: wrap;
        width: 100%;
        box-sizing: border-box;
    }

    .stat-item {
        flex: 1 1 75px;
        min-width: 75px;
        max-width: 100px;
        background: rgba(0, 240, 255, 0.03);
        border: 1px solid rgba(0, 240, 255, 0.1);
        border-radius: 12px;
        padding: 10px 8px;
        box-sizing: border-box;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.72rem;
        /* 防止标签文字换行成单字 */
        white-space: nowrap;
    }

    .hero-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        gap: 6px !important;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-actions .btn,
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary,
    .hero-actions .btn-outline {
        flex: 1;
        min-width: 0;
        max-width: none;
        padding: 8px 10px;
        font-size: 0.72rem !important;
        white-space: nowrap;
        box-sizing: border-box;
    }

    .hero-visual {
        order: 2;
        flex: 0 0 auto;
        margin-top: 0;
    }

    .tech-circle {
        width: 200px;
        height: 200px;
    }

    .ring-1 { inset: 0; }
    .ring-2 { inset: 20px; }
    .ring-3 { inset: 40px; }

    .circle-core {
        inset: 55px;
    }

    .circle-core span {
        font-size: 2.2rem;
    }

    /* ====== 区块通用样式 ====== */
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 40px;
    }

    .container {
        padding: 0 16px;
    }

    /* 移动端隐藏桌面端换行符 */
    .desktop-only {
        display: none;
    }

    /* ====== 个人优势移动端优化 ====== */
    .advantages-intro {
        font-size: 0.85rem;
        line-height: 1.8;
        margin-bottom: 30px;
        padding: 0 8px;
        text-align: left;
        /* 移动端允许换行但保证每行不少于5个字 */
        white-space: normal;
        orphans: 3;
        widows: 3;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .advantage-card {
        padding: 16px;
        border-radius: 14px;
    }

    .advantage-card h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .advantage-card p {
        font-size: 0.85rem;
        line-height: 1.7;
        orphans: 3;
        widows: 3;
    }

    /* 图标和标题同行 */
    .card-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        vertical-align: middle;
        margin-right: 10px;
    }

    .card-icon svg {
        width: 18px;
        height: 18px;
    }

    .advantage-card h3 {
        display: inline;
        vertical-align: middle;
    }

    /* ====== 工作经历时间线移动端优化 ====== */
    .experience {
        padding: 60px 0;
    }

    .timeline::before {
        left: 16px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 50px;
        padding-right: 0;
        margin-bottom: 30px;
    }

    .timeline-dot {
        left: 16px;
        width: 14px;
        height: 14px;
    }

    .timeline-content {
        padding: 18px;
        border-radius: 12px;
        max-width: 100%;
    }

    .timeline-header {
        gap: 6px;
        margin-bottom: 10px;
    }

    .timeline-date {
        font-size: 0.8rem;
    }

    .timeline-company {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .timeline-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .timeline-desc {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 12px;
        /* 防止孤行和寡行 */
        orphans: 3;
        widows: 3;
    }

    .timeline-achievements {
        gap: 6px;
        margin-bottom: 10px;
    }

    .achievement-tag {
        padding: 4px 10px;
        font-size: 0.7rem;
        /* 防止单字换行 */
        white-space: nowrap;
    }

    .timeline-skills {
        gap: 5px;
    }

    .timeline-skills span {
        padding: 3px 8px;
        font-size: 0.65rem;
        /* 防止单字换行 */
        white-space: nowrap;
    }

    /* ====== 项目轮播移动端优化 ====== */
    .projects {
        padding: 60px 0;
    }

    .project-carousel-container {
        padding: 15px 0;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .project-carousel {
        gap: 12px;
        padding: 0 10px;
    }

    .project-slide {
        flex: 0 0 280px;
        min-width: 280px;
        max-width: 85vw;
        padding: 18px;
        border-radius: 14px;
        box-sizing: border-box;
    }

    .project-slide-header {
        margin-bottom: 12px;
    }

    .project-slide-tags {
        gap: 6px;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .project-tag {
        padding: 4px 8px;
        font-size: 0.65rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .slide-counter {
        font-size: 0.75rem;
    }

    .project-slide-title {
        font-size: 1.15rem;
        margin-bottom: 4px;
    }

    .project-slide-subtitle {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    .project-slide-desc {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 14px;
        /* 防止孤行和寡行 */
        orphans: 3;
        widows: 3;
    }

    .project-slide-details {
        gap: 8px;
        padding: 12px;
        border-radius: 8px;
    }

    .detail-label {
        font-size: 0.72rem;
    }

    .detail-value {
        font-size: 0.78rem;
        line-height: 1.45;
        /* 防止孤行和寡行 */
        orphans: 3;
        widows: 3;
    }

    /* ====== 专业技能移动端优化 - 轮播样式 ====== */
    .skills {
        padding: 40px 0 30px;
    }

    .skills-container {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 0;
        position: relative;
        padding-bottom: 20px;
    }

    .skill-category {
        display: none;
        padding: 14px 16px 10px;
        border-radius: 16px;
        width: 100%;
        max-width: 340px;
        min-height: 180px;
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        box-sizing: border-box;
        /* 渐变边框效果 */
        background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                    linear-gradient(135deg, rgba(0, 240, 255, 0.3), rgba(128, 0, 255, 0.3)) border-box;
        border: 1px solid transparent;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .skill-category.active {
        display: flex;
        flex-direction: column;
        opacity: 1;
        transform: translateX(0);
    }

    .category-title {
        font-size: 1rem;
        margin-bottom: 9px;
        padding-bottom: 7px;
        border-bottom: 1px solid rgba(0, 240, 255, 0.15);
        flex-shrink: 0;
    }

    .category-icon {
        font-size: 1.1rem;
    }

    .skill-tags {
        gap: 20px 12px;
        justify-content: center;
        align-content: flex-start;
        line-height: 1.6;
    }

    .skill-tag {
        padding: 5px 10px;
        font-size: 0.8rem;
        white-space: nowrap;
        border-radius: 6px;
    }

    /* 轮播指示器 */
    .skills-carousel-indicators {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 16px;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .skills-indicator {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: rgba(0, 240, 255, 0.2);
        border: 1px solid rgba(0, 240, 255, 0.3);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .skills-indicator:hover {
        background: rgba(0, 240, 255, 0.4);
    }

    .skills-indicator.active {
        background: var(--accent-cyan);
        border-color: var(--accent-cyan);
        box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
        transform: scale(1.2);
    }

    /* ====== 教育背景移动端优化 ====== */
    .education-card {
        flex-direction: column;
        padding: 24px;
        border-radius: 14px;
        gap: 20px;
    }

    .edu-icon {
        width: 60px;
        height: 60px;
        border-radius: 14px;
    }

    .edu-icon svg {
        width: 28px;
        height: 28px;
    }

    .edu-content {
        width: 100%;
    }

    .edu-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 8px;
    }

    .edu-header h3 {
        font-size: 1.35rem;
    }

    .edu-date {
        font-size: 0.9rem;
    }

    .edu-major {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }

    .edu-highlights {
        gap: 10px;
    }

    .highlight-item {
        font-size: 0.9rem;
        /* 防止孤行和寡行 */
        orphans: 3;
        widows: 3;
    }

    .edu-research {
        margin-top: 16px;
        padding-top: 16px;
    }

    .edu-research h4 {
        font-size: 0.9rem;
    }

    .research-carousel {
        height: 30px;
    }

    .research-item {
        font-size: 0.88rem;
        /* 确保文字不换行 */
        white-space: nowrap;
    }

    /* ====== 联系方式移动端优化 ====== */
    .contact-content {
        padding: 0 8px;
    }

    .contact-desc {
        font-size: 0.95rem;
        margin-bottom: 24px;
        line-height: 1.7;
        text-align: left;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: break-word;
        orphans: 3;
        widows: 3;
    }

    .contact-highlights {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin-bottom: 30px;
        width: 100%;
        box-sizing: border-box;
        padding: 0 8px;
    }

    .highlight-box {
        justify-content: center;
        padding: 8px 10px;
        font-size: 0.95rem;
        white-space: nowrap;
        box-sizing: border-box;
        width: auto;
        display: inline-flex;
    }

    /* 第一行：第一个标签居中，宽度自适应文字 */
    .highlight-box-first {
        /* flex容器的居中子元素，宽度自适应内容 */
    }

    /* 第二行：第二、第三个标签并排居中 - 使用更高优先级选择器覆盖桌面端display:contents */
    .contact-highlights .highlight-row {
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
        width: 100%;
    }
    
    .contact-highlights .highlight-row .highlight-box {
        display: inline-flex;
        flex: none;
    }

    .honor-section {
        margin: 24px 0;
    }

    .honor-title {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    .honor-carousel {
        height: 40px;
    }

    .honor-item {
        font-size: 0.9rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 12px;
    }

    .contact-item {
        width: 100%;
        justify-content: center;
        padding: 16px 20px;
        border-radius: 12px;
    }

    .contact-icon {
        width: 44px;
        height: 44px;
    }

    .contact-icon svg {
        width: 20px;
        height: 20px;
    }

    .contact-item span {
        font-size: 1rem;
    }

    /* ====== 页脚移动端优化 ====== */
    .footer {
        padding: 24px 0;
    }

    .footer-brand {
        font-size: 1rem;
    }

    .footer-copyright {
        font-size: 0.8rem;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    /* ====== 基础调整 ====== */
    html {
        font-size: 14px;
    }
    
    body {
        font-size: 14px;
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    /* ====== 导航栏小屏优化 ====== */
    .navbar {
        padding: 8px 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .nav-brand {
        font-size: 1.2rem;
    }

    .nav-toggle {
        width: 40px;
        height: 40px;
    }

    .nav-toggle span {
        width: 18px;
    }

    /* ====== Hero区域小屏优化 ====== */
    .hero {
        padding: 70px 12px 40px;
        gap: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 5px 10px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    .hero-desc {
        font-size: 0.78rem;
        line-height: 1.6;
        margin-bottom: 12px;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .trait-carousel {
        height: 32px;
    }

    .trait-item {
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .hero-stats {
        gap: 6px;
        margin-bottom: 20px;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
    }

    .stat-item {
        flex: 1 1 60px;
        min-width: 60px;
        max-width: 80px;
        padding: 8px 5px;
        box-sizing: border-box;
    }

    .stat-number {
        font-size: 1.1rem;
    }

    .stat-label {
        font-size: 0.58rem;
        white-space: nowrap;
    }

    .hero-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        gap: 4px !important;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-actions .btn,
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary,
    .hero-actions .btn-outline {
        flex: 1;
        min-width: 0;
        max-width: none;
        padding: 7px 8px;
        font-size: 0.68rem !important;
        white-space: nowrap;
        box-sizing: border-box;
    }

    .tech-circle {
        width: 150px;
        height: 150px;
    }

    .ring-2 { inset: 15px; }
    .ring-3 { inset: 32px; }
    .circle-core { inset: 45px; }
    .circle-core span { font-size: 1.8rem; }

    /* ====== 区块通用 ====== */
    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .container {
        padding: 0 12px;
    }

    /* ====== 个人优势小屏优化 ====== */
    .advantages-intro {
        font-size: 0.8rem;
        margin-bottom: 24px;
        /* 移动端允许换行但保证每行不少于5个字 */
        white-space: normal;
        orphans: 3;
        widows: 3;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    .advantages-grid {
        gap: 12px;
    }

    .advantage-card {
        padding: 16px;
    }

    .advantage-card h3 {
        font-size: 1.05rem;
    }

    .advantage-card p {
        font-size: 0.85rem;
        line-height: 1.6;
        /* 防止孤行和寡行 */
        orphans: 3;
        widows: 3;
    }

    .card-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 12px;
    }

    .card-icon svg {
        width: 22px;
        height: 22px;
    }

    /* ====== 工作经历小屏优化 ====== */
    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 44px;
        margin-bottom: 24px;
    }

    .timeline::before {
        left: 12px;
    }

    .timeline-dot {
        left: 12px;
        width: 12px;
        height: 12px;
    }

    .timeline-content {
        padding: 14px;
    }

    .timeline-title {
        font-size: 1rem;
    }

    .timeline-desc {
        font-size: 0.85rem;
        /* 防止孤行和寡行 */
        orphans: 3;
        widows: 3;
    }

    /* ====== 项目轮播小屏优化 ====== */
    .project-slide {
        flex: 0 0 240px;
        min-width: 240px;
        max-width: 85vw;
        padding: 14px;
        box-sizing: border-box;
    }

    .project-slide-title {
        font-size: 1rem;
    }

    .project-slide-subtitle {
        font-size: 0.75rem;
    }

    .project-slide-desc {
        font-size: 0.82rem;
        margin-bottom: 12px;
        /* 防止孤行和寡行 */
        orphans: 3;
        widows: 3;
    }

    .project-slide-details {
        padding: 10px;
        gap: 6px;
    }

    .detail-label {
        font-size: 0.68rem;
    }

    .detail-value {
        font-size: 0.74rem;
        /* 防止孤行和寡行 */
        orphans: 3;
        widows: 3;
    }

    /* ====== 专业技能小屏优化 ====== */
    .skills {
        padding: 50px 0;
    }

    .skill-category {
        padding: 24px 18px;
        max-width: 360px;
        min-height: 0;
    }

    .category-title {
        font-size: 1rem;
        margin-bottom: 14px;
        padding-bottom: 10px;
    }

    .skill-tags {
        gap: 12px 8px;
        line-height: 1.7;
    }

    .skill-tag {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .category-title {
        font-size: 1rem;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .skill-tags {
        gap: 8px;
    }

    .skill-tag {
        padding: 4px 9px;
        font-size: 0.72rem;
        white-space: nowrap;
    }

    .skills-carousel-indicators {
        gap: 8px;
        margin-top: 12px;
    }

    .skills-indicator {
        width: 8px;
        height: 8px;
    }

    /* ====== 教育背景小屏优化 ====== */
    .education-card {
        padding: 18px;
        gap: 16px;
    }

    .edu-icon {
        width: 50px;
        height: 50px;
    }

    .edu-icon svg {
        width: 24px;
        height: 24px;
    }

    .edu-header h3 {
        font-size: 1.2rem;
    }

    .edu-major {
        font-size: 0.88rem;
    }

    .highlight-item {
        font-size: 0.85rem;
        /* 防止孤行和寡行 */
        orphans: 3;
        widows: 3;
    }

    /* ====== 联系方式小屏优化 ====== */
    .contact-desc {
        font-size: 0.88rem;
        /* 防止孤行和寡行 */
        orphans: 3;
        widows: 3;
    }

    .highlight-box {
        padding: 8px 16px;
        font-size: 0.85rem;
        /* 防止单字换行 */
        white-space: nowrap;
    }

    .contact-item {
        padding: 14px 16px;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
    }

    .contact-icon svg {
        width: 18px;
        height: 18px;
    }

    /* ====== 按钮小屏优化 ====== */
    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* 移动端隐藏滚动条，保持功能 */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 4px;
    }
    
    ::-webkit-scrollbar-thumb {
        background: rgba(0, 240, 255, 0.3);
    }
}

/* 选择文本样式 */
::selection {
    background: rgba(0, 240, 255, 0.3);
    color: var(--text-primary);
}

/* ==========================================
   微信内置浏览器适配
   ========================================== */

/* 微信浏览器字体大小适配 */
body {
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
}

/* 微信浏览器安全区域适配 - 底部工具栏 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .footer {
        padding-bottom: calc(30px + env(safe-area-inset-bottom));
    }
    
    .contact {
        padding-bottom: calc(60px + env(safe-area-inset-bottom));
    }
}

/* 微信浏览器和iPhone底部工具栏遮挡处理 */
@media (max-width: 768px) {
    /* 页面底部留出安全距离 */
    body {
        padding-bottom: constant(safe-area-inset-bottom);
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    /* 导航栏适配 */
    .navbar {
        padding-top: constant(safe-area-inset-top);
        padding-top: env(safe-area-inset-top);
    }
    
    /* Hero区域适配刘海屏 */
    .hero {
        padding-top: calc(70px + constant(safe-area-inset-top));
        padding-top: calc(70px + env(safe-area-inset-top));
    }
    
    /* 页脚安全区域 */
    .footer {
        padding-bottom: calc(30px + constant(safe-area-inset-bottom));
        padding-bottom: calc(30px + env(safe-area-inset-bottom));
    }
    
    /* 联系方式区域底部安全距离 */
    .contact {
        padding-bottom: calc(60px + constant(safe-area-inset-bottom));
        padding-bottom: calc(60px + env(safe-area-inset-bottom));
    }
    
    /* 防止微信浏览器长按弹出菜单 */
    .hero-actions .btn {
        -webkit-touch-callout: none;
    }
    
    /* 优化微信浏览器触摸反馈 */
    .skill-category,
    .highlight-box,
    .contact-item,
    .nav-links a {
        -webkit-tap-highlight-color: rgba(0, 240, 255, 0.1);
    }
    
    /* 优化iOS滚动 */
    body {
        -webkit-text-size-adjust: 100%;
        -webkit-overflow-scrolling: touch;
    }
}

/* iPhone/iPad 专用适配（不影响Surface Duo等Android设备） */
@supports (-webkit-touch-callout: none) and (not (-webkit-user-select: none)) {
    @media (max-width: 768px) {
        /* 专业技能区域iPhone优化 */
        .skills {
            padding-bottom: calc(30px + constant(safe-area-inset-bottom));
            padding-bottom: calc(30px + env(safe-area-inset-bottom));
        }
        
        /* iPhone卡片宽度和高度适配 */
        .skill-category {
            max-width: 200px;
            min-height: 140px;
            padding: 12px 12px 8px;
        }
        
        /* iPhone标题优化 */
        .skill-category .category-title {
            margin-bottom: 6px;
            padding-bottom: 4px;
            font-size: 0.9rem;
        }
        
        /* iPhone标签优化 - 间距再增加50% */
        .skill-category .skill-tags {
            gap: 18px 12px;
        }
        
        .skill-category .skill-tag {
            padding: 3px 6px;
            font-size: 0.72rem;
        }
    }
}

/* 小屏手机微信适配 */
@media (max-width: 480px) {
    .hero {
        padding-top: calc(70px + constant(safe-area-inset-top));
        padding-top: calc(70px + env(safe-area-inset-top));
    }
    
    .footer {
        padding-bottom: calc(24px + constant(safe-area-inset-bottom));
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }
}
