/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --dark-color: #1e293b;
    --text-color: #334155;
    --text-light: #64748b;
    --white: #ffffff;
    --light-bg: #f8fafc;
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-hover: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--dark-color);
    transition: all 0.3s ease;
}

/* 首页区域 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f0fe 100%);
    position: relative;
    overflow: hidden;
    padding-bottom: 80px;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
    opacity: 0.03;
}

/* 背景装饰形状 */
.hero-bg-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    animation: floatShape 20s infinite ease-in-out;
}

.shape-1 {
    width: 800px;
    height: 800px;
    background: var(--gradient);
    top: -300px;
    right: -300px;
    animation-delay: 0s;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    bottom: -200px;
    left: -200px;
    animation-delay: -7s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #ec4899 0%, #6366f1 100%);
    top: 50%;
    left: 10%;
    animation-delay: -14s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(40px, -40px) rotate(90deg);
    }
    50% {
        transform: translate(-40px, 40px) rotate(180deg);
    }
    75% {
        transform: translate(40px, 40px) rotate(270deg);
    }
}

/* 点状背景 */
.hero-dots {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(99, 102, 241, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.6;
}

.hero-content {
    text-align: center;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-greeting {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.wave {
    font-size: 1.5rem;
    animation: wave 2s infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.title-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 职业标签 */
.hero-tags {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.5rem 1.25rem;
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary-color);
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.875rem;
    border: 1px solid rgba(99, 102, 241, 0.15);
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--gradient);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* 数据统计 */
.hero-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--primary-color), transparent);
}

/* 首页社交链接 */
.hero-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.hero-social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hero-social-link:hover {
    background: var(--gradient);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

/* 滚动提示 */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 1;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.scroll-text {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--text-light);
    border-bottom: 2px solid var(--text-light);
    transform: rotate(45deg);
    margin: 0 auto;
}

/* 区域通用样式 */
section {
    padding: 100px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 服务项目区域 */
.services {
    background: var(--white);
}

.section-desc {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem;
    background: var(--light-bg);
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 420px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 700;
}

.service-desc {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-color);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.05);
}

.service-features li:last-child {
    border-bottom: none;
}

/* 关于我区域 */
.about {
    background: var(--white);
}

.about-text {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.about-card {
    text-align: center;
    padding: 2.5rem;
    background: var(--light-bg);
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.05);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.about-card p {
    color: var(--text-light);
}

/* 技能区域 */
.skills {
    background: var(--light-bg);
}

.skills-category {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--dark-color);
    text-align: center;
}

/* 技术栈 */
.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--white);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.05);
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
}

.tech-icon {
    font-size: 2rem;
}

.tech-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.tmall-logo {
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
}

.taobao-logo {
    background: linear-gradient(135deg, #FF9000 0%, #FF5000 100%);
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
}

.jd-logo {
    background: linear-gradient(135deg, #E4393C 0%, #C81623 100%);
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
}

.pdd-logo {
    background: linear-gradient(135deg, #E02E24 0%, #D00000 100%);
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
}

.tech-info {
    display: flex;
    flex-direction: column;
}

.tech-name {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.tech-level {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* 专业能力 */
.abilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.ability-card {
    padding: 2rem;
    background: var(--white);
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.05);
}

.ability-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.ability-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.ability-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.ability-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 技能标签 */
.skills-tags {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    justify-content: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 16px;
    align-items: center;
    min-width: max-content;
    width: fit-content;
}

/* 让技能标签容器居中的包装器 */
.skills-tags-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.15);
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.skill-tag:hover {
    background: var(--gradient);
    color: var(--white);
    transform: scale(1.05);
}

/* 作品展示区域 */
.portfolio {
    background: var(--white);
}

.portfolio-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(99, 102, 241, 0.2);
    background: transparent;
    color: var(--text-color);
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--gradient);
    border-color: transparent;
    color: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    opacity: 1;
}

.portfolio-item.animate {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.05);
    height: 100%;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.portfolio-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-placeholder {
    font-size: 4rem;
    opacity: 0.3;
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-category {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.portfolio-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.portfolio-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.portfolio-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.portfolio-tech span {
    padding: 0.3rem 0.7rem;
    background: var(--light-bg);
    color: var(--text-light);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* 工作经历区域 */
.experience {
    background: var(--light-bg);
}

.timeline {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
}

.timeline::before {
    display: none;
}

.timeline-item {
    position: relative;
    flex: 1;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: relative;
    left: auto;
    top: auto;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: var(--white);
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    margin-bottom: 1rem;
}

.timeline-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.05);
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.timeline-date {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--gradient);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

.timeline-company {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.timeline-desc {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.timeline-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.timeline-tags span {
    padding: 0.3rem 0.7rem;
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary-color);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 联系区域 */
.contact {
    background: var(--white);
}

.contact-content {
    text-align: center;
}

.contact-text {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* 联系卡片网格 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-card {
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 20px;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(99, 102, 241, 0.05);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.contact-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.contact-card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-card-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.contact-card-text {
    color: var(--text-light);
    font-size: 1rem;
}

/* 社交媒体 */
.contact-social {
    margin-top: 3rem;
}

.social-title {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link-wrapper {
    position: relative;
    display: inline-block;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

/* 二维码工具提示 */
.tooltip-qr {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--white);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 100;
    text-align: center;
}

.qr-image {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    display: block;
    margin-bottom: 8px;
}

.qr-text {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-color);
    font-weight: 500;
}

.tooltip-qr::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: var(--white);
}

.social-link-wrapper:hover .tooltip-qr {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 页脚 */
.footer {
    background: var(--dark-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a {
        padding: 0.75rem 1rem;
        border-radius: 8px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-tags {
        gap: 0.5rem;
    }

    .hero-stats {
        flex-direction: row;
        gap: 1rem;
        flex-wrap: nowrap;
    }

    .stat-item {
        min-width: 80px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .stat-divider {
        display: block;
    }

    .hero-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        flex-direction: column;
        gap: 2rem;
    }

    .timeline-item {
        padding-left: 0;
    }

    .timeline-marker {
        left: auto;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .contact-card {
        padding: 1.5rem;
        width: 100%;
        min-width: 0;
    }

    .contact-card-icon {
        font-size: 2rem;
    }

    .contact-card h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .contact-card-link,
    .contact-card-text {
        font-size: 0.875rem;
    }

    .social-links {
        gap: 1rem;
    }

    .shape-1 {
        width: 300px;
        height: 300px;
    }

    .shape-2 {
        width: 200px;
        height: 200px;
    }

    .shape-3 {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .contact-card-icon {
        font-size: 2.5rem;
    }

    .tech-stack,
    .abilities-grid {
        grid-template-columns: 1fr;
    }

    .skill-tag {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .skills-tags {
        flex-wrap: wrap !important;
        width: 100% !important;
        min-width: 100% !important;
        padding: 1.5rem 1rem !important;
        justify-content: center !important;
    }

    .tech-stack {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }

    .tech-item {
        padding: 0.75rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .tech-logo {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .tech-name {
        font-size: 0.85rem;
    }

    .tech-level {
        font-size: 0.7rem;
    }
}
