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

/* ===== 亮色主题 ===== */
:root {
    --bg-gradient: linear-gradient(145deg, #f6faff 0%, #e6f4f1 100%);
    --primary-blue: #6B9FD4;
    --primary-mint: #75BFA7;
    --primary-coral: #F0B8A8;
    --primary-purple: #B8A9D4;
    --text-dark: #2C3E50;
    --text-medium: #5A6B7C;
    --text-light: #8A9BAE;
    --border-light: rgba(0, 0, 0, 0.04);
    --shadow-light: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    --btn-gradient: linear-gradient(135deg, #6B9FD4, #75BFA7);
    --hero-gradient: linear-gradient(135deg, #6B9FD4, #75BFA7);
    --bg-soft: rgba(255, 255, 255, 0.3);
    --widget-bg: rgba(255, 255, 255, 0.5);
    --footer-bg: rgba(255, 255, 255, 0.2);
    --section-spacing: 4.5rem;
    --para-spacing: 1.2rem;
}

/* ===== 暗色主题 ===== */
[data-theme="dark"] {
    --bg-gradient: linear-gradient(145deg, #1c2128 0%, #242c34 100%);
    --primary-blue: #8AB8E0;
    --primary-mint: #8DD4BA;
    --primary-coral: #E8B8A8;
    --primary-purple: #C8B9E0;
    --text-dark: #E8EDF3;
    --text-medium: #9AA8B9;
    --text-light: #6A7B8C;
    --border-light: rgba(255, 255, 255, 0.04);
    --shadow-light: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    --btn-gradient: linear-gradient(135deg, #4a8ec4, #5aa88d);
    --hero-gradient: linear-gradient(135deg, #8AB8E0, #8DD4BA);
    --bg-soft: rgba(255, 255, 255, 0.05);
    --widget-bg: rgba(255, 255, 255, 0.06);
    --footer-bg: rgba(255, 255, 255, 0.04);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    padding: 2.5rem 2rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    transition: background 0.4s ease, color 0.3s ease;
    margin: 0;
}

.container {
    max-width: 1000px;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* ===== 页面入场动画 ===== */
.container {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.1s forwards;
}
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(24px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ===== 滚动触发动画 ===== */
.section-wrapper {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.section-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-wrapper:nth-child(1) { transition-delay: 0.05s; }
.section-wrapper:nth-child(2) { transition-delay: 0.10s; }
.section-wrapper:nth-child(3) { transition-delay: 0.15s; }
.section-wrapper:nth-child(4) { transition-delay: 0.20s; }
.section-wrapper:nth-child(5) { transition-delay: 0.25s; }
.section-wrapper:nth-child(6) { transition-delay: 0.30s; }
.section-wrapper:nth-child(7) { transition-delay: 0.35s; }
.section-wrapper:nth-child(8) { transition-delay: 0.40s; }

/* ===== 装饰性模糊图形 ===== */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    transition: background 0.4s ease;
}
.blob--1 {
    width: 300px;
    height: 300px;
    background: rgba(107, 159, 212, 0.10);
    top: -80px;
    right: -60px;
}
.blob--2 {
    width: 250px;
    height: 250px;
    background: rgba(117, 191, 167, 0.10);
    bottom: 40px;
    left: -40px;
}
.blob--3 {
    width: 200px;
    height: 200px;
    background: rgba(240, 184, 168, 0.08);
    top: 60%;
    right: 10px;
}
[data-theme="dark"] .blob--1 {
    background: rgba(138, 184, 224, 0.05);
}
[data-theme="dark"] .blob--2 {
    background: rgba(141, 212, 186, 0.05);
}
[data-theme="dark"] .blob--3 {
    background: rgba(232, 184, 168, 0.03);
}

/* ===== Header ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.2rem 0;
}

.logo {
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.2rem;
    text-decoration: none;
}
.logo span {
    background: var(--hero-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--primary-mint);
    border-radius: 50%;
    margin-left: 4px;
    animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
    0%, 100% { opacity: 0.6; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.2); }
}

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

.nav-links {
    display: flex;
    gap: 2.2rem;
    list-style: none;
    font-size: 0.95rem;
    font-weight: 500;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-medium);
    transition: color 0.2s;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
    border-radius: 2px;
}
.nav-links a:hover {
    color: var(--text-dark);
}
.nav-links a:hover::after {
    width: 100%;
}

.theme-toggle {
    background: var(--bg-soft);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    color: var(--text-medium);
    transition: all 0.25s;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-light);
}
.theme-toggle:hover {
    border-color: var(--primary-blue);
    color: var(--text-dark);
    transform: scale(1.05) rotate(8deg);
}
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    display: none;
}
[data-theme="dark"] .theme-toggle .icon-moon {
    display: block;
}
[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}
.theme-toggle .icon-sun {
    display: block;
}

/* ===== Hero ===== */
.hero {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4.5rem;
    position: relative;
    z-index: 2;
    padding: 0.5rem 0;
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 0.4rem;
    background: var(--hero-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroTitle 1s ease-out 0.3s both;
}
@keyframes heroTitle {
    0% { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-content .subhead {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: 0.4rem;
    font-weight: 500;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}
.hero-content .bio {
    font-size: 1rem;
    color: var(--text-medium);
    max-width: 85%;
    margin-bottom: 1.8rem;
    line-height: 1.6;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.9s both;
}

.btn {
    display: inline-block;
    padding: 0.7rem 2rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    cursor: pointer;
}
.btn--primary {
    background: var(--btn-gradient);
    color: #fff;
    box-shadow: 0 8px 20px -8px rgba(107, 159, 212, 0.3);
}
.btn--primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 32px -8px rgba(107, 159, 212, 0.45);
}
.btn--outline {
    background: transparent;
    color: var(--text-dark);
    border: 1.5px solid var(--text-light);
}
.btn--outline:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-4px);
}

.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.profile-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--bg-soft);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.profile-circle:hover {
    transform: scale(1.04) translateY(-4px);
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.12);
}
.profile-circle .avatar {
    font-size: 3rem;
    font-weight: 600;
    color: var(--primary-blue);
    line-height: 1;
}
.profile-circle .name {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 0.2rem;
    color: var(--text-dark);
}
.profile-circle .role {
    font-size: 0.75rem;
    color: var(--text-medium);
    font-weight: 500;
}

.status-widget {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--widget-bg);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-light);
    font-size: 0.85rem;
    color: var(--text-medium);
    font-weight: 500;
    transition: all 0.3s ease;
}
.status-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.06);
}
.status-widget .indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-mint);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ===== 统一板块结构 ===== */
.section-wrapper {
    margin-bottom: var(--section-spacing);
    position: relative;
    z-index: 2;
}

.section-header {
    margin-bottom: 0.6rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-medium);
    font-weight: 400;
    margin-top: 0.1rem;
}

