/* ========== 花知百科 - 全站样式 ========== */
/* 主色: #d4618c (玫瑰粉) 背景: #eddee6 (浅粉) 深色: #1a1a2e */

:root {
    --primary: #d4618c;
    --primary-dark: #b84d74;
    --primary-light: #e8a0b8;
    --bg-body: #eddee6;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #666;
    --text-light: #999;
    --border: #e8d5dc;
    --shadow: 0 2px 12px rgba(212, 97, 140, 0.1);
    --shadow-hover: 0 4px 20px rgba(212, 97, 140, 0.2);
    --radius: 12px;
    --radius-sm: 8px;
    --nav-height: 64px;
    --container-width: 1200px;
    --sidebar-width: 300px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }

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

/* ========== 导航栏 ========== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    height: var(--nav-height);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-container {
    max-width: var(--container-width); margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; height: 100%; gap: 20px;
}
.nav-logo {
    display: flex; align-items: center; gap: 8px;
    color: #fff; font-size: 18px; font-weight: 700; white-space: nowrap;
}
.nav-logo .logo-icon { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.nav-link {
    color: rgba(255,255,255,0.8); padding: 8px 14px; border-radius: 6px;
    font-size: 14px; white-space: nowrap; transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(212,97,140,0.3); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-search { position: relative; }
.search-form-nav { display: flex; align-items: center; }
.search-form-nav input {
    width: 200px; padding: 6px 12px; border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px; background: rgba(255,255,255,0.1); color: #fff;
    font-size: 13px; outline: none; transition: var(--transition);
}
.search-form-nav input::placeholder { color: rgba(255,255,255,0.4); }
.search-form-nav input:focus { border-color: var(--primary); background: rgba(255,255,255,0.15); width: 240px; }
.search-form-nav button {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: rgba(255,255,255,0.6); cursor: pointer;
}
.nav-login-btn, .nav-user-btn {
    display: flex; align-items: center; gap: 6px;
    color: rgba(255,255,255,0.8); background: none; border: none;
    cursor: pointer; font-size: 14px; padding: 6px 12px; border-radius: 6px;
}
.nav-login-btn:hover, .nav-user-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }
.nav-user-dropdown { position: relative; }
.dropdown-menu {
    display: none; position: absolute; top: 100%; right: 0; margin-top: 8px;
    background: var(--bg-white); border-radius: var(--radius-sm); box-shadow: var(--shadow-hover);
    min-width: 140px; overflow: hidden; z-index: 100;
}
.nav-user-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
    display: block; padding: 10px 16px; color: var(--text-primary);
    font-size: 14px; border-bottom: 1px solid var(--border);
}
.dropdown-menu a:last-child { border: none; }
.dropdown-menu a:hover { background: var(--bg-body); color: var(--primary); }

/* 汉堡菜单 */
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-hamburger span {
    display: block; width: 22px; height: 2px; background: #fff;
    margin: 5px 0; transition: var(--transition);
}

