/* ========== 基础样式 ========== */
:root {
    --primary-color: #007AFF;
    --secondary-color: #5856D6;
    --accent-color: #34C759;
    --bg-color: #F5F5F7;
    --card-bg: rgba(255, 255, 255, 0.8);
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --gradient: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    --gradient-accent: linear-gradient(135deg, #34C759 0%, #007AFF 100%);
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.18);
}

[data-theme="dark"] {
    --primary-color: #0A84FF;
    --secondary-color: #5E5CE6;
    --accent-color: #30D158;
    --bg-color: #000000;
    --card-bg: rgba(28, 28, 30, 0.85);
    --text-primary: #F5F5F7;
    --text-secondary: #98989D;
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.6);
    --glass-bg: rgba(28, 28, 30, 0.72);
    --glass-border: rgba(255, 255, 255, 0.12);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'PingFang SC', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.47059;
    letter-spacing: -0.022em;
    overflow-x: hidden;
    transition: background-color 0.5s cubic-bezier(0.28, 0.11, 0.32, 1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ========== 导航栏 ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.28, 0.11, 0.32, 1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.015em;
}

.logo-icon {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

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

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
    position: relative;
    opacity: 0.88;
}

.nav-link:hover {
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.theme-toggle {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    transform: scale(1.05);
    background: var(--bg-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ========== Hero Section ========== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 50px;
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.05) 0%, transparent 70%);
    animation: pulse 20s ease-in-out infinite;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    z-index: 1;
}

.hero-text {
    flex: 1;
}

.greeting {
    display: block;
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 400;
    letter-spacing: -0.015em;
    animation: slideInLeft 0.8s cubic-bezier(0.28, 0.11, 0.32, 1);
}

.name {
    display: block;
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    animation: slideInLeft 0.8s cubic-bezier(0.28, 0.11, 0.32, 1) 0.1s backwards;
}

.hero-subtitle {
    font-size: 1.75rem;
    color: var(--text-secondary);
    margin: 1rem 0;
    font-weight: 400;
    letter-spacing: -0.015em;
    animation: slideInLeft 0.8s cubic-bezier(0.28, 0.11, 0.32, 1) 0.2s backwards;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: slideInLeft 0.8s cubic-bezier(0.28, 0.11, 0.32, 1) 0.3s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: slideInLeft 0.8s cubic-bezier(0.28, 0.11, 0.32, 1) 0.4s backwards;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 400;
    font-size: 1.0625rem;
    letter-spacing: -0.015em;
    transition: all 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.avatar-container {
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.avatar {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 140px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 2;
}

.avatar-decoration {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    animation: rotate 30s linear infinite;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    animation: bounce 2s ease-in-out infinite;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: scroll 2s ease-in-out infinite;
}

/* ========== Section 通用样式 ========== */
section {
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-primary);
}

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

/* ========== 关于我 ========== */
.about {
    background: var(--card-bg);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--card-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    padding: 2.5rem;
    border-radius: 18px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.28, 0.11, 0.32, 1);
    border: 1px solid var(--glass-border);
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.about-card p {
    color: var(--text-secondary);
}

/* ========== 照片墙 ========== */
.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    border-radius: 980px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
    font-weight: 400;
    font-size: 0.9375rem;
    letter-spacing: -0.015em;
    backdrop-filter: saturate(180%) blur(20px);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.02);
}

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

.gallery-item {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    background: #f0f0f0;
    transition: all 0.4s cubic-bezier(0.28, 0.11, 0.32, 1);
    box-shadow: var(--shadow);
    height: 350px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.28, 0.11, 0.32, 1);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.28, 0.11, 0.32, 1);
    backdrop-filter: blur(10px);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    color: white;
    margin-bottom: 0.3rem;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

/* ========== 音乐播放器 ========== */
.music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    background: var(--glass-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-radius: 18px;
    box-shadow: var(--shadow-hover);
    z-index: 999;
    border: 1px solid var(--glass-border);
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--primary-color);
}

.player-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

.player-content {
    padding: 1.5rem;
}

.player-content.hidden {
    display: none;
}

.album-cover {
    text-align: center;
    margin-bottom: 1rem;
}

