/* ==========================================================================
   梅麻吕3D官网 - 日式风格样式表
   主色调：白色+黑色，搭配少女粉色，日式美学设计
   ========================================================================== */

/* CSS Custom Properties */
:root {
    /* 主色调 */
    --primary-color: #ff69b4;        /* 少女粉 */
    --secondary-color: #8b4513;      /* 原木色 */
    --accent-color: #ffc0cb;         /* 淡粉色 */
    --japanese-red: #d63031;         /* 日式红 */
    --japanese-blue: #0984e3;        /* 日式蓝 */
    --text-primary: #2d3436;         /* 深灰色文字 */
    --text-secondary: #636e72;       /* 中灰色文字 */
    --text-light: #a4b0be;           /* 浅灰色文字 */

    /* 背景色 */
    --bg-primary: #ffffff;           /* 纯白背景 */
    --bg-secondary: #fafafb;         /* 浅灰背景 */
    --bg-accent: #fff0f5;            /* 淡粉背景 */
    --bg-wood: #f5f2f0;              /* 原木背景 */
    --bg-sakura: #ffe4e1;            /* 樱花色背景 */

    /* 边框和阴影 */
    --border-color: #ddd;
    --shadow-light: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 8px 40px rgba(0, 0, 0, 0.16);
    --shadow-sakura: 0 4px 20px rgba(255, 105, 180, 0.15);

    /* 字体 */
    --font-family: 'Noto Sans SC', 'Noto Serif JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', sans-serif;
    --font-size-xs: 0.75rem;         /* 12px */
    --font-size-sm: 0.875rem;        /* 14px */
    --font-size-base: 1rem;          /* 16px */
    --font-size-lg: 1.125rem;        /* 18px */
    --font-size-xl: 1.25rem;         /* 20px */
    --font-size-2xl: 1.5rem;         /* 24px */
    --font-size-3xl: 2rem;           /* 32px */
    --font-size-4xl: 2.5rem;         /* 40px */

    /* 间距 */
    --spacing-xs: 0.25rem;           /* 4px */
    --spacing-sm: 0.5rem;            /* 8px */
    --spacing-md: 1rem;              /* 16px */
    --spacing-lg: 1.5rem;            /* 24px */
    --spacing-xl: 2rem;              /* 32px */
    --spacing-2xl: 3rem;             /* 48px */
    --spacing-3xl: 4rem;             /* 64px */

    /* 边框圆角 */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* 动画 */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* 日式设计特色 */
    --japanese-spacing: 1.618rem;    /* 黄金比例间距 */
    --japanese-line-height: 1.75;    /* 日式行高 */
}

/* ==========================================================================
   基础样式重置
   ========================================================================== */

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

/* 移动端触摸优化 */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 允许文本选择的元素 */
p, span, div, li, td, th, h1, h2, h3, h4, h5, h6 {
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* 输入框保持选择功能 */
input, textarea, select {
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

html {
    font-size: 16px;
    line-height: var(--japanese-line-height);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--japanese-line-height);
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-sakura) 100%);
    overflow-x: hidden;
}

/* 无障碍跳转链接 */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    z-index: 1000;
    transition: var(--transition-fast);
}

.skip-link:focus {
    top: 6px;
}

/* ==========================================================================
   日式排版样式
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--japanese-spacing);
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

h1 {
    font-size: var(--font-size-4xl);
    background: linear-gradient(135deg, var(--primary-color), var(--japanese-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
h2 {
    font-size: var(--font-size-3xl);
    position: relative;
}
h3 {
    font-size: var(--font-size-2xl);
    color: var(--primary-color);
}
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

/* 日式标题装饰 */
h2::before {
    content: '🌸';
    margin-right: var(--spacing-sm);
    font-size: 0.8em;
}

p {
    margin-bottom: var(--japanese-spacing);
    line-height: var(--japanese-line-height);
    letter-spacing: 0.02em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
    border-bottom: 2px solid transparent;
}

a:hover,
a:focus {
    color: var(--japanese-red);
    border-bottom-color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    filter: contrast(1.05) saturate(1.1);
}

ul, ol {
    margin-bottom: var(--japanese-spacing);
    padding-left: var(--spacing-xl);
}

li {
    margin-bottom: var(--spacing-sm);
    line-height: var(--japanese-line-height);
}

