/* ============================================
   粉色妖精小姐的秘密基地 - 公共样式
   ============================================ */

/* CSS 变量 */
:root {
    --primary: #D8A3E0;
    --primary-light: #EBD4F0;
    --primary-dark: #B87BC0;
    --secondary: #A6D1FF;
    --secondary-light: #C9E0FF;
    --accent: #FFE0E9;
    --background: #f8f5fb;
    --card-bg: rgba(255, 255, 255, 0.85);
    --text: #5A4B6E;
    --text-light: #8A7B99;
    --success: #A3D9B1;
    --shadow: 0 10px 30px rgba(168, 140, 190, 0.15);
    --glow: 0 0 25px rgba(216, 163, 224, 0.3);
    --radius: 20px;
    --radius-sm: 12px;
    --radius-pill: 50px;
}

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

body {
    font-family: 'Quicksand', 'Segoe UI', sans-serif;
    background: var(--background);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100dvh;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(216, 163, 224, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 90% 80%, rgba(166, 227, 255, 0.08) 0%, transparent 25%);
}

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button, .btn, .card-btn, .tab { -webkit-tap-highlight-color: transparent; }

/* ============ 花瓣背景 ============ */
.petal-fall {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}
.petal {
    position: absolute;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,15 C58,15 65,18 70,23 C75,28 78,35 78,43 C78,51 75,58 70,63 C65,68 58,71 50,71 C42,71 35,68 30,63 C25,58 22,51 22,43 C22,35 25,28 30,23 C35,18 42,15 50,15 Z" fill="%23EBD4F0"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
    animation: petal-fall linear infinite;
}
@keyframes petal-fall {
    to { transform: translateY(100vh) rotate(360deg); }
}

/* ============ 导航栏 ============ */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 16px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(235, 212, 240, 0.2);
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}
.logo-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow);
    position: relative;
    overflow: hidden;
}
.logo-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
    animation: rotate 8s linear infinite;
}
.logo-icon i {
    color: white;
    font-size: 1.2rem;
}
.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}
.nav-links a {
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 2px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--primary-dark); }
.nav-links a:hover::after { width: 60%; }
.nav-links a.active {
    background: linear-gradient(to right, var(--primary), var(--accent));
    color: white;
    box-shadow: var(--glow);
}
.nav-links a.active::after { display: none; }

/* 汉堡菜单 (移动端) */
.hamburger {
    display: none;
    background: none; border: none;
    font-size: 1.5rem; color: var(--text);
    cursor: pointer;
    padding: 8px;
}

/* ============ 音乐控制 ============ */
.volume-control {
    display: flex;
    align-items: center;
}
.volume-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 50%;
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--glow);
    transition: all 0.3s ease;
}
.volume-icon:hover {
    transform: scale(1.1);
}

/* ============ 按钮 ============ */
.btn {
    padding: 16px 40px;
    border-radius: var(--radius-pill);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow);
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(216, 163, 224, 0.4);
}
.btn-outline {
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    transform: translateY(-3px);
}

/* ============ 卡片 ============ */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(235, 212, 240, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(168, 140, 190, 0.2);
}
.card-icon {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--glow);
}
.card-icon i {
    font-size: 2rem;
    color: white;
}
.card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    text-align: center;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.card p {
    color: var(--text-light);
    line-height: 1.7;
    text-align: center;
    margin-bottom: 20px;
}
.card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: 2px solid var(--primary);
    border-radius: var(--radius-pill);
    color: var(--primary-dark);
    font-weight: 600;
    transition: all 0.3s ease;
}
.card-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-color: transparent;
}

/* ============ 区块标题 ============ */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 80px; height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    border-radius: 2px;
}

/* ============ 网格布局 ============ */
.grid {
    display: grid;
    gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-auto {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ============ 页脚 ============ */
.footer {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 50px 5% 24px;
    border-top: 1px solid rgba(235, 212, 240, 0.3);
    margin-top: 80px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-brand {
    max-width: 350px;
}
.footer-brand p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 16px 0 20px;
}
.footer-links {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}
.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: var(--text-light);
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-links a:hover { color: var(--primary); }
.social-links {
    display: flex;
    gap: 12px;
}
.social-icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}
.social-icon:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    transform: translateY(-3px);
}
.copyright {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(235, 212, 240, 0.2);
}

/* ============ 返回按钮 ============ */
.back-btn {
    position: fixed;
    top: 20px; right: 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: var(--radius-pill);
    padding: 10px 20px;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: var(--glow);
    transition: all 0.3s ease;
    z-index: 101;
    display: flex;
    align-items: center;
    gap: 6px;
}
.back-btn:hover {
    transform: scale(1.05);
}

/* ============ Hero 区域 ============ */
.hero {
    padding: 140px 5% 80px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}
.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

/* ============ 页面通用容器 ============ */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 5% 40px;
}

/* ============ 通用动画 ============ */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ============ 滚动入场动画 ============ */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ============ 加载态 ============ */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}
.loading i {
    font-size: 2rem;
    color: var(--primary);
    animation: pulse 1s infinite;
}

/* ============ 空状态 ============ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}
.empty-state i {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 16px;
}

/* ============ 响应式 ============ */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 2.6rem; }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }
    .nav-links.open { display: flex; }
    .nav-links a { justify-content: center; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.2rem; }
    .hero { padding: 120px 5% 60px; }
    .footer-content { flex-direction: column; }
    .footer-links { gap: 30px; }
    .btn { width: 100%; justify-content: center; max-width: 320px; }
}

@media (max-width: 480px) {
    .logo { font-size: 1.3rem; }
    .logo-icon { width: 36px; height: 36px; }
    .hero h1 { font-size: 1.8rem; }
    .section-title { font-size: 1.6rem; }
}
