/* ========================================
   珍果录 - 美化版样式表
   Enhanced Style Sheet
   ======================================== */

/* ============ Reset & Base ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2e7d32;
    --primary-light: #43a047;
    --primary-dark: #1b5e20;
    --primary-gradient: linear-gradient(135deg, #66bb6a 0%, #43a047 50%, #2e7d32 100%);
    --accent: #ffab40;
    --bg-light: #fafbf7;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-light: #e8edec;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============ Navbar ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--primary-dark);
    padding: 0 48px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
    background: rgba(27, 94, 32, 0.98);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
}

.nav-brand .brand-icon {
    font-size: 1.8rem;
    animation: brandPulse 3s ease-in-out infinite;
}

@keyframes brandPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.05) rotate(5deg); }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #a5d6a7, transparent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* 用户菜单 */
.user-menu {
    position: relative;
}

.user-avatar-btn {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--ver-md);
}

.user-avatar-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 180px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: block;
    padding: 12px 20px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.user-dropdown a:hover {
    background: #f1f8e9;
    padding-left: 24px;
}

.user-dropdown .divider {
    height: 1px;
    background: var(--border-light);
    margin: 8px 0;
}

/* 认证链接 */
.auth-links {
    display: flex;
    gap: 12px;
}

.btn-auth {
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-auth:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-auth.btn-primary {
    background: var(--primary-gradient);
    border-color: transparent;
}

.btn-auth.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 187, 106, 0.4);
}

/* ============ Hero Section ============ */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--primary-gradient);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
    padding: 140px 20px 80px;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 40%);
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: heroFadeUp 1s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hero-emoji {
    font-size: 80px;
    margin-bottom: 20px;
    display: inline-block;
    animation: heroBounce 3s ease-in-out infinite;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

@keyframes heroBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(-5deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(5deg); }
}

.hero h1 {
    font-family: 'Noto Serif SC', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 8px;
    margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero .subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 4px;
    font-weight: 300;
    margin-bottom: 40px;
}

/* ============ Search Box ============ */
.search-box {
    display: flex;
    align-items: center;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-box:focus-within {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 16px 24px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #fff;
    background: transparent;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box button {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    letter-spacing: 2px;
}

.search-box button:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateX(-2px);
}

.search-hint {
    margin-top: 16px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
}

/* ============ Featured Carousel ============ */
.featured-section {
    padding: 60px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.featured-header {
    text-align: center;
    margin-bottom: 40px;
}

.featured-header h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.2rem;
    color: var(--primary-dark);
    letter-spacing: 4px;
    margin-bottom: 8px;
    font-weight: 700;
}

.featured-header p {
    color: var(--primary-light);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.category-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: white;
    border: 2px solid var(--border-light);
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.filter-chip:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
    transform: translateY(-2px);
}

.filter-chip.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item {
    flex: 0 0 calc(100% / 3);
    padding: 0 12px;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 1.2rem;
    color: var(--primary-dark);
}

.carousel-nav:hover {
    transform: translateY(-50%) scale(1.1);
    background: var(--primary-dark);
    color: white;
}

.carousel-nav.prev { left: 16px; }
.carousel-nav.next { right: 16px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-light);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary-light);
    width: 32px;
    border-radius: var(--radius-full);
}

/* ============ Fruit Grid ============ */
.section {
    padding: 60px 40px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.2rem;
    color: var(--primary-dark);
    letter-spacing: 6px;
    margin-bottom: 12px;
    font-weight: 700;
}

.section-header p {
    color: var(--primary-light);
    font-size: 0.9rem;
    letter-spacing: 3px;
}

.fruit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.gallery-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    padding: 18px 20px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
}

.gallery-stats {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
}

.gallery-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.fruit-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: block;
    border: 1px solid var(--border-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.fruit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.fruit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.fruit-card:hover::before {
    opacity: 0.03;
}

.card-visual {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.card-visual.card-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.fruit-card:hover .card-overlay {
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.05));
}

