/* ============================================
   个人站点 - 加曼草
   设计风格：温暖自然 · 甘南色彩 · 丰富交互
   ============================================ */

/* ---------- CSS 变量 ---------- */
:root {
    /* 主色调 —— 甘南草原绿 */
    --primary: #2d8a4e;
    --primary-dark: #1e6e3a;
    --primary-light: #e8f5e9;
    --secondary: #e07b39;
    --accent: #e6b422;
    --success: #10b981;
    
    /* 板块专属色 */
    --sky-blue: #4a90d9;
    --sky-light: #e8f0fe;
    --earth-brown: #8b6914;
    --earth-light: #fdf6e3;
    --coral: #d9594c;
    --coral-light: #fef0ee;
    --purple: #7c5cbf;
    --purple-light: #f3f0ff;
    --teal: #178f7e;
    --teal-light: #e6f7f4;
    
    /* 渐变 */
    --gradient-1: linear-gradient(135deg, #2d8a4e 0%, #178f7e 100%);
    --gradient-2: linear-gradient(135deg, #e07b39 0%, #d9594c 100%);
    --gradient-3: linear-gradient(135deg, #4a90d9 0%, #7c5cbf 100%);
    --gradient-hero: linear-gradient(180deg, #f0f7f4 0%, #fef9f0 40%, #fdf5e6 100%);
    --gradient-dark: linear-gradient(135deg, #1a3c2a 0%, #1e4d3a 50%, #2a5a3a 100%);
    --gradient-sunset: linear-gradient(135deg, #e6b422 0%, #e07b39 50%, #d9594c 100%);
    --gradient-sky: linear-gradient(135deg, #e8f0fe 0%, #f3f0ff 50%, #e6f7f4 100%);
    
    /* 中性色 */
    --bg: #ffffff;
    --bg-alt: #f8f9fb;
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    
    /* 效果 */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 40px -5px rgba(0,0,0,0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.15);
    
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1100px;
}

/* ---------- 全局重置 ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    opacity: 0; /* 初始隐藏防闪烁，JS 加载后显示 */
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- 导航栏 ---------- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}

.navbar.scrolled {
    border-bottom-color: rgba(45, 138, 78, 0.1);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

.logo-icon { font-size: 1.4rem; }

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

.nav-link {
    padding: 8px 18px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all var(--transition);
    font-weight: 500;
}

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

.nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 600;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 60px;
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    width: 400px; height: 400px;
    background: rgba(45, 138, 78, 0.18);
    top: -100px; right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 350px; height: 350px;
    background: rgba(230, 180, 34, 0.15);
    bottom: -80px; left: -80px;
    animation-delay: 3s;
}

.orb-3 {
    width: 300px; height: 300px;
    background: rgba(74, 144, 217, 0.12);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
}

.hero-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 32px;
}

.avatar-ring {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    padding: 4px;
    background: var(--gradient-sunset);
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
}

.avatar-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 32px;
    height: 32px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    border: 3px solid #fff;
}

.hero-text { margin-top: 8px; }

.hero-greeting {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 300;
}

.hero-name-image {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}

.name-img {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.name-highlight {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-weight: 400;
    min-height: 1.8em;
}

.typing-cursor {
    color: var(--secondary);
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-tags {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.tag {
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tag-primary { background: var(--primary-light); color: var(--primary-dark); }
.tag-secondary { background: var(--earth-light); color: var(--earth-brown); }
.tag-accent { background: var(--coral-light); color: var(--coral); }

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-1);
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45);
}

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

.btn-outline:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

/* 滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 0.8rem;
    animation: fadeInUp 1s ease-out 1.5s both;
    z-index: 1;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-light);
    border-radius: 14px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-light);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s ease-in-out infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 24px; }
}

/* ---------- Section 通用 ---------- */
.section {
    padding: 120px 0;
    position: relative;
}

.section-gradient {
    background: var(--gradient-sky);
}

.section-gradient-2 {
    background: linear-gradient(180deg, #fef9f0 0%, #fdf5e6 50%, #f0f7f4 100%);
}

.section-dark {
    background: var(--gradient-dark);
    color: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.section-tag.light {
    background: rgba(255,255,255,0.15);
    color: #a8e6cf;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
}

.section-title.light { color: #fff; }

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.section-desc.light { color: #a8e6cf; }

.subsection-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.subsection-title i { color: var(--accent); }

/* ---------- 关于我 ---------- */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    background: #fff;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.image-decoration {
    position: absolute;
    inset: -8px;
    border: 3px solid var(--coral-light);
    border-radius: calc(var(--radius-sm) + 8px);
    z-index: -1;
    transform: rotate(-3deg);
}

.about-intro {
    margin-bottom: 28px;
}

.about-intro h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.about-intro p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.9;
    margin-bottom: 12px;
}

.about-intro strong {
    color: var(--secondary);
    font-weight: 600;
}

.about-motto {
    margin: 24px 0 20px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #fef9f0 0%, #fdf5e6 100%);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    position: relative;
}

.about-motto::before {
    content: '"';
    position: absolute;
    top: -8px;
    left: 12px;
    font-size: 3rem;
    color: var(--accent);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.about-motto p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--earth-brown);
    line-height: 1.8;
    margin-bottom: 8px;
    letter-spacing: 0.04em;
}

.about-motto cite {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: normal;
    font-weight: 400;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.info-item:hover {
    background: var(--sky-light);
    transform: translateX(4px);
}

.info-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.bg-blue { background: linear-gradient(135deg, #4a90d9, #357abd); }
.bg-green { background: linear-gradient(135deg, #2d8a4e, #1e6e3a); }
.bg-purple { background: linear-gradient(135deg, #7c5cbf, #6b4fad); }
.bg-orange { background: linear-gradient(135deg, #e07b39, #c96a2e); }
.bg-dark { background: linear-gradient(135deg, #1e293b, #334155); }

.info-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

/* 证书 */
.certificates-section {
    margin-top: 56px;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.cert-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}

.cert-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
    border-color: var(--accent);
}

.cert-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-alt);
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all var(--transition);
}

.cert-card:hover .cert-icon {
    background: var(--earth-light);
}

.cert-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cert-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

.cert-desc {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ---------- 技能 ---------- */
.skills-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.skill-category {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

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

.category-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

.bg-gradient-1 { background: var(--gradient-1); }
.bg-gradient-2 { background: var(--gradient-2); }
.bg-gradient-3 { background: var(--gradient-3); }

.category-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.skill-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.logo-ps {
    background: #001e36;
    color: #31a8ff;
}

.logo-pr {
    background: #2b0445;
    color: #ea77ff;
}

.logo-jy {
    background: #1a1a1a;
    color: #ffd700;
}

.skill-logo i {
    font-size: 1.3rem;
}

.skill-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.skill-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.skill-level {
    font-size: 0.78rem;
    color: var(--sky-blue);
    font-weight: 500;
}

.skill-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    border-radius: 4px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-item:nth-child(1) .skill-fill { background: linear-gradient(90deg, #31a8ff, #4a90d9); }
.skill-item:nth-child(2) .skill-fill { background: linear-gradient(90deg, #e07b39, #d9594c); }
.skill-item:nth-child(3) .skill-fill { background: linear-gradient(90deg, #e6b422, #8b6914); }

/* AI 工具网格 */
.ai-tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.ai-tool {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    min-width: 100px;
    flex: 1;
}

.ai-tool:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.ai-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
}

.ai-chatgpt { background: linear-gradient(135deg, #2d8a4e, #10a37f); }
.ai-claude { background: linear-gradient(135deg, #e07b39, #e6b422); }
.ai-kimi { background: linear-gradient(135deg, #4a90d9, #7c5cbf); }
.ai-cb { background: linear-gradient(135deg, #357abd, #4a90d9); }
.ai-work { background: linear-gradient(135deg, #d9594c, #e07b39); }

.ai-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

/* ---------- 项目 ---------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}

.project-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
}

.project-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.project-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 280px 1fr;
    border: 2px solid var(--earth-light);
}

.project-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gradient-sunset);
    color: #fff;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    z-index: 2;
}

.project-image {
    overflow: hidden;
}

.project-bg {
    width: 100%;
    height: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
    font-size: 3rem;
}

.project-card:not(.featured) .project-bg {
    min-height: 200px;
}

.project-content {
    padding: 28px;
}

.project-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.project-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

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

.project-tags .tag {
    background: var(--teal-light);
    color: var(--teal);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.project-visit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--gradient-1);
    color: #fff;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all var(--transition);
    text-decoration: none;
    margin-top: 8px;
}

.project-visit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 138, 78, 0.35);
}

/* ---------- 社交运营 ---------- */
.social-card {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.social-platform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.platform-icon {
    width: 64px;
    height: 64px;
    background: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
}

.platform-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.platform-info p {
    color: #a8e6cf;
    font-size: 1rem;
}

.social-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 28px;
}

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

.stat-number {
    display: block;
    font-size: 2.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a8e6cf, #f9d56e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: #a8e6cf;
    font-weight: 500;
}

.social-desc p {
    color: #c7d2fe;
    margin-bottom: 16px;
    line-height: 1.8;
}

.social-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.social-tags span {
    padding: 8px 16px;
    background: rgba(255,255,255,0.12);
    border-radius: 50px;
    font-size: 0.85rem;
    color: #d1fae5;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ---------- 相册 ---------- */
.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.filter-btn {
    padding: 8px 24px;
    border-radius: 50px;
    border: 2px solid var(--border);
    background: #fff;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn.active {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
}

.filter-btn:hover {
    border-color: var(--teal);
    color: var(--teal);
}

.filter-btn.active:hover {
    color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.gallery-item {
    aspect-ratio: 4/3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: all var(--transition);
}

.gallery-item:hover {
    transform: scale(1.04);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.gallery-item.loaded img { display: block; }
.gallery-item.loaded .gallery-placeholder { display: none; }

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8f5e9, #fdf6e3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.gallery-placeholder i { font-size: 2rem; }

.gallery-note {
    text-align: center;
    margin-top: 24px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ---------- 联系 ---------- */
.contact-content {
    max-width: 640px;
    margin: 0 auto;
}

.contact-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 48px;
    box-shadow: var(--shadow-lg);
}

.contact-header {
    text-align: center;
    margin-bottom: 36px;
}

.contact-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-header p {
    color: var(--text-secondary);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    text-align: left;
    width: 100%;
    font-family: inherit;
}

.contact-method:hover {
    background: var(--teal-light);
    transform: translateX(6px);
}

.method-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.method-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.method-label {
    font-size: 0.78rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.method-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.method-arrow {
    color: var(--text-light);
    font-size: 0.85rem;
    transition: all var(--transition);
}

.contact-method:hover .method-arrow {
    color: var(--teal);
    transform: translateX(4px);
}

.contact-footer {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 2;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* ---------- 页脚 ---------- */
.footer {
    background: #1a3c2a;
    color: #94a3b8;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand { display: flex; flex-direction: column; gap: 8px; }

.footer-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.footer-brand p { font-size: 0.9rem; }

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
}

.footer-bottom i { color: #ec4899; }

/* ---------- 灯箱 ---------- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 85%;
    max-height: 80vh;
    border-radius: 8px;
    transition: opacity 0.2s;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2001;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.1rem;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

/* ---------- Modal ---------- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.modal.active { display: flex; }

.modal-content {
    background: #fff;
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    max-width: 380px;
    width: 90%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--text-light);
    cursor: pointer;
}

.modal-icon {
    width: 64px;
    height: 64px;
    background: #07c160;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.modal-content h3 { font-size: 1.3rem; margin-bottom: 8px; }
.modal-content p { color: var(--text-secondary); margin-bottom: 4px; }

.modal-tip {
    font-size: 0.85rem;
    color: var(--text-light) !important;
    margin-bottom: 20px !important;
}

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

/* ---------- Toast ---------- */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: var(--text);
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 0.9rem;
    z-index: 4000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast i { color: var(--success); }

/* ---------- 滚动动画 ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 交错延迟 */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- 回到顶部 ---------- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-1);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}
@media (max-width: 900px) {
    .about-card {
        grid-template-columns: 1fr;
        padding: 28px;
    }

    .about-image {
        max-width: 220px;
        margin: 0 auto;
    }

    .project-card.featured {
        grid-template-columns: 1fr;
    }

    .project-card.featured .project-bg {
        min-height: 200px;
    }

    .hero-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .section { padding: 80px 0; }
    .section-title { font-size: 1.8rem; }
    .section-header { margin-bottom: 40px; }

    .info-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); }

    .social-stats { gap: 28px; }
    .stat-number { font-size: 1.8rem; }

    .skills-container { gap: 28px; }
    .skill-category { padding: 24px; }

    .about-motto { padding: 16px 18px; }
    .about-motto p { font-size: 1rem; }

    .contact-methods { gap: 10px; }
    .contact-method { padding: 14px 16px; }

    .project-visit-btn { padding: 8px 20px; font-size: 0.82rem; }

    .nav-menu {
        position: fixed;
        top: 0; right: -100%;
        width: 75%; max-width: 300px;
        height: 100vh;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 28px 28px;
        gap: 6px;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition);
        z-index: 1000;
    }

    .nav-menu.active { right: 0; }
    .nav-link { font-size: 1rem; padding: 12px 16px; }
    .nav-toggle { display: flex; }

    .hero-title { font-size: 2.2rem; }
    .hero-tags { gap: 8px; }
    .tag { font-size: 0.78rem; padding: 6px 14px; }

    .footer-content { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .hero-cta { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }

    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .cert-grid { grid-template-columns: 1fr; }
    .contact-card { padding: 28px; }
}