.cover-img {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.cover-img.rotating {
    animation: rotate 10s linear infinite;
}

.cover-img.paused {
    animation-play-state: paused;
}

.song-info {
    text-align: center;
    margin-bottom: 1rem;
}

.song-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.song-artist {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.control-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.control-btn:hover {
    transform: scale(1.2);
}

.play-btn {
    font-size: 2rem;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.progress-bar:hover {
    height: 6px;
}

.progress {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 2px;
}

/* ========== 返回顶部 ========== */
.back-to-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.28, 0.11, 0.32, 1);
    box-shadow: var(--shadow);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: scale(1.08);
}

/* ========== 页脚 ========== */
.footer {
    background: var(--card-bg);
    padding: 2rem 0;
    border-top: 2px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-text {
    color: var(--text-secondary);
    margin: 0;
}

.footer-icp {
    margin: 0;
}

.footer-icp a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-icp a:hover {
    color: var(--primary-color);
}

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

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
    border: 1px solid var(--border-color);
}

.social-link:hover {
    background: var(--primary-color);
    transform: scale(1.08);
    color: white;
    border-color: var(--primary-color);
}

/* ========== 图片查看器模态框 ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    animation: fadeIn 0.4s cubic-bezier(0.28, 0.11, 0.32, 1);
    backdrop-filter: blur(20px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    animation: zoomIn 0.4s cubic-bezier(0.28, 0.11, 0.32, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: scale(1.2);
}

.modal-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    max-width: 80%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-caption h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.modal-caption p {
    font-size: 0.9375rem;
    opacity: 0.9;
}

/* ========== 动画 ========== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes scroll {
    0% { opacity: 0; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========== 响应式设计 ========== */

/* 平板设备 */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content {
        gap: 3rem;
    }
    
    .name {
        font-size: 3rem;
    }
    
    .avatar {
        width: 250px;
        height: 250px;
        font-size: 120px;
    }
}

/* 手机横屏/小平板 */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .nav-container {
        padding: 0.8rem 1rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--card-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        gap: 0;
        z-index: 999;
    }
    
    .nav-menu li {
        padding: 0.8rem 0;
        width: 100%;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }
    
    .theme-toggle {
        padding: 0.4rem 0.8rem;
        font-size: 1rem;
    }

    .hero {
        padding: 80px 15px 40px;
        min-height: auto;
    }
    
    .hero-content {
        flex-direction: column-reverse;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .name {
        font-size: 2.5rem;
    }
    
    .greeting {
        font-size: 1.2rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }

    .avatar {
        width: 200px;
        height: 200px;
        font-size: 100px;
    }
    
    .avatar-decoration {
        top: -15px;
        left: -15px;
        right: -15px;
        bottom: -15px;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    section {
        padding: 50px 15px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .title-icon {
        font-size: 2rem;
    }
    
    .about-content {
        gap: 1.5rem;
    }
    
    .about-card {
        padding: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .gallery-item {
        height: 280px;
    }
    
    .gallery-filter {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }

    .music-player {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
        bottom: 80px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        bottom: 15px;
        left: 15px;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-info {
        align-items: center;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 80vh;
    }
    
    .modal-caption {
        bottom: 15px;
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
        max-width: 90%;
    }
    
    .modal-caption h3 {
        font-size: 1.1rem;
    }
    
    .modal-caption p {
        font-size: 0.875rem;
    }
}

/* 手机竖屏 */
@media (max-width: 480px) {
    .name {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .avatar {
        width: 160px;
        height: 160px;
        font-size: 80px;
    }
    
    .section-title {
        font-size: 1.6rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-card {
        padding: 1.2rem;
    }
    
    .card-icon {
        font-size: 2.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-item {
        height: 320px;
    }
    
    .gallery-filter {
        gap: 0.4rem;
    }
    
    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .music-player {
        width: calc(100% - 20px);
        left: 10px;
        right: 10px;
        bottom: 70px;
    }
    
    .player-content {
        padding: 1rem;
    }
    
    .cover-img {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        bottom: 10px;
        left: 10px;
    }
    
    .footer {
        padding: 1.5rem 0;
    }
}

/* 超小屏幕 */
@media (max-width: 360px) {
    .name {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .btn {
        padding: 0.9rem 2rem;
    }
    
    .filter-btn,
    .control-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 0.5rem 0;
    }
    
    /* 移除悬停效果，改为点击效果 */
    .gallery-item .gallery-overlay {
        transform: translateY(0);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .gallery-item.active .gallery-overlay {
        opacity: 1;
    }
}
