/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #e8e6e3;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    position: relative;
}

/* 添加深色纹理背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 206, 84, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.9) 100%);
    backdrop-filter: blur(20px);
    padding: 4rem 0;
    text-align: center;
    color: #e8e6e3;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 206, 84, 0.2);
    position: relative;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(255, 206, 84, 0.05) 50%, transparent 100%);
    pointer-events: none;
}

header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffce54 0%, #f4d03f 50%, #ffce54 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 206, 84, 0.3);
}

.subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #c8c6c3;
}

.description {
    font-size: 1.1rem;
    opacity: 0.8;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    color: #a8a6a3;
}

/* 主内容区域 */
main {
    padding: 4rem 0;
}

section {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(22, 33, 62, 0.8) 100%);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 206, 84, 0.1);
    border: 1px solid rgba(120, 119, 198, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 206, 84, 0.03) 50%, transparent 100%);
    border-radius: 16px;
    pointer-events: none;
}

section:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 206, 84, 0.2);
}

section h2 {
    color: #ffce54;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    font-weight: 600;
    text-shadow: 0 0 20px rgba(255, 206, 84, 0.3);
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, rgba(120, 119, 198, 0.2) 0%, rgba(255, 206, 84, 0.1) 100%);
    border: 1px solid rgba(120, 119, 198, 0.3);
}

.hero h2 {
    color: #7877c6;
    text-shadow: 0 0 20px rgba(120, 119, 198, 0.5);
}

.hero p {
    font-size: 1.1rem;
    color: #e8e6e3;
    margin-bottom: 1.5rem;
}

/* 项目展示 */
.project-showcase {
    background: linear-gradient(135deg, rgba(255, 206, 84, 0.15) 0%, rgba(120, 119, 198, 0.1) 100%);
    border: 1px solid rgba(255, 206, 84, 0.3);
}

.project-showcase h2 {
    color: #ffce54;
    text-shadow: 0 0 25px rgba(255, 206, 84, 0.4);
}

.project-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.6) 0%, rgba(22, 33, 62, 0.6) 100%);
    border-radius: 12px;
    padding: 2.5rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(120, 119, 198, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 206, 84, 0.1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-header h3 {
    font-size: 1.6rem;
    margin: 0;
    color: #ffce54;
    text-shadow: 0 0 15px rgba(255, 206, 84, 0.3);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #ffce54 0%, #f4d03f 100%);
    color: #1a1a2e;
    box-shadow: 0 4px 15px rgba(255, 206, 84, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f4d03f 0%, #ffce54 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 206, 84, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(120, 119, 198, 0.8) 0%, rgba(120, 119, 198, 0.6) 100%);
    color: #e8e6e3;
    border: 1px solid rgba(120, 119, 198, 0.5);
    box-shadow: 0 4px 15px rgba(120, 119, 198, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(120, 119, 198, 0.9) 0%, rgba(120, 119, 198, 0.7) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(120, 119, 198, 0.3);
}

.project-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #c8c6c3;
    line-height: 1.7;
}

.project-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.5) 0%, rgba(22, 33, 62, 0.5) 100%);
    border-radius: 8px;
    border: 1px solid rgba(120, 119, 198, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.7) 0%, rgba(22, 33, 62, 0.7) 100%);
    border-color: rgba(255, 206, 84, 0.3);
    transform: translateY(-2px);
}

.feature-item .icon {
    font-size: 1.3rem;
}

.feature-item span:last-child {
    color: #e8e6e3;
    font-weight: 500;
}

/* 技能区域 */
.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.4) 0%, rgba(22, 33, 62, 0.4) 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(120, 119, 198, 0.2);
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: rgba(255, 206, 84, 0.3);
    transform: translateY(-2px);
}

.skill-category h3 {
    color: #ffce54;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 206, 84, 0.3);
    text-shadow: 0 0 10px rgba(255, 206, 84, 0.3);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    background: linear-gradient(135deg, rgba(120, 119, 198, 0.8) 0%, rgba(120, 119, 198, 0.6) 100%);
    color: #e8e6e3;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(120, 119, 198, 0.3);
    box-shadow: 0 2px 8px rgba(120, 119, 198, 0.2);
}

.tag:hover {
    background: linear-gradient(135deg, rgba(255, 206, 84, 0.9) 0%, rgba(255, 206, 84, 0.7) 100%);
    color: #1a1a2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 206, 84, 0.3);
}

