/* 个人博客样式 - 手绘漫画风格 - 橙色系 */

/* Google Fonts - 手绘风格字体 */
@import url('https://fonts.googleapis.com/css2?family=ZCOOL+XiaoWei&family=Ma+Shan+Zheng&family=Noto+Serif+SC:wght@400;600;700&display=swap');

:root {
    /* 橙色系配色 */
    --primary: #FF6B35;          /* 活力橙 */
    --primary-dark: #E85A24;     /* 深橙 */
    --primary-light: #FF8F66;    /* 浅橙 */
    --accent: #FFB347;           /* 日落黄 */
    --accent-warm: #FFCC02;      /* 明黄 */
    --accent-red: #FF4E50;       /* 番茄红 */

    /* 背景色 - 温暖纸张感 */
    --bg: #FFF8F0;               /* 米白纸张 */
    --bg-secondary: #FFF0E0;     /* 暖白 */
    --bg-tertiary: #FFFFFF;      /* 纯白 */
    --bg-dark: #2D1810;          /* 深棕 */

    /* 文字色 */
    --text: #2D1810;             /* 深棕 */
    --text-secondary: #5C3D2E;   /* 棕色 */
    --text-tertiary: #8B6B5B;    /* 浅棕 */
    --text-inverse: #FFF8F0;     /* 暖白 */

    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #FFB347 100%);
    --gradient-accent: linear-gradient(135deg, #FFB347 0%, #FFCC02 100%);
    --gradient-hero: linear-gradient(135deg, #FF6B35 0%, #FF8F66 50%, #FFB347 100%);
    --gradient-warm: linear-gradient(135deg, #FF4E50 0%, #FF6B35 100%);

    /* 阴影 - 手绘风格（不规则） */
    --shadow-sketch: 3px 3px 0 rgba(45, 24, 16, 0.15);
    --shadow-sketch-lg: 5px 5px 0 rgba(45, 24, 16, 0.2);
    --shadow-sketch-hover: 3px 4px 0 rgba(45, 24, 16, 0.25);
    --shadow-rough: 4px 4px 0px rgba(45, 24, 16, 0.12);
    --shadow-comic: 6px 6px 0 rgba(255, 107, 53, 0.3);

    /* 圆角 - 漫画风格（稍有不规则感） */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* 过渡 */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-bounce: 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Serif SC', 'ZCOOL XiaoWei', serif;
    color: var(--text);
    line-height: 1.8;
    background: var(--bg);
    overflow-x: hidden;
}

/* 手绘风格标题字体 */
h1, h2, h3, .logo {
    font-family: 'Ma Shan Zheng', 'ZCOOL XiaoWei', cursive, serif;
}

/* ==================== 背景装饰 ==================== */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

/* 漫画风格网点背景 */
.bg-decoration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 107, 53, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: halftoneFloat 20s ease-in-out infinite;
}

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

/* 漫画风格斜线装饰 */
.bg-decoration::after {
    content: '';
    position: absolute;
    top: 10%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 179, 71, 0.05) 10px,
        rgba(255, 179, 71, 0.05) 12px
    );
    border-radius: 50%;
    animation: comicFloat 15s ease-in-out infinite;
}

@keyframes comicFloat {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(10deg) scale(1.1); }
}

/* 动态橙色光球 */
.floating-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.2;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--gradient-warm);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    bottom: -50px;
    left: -50px;
    animation-delay: -10s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    opacity: 0.1;
    animation-delay: -5s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* 鼠标跟随光点 - 漫画风格 */
.cursor-dot {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 0 10px var(--primary), 0 0 20px var(--accent);
}

.cursor-dot.active {
    opacity: 1;
}

