/* ================================
   风格三：新拟态 Neumorphism
   特点：柔和阴影、凸起和凹陷效果、单色调、极简
================================ */

:root {
    --bg: #e0e5ec;
    --text: #4d5b7c;
    --text-light: #7d8cb3;
    --shadow-light: #ffffff;
    --shadow-dark: #a3b1c6;
    --accent: #6d5dfc;
    --accent-light: #8b80ff;
    --radius: 20px;
    --transition: all 0.3s ease;
}

/* 深色模式 */
[data-theme="dark"] {
    --bg: #2d3436;
    --text: #dfe6e9;
    --text-light: #b2bec3;
    --shadow-light: #353b48;
    --shadow-dark: #1e272e;
    --accent: #6d5dfc;
    --accent-light: #a29bfe;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* 新拟态阴影工具类 */
.neu-flat {
    background: var(--bg);
    box-shadow: 
        9px 9px 16px var(--shadow-dark),
        -9px -9px 16px var(--shadow-light);
    border-radius: var(--radius);
}

.neu-pressed {
    background: var(--bg);
    box-shadow: 
        inset 6px 6px 10px var(--shadow-dark),
        inset -6px -6px 10px var(--shadow-light);
    border-radius: var(--radius);
}

.neu-convex {
    background: linear-gradient(145deg, #f0f5fd, #caced4);
    box-shadow: 
        9px 9px 16px var(--shadow-dark),
        -9px -9px 16px var(--shadow-light);
    border-radius: var(--radius);
}

.neu-concave {
    background: linear-gradient(145deg, #caced4, #f0f5fd);
    box-shadow: 
        9px 9px 16px var(--shadow-dark),
        -9px -9px 16px var(--shadow-light);
    border-radius: var(--radius);
}

/* 导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    z-index: 1000;
    padding: 1.5rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    background: var(--bg);
    box-shadow: 
        6px 6px 10px var(--shadow-dark),
        -6px -6px 10px var(--shadow-light);
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    transition: var(--transition);
    background: var(--bg);
    box-shadow: 
        4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
}

.nav-link:hover,
.nav-link.active {
    box-shadow: 
        inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light);
    color: var(--accent);
}

/* 主题切换开关 */
.theme-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    box-shadow: 
        4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
    transition: var(--transition);
    margin-left: 1rem;
}

.theme-toggle:hover {
    box-shadow: 
        inset 3px 3px 6px var(--shadow-dark),
        inset -3px -3px 6px var(--shadow-light);
}

.theme-toggle svg {
    width: 22px;
    height: 22px;
    color: var(--text);
    transition: var(--transition);
}

.theme-toggle .sun-icon {
    display: block;
}

.theme-toggle .moon-icon {
    display: none;
}

/* 深色模式下的图标切换 */
[data-theme="dark"] .theme-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: block;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8rem 2rem 4rem;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 50px;
    background: var(--bg);
    box-shadow: 
        6px 6px 10px var(--shadow-dark),
        -6px -6px 10px var(--shadow-light);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 8px #4ade80;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.hero-description {
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 1rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(145deg, var(--accent), #5a4ce8);
    color: white;
    box-shadow: 
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);
}

.btn-primary:hover {
    box-shadow: 
        inset 4px 4px 8px rgba(0,0,0,0.2),
        inset -4px -4px 8px rgba(255,255,255,0.1);
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    box-shadow: 
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);
}

.btn-secondary:hover {
    box-shadow: 
        inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light);
}

/* Sections */
section {
    padding: 6rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent);
    background: var(--bg);
    box-shadow: 
        4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-desc {
    color: var(--text-light);
}

/* About */
.about-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: center;
}

.image-wrapper {
    padding: 2rem;
    border-radius: 50%;
    background: var(--bg);
    box-shadow: 
        12px 12px 24px var(--shadow-dark),
        -12px -12px 24px var(--shadow-light);
}

.image-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--accent), var(--accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        inset 4px 4px 8px rgba(0,0,0,0.2),
        inset -4px -4px 8px rgba(255,255,255,0.3);
}

.image-placeholder svg {
    width: 64px;
    height: 64px;
    color: white;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    background: var(--bg);
    box-shadow: 
        inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light);
    display: inline-block;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.skills {
    margin-top: 2rem;
}

.skills h4 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

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

.tag {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    background: var(--bg);
    box-shadow: 
        4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
    transition: var(--transition);
}

.tag:hover {
    box-shadow: 
        inset 3px 3px 6px var(--shadow-dark),
        inset -3px -3px 6px var(--shadow-light);
    color: var(--accent);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    padding: 2rem;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: 
        9px 9px 16px var(--shadow-dark),
        -9px -9px 16px var(--shadow-light);
    cursor: pointer;
    transition: var(--transition);
}

.project-card:hover {
    box-shadow: 
        inset 6px 6px 10px var(--shadow-dark),
        inset -6px -6px 10px var(--shadow-light);
}

.project-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(145deg, var(--accent), var(--accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 
        4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
}

.project-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.project-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.project-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-tags span {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--text-light);
    background: var(--bg);
    box-shadow: 
        2px 2px 4px var(--shadow-dark),
        -2px -2px 4px var(--shadow-light);
}

/* Daily */
.daily-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.daily-preview {
    padding: 4rem 3rem;
    text-align: center;
    border-radius: var(--radius);
    background: var(--bg);
    box-shadow: 
        9px 9px 16px var(--shadow-dark),
        -9px -9px 16px var(--shadow-light);
    transition: var(--transition);
    max-width: 400px;
    width: 100%;
}