/* 服务区域 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.6) 0%, rgba(22, 33, 62, 0.6) 100%);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(120, 119, 198, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.service-card:hover {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(22, 33, 62, 0.8) 100%);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 206, 84, 0.3);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(255, 206, 84, 0.3));
}

.service-card h3 {
    color: #ffce54;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 206, 84, 0.3);
}

.service-card p {
    color: #c8c6c3;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-card ul {
    list-style: none;
    text-align: left;
}

.service-card li {
    color: #a8a6a3;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ffce54;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 206, 84, 0.5);
}

/* 成就区域 */
.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.achievement-item {
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(255, 206, 84, 0.15) 0%, rgba(120, 119, 198, 0.15) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 206, 84, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    min-height: 180px;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.achievement-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 206, 84, 0.5);
}

.achievement-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffce54 0%, #f4d03f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255, 206, 84, 0.3);
}

.achievement-label {
    font-size: 1.1rem;
    color: #c8c6c3;
    font-weight: 500;
    line-height: 1.3;
    word-wrap: break-word;
    hyphens: auto;
}

/* 联系方式 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.contact-item {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.6) 0%, rgba(22, 33, 62, 0.6) 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(120, 119, 198, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    min-height: 160px;
}

.contact-item:hover {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(22, 33, 62, 0.8) 100%);
    transform: translateY(-3px);
    border-color: rgba(255, 206, 84, 0.3);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(255, 206, 84, 0.3));
    flex-shrink: 0;
}

.contact-info {
    flex: 1;
    min-width: 0;
}

.contact-info h3 {
    color: #ffce54;
    margin: 0;
    font-size: 1.3rem;
    text-shadow: 0 0 10px rgba(255, 206, 84, 0.3);
}

.contact-content {
    margin-left: 0;
}

.contact-content p {
    color: #c8c6c3;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

.contact-link {
    color: #7877c6;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    word-wrap: break-word;
    display: inline-block;
}

.contact-link:hover {
    color: #ffce54;
    text-shadow: 0 0 10px rgba(255, 206, 84, 0.5);
}

/* 微信二维码样式 */
.wechat-qr {
    margin-top: 0.5rem;
}

.qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.qr-code {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 206, 84, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.qr-code:hover {
    border-color: rgba(255, 206, 84, 0.5);
    box-shadow: 0 4px 15px rgba(255, 206, 84, 0.2);
    transform: translateY(-2px);
}

.qr-code.expanded {
    width: 200px;
    height: 200px;
}

.qr-icon {
    font-size: 1.5rem;
    color: #7877c6;
    transition: all 0.3s ease;
}

.qr-code:hover .qr-icon {
    color: #ffce54;
    transform: scale(1.1);
}

.qr-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: none;
}

.qr-image.show {
    display: block;
}

.qr-hint {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 26, 46, 0.9);
    color: #e8e6e3;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.qr-code:hover .qr-hint {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.qr-pattern {
    width: 100px;
    height: 100px;
    background: 
        linear-gradient(45deg, #333 25%, transparent 25%),
        linear-gradient(-45deg, #333 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #333 75%),
        linear-gradient(-45deg, transparent 75%, #333 75%);
    background-size: 8px 8px;
    background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
    border-radius: 4px;
    opacity: 0.7;
}

.wechat-id {
    color: #7877c6;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* 页脚样式 */
footer {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.9) 100%);
    backdrop-filter: blur(20px);
    color: #c8c6c3;
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 206, 84, 0.2);
}

footer a {
    color: #ffce54;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: #f4d03f;
    text-shadow: 0 0 10px rgba(255, 206, 84, 0.5);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.3rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    section {
        padding: 2rem;
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .project-links {
        width: 100%;
        justify-content: center;
    }
    
    .skill-grid,
    .service-grid,
    .achievement-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .contact-header {
        justify-content: center;
        text-align: center;
    }
    
    .contact-content {
        text-align: center;
    }
    
    .achievement-item {
        min-height: 140px;
        padding: 2rem;
    }
    
    .achievement-number {
        font-size: 2.8rem;
    }
    
    .achievement-label {
        font-size: 1rem;
    }
    
    /* 移动端QR码优化 */
    .qr-code {
        min-height: 44px; /* 符合移动端触摸目标最小尺寸 */
        min-width: 44px;
        touch-action: manipulation;
    }
    
    .qr-code.expanded {
        width: 180px;
        height: 180px;
    }
    
    .qr-icon {
        font-size: 1.3rem;
    }
    
    .qr-hint {
        font-size: 0.75rem;
        bottom: -25px;
    }
}

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

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(255, 206, 84, 0.3);
    }
    50% {
        text-shadow: 0 0 30px rgba(255, 206, 84, 0.5);
    }
}

section {
    animation: fadeIn 0.8s ease forwards;
}

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

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #7877c6 0%, #ffce54 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ffce54 0%, #7877c6 100%);
} 