.card-visual .card-emoji {
    font-size: 72px;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.card-image .card-emoji {
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
}

.fruit-card:hover .card-emoji {
    transform: scale(1.15) rotate(5deg);
}

.card-info {
    padding: 20px 24px 24px;
    position: relative;
    z-index: 1;
}

.card-emoji-sm {
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: block;
}

.card-info h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-weight: 600;
}

.card-eng {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-style: italic;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-season {
    margin-top: 12px;
    font-size: 0.8rem;
    color: #9ca3af;
}

.load-more-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 36px;
    padding: 24px 20px 8px;
}

.load-more-status {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-align: center;
}

.load-more-btn {
    min-width: 180px;
}

.load-more-sentinel {
    width: 100%;
    height: 1px;
}

/* ============ Buttons ============ */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(102, 187, 106, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary-light);
    border-color: var(--primary-light);
}

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

/* ============ Footer ============ */
footer {
    background: var(--primary-dark);
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 80px;
}

footer p {
    font-size: 0.95rem;
    letter-spacing: 2px;
}

footer .heart {
    color: #ff6b6b;
    animation: heartbeat 1.5s ease-in-out infinite;
}

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

/* ============ Toast ============ */
.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary-dark);
    color: white;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    box-shadow: var(--shadow-xl);
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

body.feedback-open {
    overflow: hidden;
}

.feedback-fab {
    position: fixed;
    right: 24px;
    bottom: 32px;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff8dd, #ffe7a8);
    color: #744400;
    box-shadow: 0 16px 40px rgba(116, 68, 0, 0.18);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feedback-fab:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 22px 44px rgba(116, 68, 0, 0.24);
}

.feedback-fab-icon {
    font-size: 1.2rem;
}

.feedback-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.feedback-modal.open {
    opacity: 1;
    visibility: visible;
}

.feedback-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 40, 0.56);
    backdrop-filter: blur(8px);
}

.feedback-modal-panel {
    position: relative;
    width: min(760px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: linear-gradient(180deg, #fffef7 0%, #ffffff 28%);
    border-radius: 32px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
    padding: 28px;
    transform: translateY(24px) scale(0.96);
    transition: transform 0.3s ease;
}

.feedback-modal.open .feedback-modal-panel {
    transform: translateY(0) scale(1);
}

.feedback-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(27, 94, 32, 0.08);
    color: var(--primary-dark);
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feedback-close:hover {
    background: rgba(27, 94, 32, 0.14);
    transform: rotate(90deg);
}

.feedback-hero-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    padding: 20px;
    margin-bottom: 22px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(255, 214, 102, 0.38), transparent 35%),
        linear-gradient(135deg, rgba(67, 160, 71, 0.14), rgba(255, 255, 255, 0.95));
}

.feedback-badge {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(27, 94, 32, 0.08);
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.feedback-hero-copy h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.feedback-hero-copy p {
    color: var(--text-secondary);
    font-size: 0.96rem;
    line-height: 1.75;
}

.feedback-mail-scene {
    position: relative;
    min-height: 220px;
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(255,255,255,0.92), rgba(232, 245, 233, 0.92));
    overflow: hidden;
}

.feedback-mail-orbit {
    position: absolute;
    inset: 26px;
    border: 2px dashed rgba(67, 160, 71, 0.22);
    border-radius: 28px;
}

