/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "Segoe UI", sans-serif; line-height: 1.6; color: #333; background: #f8f5f0 url('/static/images/tea-bg.jpg') repeat; }
a { text-decoration: none; color: #2a6e3f; transition: color 0.3s; }
a:hover { color: #d4a55e; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; }

/* Header */
.site-header { background: linear-gradient(to right, #1a472a, #2a6e3f); color: #fff; padding: 15px 0; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.header-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
.logo-area .logo-link { color: #fff; }
.logo-text { font-size: 32px; font-weight: bold; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); font-family: "STKaiti", serif; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a { color: #e6f2e9; font-size: 18px; padding: 8px 12px; border-radius: 4px; }
.main-nav a:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* Home Main */
.home-main { max-width: 1200px; margin: 30px auto; padding: 0 20px; }
.hero-banner { background: url('/static/images/hero-tea.jpg') center/cover no-repeat; height: 400px; border-radius: 12px; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; position: relative; margin-bottom: 40px; }
.hero-banner::before { content: ''; position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.4); border-radius: 12px; }
.banner-content { position: relative; z-index: 2; }
.banner-content h2 { font-size: 48px; margin-bottom: 15px; text-shadow: 2px 2px 8px rgba(0,0,0,0.5); }
.banner-content p { font-size: 22px; }

.content-wrapper { display: grid; gap: 40px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 2px solid #d4a55e; padding-bottom: 10px; }
.section-title { font-size: 26px; color: #2a6e3f; display: flex; align-items: center; }
.section-title i { margin-right: 10px; color: #d4a55e; }
.more-link { color: #d4a55e; font-size: 16px; }

.scroll-news-container { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.news-list li { padding: 12px 0; border-bottom: 1px dashed #e0d6c9; }
.news-list li:last-child { border-bottom: none; }
.news-list a { font-size: 17px; display: block; }
.news-list a:hover { color: #d4a55e; padding-left: 5px; }

.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.featured-item { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.item-header { background: linear-gradient(to right, #3a8c5c, #4ca771); color: #fff; padding: 15px; text-align: center; }
.item-header h4 { font-size: 22px; }
.featured-list { padding: 15px; }
.featured-list li { padding: 10px 0; border-bottom: 1px dotted #eae2d6; }
.featured-list a { font-size: 16px; }
.featured-list a:hover { color: #d4a55e; }

.ranking-section { background: #fff; border-radius: 10px; padding: 25px; box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.ranking-list { counter-reset: rank; }
.ranking-list li { padding: 14px 0 14px 40px; border-bottom: 1px solid #eee; position: relative; }
.ranking-list li::before { counter-increment: rank; content: counter(rank); position: absolute; left: 0; top: 50%; transform: translateY(-50%); background: #d4a55e; color: #fff; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.ranking-list a { font-size: 18px; font-weight: 500; }
.ranking-list li:nth-child(1)::before { background: #c0392b; }
.ranking-list li:nth-child(2)::before { background: #e67e22; }
.ranking-list li:nth-child(3)::before { background: #f1c40f; }

/* Footer */
.site-footer { background: #1a472a; color: #b8d8c6; padding: 40px 0 20px; margin-top: 60px; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-links { display: flex; justify-content: space-between; flex-wrap: wrap; }
.links-section h4 { color: #fff; font-size: 20px; margin-bottom: 15px; border-left: 4px solid #d4a55e; padding-left: 10px; }
.links-section ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.links-section a { color: #b8d8c6; font-size: 15px; }
.links-section a:hover { color: #fff; }
.footer-info { text-align: center; width: 100%; margin-top: 30px; padding-top: 20px; border-top: 1px solid #2a6e3f; }
.copyright, .icp { font-size: 14px; color: #8abf9e; }

/* List Page */
.list-page { max-width: 1200px; margin: 30px auto; padding: 0 20px; }
.list-breadcrumb { background: #fff; padding: 15px 20px; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 3px 10px rgba(0,0,0,0.05); }
.list-header { text-align: center; margin-bottom: 40px; }
.list-title { font-size: 36px; color: #2a6e3f; margin-bottom: 10px; }
.list-desc { color: #666; font-size: 18px; }
.list-container { display: flex; gap: 30px; }
.list-main { flex: 3; }
.article-list { background: #fff; border-radius: 10px; padding: 25px; box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.article-list li { padding: 18px 0; border-bottom: 1px solid #f0e9df; }
.article-list a { font-size: 19px; display: block; padding-left: 15px; border-left: 4px solid transparent; }
.article-list a:hover { border-left-color: #d4a55e; color: #d4a55e; }
.list-sidebar { flex: 1; }
.sidebar-block { background: #fff; border-radius: 10px; padding: 20px; margin-bottom: 25px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.sidebar-title { font-size: 20px; color: #2a6e3f; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid #e9dcc9; }
.sidebar-list li { padding: 12px 0; border-bottom: 1px dotted #eee; }
.sidebar-list a { font-size: 16px; }
.sidebar-list a:hover { color: #d4a55e; }

/* Detail Page */
.detail-page { max-width: 1200px; margin: 30px auto; padding: 0 20px; }
.detail-breadcrumb { background: #fff; padding: 15px 20px; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 3px 10px rgba(0,0,0,0.05); }
.article-container { display: flex; gap: 30px; }
.article-main { flex: 3; background: #fff; border-radius: 12px; padding: 30px; box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
.article-info { margin-bottom: 25px; }
.cat-link { display: inline-block; background: #e9f4ed; color: #2a6e3f; padding: 6px 15px; border-radius: 20px; font-size: 15px; margin-bottom: 15px; }
.article-title { font-size: 32px; color: #1a472a; margin-bottom: 20px; line-height: 1.4; }
.article-meta { color: #888; font-size: 15px; display: flex; gap: 20px; margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.article-meta span { display: flex; align-items: center; }
.article-meta span::before { content: '•'; margin-right: 8px; color: #d4a55e; }

.article-nav { display: flex; justify-content: space-between; margin: 40px 0; padding: 20px; background: #f9f5ef; border-radius: 8px; }
.article-nav a { color: #2a6e3f; font-weight: 500; padding: 10px 20px; border: 1px solid #d4a55e; border-radius: 6px; }
.article-nav a:hover { background: #d4a55e; color: #fff; }
.u-back-list { display: inline-block; background: #2a6e3f; color: #fff; padding: 12px 30px; border-radius: 6px; font-size: 17px; margin-top: 20px; }
.u-back-list:hover { background: #1a472a; color: #fff; }

.detail-sidebar { flex: 1; }
.detail-sidebar .sidebar-block { background: #fff; border-radius: 10px; padding: 20px; margin-bottom: 25px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.detail-sidebar .sidebar-title { font-size: 20px; color: #2a6e3f; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid #e9dcc9; }
.detail-sidebar .sidebar-list li { padding: 12px 0; border-bottom: 1px dotted #eee; }
.detail-sidebar .sidebar-list a { font-size: 16px; }
.detail-sidebar .sidebar-list a:hover { color: #d4a55e; }

/* Responsive */
@media (max-width: 992px) {
    .featured-grid { grid-template-columns: repeat(2, 1fr); }
    .list-container, .article-container { flex-direction: column; }
    .links-section ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .header-container { flex-direction: column; gap: 15px; }
    .main-nav ul { flex-wrap: wrap; justify-content: center; }
    .hero-banner { height: 300px; }
    .banner-content h2 { font-size: 36px; }
    .featured-grid { grid-template-columns: 1fr; }
    .links-section ul { grid-template-columns: 1fr; }
}