/* ==================== 导航栏 ==================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 3px solid var(--text);
    box-shadow: 0 4px 0 rgba(45, 24, 16, 0.1);
    transition: all var(--transition-base);
}

nav.scrolled {
    background: rgba(255, 248, 240, 0.98);
    box-shadow: 0 4px 8px rgba(45, 24, 16, 0.15);
}

.nav-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    text-shadow: 2px 2px 0 rgba(255, 107, 53, 0.2);
    transition: transform var(--transition-bounce);
}

.logo:hover {
    transform: scale(1.05) rotate(-2deg);
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform var(--transition-fast);
}

.nav-links a:hover {
    color: var(--primary);
    background: rgba(255, 107, 53, 0.08);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.nav-links a:hover::before {
    transform: translateX(-50%) scaleX(1);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: all 0.3s;
    box-shadow: 1px 1px 0 rgba(45, 24, 16, 0.2);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 移动端菜单 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu a {
    color: var(--text);
    font-size: 28px;
    text-decoration: none;
    padding: 12px 24px;
    font-family: 'Ma Shan Zheng', cursive;
    border: 3px solid var(--text);
    border-radius: var(--radius-md);
    background: var(--bg);
    transition: all var(--transition-bounce);
}

.mobile-menu a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
}

/* ==================== Hero 区域 ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
}

/* 漫画风格头像框 */
.hero-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: white;
    font-weight: 700;
    margin-bottom: 32px;
    box-shadow: var(--shadow-comic);
    animation: avatarBounce 2s ease-in-out infinite;
    overflow: hidden;
    position: relative;
    border: 4px solid var(--text);
}

.hero-avatar::before {
    content: '';
    position: absolute;
    inset: -8px;
    border: 3px dashed var(--primary);
    border-radius: 50%;
    animation: spin 20s linear infinite;
}

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

@keyframes avatarBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(-3deg); }
    75% { transform: translateY(-4px) rotate(3deg); }
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero h1 {
    font-size: clamp(56px, 12vw, 120px);
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.2;
    margin-bottom: 16px;
    font-family: 'Ma Shan Zheng', cursive;
    color: var(--primary);
    position: relative;
    animation: comicBounce 2s ease-in-out infinite;
    /* 细描边（1.5px）保持手绘感但不遮住渐变 */
    -webkit-text-stroke: 1.5px var(--text);
    paint-order: stroke fill;
    /* 多层柔和阴影替代粗描边 */
    filter: drop-shadow(2px 2px 0px rgba(45, 24, 16, 0.15))
            drop-shadow(4px 4px 0px rgba(255, 107, 53, 0.3))
            drop-shadow(6px 6px 12px rgba(232, 90, 36, 0.2));
}

/* 名字上的手绘装饰线 */
.hero h1::after {
    content: '~';
    position: absolute;
    top: -20px;
    right: -30px;
    font-size: 40px;
    color: var(--accent);
    -webkit-text-stroke: 2px var(--text);
    animation: starSpin 3s linear infinite;
    transform-origin: center;
}

@keyframes comicBounce {
    0%, 100% {
        transform: translateY(0) rotate(-2deg) scale(1);
    }
    25% {
        transform: translateY(-10px) rotate(-1deg) scale(1.02);
    }
    50% {
        transform: translateY(0) rotate(1deg) scale(1);
    }
    75% {
        transform: translateY(-5px) rotate(2deg) scale(1.01);
    }
}

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

.hero .title {
    font-size: clamp(20px, 4vw, 28px);
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 12px;
    font-family: 'Noto Serif SC', serif;
}

.hero .gold-text {
    font-size: 20px;
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: 'Ma Shan Zheng', cursive;
    letter-spacing: 0.1em;
}

.hero .subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.8;
    margin-bottom: 36px;
}

.hero-contact {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* 漫画风格按钮 */
.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Ma Shan Zheng', cursive;
    border-radius: var(--radius-md);
    border: 3px solid var(--text);
    box-shadow: 4px 4px 0 var(--text);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

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

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

.contact-btn:hover {
    background: var(--primary-dark);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--text);
}

.contact-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--text);
}

.contact-btn.secondary {
    background: var(--bg);
    color: var(--text);
    border-color: var(--text);
}

.contact-btn.secondary:hover {
    background: var(--accent);
    color: var(--text);
    border-color: var(--accent-red);
}