.feedback-mail-envelope,
.feedback-mail-fruit {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.feedback-mail-envelope {
    width: 88px;
    height: 88px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #ffffff, #f3f4f6);
    box-shadow: 0 14px 30px rgba(27, 94, 32, 0.14);
    font-size: 2rem;
    z-index: 2;
}

.feedback-mail-fruit {
    width: 58px;
    height: 58px;
    right: 24px;
    bottom: 26px;
    background: linear-gradient(135deg, #ffe8ec, #fff4f6);
    box-shadow: 0 12px 24px rgba(244, 63, 94, 0.16);
    font-size: 1.6rem;
}

.feedback-mail-scene.sending .feedback-mail-envelope {
    animation: feedbackEnvelopeFly 1.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.feedback-mail-scene.sending .feedback-mail-fruit {
    animation: feedbackFruitBounce 1.8s ease;
}

@keyframes feedbackEnvelopeFly {
    0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
    25% { transform: translate(-28%, -62%) rotate(-10deg) scale(1.06); }
    55% { transform: translate(26%, -112%) rotate(10deg) scale(1.12); }
    100% { transform: translate(125%, -190%) rotate(18deg) scale(0.85); opacity: 0.1; }
}

@keyframes feedbackFruitBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    30% { transform: translateY(-14px) scale(1.06); }
    60% { transform: translateY(4px) scale(0.96); }
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.feedback-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.feedback-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.feedback-field input,
.feedback-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e6ecdf;
    border-radius: 18px;
    background: #fff;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.feedback-field input:focus,
.feedback-field textarea:focus {
    outline: none;
    border-color: #66bb6a;
    box-shadow: 0 0 0 4px rgba(102, 187, 106, 0.14);
    transform: translateY(-1px);
}

.feedback-field textarea {
    resize: vertical;
    min-height: 110px;
}

.feedback-timeline {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 20px;
    background: #f7fbf4;
    border: 1px solid #e7f0e1;
}

.feedback-step {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.25s ease, transform 0.25s ease;
}

.feedback-step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d5dfcf;
    transition: all 0.25s ease;
}

.feedback-step.active,
.feedback-step.done {
    color: var(--primary-dark);
}

.feedback-step.active {
    transform: translateX(4px);
}

.feedback-step.active .feedback-step-dot {
    background: #ffb300;
    box-shadow: 0 0 0 6px rgba(255, 179, 0, 0.16);
}

.feedback-step.done .feedback-step-dot {
    background: #43a047;
    box-shadow: 0 0 0 6px rgba(67, 160, 71, 0.12);
}

.feedback-success {
    display: none;
    padding: 18px 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, #edf8ea, #fdfcf1);
    border: 1px solid #d9ecd3;
}

.feedback-success.show {
    display: block;
    animation: feedbackSuccessIn 0.45s ease;
}

@keyframes feedbackSuccessIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.feedback-success-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.feedback-success-title {
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 6px;
}

.feedback-success p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.feedback-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.feedback-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 160px;
    justify-content: center;
    position: relative;
}

.feedback-submit-loader {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    display: none;
    animation: feedbackSpin 0.8s linear infinite;
}

.feedback-modal.sending .feedback-submit-text {
    display: none;
}

.feedback-modal.sending .feedback-submit-loader {
    display: inline-block;
}

@keyframes feedbackSpin {
    to { transform: rotate(360deg); }
}

/* ============ Leaves Animation ============ */
#leaves-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 999;
}

.leaf {
    position: absolute;
    top: -50px;
    animation: falling linear forwards;
    opacity: 0.6;
}

@keyframes falling {
    to {
        transform: translateY(110vh) rotate(360deg);
    }
}

/* ============ Detail Page ============ */
.detail-hero {
    padding: 120px 40px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.1) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    animation: fadeUp 0.8s ease-out;
}

.detail-emoji-lg {
    font-size: 100px;
    margin-bottom: 24px;
    display: inline-block;
    animation: bounce 3s ease-in-out infinite;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.2));
}

.detail-hero h1 {
    font-family: 'Noto Serif SC', serif;
    font-size: 3rem;
    color: white;
    margin-bottom: 12px;
    font-weight: 700;
    text-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.eng-name {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
    font-style: italic;
}

.detail-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px 80px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    border-radius: var(--radius-full);
    font-weight: 600;
    color: var(--primary-dark);
    box-shadow: var(--shadow-md);
    margin-bottom: 32px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    transform: translateX(-4px);
    box-shadow: var(--shadow-lg);
}