/* ==========================================================================
   布局组件
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-3xl) 0;
    position: relative;
}

.section:nth-child(even) {
    background: rgba(255, 240, 245, 0.3);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
    position: relative;
    font-size: var(--font-size-3xl);
    color: var(--text-primary);
    font-weight: 600;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-full);
}

/* 日式装饰元素 */
.section-title::before {
    content: '✦';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-color);
    font-size: var(--font-size-lg);
    opacity: 0.6;
}

/* ==========================================================================
   按钮样式 - 日式设计
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-2xl);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-light);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: var(--shadow-sakura);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.25);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-light);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    transform: translateY(-3px);
}

.btn-download {
    background: linear-gradient(135deg, var(--japanese-red), #e74c3c);
    color: white;
    min-width: 160px;
    box-shadow: 0 4px 20px rgba(214, 48, 49, 0.2);
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(214, 48, 49, 0.3);
    color: white;
    text-decoration: none;
}

/* ==========================================================================
   头部导航 - 日式设计
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 105, 180, 0.2);
    z-index: 1000;
    transition: var(--transition-base);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.logo {
    height: 45px;
    width: auto;
    border-radius: var(--radius-sm);
    filter: brightness(1.05);
}

.site-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), var(--japanese-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: 0.05em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    margin: 0;
    padding: 0;
}

.nav-link {
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition-fast);
    position: relative;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    letter-spacing: 0.02em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-fast);
    transform: translateX(-50%);
    border-radius: var(--radius-full);
}

.nav-link:hover {
    background: rgba(255, 105, 180, 0.1);
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 80%;
}

/* 搜索功能 - 日式设计 */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: var(--spacing-lg);
}

.search-input {
    width: 220px;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition-fast);
    letter-spacing: 0.02em;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 105, 180, 0.1);
    background: white;
}

.search-btn {
    position: absolute;
    right: var(--spacing-sm);
    background: none;
    border: none;
    cursor: pointer;
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    transition: var(--transition-fast);
    padding: var(--spacing-xs);
}

.search-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* ==========================================================================
   英雄区域 - 日式美学
   ========================================================================== */

.hero {
    padding: 120px 0 var(--spacing-3xl);
    background: linear-gradient(135deg,
        rgba(255, 240, 245, 0.8) 0%,
        rgba(255, 228, 225, 0.6) 50%,
        rgba(245, 242, 240, 0.8) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 105, 180, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(255, 192, 203, 0.08) 0%, transparent 60%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="2" fill="%23ff69b4" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ff69b4" opacity="0.1"/></svg>');
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--japanese-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.05em;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.hero-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    line-height: var(--japanese-line-height);
    letter-spacing: 0.02em;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-img {
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-heavy);
    transition: var(--transition-slow);
    filter: contrast(1.05) saturate(1.1);
}

.hero-img:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 15px 50px rgba(255, 105, 180, 0.2);
}

/* ==========================================================================
   作品介绍区域
   ========================================================================== */

.game-intro {
    background: rgba(255, 255, 255, 0.8);
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.intro-paragraph {
    font-size: var(--font-size-lg);
    line-height: var(--japanese-line-height);
    margin-bottom: var(--japanese-spacing);
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.section-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
    transition: var(--transition-base);
    filter: contrast(1.05) saturate(1.1);
}

.section-img:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-heavy);
}

/* ==========================================================================
   特色亮点区域
   ========================================================================== */

.features {
    background: var(--bg-sakura);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.feature-card {
    background: white;
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-light);
    transition: var(--transition-base);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--primary-color);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(255, 105, 180, 0.02) 0%,
        rgba(255, 192, 203, 0.02) 100%);
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-sakura);
}

.feature-icon {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-lg);
    display: block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-title {
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-xl);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.feature-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: var(--japanese-line-height);
    letter-spacing: 0.01em;
}

.feature-img {
    border-radius: var(--radius-lg);
    margin-top: var(--spacing-lg);
    box-shadow: var(--shadow-light);
    transition: var(--transition-base);
}

.feature-img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

/* ==========================================================================
   作品合集区域
   ========================================================================== */

.works-collection {
    background: var(--bg-primary);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-2xl);
}

.work-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-base);
    border: 1px solid rgba(255, 105, 180, 0.1);
}

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