.section-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.8rem;
}
.section-divider .line {
    flex: 1;
    height: 1px;
    background: var(--border-light);
    transition: background 0.4s;
}
.section-divider .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-blue);
    opacity: 0.3;
    transition: transform 0.3s ease;
}
.section-wrapper:hover .section-divider .dot {
    transform: scale(1.4);
    opacity: 0.6;
}

.section-content p {
    margin-bottom: var(--para-spacing);
    line-height: 1.6;
}
.section-content p:last-child {
    margin-bottom: 0;
}

/* ===== 关于我 ===== */
.about-text {
    font-size: 1rem;
    color: var(--text-medium);
    max-width: 85%;
    line-height: 1.8;
    font-weight: 400;
}
.about-text .highlight {
    color: var(--primary-blue);
    font-weight: 600;
    transition: color 0.3s;
}
.about-text .highlight:hover {
    color: var(--primary-mint);
}

/* ===== 专长 ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.skill-item {
    text-align: center;
    padding: 0.8rem 0.4rem;
    border-radius: 16px;
    background: var(--bg-soft);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-light);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.skill-item:hover {
    transform: translateY(-6px) scale(1.02);
    background: rgba(255, 255, 255, 0.45);
    border-color: var(--primary-blue);
    box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.04);
}
[data-theme="dark"] .skill-item:hover {
    background: rgba(255, 255, 255, 0.10);
}
.skill-item .icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.2rem;
    transition: transform 0.3s ease;
}
.skill-item:hover .icon {
    transform: scale(1.15) rotate(-4deg);
}
.skill-item .name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

/* ===== 服务 ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.service-item {
    padding: 1.2rem 1rem;
    border-radius: 16px;
    background: var(--bg-soft);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-light);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.service-item:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.45);
    border-color: var(--primary-blue);
    box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.04);
}
[data-theme="dark"] .service-item:hover {
    background: rgba(255, 255, 255, 0.10);
}
.service-item .service-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.3rem;
    transition: transform 0.3s ease;
}
.service-item:hover .service-icon {
    transform: scale(1.1) rotate(-2deg);
}
.service-item .service-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
}
.service-item .service-desc {
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-top: 0.2rem;
    line-height: 1.5;
    font-weight: 400;
}

/* ===== 数据 ===== */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.metric-item {
    text-align: center;
    padding: 1.2rem 0.5rem;
    border-radius: 16px;
    background: var(--bg-soft);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-light);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.metric-item:hover {
    transform: translateY(-6px) scale(1.02);
    background: rgba(255, 255, 255, 0.45);
    border-color: var(--primary-blue);
    box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.04);
}
[data-theme="dark"] .metric-item:hover {
    background: rgba(255, 255, 255, 0.10);
}
.metric-item .number {
    font-size: 2.8rem;
    font-weight: 800;
    background: var(--hero-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    transition: transform 0.3s ease;
}
.metric-item:hover .number {
    transform: scale(1.04);
}
.metric-item .label {
    font-size: 0.85rem;
    color: var(--text-medium);
    font-weight: 500;
}

/* ===== 作品 ===== */
.work-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.work-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 12px;
}
.work-card:hover {
    background: var(--bg-soft);
    backdrop-filter: blur(4px);
    border-bottom-color: transparent;
    box-shadow: var(--shadow-light);
    transform: translateX(6px);
}
.work-card:last-of-type {
    border-bottom: none;
}