.detail-body {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.info-card {
    background: #f8faf5;
    border-radius: var(--radius-md);
    padding: 28px;
    margin-bottom: 24px;
}

.info-card h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 16px;
    font-weight: 600;
    letter-spacing: 2px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.quick-item {
    padding: 20px;
    border-radius: var(--radius-md);
}

.quick-item .qlabel {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.quick-item .qvalue {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.flower-lang-card {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.lang-text {
    line-height: 1.8;
    color: var(--text-primary);
}

.trivia-card {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border-left: 4px solid var(--accent);
}

.scraped-img {
    width: 100%;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

/* ============ Rating System ============ */
.rating-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    margin: 32px 0;
    box-shadow: var(--shadow-md);
}

.rating-header {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border-light);
}

.rating-average {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    font-family: 'Noto Serif SC', serif;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rating-stars-large {
    display: flex;
    gap: 6px;
}

.rating-stars-large .star {
    font-size: 2rem;
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.rating-stars-large .star.filled {
    color: #ffc107;
    animation: starPop 0.4s ease;
}

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

.rating-stats {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.rating-form {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 2px solid var(--border-light);
);
}

.rating-form h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 600;
}

.rating-form textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.3s ease;
}

.rating-form textarea:focus {
    outline: none;
    border-color: var(--primary-light);
}

.star-rating-input {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.star-rating-input .star {
    font-size: 2.2rem;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.star-rating-input .star:hover,
.star-rating-input .star.selected {
    color: #ffc107;
    transform: scale(1.3);
}

.user-ratings-list {
    margin-top: 28px;
}

.user-rating-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #f8faf5;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.user-rating-item:hover {
    background: #f1f8e9;
    transform: translateX(4px);
}

.user-rating-item .rating-stars {
    margin-bottom: 8px;
}

.user-rating-item .rating-stars .star {
    font-size: 1.2rem;
    color: #e0e0e0;
}

.user-rating-item .rating-stars .star.filled {
    color: #ffc107;
}

/* ============ Comment Section ============ */
.comment-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    margin: 32px 0;
    box-shadow: var(--shadow-md);
}

.comment-section h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 24px;
    font-weight: 600;
}

.comment-form {
    margin-bottom: 32px;
}

.comment-form .nickname-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: inherit;
    margin-bottom: 16px;
    transition: border-color 0.3s ease;
}

.comment-form .nickname-input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-light);
}

.comment-form textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.3s ease;
}

.comment-list {
    list-style: none;
}

.comment-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #f8faf5;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    animation: commentSlide 0.4s ease;
}

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

.comment-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
}

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

.comment-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.comment-actions {
    display: flex;
    gap: 16px;
}

.like-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    padding: 4px 8px;
}

.like-btn:hover,
.like-btn.liked {
    color: #ff6b6b;
    transform: scale(1.1);
}

.no-comments {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
    font-size: 0.95rem;
}

/* ============ Search Page ============ */
.search-results {
    max-width: 1200px;
    margin: 120px auto 60px;
    padding: 0 40px;
}

.search-results h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 32px;
    font-weight: 700;
}

.query-text {
    color: var(--primary-light);
    font-style: italic;
}

.search-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.search-sort {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.search-sort select {
    padding: 8px 16px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-light);
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-sort select:focus {
    outline: none;
    border-color: var(--primary-light);
}

.search-suggestions {
    background: #fff8e1;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    border-left: 4px solid var(--accent);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.search-suggestions strong {
    color: var(--accent);
}

.result-card {
    display: flex;
    gap: 24px;
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.result-emoji {
    font-size: 4rem;
    flex-shrink: 0;
}

.result-info {
    flex: 1;
}

.result-info h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-weight: 600;
}

.result-info h3 a {
    color: inherit;
    transition: color 0.2s ease;
}

.result-info h3 a:hover {
    color: var(--primary-light);
}

.result-eng {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 12px;
}

.result-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.result-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.result-tags .tag {
    padding: 6px 14px;
    background: #f1f8e9;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--primary-dark);
    font-weight: 500;
}

.empty-state {
    text-align: center;
    padding: 80px 40px;
    background: white;
    border-radius: var(--radius-lg);
}

.empty-emoji {
    font-size: 4rem;
    margin-bottom: 16px;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 8px;
}

/* ============ Auth Pages ============ */
.auth-container {
    max-width: 480px;
    margin: 140px auto;
    padding: 48px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--primary-gradient);
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
    font-weight: 700;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.auth-form .form-group {
    margin-bottom: 24px;
}

.auth-form label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="email"] {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="password"]:focus,
.auth-form input[type="email"]:focus {
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 160, 71, 0.1);
}