.work-header {
    background: linear-gradient(135deg, var(--bg-sakura), var(--bg-accent));
    padding: var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 105, 180, 0.1);
}

.work-title {
    color: var(--text-primary);
    margin: 0;
    font-size: var(--font-size-lg);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.work-rating {
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.work-content {
    padding: var(--spacing-xl);
}

.work-description {
    color: var(--text-secondary);
    line-height: var(--japanese-line-height);
    margin-bottom: var(--spacing-lg);
    letter-spacing: 0.01em;
}

.work-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.work-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.work-img {
    border-radius: var(--radius-lg);
    margin-top: var(--spacing-lg);
    box-shadow: var(--shadow-light);
    transition: var(--transition-base);
    width: 100%;
}

.work-img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-medium);
}

/* ==========================================================================
   角色介绍区域
   ========================================================================== */

.characters {
    background: var(--bg-sakura);
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-2xl);
}

.character-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-base);
    position: relative;
    border: 1px solid rgba(255, 105, 180, 0.1);
}

.character-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-sakura);
}

.character-image {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.character-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
    filter: contrast(1.05) saturate(1.1);
}

.character-card:hover .character-image img {
    transform: scale(1.05);
}

.character-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color), var(--japanese-red));
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: var(--shadow-light);
}

.character-info {
    padding: var(--spacing-2xl);
}

.character-name {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
    text-align: center;
    letter-spacing: 0.05em;
}

.character-stats {
    display: grid;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    background: var(--bg-sakura);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 105, 180, 0.1);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(255, 105, 180, 0.1);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.stat-value {
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.character-description h4 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-lg);
    border-left: 4px solid var(--primary-color);
    padding-left: var(--spacing-md);
    letter-spacing: 0.02em;
}

.character-description p {
    color: var(--text-secondary);
    line-height: var(--japanese-line-height);
    margin-bottom: var(--spacing-xl);
    letter-spacing: 0.01em;
}

/* ==========================================================================
   精美截图画廊
   ========================================================================== */

.gallery {
    background: var(--bg-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-base);
    cursor: pointer;
    background: white;
}

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

.gallery-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition-base);
    filter: contrast(1.05) saturate(1.1);
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: var(--spacing-2xl) var(--spacing-lg) var(--spacing-lg);
    transform: translateY(100%);
    transition: var(--transition-base);
}

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

.gallery-title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-sm);
    color: white;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.gallery-desc {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    letter-spacing: 0.01em;
}

/* ==========================================================================
   下载区域
   ========================================================================== */

.download {
    background: var(--bg-sakura);
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-3xl);
}

.download-card {
    background: white;
    padding: var(--spacing-3xl);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--japanese-red);
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(214, 48, 49, 0.02) 0%,
        rgba(255, 105, 180, 0.02) 100%);
    pointer-events: none;
}

.download-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(214, 48, 49, 0.15);
}

.platform-icon {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-lg);
    display: block;
    background: linear-gradient(135deg, var(--japanese-red), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.platform-title {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.platform-desc,
.platform-size {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    letter-spacing: 0.01em;
}

.download-note {
    background: white;
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-light);
    max-width: 700px;
    margin: 0 auto;
    border-left: 4px solid var(--primary-color);
}

.download-note h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-xl);
    font-weight: 600;
}

.download-note ul {
    margin: 0;
    padding-left: var(--spacing-xl);
}

.download-note li {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    line-height: var(--japanese-line-height);
}

/* ==========================================================================
   FAQ区域
   ========================================================================== */

.faq {
    background: var(--bg-primary);
}

.faq-list {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: var(--spacing-xl);
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(255, 105, 180, 0.1);
    transition: var(--transition-base);
}

.faq-item:hover {
    box-shadow: var(--shadow-medium);
}