/* ==================== Section 通用 ==================== */
section {
    padding: 100px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

section.dark {
    background: var(--bg-secondary);
    max-width: 100%;
    border-top: 4px solid var(--text);
    border-bottom: 4px solid var(--text);
}

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

h2 {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary);
    position: relative;
    display: inline-block;
    width: 100%;
    font-family: 'Ma Shan Zheng', cursive;
    letter-spacing: 0.1em;
}

/* 漫画风格标题下划线 */
h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 6px;
    background: var(--gradient-warm);
    border-radius: 3px;
    border: 2px solid var(--text);
    box-shadow: 2px 2px 0 var(--text);
}

.section-desc {
    text-align: center;
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 50px;
}

/* ==================== 关于我 ==================== */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.about-card {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 3px solid var(--text);
    box-shadow: var(--shadow-sketch-lg);
    transition: all var(--transition-bounce);
    position: relative;
}

.about-card:hover {
    transform: translateY(-8px) rotate(-1deg);
    box-shadow: var(--shadow-comic);
}

.about-card::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px dashed var(--accent);
    border-radius: var(--radius-lg);
    opacity: 0;
    transition: opacity 0.3s;
}

.about-card:hover::before {
    opacity: 1;
}

.about-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    font-family: 'Ma Shan Zheng', cursive;
}

.about-card .icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 2px solid var(--text);
    box-shadow: 2px 2px 0 var(--text);
}

.about-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

/* ==================== 技能气泡 ==================== */
.skills-bubbles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 40px 20px;
    min-height: 400px;
    position: relative;
}

.skill-bubble {
    width: var(--size, 130px);
    height: var(--size, 130px);
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    animation: floatBubble 5s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.skill-bubble:hover {
    transform: scale(1.2) rotate(5deg);
    z-index: 100;
}

@keyframes floatBubble {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-12px) rotate(5deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(8px) rotate(-5deg);
    }
}

.bubble-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient-hero);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    border: 3px solid var(--text);
    box-shadow: 3px 3px 0 var(--text);
    transition: all 0.3s ease;
}

.skill-bubble:hover .bubble-inner {
    box-shadow: 5px 5px 0 var(--text);
    background: var(--accent);
}

.bubble-icon {
    font-size: calc(var(--size, 130px) * 0.35);
    margin-bottom: 4px;
}

.bubble-name {
    font-size: calc(var(--size, 130px) * 0.13);
    font-weight: 700;
    color: white;
    text-align: center;
    line-height: 1.3;
    font-family: 'Ma Shan Zheng', cursive;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.2);
}

.bubble-level {
    font-size: calc(var(--size, 130px) * 0.1);
    color: white;
    font-weight: 700;
    margin-top: 4px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    font-family: 'Noto Serif SC', serif;
}

.skill-bubble:hover .bubble-level {
    opacity: 1;
    transform: translateY(0);
}

/* 气泡光晕 */
.bubble-glow {
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    background: var(--color);
    filter: blur(25px);
    opacity: 0.4;
    z-index: 1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.6;
    }
}

/* ==================== 项目卡片 - 手账笔记本风格 ==================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.project-card {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sketch-lg);
    transition: all var(--transition-bounce);
    border: 3px solid var(--text);
    position: relative;
    padding: 28px;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-8px) rotate(-1deg);
    box-shadow: 8px 8px 0 var(--text);
}

/* 笔记本横线背景 */
.notebook-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 28px,
        rgba(255, 107, 53, 0.08) 28px,
        rgba(255, 107, 53, 0.08) 30px
    );
    pointer-events: none;
    z-index: 0;
}

/* 左侧红色边线（笔记本装订效果） */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-red) 0%, var(--primary) 100%);
    z-index: 1;
}

/* 手绘装饰元素 */
.sketch-decoration {
    position: absolute;
    font-family: 'Ma Shan Zheng', cursive;
    z-index: 2;
    pointer-events: none;
}

.sketch-star {
    top: 12px;
    right: 16px;
    font-size: 24px;
    color: var(--accent);
    animation: starSpin 4s linear infinite;
}

.sketch-dot {
    bottom: 60px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    border: 2px solid var(--text);
}

.sketch-corner {
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    border-right: 3px solid var(--accent);
    border-bottom: 3px solid var(--accent);
    border-radius: 0 0 var(--radius-md) 0;
    background: transparent;
}

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