.daily-preview:hover {
    box-shadow: 
        12px 12px 24px var(--shadow-dark),
        -12px -12px 24px var(--shadow-light);
    transform: translateY(-5px);
}

.preview-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--accent), var(--accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);
}

.preview-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.daily-preview h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.daily-preview p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.contact-card {
    padding: 2rem 1rem;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    border-radius: var(--radius);
    background: var(--bg);
    box-shadow: 
        8px 8px 16px var(--shadow-dark),
        -8px -8px 16px var(--shadow-light);
    transition: var(--transition);
}

.contact-card:hover {
    box-shadow: 
        inset 6px 6px 12px var(--shadow-dark),
        inset -6px -6px 12px var(--shadow-light);
}

.contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: var(--bg);
    box-shadow: 
        4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.contact-card h3 {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.contact-card p {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Footer */
.footer {
    padding: 3rem 2rem;
    margin-top: 2rem;
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--bg);
    box-shadow: 
        0 -6px 12px var(--shadow-dark),
        0 6px 12px var(--shadow-light);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand {
    font-size: 1.3rem;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    background: var(--bg);
    box-shadow: 
        4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
}

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

.footer-links a {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    background: var(--bg);
    box-shadow: 
        3px 3px 6px var(--shadow-dark),
        -3px -3px 6px var(--shadow-light);
    transition: var(--transition);
}

.footer-links a:hover {
    box-shadow: 
        inset 3px 3px 6px var(--shadow-dark),
        inset -3px -3px 6px var(--shadow-light);
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

.footer-bottom span {
    color: var(--accent);
    font-weight: 600;
}

/* 更多项目折叠区域 */
.projects-more {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.4s ease, margin-top 0.4s ease;
    opacity: 0;
}

.projects-more.expanded {
    max-height: 2000px;
    opacity: 1;
    margin-top: 1.5rem;
}

/* 展开/收起按钮 */
.projects-toggle {
    text-align: center;
    margin-top: 2rem;
}

.projects-toggle .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.projects-toggle .btn.expanded .toggle-icon {
    transform: rotate(180deg);
}

/* 响应式 */
.nav-toggle {
    display: none;
    padding: 0.75rem;
    border-radius: 12px;
    background: var(--bg);
    box-shadow: 
        4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--text);
    margin: 5px 0;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 90px;
        left: 2rem;
        right: 2rem;
        padding: 2rem;
        border-radius: var(--radius);
        background: var(--bg);
        box-shadow: 
            9px 9px 16px var(--shadow-dark),
            -9px -9px 16px var(--shadow-light);
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.3s;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-menu ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
    }
    
    .nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .theme-toggle {
        margin-left: auto;
        margin-right: 1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .image-wrapper {
        margin: 0 auto;
        width: fit-content;
    }
    
    .projects-grid,
    .daily-preview {
        max-width: 100%;
        margin: 0 1rem;
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* APlayer 新拟态样式适配 */
.aplayer {
    background: #e0e5ec !important;
    box-shadow: 
        6px 6px 12px #a3b1c6,
        -6px -6px 12px #ffffff !important;
    border-radius: 20px !important;
    border: none !important;
}

.aplayer .aplayer-info {
    padding: 14px 7px 0 10px !important;
}

.aplayer .aplayer-info .aplayer-music .aplayer-title {
    color: #4d5b7c !important;
}

.aplayer .aplayer-info .aplayer-music .aplayer-author {
    color: #7d8cb3 !important;
}

.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap {
    background: #e0e5ec !important;
    box-shadow: inset 2px 2px 4px #a3b1c6, inset -2px -2px 4px #ffffff !important;
    border-radius: 10px !important;
}

.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar {
    background: #e0e5ec !important;
    box-shadow: inset 2px 2px 4px #a3b1c6, inset -2px -2px 4px #ffffff !important;
    border-radius: 10px !important;
}

.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played {
    background: linear-gradient(90deg, #6d5dfc, #8b80ff) !important;
}

.aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-thumb {
    background: #6d5dfc !important;
    box-shadow: 2px 2px 4px #a3b1c6, -2px -2px 4px #ffffff !important;
}

.aplayer .aplayer-icon {
    fill: #4d5b7c !important;
    transition: all 0.3s ease !important;
}

.aplayer .aplayer-icon:hover {
    fill: #6d5dfc !important;
}

.aplayer.aplayer-fixed {
    position: fixed !important;
    bottom: 0 !important;
    left: 20px !important;
    right: auto !important;
    width: 400px !important;
    max-width: calc(100% - 40px) !important;
}

.aplayer.aplayer-fixed .aplayer-body {
    background: transparent !important;
}

.aplayer .aplayer-list {
    background: #e0e5ec !important;
    border-top: 1px solid rgba(163, 177, 198, 0.3) !important;
}

.aplayer .aplayer-list ol li {
    color: #4d5b7c !important;
    border-top: 1px solid rgba(163, 177, 198, 0.3) !important;
}

.aplayer .aplayer-list ol li:hover {
    background: rgba(109, 93, 252, 0.1) !important;
}

.aplayer .aplayer-list ol li.aplayer-list-light {
    background: rgba(109, 93, 252, 0.15) !important;
}

.aplayer .aplayer-list ol li .aplayer-list-author {
    color: #7d8cb3 !important;
}