.work-card .thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    background: transparent;
    color: var(--primary-blue);
    transition: transform 0.4s ease;
}
.work-card:hover .thumb {
    transform: scale(1.08) rotate(-2deg);
}
.work-card .thumb--green {
    color: var(--primary-mint);
}
.work-card .thumb--coral {
    color: var(--primary-coral);
}

.work-card .info {
    flex: 1;
    min-width: 0;
}
.work-card .info h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
    color: var(--text-dark);
}
.work-card .info .desc {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.5;
    font-weight: 400;
}
.work-card .info .tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}
.work-card .info .tags span {
    font-size: 0.7rem;
    padding: 0.1rem 0.7rem;
    border-radius: 20px;
    background: var(--bg-soft);
    border: 1px solid var(--border-light);
    color: var(--text-medium);
    font-weight: 500;
    transition: all 0.25s;
}
.work-card:hover .info .tags span {
    background: var(--bg-soft);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.work-card .action .project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-blue);
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    border: 1.5px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: var(--bg-soft);
    backdrop-filter: blur(4px);
}
.work-card .action .project-link:hover {
    border-color: var(--primary-blue);
    background: var(--primary-blue);
    color: #fff;
    transform: translateX(6px);
    box-shadow: 0 8px 20px -8px rgba(107, 159, 212, 0.3);
}
.work-card .action .project-link .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}
.work-card .action .project-link:hover .arrow {
    transform: translateX(6px);
}

/* ===== 动态 ===== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.post-item {
    padding: 1.2rem 1rem;
    border-radius: 16px;
    background: var(--bg-soft);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-light);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.post-item:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.45);
    border-color: var(--primary-blue);
    box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.04);
}
[data-theme="dark"] .post-item:hover {
    background: rgba(255, 255, 255, 0.10);
}
.post-item .post-date {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}
.post-item .post-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
    margin: 0.2rem 0 0.1rem;
}
.post-item .post-excerpt {
    font-size: 0.85rem;
    color: var(--text-medium);
    line-height: 1.5;
    font-weight: 400;
}
.post-item .post-link {
    display: inline-block;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}
.post-item .post-link:hover {
    color: var(--primary-mint);
    transform: translateX(4px);
}
.post-item .post-link::after {
    content: ' →';
    transition: transform 0.3s ease;
    display: inline-block;
}
.post-item .post-link:hover::after {
    transform: translateX(4px);
}

/* ===== 工具 ===== */
.tools-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.6rem 1rem;
    background: var(--bg-soft);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    min-width: 60px;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.tool-item:hover {
    transform: translateY(-6px) scale(1.04);
    border-color: var(--primary-blue);
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.04);
}
[data-theme="dark"] .tool-item:hover {
    background: rgba(255, 255, 255, 0.10);
}
.tool-item .tool-icon {
    font-size: 1.6rem;
    line-height: 1;
    transition: transform 0.3s ease;
}
.tool-item:hover .tool-icon {
    transform: scale(1.15) rotate(-4deg);
}
.tool-item .tool-name {
    font-size: 0.7rem;
    color: var(--text-medium);
    font-weight: 500;
}