.faq-question {
    background: var(--bg-sakura);
    padding: var(--spacing-xl);
    margin: 0;
    color: var(--text-primary);
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
    border-left: 4px solid var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.faq-question:hover {
    background: rgba(255, 105, 180, 0.1);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: var(--spacing-xl);
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    padding: var(--spacing-xl);
    color: var(--text-secondary);
    line-height: var(--japanese-line-height);
    letter-spacing: 0.01em;
    border-top: 1px solid rgba(255, 105, 180, 0.1);
}

/* ==========================================================================
   页脚 - 日式设计
   ========================================================================== */

.footer {
    background: linear-gradient(135deg, var(--text-primary) 0%, #2d3436 100%);
    color: white;
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-title {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-xl);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.footer-subtitle {
    color: var(--accent-color);
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-lg);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.footer-desc {
    color: #e0e0e0;
    margin-bottom: var(--spacing-lg);
    line-height: var(--japanese-line-height);
    letter-spacing: 0.01em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: #d0d0d0;
    transition: var(--transition-fast);
    padding: var(--spacing-xs) 0;
    display: block;
    border-bottom: 1px solid transparent;
    letter-spacing: 0.01em;
}

.footer-links a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    transform: translateX(4px);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--japanese-red));
    border-radius: 50%;
    color: white;
    font-size: var(--font-size-lg);
    transition: var(--transition-base);
    box-shadow: var(--shadow-light);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--japanese-red), var(--primary-color));
    transform: translateY(-3px);
    color: white;
    text-decoration: none;
    box-shadow: var(--shadow-medium);
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: var(--spacing-lg);
    text-align: center;
}

.copyright,
.disclaimer {
    color: #bbb;
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.01em;
}

/* ==========================================================================
   返回顶部按钮 - 日式设计
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: var(--spacing-2xl);
    right: var(--spacing-2xl);
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-color), var(--japanese-red));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 999;
    box-shadow: var(--shadow-sakura);
}

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

.back-to-top:hover {
    background: linear-gradient(135deg, var(--japanese-red), var(--primary-color));
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.3);
}

.back-to-top-text {
    font-size: var(--font-size-xl);
    font-weight: 700;
}

/* ==========================================================================
   移动端导航
   ========================================================================== */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius-sm);
}

.mobile-menu-toggle span {
    width: 26px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition-fast);
    border-radius: var(--radius-full);
}

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

@media (max-width: 1024px) {
    .hero-content,
    .intro-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
        text-align: center;
    }

    .works-grid,
    .characters-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.75rem;
        --font-size-2xl: 1.375rem;
        --spacing-3xl: 2.5rem;
        --spacing-2xl: 2rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 100px var(--spacing-lg) var(--spacing-lg);
        box-shadow: var(--shadow-heavy);
        transition: var(--transition-base);
        z-index: 999;
        border-left: 1px solid var(--border-color);
    }

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

    .nav-menu li {
        margin-bottom: var(--spacing-md);
        width: 100%;
    }

    .nav-menu .nav-link {
        display: block;
        padding: var(--spacing-lg);
        background: var(--bg-sakura);
        border-radius: var(--radius-lg);
        text-align: center;
        font-weight: 600;
        transition: var(--transition-fast);
        border: 1px solid rgba(255, 105, 180, 0.2);
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link:active {
        background: var(--primary-color);
        color: white;
        text-decoration: none;
        transform: scale(1.02);
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
        position: relative;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

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

    .search-container {
        display: none;
    }

    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-base);
    }

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .hero {
        padding: 100px 0 var(--spacing-2xl);
    }

    .section {
        padding: var(--spacing-2xl) 0;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

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

    .download-options {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .back-to-top {
        bottom: var(--spacing-lg);
        right: var(--spacing-lg);
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .feature-card,
    .download-card,
    .work-card,
    .character-card {
        padding: var(--spacing-lg);
    }

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

    .gallery-overlay {
        position: static;
        transform: none;
        background: linear-gradient(135deg, var(--primary-color), var(--japanese-red));
        padding: var(--spacing-lg);
    }

    .gallery-item:hover .gallery-overlay {
        transform: none;
    }
}

/* ==========================================================================
   暗色模式支持
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f0f0f0;
        --text-secondary: #c0c0c0;
        --text-light: #999;
        --bg-primary: #1a1a1a;
        --bg-secondary: #2a2a2a;
        --bg-accent: #2d1b20;
        --bg-wood: #2d2520;
        --bg-sakura: #3d2125;
        --border-color: #444;
    }

    .header {
        background: rgba(26, 26, 26, 0.95);
    }

    .feature-card,
    .download-card,
    .work-card,
    .character-card,
    .faq-item {
        background: var(--bg-secondary);
    }
}

/* ==========================================================================
   动画和过渡效果
   ========================================================================== */

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

@keyframes sakuraPetal {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* 减少动画效果（用户偏好） */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}