.auth-form input[type="checkbox"] {
    margin-right: 8px;
}

.auth-links {
    text-align: center;
    margin-top: 28px;
    font-size: 0.9rem;
}

.auth-links a {
    color: var(--primary-light);
    font-weight: 600;
    transition: all 0.2s ease;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-error {
    background: #ffebee;
    color: #c62828;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 0.9rem;
    border-left: 4px solid #c62828;
}

/* 快速登录小圆点 */
.quick-login-trigger {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 20px;
    height: 20px;
    background: rgba(102, 187, 106, 0.4);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    animation: triggerPulse 2s infinite;
}

.quick-login-trigger:hover {
    background: rgba(102, 187, 106, 0.6);
}

@keyframes triggerPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.8;
    }
}

/* 快速登录弹窗 */
.quick-login-popup {
    position: fixed;
    bottom: 70px;
    right: 24px;
    width: 320px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 999;
    display: none;
    overflow: hidden;
    animation: popupSlide 0.3s ease;
}

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

.quick-login-popup.show {
    display: block;
}

.quick-login-header {
    background: var(--primary-gradient);
    color: white;
    padding: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 2px;
}

.quick-login-list {
    padding: 12px 0;
}

.quick-login-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-login-item:hover {
    background: #f1f8e9;
    padding-left: 24px;
}

.role-icon {
    font-size: 1.6rem;
    width: 44px;
    text-align: center;
}

.role-name {
    font-weight: 600600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.role-username {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ============ Profile Page ============ */
.profile-container {
    max-width: 1000px;
    margin: 120px auto 60px;
    padding: 0 40px;
}

.profile-header {
    background: white;
    border-radius: var(--radius-xl);
    padding: 48px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--primary-gradient);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.profile-username {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.profile-bio {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.profile-stats {
    display: flex;
    gap: 32px;
}

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

.profile-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    font-family: 'Noto Serif SC', serif;
}

.profile-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.profile-sections {
    display: grid;
    gap: 32px;
}

.profile-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.profile-section h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 24px;
    font-weight: 600;
    letter-spacing: 2px;
}

.rating-list-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f8faf5;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.rating-list-item:hover {
    background: #f1f8e9;
    transform: translateX(4px);
}

.rating-list-fruit {
    font-size: 1.5rem;
}

.rating-list-info {
    flex: 1;
}

.rating-list-fruit-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.rating-list-stars {
    display: flex;
    gap: 4px;
}

.rating-list-stars .star {
    font-size: 1.1rem;
    color: #e0e0e0;
}

.rating-list-stars .star.filled {
    color: #ffc107;
}

.rating-list-comment {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 4px;
    font-style: italic;
}

/* ============ Forum Pages ============ */
.forum-container {
    max-width: 1200px;
    margin: 120px auto 60px;
    padding: 0 40px;
}

.forum-header {
    background: var(--primary-gradient);
    padding: 48px;
    border-radius: var(--radius-xl);
    margin-bottom: 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.forum-header h1 {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 12px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.forum-header p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
}

.create-post-btn {
    display: block;
    width: fit-content;
    margin: 0 auto 40px;
    padding: 14px 40px;
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.create-post-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.post-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.post-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.post-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.post-author {
    font-weight: 600;
    color: var(--text-primary);
}

.post-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.post-card h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 600;
}

.post-card h3 a {
    color: inherit;
    transition: color 0.2s ease;
}

.post-card h3 a:hover {
    color: var(--primary-light);
}

.post-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============ Post Detail Page ============ */
.post-detail-container {
    max-width: 900px;
    margin: 120px auto 60px;
    padding: 0 40px;
}

.post-detail {
    background: white;
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-lg);
}

.post-detail-header {
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 24px;
    margin-bottom: 32px;
}

.post-detail-header h1 {
    font-family: 'Noto Serif SC', serif;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-weight: 700;
}

.post-detail-header .meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.post-detail-content {
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 40px;
    white-space: pre-wrap;
}

.post-detail-content p {
    margin-bottom: 16px;
}

.replies-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid var(--border-light);
}

.replies-section h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 24px;
    font-weight: 600;
}