/* ========== 轮播图 ========== */
.hero-carousel {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    border-radius: 12px;
    margin-top: var(--nav-height);
    position: relative; overflow: hidden;
    height: 420px;
}
.carousel-wrapper { position: relative; width: 100%; height: 100%; }
.carousel-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 0.8s ease;
}
.carousel-slide.active { opacity: 1; }
.carousel-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 60px 60px 50px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}
.carousel-overlay h2 { font-size: 36px; font-weight: 700; margin-bottom: 12px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.carousel-overlay p { font-size: 18px; opacity: 0.9; text-shadow: 0 1px 5px rgba(0,0,0,0.3); }
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,0.2); border: none; color: #fff;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: var(--transition); backdrop-filter: blur(4px);
}
.carousel-btn:hover { background: rgba(255,255,255,0.4); }
.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }
.carousel-dots {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px;
}
.carousel-dots .dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.4); cursor: pointer; transition: var(--transition);
}
.carousel-dots .dot.active { background: #fff; transform: scale(1.2); }

/* ========== 通用区块 ========== */
.section { padding: 60px 0; }
.section-title {
    text-align: center; font-size: 28px; font-weight: 700;
    color: var(--primary); margin-bottom: 8px;
}
.section-subtitle {
    text-align: center; color: var(--text-secondary); font-size: 15px;
    margin-bottom: 40px;
}

/* ========== 花语大全 ========== */
.flower-lang-grid {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.flower-lang-card {
    display: block; position: relative; overflow: hidden;
    border-radius: var(--radius); aspect-ratio: 1 / 1;
    box-shadow: var(--shadow); transition: var(--transition);
}
.flower-lang-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.flower-lang-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.flower-lang-card:hover img { transform: scale(1.1); }
.flower-lang-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4), transparent); }
.flower-lang-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; color: #fff; text-align: center; }
.flower-lang-card h4 { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: #fff; }
.flower-lang-card p { font-size: 14px; color: rgba(255,255,255,0.9); }
.flower-lang-card:hover .flower-lang-overlay { background: linear-gradient(to top, rgba(212,97,140,0.6), rgba(212,97,140,0.3), rgba(212,97,140,0.2)); }

/* ========== 分类卡片 ========== */
.category-grid {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
}
.category-card {
    display: block; background: var(--bg-white); border-radius: var(--radius);
    padding: 30px 20px; text-align: center;
    box-shadow: var(--shadow); transition: var(--transition);
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.cat-icon { font-size: 40px; display: block; margin-bottom: 14px; }
.category-card h3 { font-size: 17px; margin-bottom: 8px; color: var(--text-primary); }
.category-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ========== 内容+侧边栏布局 ========== */
.content-with-sidebar {
    display: flex; gap: 30px; align-items: flex-start;
}
.main-content { flex: 1; min-width: 0; }
.sidebar { width: var(--sidebar-width); flex-shrink: 0; }

/* ========== 文章横向卡片（首页） ========== */
.article-list-horizontal { display: flex; flex-direction: column; gap: 20px; }
.article-card-horizontal {
    display: flex; gap: 20px; background: var(--bg-white);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition);
}
.article-card-horizontal:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.article-card-horizontal .article-card-image {
    width: 260px; height: 180px; flex-shrink: 0; overflow: hidden;
}
.article-card-horizontal .article-card-image img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s;
}
.article-card-horizontal:hover .article-card-image img { transform: scale(1.05); }
.article-card-body { padding: 16px 20px 16px 0; display: flex; flex-direction: column; justify-content: center; }
.article-card-category {
    display: inline-block; padding: 2px 10px; background: rgba(212,97,140,0.1);
    color: var(--primary); border-radius: 12px; font-size: 12px; margin-bottom: 8px; width: fit-content;
}
.article-card-body h3 {
    font-size: 18px; margin-bottom: 8px; color: var(--text-primary);
    line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card-body p {
    font-size: 14px; color: var(--text-secondary); line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 10px;
}
.article-card-meta {
    display: flex; gap: 16px; font-size: 13px; color: var(--text-light);
}
.article-card-meta span { display: flex; align-items: center; gap: 4px; }

/* ========== 文章卡片网格（列表页） ========== */
.article-grid { display: grid; gap: 20px; }
.article-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.article-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.article-card {
    display: block; background: var(--bg-white); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); transition: var(--transition);
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-image { height: 180px; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.article-card:hover .card-image img { transform: scale(1.05); }
.card-body { padding: 16px; }
.card-category {
    display: inline-block; padding: 2px 8px; background: rgba(212,97,140,0.1);
    color: var(--primary); border-radius: 10px; font-size: 12px; margin-bottom: 6px;
}
.card-body h3, .card-body h4 {
    font-size: 15px; margin-bottom: 6px; color: var(--text-primary); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-body p {
    font-size: 13px; color: var(--text-secondary); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 8px;
}
.card-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-light); }

/* ========== 侧边栏 ========== */
.sidebar-widget {
    background: var(--bg-white); border-radius: var(--radius);
    padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow);
}
.widget-title {
    font-size: 16px; font-weight: 600; margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px;
    color: var(--text-primary); padding-bottom: 12px; border-bottom: 2px solid var(--border);
}
.widget-article-list { list-style: none; }
.widget-article-list li { margin-bottom: 10px; }
.widget-article-list li a {
    display: flex; align-items: center; gap: 10px;
    color: var(--text-primary); font-size: 14px; padding: 6px 0;
}
.widget-article-list li a:hover { color: var(--primary); }
.rank-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 4px;
    font-size: 12px; font-weight: 600; flex-shrink: 0;
    background: var(--border); color: var(--text-secondary);
}
.rank-1 { background: #ff6b6b; color: #fff; }
.rank-2 { background: #ffa502; color: #fff; }
.rank-3 { background: #ffd43b; color: #fff; }
.widget-article-list .article-title {
    flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-item {
    display: inline-block; padding: 4px 12px;
    background: rgba(212,97,140,0.08); color: var(--primary);
    border-radius: 15px; font-size: 13px; transition: var(--transition);
}
.tag-item:hover { background: var(--primary); color: #fff; }

/* ========== 分页 ========== */
.pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; margin-top: 30px; padding: 20px 0;
}
.page-btn, .page-num {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 12px;
    border-radius: var(--radius-sm); font-size: 14px; transition: var(--transition);
}
.page-btn { background: var(--bg-white); color: var(--text-primary); box-shadow: var(--shadow); }
.page-btn:hover { background: var(--primary); color: #fff; }
.page-num { background: var(--bg-white); color: var(--text-primary); box-shadow: var(--shadow); }
.page-num:hover { background: rgba(212,97,140,0.1); }
.page-num.active { background: var(--primary); color: #fff; }
.page-dots { color: var(--text-light); padding: 0 4px; }
.page-info { font-size: 13px; color: var(--text-light); margin-left: 12px; }

/* ========== 页面标题区 ========== */
.page-header { margin-top: calc(var(--nav-height) + 30px); margin-bottom: 30px; }
.page-header h1 { font-size: 28px; color: var(--text-primary); margin-bottom: 8px; }
.page-desc { color: var(--text-secondary); font-size: 15px; }
.search-form-page {
    display: flex; gap: 10px; margin-top: 16px; max-width: 500px;
}
.search-form-page input {
    flex: 1; padding: 10px 16px; border: 2px solid var(--border);
    border-radius: var(--radius-sm); font-size: 15px; outline: none;
    transition: var(--transition);
}
.search-form-page input:focus { border-color: var(--primary); }
.search-form-page button {
    padding: 10px 24px; background: var(--primary); color: #fff;
    border: none; border-radius: var(--radius-sm); font-size: 15px;
    cursor: pointer; transition: var(--transition);
}
.search-form-page button:hover { background: var(--primary-dark); }
.search-result-info { margin-top: 12px; color: var(--text-secondary); font-size: 14px; }

/* ========== 文章详情 ========== */
.article-page { padding-top: calc(var(--nav-height) + 20px); padding-bottom: 40px; }
.breadcrumb {
    font-size: 14px; color: var(--text-light); margin-bottom: 20px;
    display: flex; align-items: center; gap: 8px;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--text-primary); }

.article-detail {
    background: var(--bg-white); border-radius: var(--radius);
    padding: 40px; box-shadow: var(--shadow);
}
.article-header { margin-bottom: 24px; }
.article-header h1 { font-size: 28px; line-height: 1.4; margin-bottom: 16px; }
.article-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
    font-size: 14px; color: var(--text-secondary);
}
.meta-category {
    padding: 2px 12px; background: rgba(212,97,140,0.1);
    color: var(--primary); border-radius: 12px;
}
.meta-date, .meta-views, .meta-likes { display: flex; align-items: center; gap: 4px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.article-cover { margin-bottom: 24px; border-radius: var(--radius-sm); overflow: hidden; }
.article-cover img { width: 100%; max-height: 400px; object-fit: cover; }

.article-content {
    font-size: 16px; line-height: 1.8; color: var(--text-primary);
}
.article-content h2 { font-size: 22px; margin: 28px 0 14px; color: var(--primary-dark); }
.article-content h3 { font-size: 18px; margin: 22px 0 10px; }
.article-content p { margin-bottom: 16px; }
.article-content img { border-radius: var(--radius-sm); margin: 16px 0; }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 16px; }
.article-content li { margin-bottom: 6px; }
.article-content blockquote {
    border-left: 4px solid var(--primary); padding: 12px 20px;
    background: rgba(212,97,140,0.05); margin: 16px 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* 点赞/收藏 */
.article-actions {
    display: flex; gap: 16px; margin-top: 30px; padding-top: 24px;
    border-top: 1px solid var(--border);
}
.action-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 20px; border: 2px solid var(--border);
    border-radius: 25px; background: none; cursor: pointer;
    font-size: 14px; color: var(--text-secondary); transition: var(--transition);
}
.action-btn:hover { border-color: var(--primary); color: var(--primary); }
.action-btn.active { border-color: var(--primary); color: var(--primary); background: rgba(212,97,140,0.08); }

/* 上下篇 */
.article-nav {
    display: flex; gap: 16px; margin-top: 24px;
}
.article-nav .nav-prev, .article-nav .nav-next {
    flex: 1; padding: 16px; background: var(--bg-body);
    border-radius: var(--radius-sm); transition: var(--transition);
}
.article-nav a:hover { background: rgba(212,97,140,0.1); }
.article-nav .nav-label { display: block; font-size: 12px; color: var(--text-light); margin-bottom: 4px; }
.article-nav .nav-title {
    font-size: 14px; color: var(--text-primary);
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.article-nav .nav-next { text-align: right; }
.article-nav .disabled { opacity: 0.5; }

/* 相关推荐 */
.related-articles {
    margin-top: 30px; background: var(--bg-white);
    border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
}
.related-articles h3 { font-size: 20px; margin-bottom: 20px; }

/* ========== 认证页面 ========== */
.auth-page {
    padding-top: calc(var(--nav-height) + 60px); padding-bottom: 60px;
    min-height: 100vh; display: flex; align-items: flex-start; justify-content: center;
}
.auth-container { width: 100%; max-width: 420px; padding: 0 20px; }
.auth-card {
    background: var(--bg-white); border-radius: var(--radius);
    padding: 40px; box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 24px; text-align: center; margin-bottom: 6px; }
.auth-subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 24px; font-size: 14px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; }
.form-group input {
    width: 100%; padding: 10px 14px; border: 2px solid var(--border);
    border-radius: var(--radius-sm); font-size: 14px; outline: none; transition: var(--transition);
}
.form-group input:focus { border-color: var(--primary); }
.auth-link { text-align: center; margin-top: 16px; font-size: 14px; color: var(--text-secondary); }

/* 按钮 */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 24px; border: none; border-radius: var(--radius-sm);
    font-size: 15px; cursor: pointer; transition: var(--transition);
    text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-block { width: 100%; }

/* 提示 */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; }
.alert-error { background: #fee2e2; color: #dc2626; }
.alert-success { background: #d1fae5; color: #059669; }

/* ========== 错误页面 ========== */
.error-page {
    margin-top: var(--nav-height); min-height: calc(100vh - var(--nav-height));
    display: flex; align-items: center; justify-content: center;
}
.error-container { text-align: center; padding: 40px; }
.error-icon { font-size: 64px; margin-bottom: 16px; }
.error-container h1 { font-size: 72px; color: var(--primary); margin-bottom: 8px; }
.error-container h2 { font-size: 24px; margin-bottom: 12px; }
.error-container p { color: var(--text-secondary); margin-bottom: 24px; }

/* ========== 网站地图 ========== */
.sitemap-content { margin-top: 20px; }
.sitemap-section { background: var(--bg-white); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow); }
.sitemap-section h2 { font-size: 20px; margin-bottom: 16px; color: var(--primary); }
.sitemap-section ul { list-style: none; }
.sitemap-section li { padding: 8px 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; }
.sitemap-section li:last-child { border: none; }
.sitemap-date { color: var(--text-light); font-size: 13px; }

/* ========== 空状态 ========== */
.empty-state {
    text-align: center; padding: 60px 20px; color: var(--text-secondary);
    background: var(--bg-white); border-radius: var(--radius);
}

/* ========== 底部 ========== */
.site-footer {
    background: var(--text-primary); color: rgba(255,255,255,0.7);
    padding: 40px 0 0; margin-top: 60px;
}
.footer-container {
    max-width: var(--container-width); margin: 0 auto; padding: 0 20px;
    display: flex; gap: 60px; padding-bottom: 30px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.footer-brand .logo-icon { color: var(--primary); }
.footer-desc { font-size: 14px; line-height: 1.6; max-width: 400px; }
.footer-links h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 14px; }
.footer-links a:hover { color: var(--primary-light); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px; text-align: center; font-size: 13px;
}
.footer-disclaimer { margin-top: 6px; font-size: 12px; opacity: 0.6; }

/* ========== 列表页间距 ========== */
.list-page { padding-bottom: 40px; }
.list-page .content-with-sidebar { margin-top: 20px; }

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
    .flower-lang-grid { grid-template-columns: repeat(5, 1fr); }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .article-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .content-with-sidebar { flex-direction: column; }
    .sidebar { width: 100%; }
    .article-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
    .article-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-container { flex-direction: column; gap: 30px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-search { display: none; }
    .nav-hamburger { display: block; }
    .nav-links.active {
        display: flex; flex-direction: column;
        position: absolute; top: var(--nav-height); left: 0; right: 0;
        background: rgba(26,26,46,0.98); padding: 10px 0;
    }
    .nav-link { padding: 12px 20px; }

    .hero-carousel { height: 280px; }
    .carousel-overlay { padding: 30px; }
    .carousel-overlay h2 { font-size: 22px; }
    .carousel-overlay p { font-size: 14px; }

    .section { padding: 40px 0; }
    .section-title { font-size: 22px; }

    .flower-lang-grid { grid-template-columns: repeat(2, 1fr); }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .article-grid.cols-3, .article-grid.cols-4 { grid-template-columns: 1fr; }

    .article-card-horizontal { flex-direction: column; }
    .article-card-horizontal .article-card-image { width: 100%; height: 200px; }

    .article-detail { padding: 24px; }
    .article-header h1 { font-size: 22px; }
    .article-nav { flex-direction: column; }

    .auth-card { padding: 24px; }

    .page-header { margin-top: calc(var(--nav-height) + 20px); }
}

@media (max-width: 480px) {
    .flower-lang-grid { grid-template-columns: repeat(2, 1fr); }
    .category-grid { grid-template-columns: 1fr; }
    .pagination { flex-wrap: wrap; }
}