/* 项目头部：大图标 + 名称 */
.project-header {
    padding-left: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    position: relative;
    z-index: 3;
}

.project-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-hero);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 3px solid var(--text);
    box-shadow: 3px 3px 0 var(--text);
    flex-shrink: 0;
}

.project-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Ma Shan Zheng', cursive;
    line-height: 1.3;
}

/* 项目描述 */
.project-desc {
    padding-left: 32px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 18px;
    position: relative;
    z-index: 3;
}

/* 技术栈标签 */
.project-tags {
    padding-left: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    position: relative;
    z-index: 3;
}

.tag {
    background: var(--bg-secondary);
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 2px solid var(--primary);
    font-family: 'Noto Serif SC', serif;
}

.tag:hover {
    background: var(--primary);
    color: white;
}

/* 项目链接 */
.project-link {
    padding: 4px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 0;
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Ma Shan Zheng', cursive;
    transition: color var(--transition-fast);
    position: relative;
    z-index: 3;
    background: transparent;
}

.project-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* ==================== 工作经历 ==================== */
.experience-list {
    max-width: 800px;
    margin: 0 auto;
}

.exp-card {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sketch);
    transition: all var(--transition-bounce);
    border: 3px solid var(--text);
    position: relative;
}

.exp-card:hover {
    transform: translateX(10px) rotate(-0.5deg);
    box-shadow: var(--shadow-comic);
}

.exp-card::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--primary);
    border: 3px solid var(--text);
    border-radius: 50%;
    box-shadow: 2px 2px 0 var(--text);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.exp-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Ma Shan Zheng', cursive;
}

.exp-period {
    background: var(--accent);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    border: 2px solid var(--text);
    box-shadow: 2px 2px 0 var(--text);
}

.exp-position {
    color: var(--accent-red);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 12px;
    font-family: 'Ma Shan Zheng', cursive;
}

.exp-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

/* ==================== 证书 ==================== */
.cert-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.cert-badge {
    background: var(--gradient-warm);
    color: white;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-size: 17px;
    font-weight: 700;
    font-family: 'Ma Shan Zheng', cursive;
    box-shadow: 4px 4px 0 var(--text);
    border: 3px solid var(--text);
    transition: all var(--transition-bounce);
}

.cert-badge:hover {
    transform: translateY(-4px) rotate(-2deg);
    box-shadow: 6px 6px 0 var(--text);
}

/* ==================== 联系方式 ==================== */
.social-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.social-card {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 28px 36px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 110px;
    transition: all var(--transition-bounce);
    cursor: pointer;
    position: relative;
    border: 3px solid var(--text);
    box-shadow: 4px 4px 0 var(--text);
}

.social-card:hover {
    transform: translateY(-8px) rotate(3deg);
    box-shadow: 6px 8px 0 var(--text);
    background: var(--accent);
}

.social-card:active {
    transform: translateY(-2px) rotate(-1deg);
    background: var(--primary);
    color: white;
}

.social-icon {
    font-size: 40px;
    margin-bottom: 8px;
    transition: transform var(--transition-bounce);
}

.social-card:hover .social-icon {
    transform: scale(1.2) rotate(-10deg);
}

.social-label {
    font-size: 15px;
    font-weight: 700;
    font-family: 'Ma Shan Zheng', cursive;
}

/* 复制提示 - 漫画气泡风格 */
.copy-toast {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text);
    color: white;
    padding: 16px 32px;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 700;
    z-index: 1000;
    border: 3px solid var(--text);
    box-shadow: 4px 4px 0 var(--primary);
    animation: toastPop 2s ease forwards;
}

.copy-toast::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: var(--text);
}

@keyframes toastPop {
    0% { opacity: 0; transform: translateX(-50%) translateY(-20px) scale(0.8); }
    15% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
    85% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-10px) scale(0.9); }
}

