/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主配色方案 */
    --color-lavender: #ccc6d5;      /* 淡紫灰 - 背景 */
    --color-lilac: #d7d0da;          /* 淡紫粉 - 卡片背景 */
    --color-plum: #563b4e;           /* 深紫红 - 主文字 */
    --color-mauve: #8c6e83;          /* 柔和紫 - 次要文字 */
    --color-periwinkle: #8da6d4;    /* 淡蓝紫 - 强调色 */
    --color-rose-brown: #886160;     /* 玫瑰棕 - 辅助色 */
    --color-dusty-pink: #bb9bac;     /* 粉紫 - 装饰色 */
    
    /* 功能性颜色 */
    --bg-primary: #f5f3f7;
    --bg-secondary: #ffffff;
    --bg-card: rgba(215, 208, 218, 0.4);
    --text-primary: #563b4e;
    --text-secondary: #8c6e83;
    --text-light: #bb9bac;
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #8da6d4 0%, #bb9bac 100%);
    --gradient-secondary: linear-gradient(135deg, #ccc6d5 0%, #d7d0da 100%);
    --gradient-accent: linear-gradient(135deg, #886160 0%, #8c6e83 100%);
    
    /* Fluent Design 阴影 */
    --shadow-2: 0 0.3px 0.9px rgba(86, 59, 78, 0.1), 0 1.6px 3.6px rgba(86, 59, 78, 0.13);
    --shadow-4: 0 0.6px 1.8px rgba(86, 59, 78, 0.1), 0 3.2px 7.2px rgba(86, 59, 78, 0.13);
    --shadow-8: 0 1.2px 3.6px rgba(86, 59, 78, 0.1), 0 6.4px 14.4px rgba(86, 59, 78, 0.13);
    --shadow-16: 0 2.4px 7.2px rgba(86, 59, 78, 0.1), 0 12.8px 28.8px rgba(86, 59, 78, 0.13);
    --shadow-64: 0 9.6px 28.8px rgba(86, 59, 78, 0.1), 0 51.2px 115.2px rgba(86, 59, 78, 0.13);
    
    /* 圆角 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    
    /* 动画曲线 */
    --ease-standard: cubic-bezier(0.4, 0.0, 0.2, 1);
    --ease-decelerate: cubic-bezier(0.0, 0.0, 0.2, 1);
    --ease-accelerate: cubic-bezier(0.4, 0.0, 1, 1);
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.loaded {
    opacity: 1;
}

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

/* 导航栏 - Fluent Design */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(204, 198, 213, 0.3);
    z-index: 1000;
    transition: all 0.3s var(--ease-standard);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-plum);
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: color 0.2s var(--ease-standard);
}

.logo:hover {
    color: var(--color-periwinkle);
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.2s var(--ease-standard);
    position: relative;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
}

.nav-menu a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    opacity: 0;
    transition: opacity 0.2s var(--ease-standard);
}

.nav-menu a:hover {
    color: var(--color-plum);
}

.nav-menu a:hover::before {
    opacity: 1;
}

.nav-menu a span {
    position: relative;
    z-index: 1;
}

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

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--color-plum);
    transition: all 0.3s var(--ease-standard);
    border-radius: 2px;
}

/* 英雄区域 - Acrylic Effect */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(141, 166, 212, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(187, 155, 172, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(204, 198, 213, 0.1) 0%, transparent 50%);
    animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(86, 59, 78, 0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #ffffff;
    animation: heroFadeIn 1.2s var(--ease-decelerate);
    max-width: 900px;
    padding: 0 2rem;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
    font-family: 'Noto Serif SC', serif;
    text-shadow: 0 2px 40px rgba(86, 59, 78, 0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 400;
    opacity: 0.95;
    letter-spacing: 0.01em;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.85;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 0.875rem 2.5rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-plum);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s var(--ease-standard);
    box-shadow: var(--shadow-8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-16);
    background: rgba(255, 255, 255, 1);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2.5s ease-in-out infinite;
    opacity: 0.7;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    animation: scrollDot 2.5s ease-in-out infinite;
}

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

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

/* 区域标题 - Microsoft Fluent */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    font-family: 'Noto Serif SC', serif;
    color: var(--color-plum);
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.title-underline {
    width: 60px;
    height: 3px;
    background: var(--color-periwinkle);
    margin: 0 auto;
    border-radius: 2px;
    opacity: 0.8;
}

/* 关于部分 */
.about-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.125rem;
    line-height: 2;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 300;
}

/* 特色内容 - Card Design */
.features-section {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(204, 198, 213, 0.3);
    box-shadow: var(--shadow-2);
    transition: all 0.3s var(--ease-standard);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-8);
    border-color: var(--color-periwinkle);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: var(--shadow-4);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.875rem;
    color: var(--color-plum);
    letter-spacing: 0.01em;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 0.95rem;
    font-weight: 300;
}