.reply-item {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: #f8faf5;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.reply-item .reply-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #81c784, #66bb6a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
}

.reply-body {
    flex: 1;
}

.reply-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.reply-author {
    font-weight: 600;
    color: var(--text-primary);
}

.reply-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.reply-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.reply-form {
    margin-top: 24px;
}

.reply-form textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 16px;
    transition: border-color 0.3s ease;
}

.reply-form textarea:focus {
    outline: none;
    border-color: var(--primary-light);
}

/* ============ Animations ============ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ Easter Egg ============ */
.easter-egg {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: easterEggFloat 3s ease-in-out infinite;
}

.egg {
    font-weight: 600;
    font-size: 1rem;
}

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

/* ============ Responsive Design ============ */
@media (max-width: 992px) {
    .fruit-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .carousel-item {
        flex: 0 0 calc(100% / 2);
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 24px;
        height: 60px;
    }

    .nav-brand {
        font-size: 1.3rem;
    }

    .nav-links {
        gap: 24px;
    }

    .nav-links a {
        font-size: 0.85rem;
        padding: 8px 0;
    }

    .hero {
        padding: 100px 20px 60px;
        min-height: 400px;
    }

    .hero h1 {
        font-size: 2.2rem;
        letter-spacing: 4px;
    }

    .hero .subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .hero-emoji {
        font-size: 60px;
    }

    .search-box {
        max-width: 100%;
    }

    .fruit-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .gallery-toolbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }

    .gallery-hint {
        letter-spacing: 0;
    }

    .carousel-item {
        flex: 0 0 100%;
    }

    .section {
        padding: 40px 24px 60px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .featured-section {
        padding: 40px 24px;
    }

    .auth-container {
        margin: 100px 20px;
        padding: 32px 24px;
    }

    .detail-content {
        padding: 0 24px 48px;
    }

    .detail-body {
        padding: 24px;
    }

    .rating-section,
    .comment-section {
        padding: 24px;
    }

    .profile-container,
    .forum-container,
    .post-detail-container {
        padding: 0 24px;
    }

    .profile-header {
        padding: 32px 24px;
        flex-direction: column;
        text-align: center;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .profile-stats {
        justify-content: center;
        gap: 24px;
    }

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

    .post-detail {
        padding: 32px 24px;
    }

    .result-card {
        flex-direction: column;
        text-align: center;
    }

    .result-tags {
        justify-content: center;
    }

    .feedback-fab {
        right: 18px;
        bottom: 22px;
        padding: 13px 16px;
    }

    .feedback-modal {
        padding: 16px;
    }

    .feedback-modal-panel {
        padding: 20px;
        border-radius: 24px;
    }

    .feedback-hero-card,
    .feedback-grid {
        grid-template-columns: 1fr;
    }

    .feedback-mail-scene {
        min-height: 160px;
    }

    .feedback-actions {
        flex-direction: column-reverse;
    }

    .feedback-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

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

    .gallery-toolbar {
        margin-bottom: 20px;
    }

    .card-visual {
        height: 180px;
    }

    .card-visual .card-emoji {
        font-size: 60px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-brand .brand-icon {
        font-size: 1.5rem;
    }

    .search-box input {
        font-size: 0.9rem;
    }

    .detail-hero h1 {
        font-size: 2rem;
    }

    .detail-emoji-lg {
        font-size: 70px;
    }

    .forum-header h1 {
        font-size: 1.8rem;
    }

    .quick-login-popup {
        right: 16px;
        width: calc(100% - 48px);
    }

    .quick-login-trigger {
        right: 16px;
    }

    .feedback-fab-text {
        display: none;
    }

    .feedback-fab {
        width: 56px;
        height: 56px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .feedback-fab-icon {
        font-size: 1.3rem;
    }

    .feedback-hero-copy h3 {
        font-size: 1.55rem;
    }
}

/* ============ Utility Classes ============ */
.text-center { text-align: center; }
.text-primary { color: var(--primary-dark); }
.text-secondary { color: var(--text-secondary); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