/* 联系表单 */
.contact-form {
    max-width: 560px;
    margin: 0 auto;
    background: var(--bg-tertiary);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sketch-lg);
    border: 3px solid var(--text);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 3px solid var(--text);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg);
    box-shadow: 3px 3px 0 var(--text);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 4px 4px 0 var(--primary);
    background: white;
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form button {
    width: 100%;
    padding: 18px;
    background: var(--primary);
    color: white;
    border: 3px solid var(--text);
    font-size: 18px;
    font-weight: 700;
    font-family: 'Ma Shan Zheng', cursive;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: 4px 4px 0 var(--text);
    transition: all var(--transition-fast);
    letter-spacing: 0.1em;
}

.contact-form button:hover {
    background: var(--primary-dark);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--text);
}

.contact-form button:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--text);
}

.success {
    display: none;
    text-align: center;
    padding: 20px;
    color: #2ecc71;
    font-weight: 700;
    font-size: 18px;
    font-family: 'Ma Shan Zheng', cursive;
}

/* ==================== Footer ==================== */
footer {
    background: var(--bg-dark);
    padding: 60px 24px;
    text-align: center;
    border-top: 5px solid var(--primary);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-content p {
    color: var(--text-inverse);
    font-size: 15px;
    margin-bottom: 8px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.social-links a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    transition: all var(--transition-bounce);
    border: 3px solid var(--text);
    box-shadow: 3px 3px 0 var(--text);
}

.social-links a:hover {
    transform: translateY(-4px) rotate(10deg);
    box-shadow: 5px 5px 0 var(--text);
    background: var(--primary);
}

.ai-credit {
    font-size: 13px;
    color: var(--accent);
    margin-top: 12px;
    font-family: 'Ma Shan Zheng', cursive;
}

.visitor-count {
    font-size: 15px;
    color: var(--accent);
    margin-top: 8px;
    font-weight: 700;
    font-family: 'Ma Shan Zheng', cursive;
}

/* ==================== 动画 ==================== */
.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) rotate(-2deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
}

/* 点击波纹效果 */
.comic-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 179, 71, 0.4);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 漫画风格强调线 */
.comic-line {
    position: relative;
}

.comic-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10px;
    right: -10px;
    height: 8px;
    background: var(--accent);
    transform: rotate(-1deg) scaleY(0.3);
    z-index: -1;
    border-radius: 4px;
}

/* 星星装饰 */
.star-decoration {
    position: absolute;
    font-size: 24px;
    color: var(--accent);
    animation: starSpin 4s linear infinite;
}

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

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-avatar {
        width: 120px;
        height: 120px;
        font-size: 48px;
    }

    section {
        padding: 60px 20px;
    }

    .contact-form {
        padding: 32px 24px;
    }

    .about-content,
    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card::before {
        left: 28px;
    }

    .project-header,
    .project-desc,
    .project-tags {
        padding-left: 28px;
    }

    .project-link {
        padding-left: 28px;
    }

    .skill-bubble {
        width: 100px !important;
        height: 100px !important;
    }

    .bubble-icon {
        font-size: 30px;
    }

    .bubble-name {
        font-size: 12px;
    }

    .social-cards {
        gap: 12px;
    }

    .social-card {
        min-width: 80px;
        padding: 20px 16px;
    }

    .social-icon {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .social-card {
        flex: 0 0 calc(50% - 12px);
        max-width: calc(50% - 12px);
    }

    h2 {
        font-size: 32px;
    }

    .contact-btn {
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* 禁止横向滚动 */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* ==================== 阅读进度条 ==================== */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: var(--gradient-primary);
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px var(--primary), 0 0 20px var(--accent);
}

/* ==================== 回到顶部按钮 ==================== */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border: 3px solid var(--text);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 4px 4px 0 var(--text);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.back-to-top:hover {
    transform: scale(1.15) translateY(-4px);
    box-shadow: 6px 6px 0 var(--text);
    background: var(--gradient-warm);
}

.back-to-top:active {
    transform: scale(0.95);
    box-shadow: 2px 2px 0 var(--text);
}

.back-to-top-arrow {
    font-size: 28px;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.2);
}

/* ==================== 弹窗分享区域 ==================== */
.modal-share {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 3px dashed var(--accent);
}

