/* ====================================
   心情日记 - 暖色调治愈风格
   ==================================== */

:root {
    --primary: #e8a0b4;
    --primary-dark: #d4879b;
    --primary-light: #fce4ec;
    --secondary: #a8d8ea;
    --accent: #ffd3b6;
    --bg: #fef9f4;
    --bg-card: #ffffff;
    --bg-hover: #fff5f5;
    --text-primary: #4a4a4a;
    --text-secondary: #8a8a8a;
    --border: #f0e0d6;
    --shadow: 0 4px 20px rgba(232, 160, 180, 0.12);
    --radius: 12px;
}

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

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* ---- Navigation ---- */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.logo-icon { font-size: 1.5rem; }
.logo-text { font-size: 1.3rem; font-weight: 700; color: var(--primary-dark); }
.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s;
    white-space: nowrap;
}
.nav-link:hover, .nav-link.active { background: var(--primary-light); color: var(--primary-dark); }
.nav-btn {
    border: 1px solid var(--border);
    padding: 6px 16px;
}
.nav-btn-primary { background: var(--primary); color: #fff !important; border-color: var(--primary); }
.nav-btn-primary:hover { background: var(--primary-dark) !important; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-primary); }

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }
    .nav-menu.active { display: flex; }
    .nav-toggle { display: block; }
}

/* ---- Hero ---- */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fce4ec 0%, #fff5f5 30%, #fff9f0 70%, #e8f5e9 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 20px;
}
.hero-content { text-align: center; max-width: 700px; z-index: 1; }
.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-dark), #e8a0b4, #a8d8ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 35px; line-height: 1.8; }
.hero-actions { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.hero-visual { position: absolute; width: 100%; height: 100%; top: 0; left: 0; pointer-events: none; }
.floating-heart {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.4;
}
.floating-heart.h2 { top: 20%; right: 15%; animation-delay: 2s; font-size: 2.5rem; }
.floating-heart.h3 { bottom: 25%; left: 10%; animation-delay: 4s; font-size: 1.8rem; }
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* ---- Features ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}
.feature-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s;
    box-shadow: var(--shadow);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(232,160,180,0.2); }
.feature-icon { font-size: 3rem; margin-bottom: 15px; }
.feature-card h3 { margin-bottom: 12px; font-size: 1.15rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }
.feature-link { display: inline-block; margin-top: 15px; color: var(--primary); text-decoration: none; font-weight: 500; }

/* ---- Section Titles ---- */
.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}
.section-subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 40px; }

/* ---- About ---- */
.about-content p { margin-bottom: 15px; color: var(--text-secondary); line-height: 1.8; }
.about-content h2 { margin-top: 30px; margin-bottom: 15px; color: var(--primary-dark); }
.about-content ul { margin: 15px 0; padding-left: 20px; }
.about-content li { margin-bottom: 10px; color: var(--text-secondary); line-height: 1.6; }
.about-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number { display: block; font-size: 2.5rem; font-weight: 700; color: var(--primary); }
.stat-label { color: var(--text-secondary); font-size: 0.9rem; }

/* ---- Testimonials ---- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.testimonial-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.testimonial-card p { font-style: italic; color: var(--text-secondary); line-height: 1.8; }
.testimonial-author { margin-top: 15px; color: var(--primary); font-weight: 500; }

/* ---- CTA ---- */
.cta {
    background: linear-gradient(135deg, var(--primary-light), #fff5f5);
    text-align: center;
    padding: 80px 20px;
}
.cta h2 { font-size: 1.8rem; margin-bottom: 15px; }
.cta p { color: var(--text-secondary); margin-bottom: 30px; }

/* ---- Page Header ---- */
.page-header {
    background: linear-gradient(135deg, #fce4ec, #fff5f5);
    text-align: center;
    padding: 50px 20px;
}
.page-header h1 { font-size: 1.8rem; margin-bottom: 8px; color: var(--primary-dark); }
.page-header p { color: var(--text-secondary); }

/* ---- Products ---- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.product-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: relative;
    transition: all 0.3s;
}
.product-card.featured { border-color: var(--primary); box-shadow: 0 8px 30px rgba(232,160,180,0.2); }
.product-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary);
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}
.product-icon { font-size: 2.5rem; margin-bottom: 15px; }
.product-card h3 { margin-bottom: 12px; }
.product-desc { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; margin-bottom: 15px; }
.product-features { list-style: none; padding: 0; margin-bottom: 20px; }
.product-features li { padding: 6px 0; font-size: 0.9rem; color: var(--text-secondary); }
.product-price { font-size: 1.8rem; font-weight: 700; color: var(--primary); margin-bottom: 15px; }

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.btn-lg { padding: 14px 36px; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ---- Auth Pages ---- */
.auth-page {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #fce4ec, #fff5f5);
}
.auth-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow);
}
.auth-header { text-align: center; margin-bottom: 30px; }
.auth-icon { font-size: 3rem; display: block; margin-bottom: 10px; }
.auth-header h2 { font-size: 1.5rem; margin-bottom: 8px; }
.auth-header p { color: var(--text-secondary); font-size: 0.9rem; }

/* ---- Forms ---- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 0.9rem; font-weight: 500; color: var(--text-primary); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
    background: var(--bg-card);
    color: var(--text-primary);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}
.alert-error { background: #fce4ec; color: #c62828; border: 1px solid #f8bbd0; }

.auth-footer { text-align: center; margin-top: 25px; color: var(--text-secondary); font-size: 0.9rem; }
.auth-footer a { color: var(--primary); text-decoration: none; font-weight: 500; }

/* ---- Footer ---- */
.footer {
    background: #2d3436;
    color: #dfe6e9;
    padding: 50px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.footer-col h4 { color: #fff; margin-bottom: 15px; font-size: 1rem; }
.footer-col p { font-size: 0.85rem; color: #b2bec3; line-height: 1.7; }
.footer-col a { display: block; color: #b2bec3; text-decoration: none; font-size: 0.85rem; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #636e72; padding-top: 20px; text-align: center; font-size: 0.8rem; color: #636e72; }
.disclaimer { margin-top: 8px; font-style: italic; }

/* ---- Utilities ---- */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* ---- Mobile Responsive ---- */
@media (max-width: 480px) {
    .hero { padding: 60px 20px; min-height: 60vh; }
    .auth-card { padding: 25px 20px; }
    .section { padding: 40px 0; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 250px; }
}