/* 作品展示 - Gallery Grid */
.gallery-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-4);
    transition: all 0.3s var(--ease-standard);
    cursor: pointer;
    border: 1px solid rgba(204, 198, 213, 0.2);
}

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

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-mauve);
}

.gallery-placeholder svg {
    width: 72px;
    height: 72px;
    opacity: 0.3;
}

/* 关于Mana */
.artist-section {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.artist-content {
    max-width: 800px;
    margin: 0 auto;
}

.artist-text {
    font-size: 1.125rem;
    line-height: 2;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 300;
}

/* 最新动态 */
.updates-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.updates-content {
    max-width: 800px;
    margin: 0 auto;
}

.updates-text {
    font-size: 1.125rem;
    line-height: 2;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 300;
}

/* 网站目标 */
.mission-section {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.mission-content {
    max-width: 800px;
    margin: 0 auto;
}

.mission-text {
    font-size: 1.125rem;
    line-height: 2;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 300;
}

/* 联系我们 */
.contact-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-text {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(204, 198, 213, 0.3);
    border-radius: var(--radius-md);
    transition: all 0.2s var(--ease-standard);
    text-align: left;
}

.contact-item:hover {
    background: rgba(141, 166, 212, 0.15);
    border-color: var(--color-periwinkle);
    transform: translateX(4px);
    box-shadow: var(--shadow-4);
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
}

.contact-item p {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

/* 页脚 - 完整重构 */
.footer {
    background: var(--color-plum);
    color: rgba(255, 255, 255, 0.9);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* 品牌区域 */
.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    font-family: 'Noto Serif SC', serif;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

/* 社交媒体图标 */
.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s var(--ease-standard);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* 页脚栏目 */
.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 1.25rem;
    letter-spacing: 0.01em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links li {
    line-height: 1.5;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    transition: all 0.2s var(--ease-standard);
    display: inline-block;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

/* 底部版权区域 */
.footer-bottom {
    padding-top: 2rem;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.2) 80%,
        transparent
    );
    margin-bottom: 2rem;
}

.footer-copyright {
    text-align: center;
    margin-bottom: 1rem;
}

.footer-copyright p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0.25rem 0;
    font-weight: 300;
}

.footer-slogan {
    font-size: 0.8rem;
    opacity: 0.6;
    font-style: italic;
}

.footer-legal {
    text-align: center;
    font-size: 0.85rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s var(--ease-standard);
}

.footer-legal a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.footer-legal .separator {
    margin: 0 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 65px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: left 0.3s var(--ease-standard);
        box-shadow: var(--shadow-8);
        padding: 2rem 0;
        gap: 0.5rem;
        border-bottom: 1px solid rgba(204, 198, 213, 0.3);
    }

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

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

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

    .hero-subtitle {
        font-size: 1.25rem;
    }

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

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-text,
    .artist-text,
    .updates-text,
    .mission-text {
        font-size: 1rem;
        line-height: 1.8;
    }

    .contact-text {
        font-size: 1rem;
    }

    .about-section,
    .features-section,
    .gallery-section,
    .artist-section,
    .updates-section,
    .mission-section,
    .contact-section {
        padding: 4rem 0;
    }

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

    .contact-item {
        justify-content: flex-start;
    }

    /* 响应式页脚 */
    .footer {
        padding: 3rem 0 1.5rem;
    }

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

    .footer-brand {
        max-width: 100%;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-section {
        text-align: center;
    }

    .footer-links a:hover {
        transform: translateX(0);
    }

    .footer-bottom {
        padding-top: 1.5rem;
    }

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

    .footer-legal .separator {
        display: none;
    }
}

/* 动画效果 - Fluent Motion */
.fade-in {
    animation: fadeIn 0.6s var(--ease-decelerate);
}

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

.slide-in-left {
    animation: slideInLeft 0.5s var(--ease-decelerate);
}

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

.slide-in-right {
    animation: slideInRight 0.5s var(--ease-decelerate);
}

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

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

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-dusty-pink);
    border-radius: 5px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-mauve);
}

/* 选中文本样式 */
::selection {
    background: var(--color-periwinkle);
    color: white;
}

::-moz-selection {
    background: var(--color-periwinkle);
    color: white;
}

/* Fluent Design - Reveal Effect (鼠标光晕效果) */
.feature-card,
.gallery-item,
.contact-item {
    position: relative;
    overflow: hidden;
}

.feature-card::after,
.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                                rgba(141, 166, 212, 0.1) 0%, 
                                transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-card:hover::after,
.gallery-item:hover::after {
    opacity: 1;
}

/* 页面加载动画优化 */
@keyframes pageLoad {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.container {
    animation: pageLoad 0.6s var(--ease-decelerate);
}

/* Focus 样式 - 符合Fluent Design */
a:focus,
button:focus {
    outline: 2px solid var(--color-periwinkle);
    outline-offset: 2px;
}

/* 平滑的焦点效果 */
*:focus-visible {
    outline: 2px solid var(--color-periwinkle);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

