/* ===== 基础变量 ===== */
:root {
    --primary: #1a5a2a;
    --primary-dark: #0d3d1a;
    --primary-light: #2d7a3a;
    --accent: #c9a03d;
    --accent-dark: #a87d2a;
    --text: #2c2c2c;
    --text-light: #6b6b6b;
    --bg: #ffffff;
    --bg-light: #f7f5f0;
    --border: #e8e5dc;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--bg-light);
    line-height: 1.5;
}
.container { max-width: 1300px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; }

/* 顶部通知栏 */
.top-notice {
    background: var(--primary-dark);
    color: #e0d5b0;
    font-size: 13px;
    padding: 8px 0;
}
.top-notice .container { display: flex; justify-content: space-between; }
.top-actions a { margin-left: 20px; }
.top-actions a:hover, .notice-content a:hover { color: var(--accent); }

/* 主头部 */
header {
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
header .container { display: flex; justify-content: space-between; align-items: center; padding: 8px 20px; }
.logo img { height: 80px; width: auto; display: block; }

/* 导航菜单 */
.main-nav { display: flex; gap: 55px; position: relative; }
.menu-item { position: relative; }
.menu-item > a { font-size: 16px; font-weight: 600; color: var(--text); padding: 8px 0; display: inline-block; }
.menu-item > a:hover { color: var(--primary); }

/* 下拉菜单 */
.dropdown-menu {
    position: absolute; top: 100%; left: 0; background: white; border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12); opacity: 0; visibility: hidden;
    transform: translateY(-10px); transition: all 0.25s ease; z-index: 1000;
    border: 1px solid var(--border);
}
.menu-item:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-container { display: flex; padding: 30px; gap: 40px; }
.dropdown-col { flex: 1; min-width: 160px; }
.dropdown-col h4 { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 15px; }
.dropdown-col ul li { margin-bottom: 10px; list-style: none; }
.dropdown-col ul li a { font-size: 14px; color: var(--text-light); display: flex; align-items: center; }
.dropdown-col ul li a:hover { color: var(--primary); }
.menu-icon { display: inline-block; width: 28px; font-size: 16px; margin-right: 8px; text-align: center; }
.tea-menu { min-width: 780px !important; }
.teaware-menu { min-width: 680px !important; }

/* 头部右侧 */
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-search { display: flex; align-items: center; border-bottom: 2px solid var(--border); }
.header-search input { border: none; padding: 8px 5px; width: 180px; outline: none; background: transparent; }
.header-search button { background: transparent; border: none; cursor: pointer; font-size: 18px; }
.account-icon, .cart-icon { font-size: 22px; transition: color 0.2s; }
.account-icon:hover, .cart-icon:hover { color: var(--primary); }

/* 分类页通用样式 */
.category-hero {
    background: linear-gradient(135deg, #1a5a2a 0%, #2d7a3a 100%);
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 40px;
}
.category-hero h1 { font-size: 48px; font-weight: 600; margin-bottom: 15px; }
.category-hero p { font-size: 18px; opacity: 0.9; }

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.filter-tab {
    padding: 8px 25px;
    border-radius: 30px;
    background: white;
    border: 1px solid var(--border);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-tab:hover, .filter-tab.active { background: var(--primary); color: white; border-color: var(--primary); }

/* 页脚 */
footer {
    background: #1a1a1a;
    color: #999;
    padding: 50px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 { color: var(--accent); margin-bottom: 18px; font-size: 16px; }
.footer-col p, .footer-col li { font-size: 13px; line-height: 1.8; }
.footer-col ul { list-style: none; }
.footer-col a { color: #999; text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.social-icons { display: flex; gap: 15px; margin-top: 15px; font-size: 20px; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #333; font-size: 12px; }

/* 响应式 */
@media (max-width: 992px) {
    .main-nav { width: 100%; justify-content: center; gap: 25px; flex-wrap: wrap; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .dropdown-menu { position: static; min-width: auto !important; box-shadow: none; display: none; }
    .menu-item:hover .dropdown-menu { display: block; }
    .dropdown-container { flex-direction: column; padding: 15px 0; }
}
@media (max-width: 768px) {
    .category-hero h1 { font-size: 32px; }
    .footer-grid { grid-template-columns: 1fr; }
}