/* ===== 联系方式板块 ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 1.4rem 0.8rem;
    border-radius: 16px;
    background: var(--bg-soft);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-light);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-card:hover {
    transform: translateY(-6px) scale(1.02);
    background: rgba(255, 255, 255, 0.45);
    border-color: var(--primary-blue);
    box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.04);
    color: var(--primary-blue);
}

[data-theme="dark"] .contact-card:hover {
    background: rgba(255, 255, 255, 0.10);
}

.contact-icon {
    font-size: 1.8rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.15) rotate(-3deg);
}

.contact-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.contact-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s;
    text-align: center;
}

.contact-card:hover .contact-value {
    color: var(--primary-blue);
}

/* ===== Footer ===== */
footer {
    margin-top: 2rem;
    padding: 2.5rem 2rem 1.8rem;
    border-radius: 20px;
    background: var(--footer-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}
footer:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.04);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 2fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-brand .brand {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.2rem;
}
.footer-brand .brand span {
    background: var(--hero-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.footer-brand .brand-desc {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-top: 0.3rem;
    max-width: 80%;
    line-height: 1.5;
    font-weight: 400;
}

.footer-nav h5,
.footer-contact h5 {
    font-size: 0.86rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    letter-spacing: 0.02em;
    opacity: 0.7;
}
.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.footer-nav ul a {
    text-decoration: none;
    color: var(--text-medium);
    font-size: 0.9rem;
    transition: all 0.25s;
    font-weight: 500;
}
.footer-nav ul a:hover {
    color: var(--primary-blue);
    transform: translateX(4px);
}

.footer-contact .contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.2rem;
}
.footer-contact .contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: var(--text-medium);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.25s;
}
.footer-contact .contact-links a:hover {
    color: var(--primary-blue);
    transform: translateX(3px);
}
.footer-contact .contact-links .link-icon {
    font-size: 1rem;
    opacity: 0.7;
    transition: transform 0.3s ease;
}
.footer-contact .contact-links a:hover .link-icon {
    transform: scale(1.1);
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: var(--text-medium);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    background: var(--bg-soft);
    border: 1px solid var(--border-light);
}
.footer-social a:hover {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.04);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.8rem;
    color: var(--text-light);
}
.footer-bottom .copy {
    color: var(--text-light);
    font-weight: 400;
}
.footer-bottom .legal a {
    text-decoration: none;
    color: var(--text-light);
    margin-left: 1.2rem;
    transition: all 0.25s;
    font-weight: 500;
}
.footer-bottom .legal a:hover {
    color: var(--primary-blue);
}

/* ===== 响应式 ===== */
@media (max-width: 820px) {
    body {
        padding: 1.8rem 1.2rem;
    }
    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .hero-content .bio {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    .btn-group {
        justify-content: center;
    }
    .hero-visual {
        flex-direction: column;
        align-items: center;
    }
    .profile-circle {
        width: 120px;
        height: 120px;
    }
    .profile-circle .avatar {
        font-size: 2.4rem;
    }
    .about-text {
        max-width: 100%;
    }
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .work-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 0.8rem;
        padding: 1.2rem 0.8rem;
    }
    .work-card .thumb {
        margin: 0 auto;
    }
    .work-card .action {
        align-self: center;
    }
    .work-card .info .tags {
        justify-content: center;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.8rem;
    }
    .footer-brand .brand-desc {
        max-width: 100%;
    }
    .blob--1 {
        width: 200px;
        height: 200px;
        top: -60px;
        right: -40px;
    }
    .blob--3 {
        display: none;
    }
    :root {
        --section-spacing: 3.5rem;
    }
    .section-wrapper {
        opacity: 1;
        transform: none;
    }
    .section-wrapper.visible {
        opacity: 1;
        transform: none;
    }
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 1rem 0.8rem;
    }
    .hero-content h1 {
        font-size: 2.6rem;
    }
    .nav-wrapper {
        gap: 0.8rem;
    }
    .nav-links {
        gap: 0.8rem;
        font-size: 0.85rem;
    }
    .logo {
        font-size: 1.3rem;
    }
    .metrics-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
    .metric-item .number {
        font-size: 2.2rem;
    }
    .skills-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .posts-grid {
        grid-template-columns: 1fr;
    }
    .tools-wrap {
        gap: 0.6rem;
    }
    .tool-item {
        padding: 0.5rem 0.8rem;
        min-width: 50px;
    }
    .work-card {
        padding: 1rem 0.5rem;
    }
    .work-card .info h4 {
        font-size: 1.1rem;
    }
    footer {
        padding: 1.8rem 1rem 1.2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .footer-contact .contact-links {
        gap: 0.4rem 0.8rem;
    }
    .footer-social {
        gap: 0.5rem;
    }
    .footer-social a {
        font-size: 0.75rem;
        padding: 0.1rem 0.5rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    .footer-bottom .legal a {
        margin: 0 0.6rem;
    }
    header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }
    .nav-wrapper {
        justify-content: space-between;
    }
    .status-widget {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
    :root {
        --section-spacing: 2.8rem;
        --para-spacing: 1rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .section-wrapper {
        opacity: 1;
        transform: none;
    }
    .section-wrapper.visible {
        opacity: 1;
        transform: none;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-card {
        flex-direction: row;
        justify-content: center;
        gap: 0.8rem;
        padding: 1rem;
    }
    .contact-icon {
        font-size: 1.5rem;
    }
    .contact-value {
        font-size: 0.85rem;
    }
}