.share-label {
    font-size: 16px;
    font-family: 'Ma Shan Zheng', cursive;
    color: var(--text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-url-container {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.share-url-input {
    flex: 1;
    padding: 14px 18px;
    border: 3px solid var(--text);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: 'Noto Serif SC', serif;
    background: var(--bg);
    color: var(--text-secondary);
    box-shadow: 3px 3px 0 var(--text);
}

.share-url-input:focus {
    outline: none;
    border-color: var(--primary);
}

.share-copy-btn {
    padding: 14px 24px;
    background: var(--gradient-primary);
    color: white;
    border: 3px solid var(--text);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    font-family: 'Ma Shan Zheng', cursive;
    cursor: pointer;
    box-shadow: 3px 3px 0 var(--text);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.share-copy-btn:hover {
    background: var(--gradient-warm);
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 var(--text);
}

.share-copy-btn:active {
    transform: translateY(1px);
    box-shadow: 2px 2px 0 var(--text);
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 24px;
        right: 24px;
        width: 50px;
        height: 50px;
    }

    .back-to-top-arrow {
        font-size: 24px;
    }

    .share-url-container {
        flex-direction: column;
    }

    .share-copy-btn {
        width: 100%;
        justify-content: center;
    }
}

/* 手绘风格选中文本 */
::selection {
    background: var(--accent);
    color: var(--text);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-left: 2px solid var(--text);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 6px;
    border: 2px solid var(--text);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* 渐变文字 - 漫画风格 */
.gradient-text {
    background: linear-gradient(135deg, #FF6B35 0%, #FF4E50 50%, #FFB347 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* 背景网格 */
.gradient-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(255, 179, 71, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, #FFF8F0 0%, #FFF0E0 100%);
}
/* ==================== 项目详情弹窗 ==================== */
.modal-overlay {
    -webkit-backdrop-filter: blur(8px);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 24, 16, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-tertiary);
    border-radius: var(--radius-xl);
    padding: 48px;
    max-width: 560px;
    width: 90%;
    border: 4px solid var(--text);
    box-shadow: 8px 8px 0 var(--text), 0 0 60px rgba(255, 107, 53, 0.3);
    position: relative;
    transform: scale(0.8) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 3px solid var(--text);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--text);
    font-weight: bold;
}

.modal-close:hover {
    background: var(--accent-red);
    color: white;
    transform: rotate(90deg);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.modal-icon {
    width: 72px;
    height: 72px;
    background: var(--gradient-hero);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    border: 4px solid var(--text);
    box-shadow: 4px 4px 0 var(--text);
    flex-shrink: 0;
}

.modal-title {
    font-size: 28px;
    font-family: 'Ma Shan Zheng', cursive;
    color: var(--primary);
    margin: 0;
    font-weight: 700;
}

.modal-title::after {
    display: none;
}

.modal-desc {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.modal-tags .tag {
    background: var(--accent);
    color: var(--text);
    border-color: var(--text);
}

.modal-tags .tag:hover {
    background: var(--primary);
    color: white;
}

/* CTA 行动号召 */
.modal-cta {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 179, 71, 0.1) 100%);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    border: 3px dashed var(--primary);
}

.cta-bubble {
    font-size: 18px;
    font-family: 'Ma Shan Zheng', cursive;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.5;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Ma Shan Zheng', cursive;
    border-radius: var(--radius-md);
    border: 3px solid var(--text);
    box-shadow: 4px 4px 0 var(--text);
    transition: all 0.2s ease;
    animation: ctaPulse 2s ease-in-out infinite;
}

.cta-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--text);
    background: var(--gradient-warm);
}

.cta-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--text);
}

@keyframes ctaPulse {
    0%, 100% {
        box-shadow: 4px 4px 0 var(--text), 0 0 0 0 rgba(255, 107, 53, 0.4);
    }
    50% {
        box-shadow: 4px 4px 0 var(--text), 0 0 0 12px rgba(255, 107, 53, 0);
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 32px 24px;
    }
    
    .modal-header {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-title {
        font-size: 24px;
    }
    
    .cta-btn {
        width: 100%;
        justify-content: center;
    }
}

