/* ============================================
   🌹 Emma私密花园 - 主样式表
   ============================================ */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff1493;
    --secondary: #ff69b4;
    --accent: #da70d6;
    --dark: #1a1a2e;
    --darker: #16213e;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #adb5bd;
    --gradient-pink: linear-gradient(135deg, #ff1493, #ff69b4);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Serif SC', serif;
    background: var(--gradient-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* 背景动画 */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    font-size: 2rem;
    opacity: 0.15;
    animation: float 15s infinite ease-in-out;
}

.heart-1 { left: 10%; top: 20%; animation-delay: 0s; }
.heart-2 { left: 80%; top: 30%; animation-delay: 3s; }
.heart-3 { left: 30%; top: 60%; animation-delay: 6s; }
.heart-4 { left: 70%; top: 70%; animation-delay: 9s; }
.heart-5 { left: 50%; top: 10%; animation-delay: 12s; }
.heart-6 { left: 90%; top: 80%; animation-delay: 2s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.15; }
    25% { transform: translateY(-30px) rotate(10deg); opacity: 0.25; }
    50% { transform: translateY(-15px) rotate(-5deg); opacity: 0.15; }
    75% { transform: translateY(-40px) rotate(15deg); opacity: 0.2; }
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--gradient-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 5px var(--secondary)); }
    50% { filter: drop-shadow(0 0 20px var(--primary)); }
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    background: rgba(255, 105, 180, 0.2);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-pink);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 80%;
}

/* 英雄区 */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
}

.avatar-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    z-index: 2;
    animation: avatar-bounce 3s infinite ease-in-out;
}

@keyframes avatar-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

.avatar-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    animation: ring-pulse 2s infinite ease-out;
    opacity: 0.5;
}

.avatar-ring.ring-2 {
    animation-delay: 0.5s;
}

@keyframes ring-pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

h1 {
    font-size: 3.5rem;
    font-family: 'Ma Shan Zheng', cursive;
    margin-bottom: 1rem;
    background: var(--gradient-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 5px;
}

/* 故障文字效果 */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.3s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background: linear-gradient(45deg, #0ff, #f0f);
}

.glitch::after {
    animation: glitch-2 0.3s infinite linear alternate-reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background: linear-gradient(-45deg, #f0f, #0ff);
}

@keyframes glitch-1 {
    0% { transform: translateX(0); }
    100% { transform: translateX(2px); }
}

@keyframes glitch-2 {
    0% { transform: translateX(0); }
    100% { transform: translateX(-2px); }
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

/* 打字机效果 */
.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--secondary);
    white-space: nowrap;
    animation: typewriter 4s steps(40) 1s forwards, blink 0.5s step-end infinite;
    width: 0;
}

@keyframes typewriter {
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    background: var(--gradient-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-pink);
    color: white;
    box-shadow: 0 5px 30px rgba(255, 105, 180, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(255, 105, 180, 0.6);
}

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

.btn-secondary:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.btn-outline {
    border: 2px solid var(--secondary);
    color: var(--secondary);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* 滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    animation: bounce 2s infinite;
}

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

.wheel {
    width: 4px;
    height: 8px;
    background: var(--secondary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

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

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

/* 通用区块 */
.section {
    padding: 5rem 2rem;
    position: relative;
    z-index: 1;
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-family: 'Ma Shan Zheng', cursive;
    background: var(--gradient-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

/* 最新作品网格 */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.work-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.work-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-pink);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.work-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
    box-shadow: 0 20px 60px rgba(255, 105, 180, 0.2);
}

.work-card:hover::before {
    transform: scaleX(1);
}

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

.work-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 105, 180, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.work-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.work-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.work-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* 特色卡片网格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 20px 60px rgba(218, 112, 214, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: wiggle 2s infinite ease-in-out;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 骚话区域 */
.flirt-section {
    background: linear-gradient(180deg, transparent0%, rgba(255, 105, 180, 0.05) 50%, transparent 100%);
}

.flirt-carousel {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.flirt-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    padding: 3rem;
    position: relative;
}

.flirt-card.current {
    animation: pulse-card 2s infinite ease-in-out;
}

@keyframes pulse-card {
    0%, 100% { box-shadow: 0 0 30px rgba(255, 105, 180, 0.2); }
    50% { box-shadow: 0 0 60px rgba(255, 105, 180, 0.4); }
}

.flirt-emoji {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: bounce-emoji 1s infinite ease-in-out;
}

@keyframes bounce-emoji {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.flirt-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.flirt-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* 页脚 */
.footer {
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid var(--card-border);
    position: relative;
    z-index: 1;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.brand-emoji {
    animation: heartbeat 1s infinite ease-in-out;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-divider {
    width: 100px;
    height: 2px;
    background: var(--gradient-pink);
    margin: 0 auto 1.5rem;
}

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

.footer-server {
    color: #6c757d;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* 响应式 */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: block;
    }
}
/* 页面标题区 */
.page-header {
    padding: 8rem 2rem 4rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 3rem;
    font-family: 'Ma Shan Zheng', cursive;
    background: var(--gradient-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 响应式 */
@media (max-width: 768px) {
    .page-header {
        padding: 6rem 1rem 3rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: block;
        cursor: pointer;
    }
    
    .nav-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background: var(--text-primary);
        margin: 5px 0;
    }
}

/* 小说操作按钮 */
.novel-actions {
    margin-top: 1rem;
}

.read-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gradient-pink);
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.read-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255,105,180,0.4);
}
