/* =====================================================
   茶叶回收网 - 高端大气风格 v5.0
   百度SEO优化 + 现代简约设计 + PHPCMS兼容
   ===================================================== */

:root {
    --primary: #8B5A2B;
    --primary-dark: #5D3A1A;
    --primary-light: #C4A484;
    --accent: #D4AF37;
    --accent-light: #F5E6C8;
    --bg: #FAF8F5;
    --bg-card: #FFFFFF;
    --text: #2C1810;
    --text-body: #4A3728;
    --text-muted: #8B7355;
    --border: #E8E0D5;
    --shadow-sm: 0 2px 8px rgba(139,90,43,0.08);
    --shadow-md: 0 4px 20px rgba(139,90,43,0.12);
    --shadow-lg: 0 8px 40px rgba(139,90,43,0.15);
    --radius: 16px;
    --radius-sm: 8px;
    --max-width: 1200px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { 
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    background: var(--bg);
    color: var(--text-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover { color: var(--accent); }
a:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

img { max-width: 100%; height: auto; display: block; }
.posn img,
.comment-form img { display: inline; max-width: none; vertical-align: middle; }

ul, ol { list-style: none; }

/* ========== 顶部公告栏 ========== */
.body-top,
.top-bar {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: rgba(255,255,255,0.9);
    font-size: 13px;
}

.top-bar-inner,
.body-top .content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.top-bar a, .body-top a { color: rgba(255,255,255,0.9); }
.top-bar a:hover, .body-top a:hover { color: var(--accent-light); }

.announcement, #announ {
    flex: 1;
    overflow: hidden;
}

.announcement ul, #announ ul {
    display: flex;
    gap: 24px;
}

.announcement li, #announ li { white-space: nowrap; }

.login { display: flex; align-items: center; gap: 16px; }

.rss { 
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
}

/* ========== Header ========== */
.header,
.site-header {
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition);
}

.header.scrolled,
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header,
.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    align-items: center;
}

.logo, .site-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img, .site-logo img {
    height: 56px;
    width: auto;
}

/* 搜索框 */
.search, .site-search {
    max-width: 480px;
    margin: 0 auto;
}

.search .tab { display: none; }

.search .bd, .search-form {
    display: flex;
    background: var(--bg);
    border-radius: 40px;
    border: 2px solid var(--border);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.search-form:focus-within,
.search .bd:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(139,90,43,0.1);
}

.search .text, .search-input {
    flex: 1;
    padding: 14px 24px;
    border: none;
    background: transparent;
    font-size: 15px;
    color: var(--text);
    outline: none;
}

.search .text::placeholder, .search-input::placeholder { color: var(--text-muted); }

.search .button, .search-btn {
    padding: 14px 28px;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: background var(--transition);
    border-radius: 0 40px 40px 0;
}

.search .button:hover, .search-btn:hover { background: var(--primary-dark); }

/* Banner */
.banner { display: none; }

/* 联系方式 */
.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-phone {
    text-align: right;
}

.contact-phone .label {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
}

.contact-phone .number {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    font-family: "DIN Alternate", sans-serif;
}

/* ========== 导航 ========== */
.nav-bar,
.main-nav {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.nav-bar map,
.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.nav-site,
.nav-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-site li, .nav-menu li { position: relative; }

.nav-site a, .nav-menu a {
    display: block;
    padding: 16px 24px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: background var(--transition);
}

.nav-site a:hover, .nav-menu a:hover,
.nav-site .current a, .nav-menu .current a {
    background: rgba(255,255,255,0.15);
}

.nav-site .line { display: none; }

/* 子导航 */
.subnav, .sub-nav {
    background: var(--accent-light);
    padding: 12px 24px;
    text-align: center;
}

.subnav a, .sub-nav a {
    display: inline-block;
    padding: 6px 16px;
    margin: 4px;
    color: var(--text-body);
    font-size: 14px;
    border-radius: 20px;
    transition: background var(--transition);
}

.subnav a:hover, .sub-nav a:hover { background: rgba(212,175,55,0.3); }

/* ========== 主内容区 ========== */
.main, .main-content {
    max-width: var(--max-width);
    margin: 32px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
}

.col-left { min-width: 0; }

.col-auto {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ========== 面包屑 ========== */
.crumbs {
    background: var(--bg-card);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.crumbs a { color: var(--primary); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 8px; }

/* ========== 卡片组件 ========== */
.box, .box1, .card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.box:hover, .box1:hover, .card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.box h5, .box1 h5,
.card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, var(--bg), var(--bg-card));
}

.box h5, .box1 h5,
.card-header h2, .card-header h3, .card-header h4, .card-header h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0;
}

.box .content, .box1 .content,
.card-body { padding: 24px; }

.box .more, .box1 .more,
.card-header .more-link {
    font-size: 13px;
    color: var(--text-muted);
}

.box .more:hover, .box1 .more:hover,
.card-header .more-link:hover { color: var(--accent); }

/* 标题样式 */
.title-1, .title-2, .title-3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-dark);
    padding: 16px 20px;
    border-bottom: 2px solid var(--primary);
    margin: 0;
}

.title-1 { border-bottom-color: #B22222; }
.title-2 { border-bottom-color: var(--primary); }
.title-3 { border-bottom-color: var(--accent); }

/* ========== 焦点图轮播 ========== */
.FocusPic, .slider {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.FocusPic img, .slider img {
    width: 100%;
    height: auto;
}

.changeDiv { position: relative; }
.changeDiv a { display: block; }

/* ========== 产品网格 ========== */
.product-grid,
.brand-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    list-style: none;
}
.brand-grid li { text-align: center; }
.brand-grid .img-wrap { aspect-ratio: 1; }

.news-photo,
.picbig {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    list-style: none;
}

.product-grid li, .news-photo li,
.product-item {
    text-align: center;
}

.product-thumb,
.img-wrap1,
.img-chanpin,
.img-wrap {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--bg);
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.product-thumb img, .img-wrap1 img, .img-chanpin img, .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-grid li:hover .product-thumb img,
.news-photo li:hover .img-wrap1 img,
.picbig li:hover img {
    transform: scale(1.08);
}

.product-title {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.product-price {
    font-size: 17px;
    font-weight: 700;
    color: #B22222;
}

/* ========== 新闻列表 ========== */
.news-item {
    padding: 16px 0;
    border-bottom: 1px dashed var(--border);
}

.news-item:last-child { border-bottom: none; }

.news-item h4, .news-item h3 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
}

.news-item h4 a, .news-item h3 a { color: var(--text); }
.news-item h4 a:hover, .news-item h3 a:hover { color: var(--primary); }

.news-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* 通用列表 */
.list { list-style: none; }
.list li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 14px;
}

.list li:last-child { border-bottom: none; }

/* 侧边栏列表装饰符号 - 不影响首页cat-area */
.sidebar .list li::before {
    content: "›";
    color: var(--primary);
    margin-right: 8px;
    font-weight: bold;
}

/* ========== 侧边栏 ========== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--bg-card) 100%);
}

.sidebar-contact {
    text-align: center;
    padding: 24px;
}

.sidebar-contact li {
    padding: 8px 0;
    font-size: 15px;
}

.sidebar-contact .highlight {
    font-size: 18px;
    font-weight: 600;
    color: #B22222;
}

.sidebar-contact img {
    width: 160px;
    margin: 16px auto;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

/* 推荐产品 */
.recommend-item {
    margin-bottom: 20px;
}

.recommend-thumb {
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 12px;
}

.recommend-thumb img {
    width: 100%;
    height: auto;
}

/* 排行榜 */
.digg, .rank {
    list-style: none;
}

.digg li, .rank li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 14px;
    position: relative;
}

.digg li:last-child, .rank li:last-child { border-bottom: none; }

.rank li { padding-left: 28px; }

.rank li span {
    position: absolute;
    left: 0;
    top: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rank li:nth-child(-n+3) span {
    background: var(--accent);
    color: #fff;
}

/* ========== 栏目列表 ========== */
.cat-area,
.category-item {
    margin-bottom: 16px;
}

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

/* ========== 文章详情 ========== */
#Article {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

#Article h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.4;
}

#Article .content {
    font-size: 16px;
    line-height: 2;
    color: var(--text-body);
}

#Article .content p {
    margin-bottom: 16px;
    text-indent: 2em;
}

#Article .content img {
    max-width: 100%;
    height: auto !important;
    border-radius: var(--radius-sm);
    margin: 16px 0;
}

/* 文章元信息 */
.article-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* 关键词区域 */
.article-keywords {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
}

.article-keywords strong {
    color: var(--text);
}

.article-keywords a {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-light);
    border-radius: 4px;
    margin: 4px;
    font-size: 13px;
    color: var(--primary);
    transition: all var(--transition);
}

.article-keywords a:hover {
    background: var(--primary);
    color: #fff;
}

/* 上一篇下一篇导航 */
.prev-next-nav {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.prev-next-nav .prev,
.prev-next-nav .next {
    padding: 8px 0;
}

.prev-next-nav .prev a,
.prev-next-nav .next a {
    color: var(--primary);
}

.prev-next-nav .prev a:hover,
.prev-next-nav .next a:hover {
    color: var(--accent);
}

/* 评论区域 */
.comment-section {
    margin-top: 24px;
}

.comment-section iframe {
    border-radius: var(--radius-sm);
}

/* 摘要 */
.summary {
    background: var(--bg);
    padding: 20px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
    border-left: 4px solid var(--accent);
}

.summary blockquote {
    margin: 0;
    padding: 0;
}

.summary p {
    margin: 0 !important;
    text-indent: 0 !important;
}

/* 相关阅读 */
.related {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.related h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}

.related ul { list-style: none; }
.related li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
}

/* ========== 全宽区域 ========== */
.full-width,
.blogroll,
.ylink {
    max-width: var(--max-width);
    margin: 0 auto 32px;
    padding: 0 24px;
}

/* 热门标签 */
.tag-cloud,
.special,
.rasideBox {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    line-height: 1;
}

.tag-cloud a, .special a, .rasideBox a, .rasideBox li a {
    display: inline-block;
    padding: 8px 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-body);
    transition: all var(--transition);
}

.tag-cloud a:hover, .special a:hover, .rasideBox a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* 友情链接 */
.friend-links img {
    height: 31px;
    border-radius: 4px;
}

.friend-links .link-text {
    display: inline-block;
    margin: 6px 12px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ========== Footer ========== */
.footer,
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.9);
    margin-top: 48px;
}

/* Footer 4列布局容器 */
.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

/* 每列 */
.footer-col {
    min-width: 0;
}

/* 列标题 */
.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(212,175,55,0.3);
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

/* 第1列：关于我们 */
.footer-content .site-desc {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255,255,255,0.8);
    margin-bottom: 16px;
}

.footer-content .site-slogan {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
}

/* 第2列：快速导航 */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    transition: all 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-light);
    transform: translateX(4px);
}

.footer-links a::before {
    content: '>';
    margin-right: 8px;
    color: var(--accent);
}

/* 第3列：联系方式 */
.footer-contact {
    text-align: center;
}

.footer-contact .contact-label {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}

.footer-contact .contact-phone {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-contact .contact-phone a {
    color: var(--accent);
    font-family: "DIN Alternate", sans-serif;
}

.footer-contact .contact-wechat {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

/* 第4列：微信二维码 */
.footer-qr {
    text-align: center;
}

.footer-qr img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    margin-bottom: 12px;
}

.footer-qr .qr-tip {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

/* 友情链接（首页专用） */
.friend-links-section {
    background: rgba(0,0,0,0.15);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.friend-links-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.friend-links-title {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    flex-shrink: 0;
}

.friend-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.friend-links-list a {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    padding: 2px 0;
}

.friend-links-list a:hover {
    color: var(--accent-light);
}

.friend-links-list a::after {
    content: '|';
    margin-left: 8px;
    color: rgba(255,255,255,0.3);
}

.friend-links-list a:last-child::after {
    content: '';
}

/* 版权信息 */
.footer-copyright {
    text-align: center;
    padding: 20px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.footer-copyright p {
    margin: 4px 0;
}

.footer-copyright a { 
    color: rgba(255,255,255,0.6); 
}

.footer-copyright a:hover { 
    color: var(--accent-light); 
}

/* Footer 响应式 */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links a::before {
        content: '';
    }
    
    .friend-links-inner {
        flex-direction: column;
        align-items: center;
    }
}

/* ========== 分页 ========== */
.pagination, #pages {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 24px;
}

.pagination a, .pagination span,
#pages a, #pages span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-body);
    font-size: 14px;
    transition: all var(--transition);
}

.pagination a:hover, #pages a:hover,
.pagination .current, #pages .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ========== 搜索页 ========== */
.search-form-page {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.search-form-page ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.search-form-page li {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-form-page label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.search-form-page input,
.search-form-page select {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.search-form-page .btn input {
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
}

.search-point {
    text-align: center;
    padding: 16px;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

.search-list li {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    display: flex;
    gap: 20px;
}

.search-list li img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.search-list h5 {
    font-size: 16px;
    margin-bottom: 8px;
}

.search-list p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ========== RSS页面 ========== */
.rss-channel .top-bar-inner {
    justify-content: space-between;
}

.rss-channel .site-logo img { height: 30px; }

/* ========== 辅助类 ========== */
.text-c { text-align: center; }
.hidden { display: none !important; }
.clearfix::after { content: ""; display: table; clear: both; }

.bk3, .bk10, .bk15, .bk20 { 
    clear: both; 
    display: block;
}
.bk3 { height: 3px; }
.bk10 { height: 10px; }
.bk15 { height: 15px; }
.bk20 { height: 20px; }

.hr { border-bottom: 1px solid var(--border); }

.red { color: #B22222; }
.blue { color: var(--primary); }
.green { color: #28a745; }

.lh24 { line-height: 24px; }
.f12 { font-size: 12px; }
.f14 { font-size: 14px; }

.row-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* ========== 响应式设计 ========== */
@media (max-width: 1200px) {
    .product-grid, .news-photo, .picbig { 
        grid-template-columns: repeat(4, 1fr); 
    }
    .brand-grid { grid-template-columns: repeat(3, 1fr); }
    .main, .main-content { 
        grid-template-columns: 1fr 300px; 
    }
}

@media (max-width: 992px) {
    .main, .main-content {
        grid-template-columns: 1fr;
    }
    
    .col-auto, .sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .col-auto > *, .sidebar > * {
        flex: 1;
        min-width: 280px;
    }
    
    .category-grid { grid-template-columns: 1fr; }
}

/* ========== 移动端优化 ========== */
@media (max-width: 768px) {
    :root { --radius: 12px; }
    
    /* 移动端隐藏top-bar公告栏 - 节省空间 */
    .top-bar { display: none; }
    
    /* header不固定，随页面滚动消失 - 主流移动端做法 */
    .site-header { position: relative; }
    
    /* header紧凑布局：logo左 | 搜索中 | 菜单右 */
    .header, .header-inner {
        grid-template-columns: auto 1fr auto;
        gap: 10px;
        padding: 10px 12px;
        align-items: center;
    }
    
    /* logo缩小 */
    .logo img, .site-logo img {
        height: 36px;
        width: auto;
    }
    
    /* 搜索框适配 - 圆角pill风格 */
    .search, .site-search { max-width: 100%; }
    .search .bd, .search-form {
        border-radius: 20px;
        border-width: 1px;
    }
    .search-input { font-size: 13px; padding: 8px 12px; }
    .search-btn { padding: 8px 14px; font-size: 13px; }
    
    /* 移动端隐藏联系方式 - 电话号码放侧边栏即可 */
    .header-contact { display: none; }
    
    .nav-site, .nav-menu {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-site a, .nav-menu a {
        padding: 14px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .product-grid, .news-photo, .picbig { 
        grid-template-columns: repeat(3, 1fr); 
        gap: 12px; 
    }
    
    .col-auto > *, .sidebar > * { min-width: 100%; }
    
    #Article { padding: 20px; }
    #Article h1 { font-size: 22px; }
}

@media (max-width: 480px) {
    /* 更小屏幕进一步精简 */
    .header, .header-inner {
        gap: 8px;
        padding: 8px 10px;
    }
    
    .logo img, .site-logo img {
        height: 30px;
        width: auto;
    }
    
    .search-input { font-size: 12px; padding: 6px 10px; }
    .search-btn { padding: 6px 10px; font-size: 12px; }
    
    .product-grid, .news-photo, .picbig { 
        grid-template-columns: repeat(2, 1fr); 
    }
    .brand-grid { grid-template-columns: repeat(2, 1fr); }
    
    .footer-nav a {
        display: block;
        margin: 8px 0;
    }
}

/* ========== 移动端菜单按钮 ========== */
/* 桌面端隐藏菜单按钮 */
.menu-toggle { display: none; }

.menu-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--primary);
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.menu-toggle:hover {
    background: rgba(139,90,43,0.1);
}

.menu-toggle .menu-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.menu-toggle .menu-icon span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: all 0.3s;
}

.menu-toggle .close-icon {
    display: none;
    font-size: 24px;
    color: var(--primary);
    font-weight: bold;
    line-height: 1;
}

.menu-toggle.active .menu-icon { display: none; }
.menu-toggle.active .close-icon { display: block; }

@media (max-width: 768px) {
    /* 移动端显示菜单按钮 */
    .menu-toggle { display: flex; }
    
    .nav-inner { 
        position: relative;
        padding: 0;
        min-height: 0;
    }
    
    .main-nav {
        position: relative;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        z-index: 999;
        max-height: 80vh;
        overflow-y: auto;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    
    .nav-menu.active { display: flex; }
}

/* ========== 淘宝风格产品展示 ========== */
.product-gallery-wrapper {
    display: flex;
    gap: 30px;
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(139,90,43,0.08);
}

.gallery-left {
    width: 420px;
    flex-shrink: 0;
}

.gallery-main {
    position: relative;
    width: 420px;
    height: 420px;
    border: 1px solid #E8E0D5;
    border-radius: 8px;
    overflow: hidden;
    background: #FAFAFA;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 0;
    overflow-x: auto;
}

.thumb-item {
    width: 60px;
    height: 60px;
    border: 2px solid #E8E0D5;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
}

.thumb-item:hover,
.thumb-item.active {
    border-color: #8B5A2B;
    box-shadow: 0 2px 8px rgba(139,90,43,0.2);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-left: 10px;
}

.gallery-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    line-height: 1.5;
    margin-bottom: 15px;
}

.gallery-price-box {
    background: #FFF8F0;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.gallery-price-label {
    font-size: 13px;
    color: #8B7355;
}

.gallery-price-row {
    margin-top: 8px;
}

.gallery-market-price {
    font-size: 13px;
    color: #999;
    margin-right: 15px;
}

.gallery-price {
    font-size: 28px;
    font-weight: 700;
    color: #B22222;
}

.gallery-price-unit {
    font-size: 14px;
    color: #8B7355;
    margin-left: 5px;
}

.gallery-info-table {
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px dashed #E8E0D5;
}

.info-label {
    width: 60px;
    color: #8B7355;
    font-size: 14px;
}

.info-value {
    flex: 1;
    color: #333;
    font-size: 14px;
}

.gallery-contact {
    margin-top: auto;
    padding-top: 20px;
}

.contact-phone {
    font-size: 16px;
    color: #8B7355;
    margin-bottom: 10px;
}

.contact-phone strong {
    font-size: 24px;
    color: #B22222;
}

.contact-wechat img {
    border-radius: 8px;
}

.comment-wrapper {
    width: 100%;
    min-height: 400px;
    overflow: hidden;
}

.comment-wrapper iframe {
    width: 100%;
    min-height: 400px;
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .product-gallery-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .gallery-left {
        width: 100%;
    }
    
    .gallery-main {
        width: 100%;
        height: 0;
        padding-bottom: 100%;
    }
    
    .main-image {
        position: absolute;
    }
    
    .gallery-info {
        padding-left: 0;
    }
}

/* ========== 推荐产品卡片网格 ========== */
.recommend-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 10px;
}

.recommend-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #E8E0D5;
    transition: all 0.3s ease;
}

.recommend-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(139,90,43,0.15);
    border-color: var(--primary);
}

.recommend-card-thumb {
    width: 152px;
    height: 152px;
    overflow: hidden;
    background: #FAF8F5;
    margin: 0 auto;
}

.recommend-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recommend-card:hover .recommend-card-thumb img {
    transform: scale(1.05);
}

.recommend-card-info {
    padding: 10px;
}

.recommend-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommend-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.recommend-card-brand {
    color: var(--text-muted);
}

.recommend-card-price {
    color: #B22222;
    font-weight: 700;
}

@media (max-width: 480px) {
    .recommend-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== 搜索页面样式 ========== */
.search-home {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px 20px;
}
.search-home-inner {
    width: 100%;
    max-width: 640px;
    text-align: center;
}
.search-home-title {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 8px;
}
.search-home-desc {
    color: var(--text-muted);
    margin-bottom: 32px;
}
.search-home-type {
    margin-bottom: 20px;
    font-size: 14px;
}
.search-home-type a {
    color: var(--text-color);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}
.search-home-type a:hover,
.search-home-type a.on {
    color: var(--accent);
    background: rgba(212,175,55,0.1);
}
.search-home-type .sep {
    color: var(--border-color);
    margin: 0 8px;
}
.search-home-form {
    display: flex;
    gap: 12px;
}
.search-home-input {
    flex: 1;
    padding: 16px 20px;
    font-size: 18px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}
.search-home-input:focus {
    border-color: var(--primary);
}
.search-home-btn {
    padding: 16px 32px;
    font-size: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}
.search-home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139,90,43,0.3);
}

/* 搜索结果页 */
.search-result-bar {
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
}
.search-type-tabs {
    margin-bottom: 16px;
    font-size: 14px;
}
.search-type-tabs a {
    color: var(--text-color);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s;
}
.search-type-tabs a:hover,
.search-type-tabs a.on {
    color: var(--accent);
    background: rgba(212,175,55,0.15);
}
.search-type-tabs .sep {
    color: var(--border-color);
    margin: 0 4px;
}
.search-result-form {
    display: flex;
    gap: 12px;
}
.search-result-info {
    color: var(--text-muted);
    font-size: 13px;
    margin: 16px 0;
}
.search-filter {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
    font-size: 14px;
}
.search-filter .filter-label {
    color: var(--text-muted);
    margin-right: 12px;
}
.search-filter a {
    color: var(--text-color);
    text-decoration: none;
    margin-right: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}
.search-filter a:hover,
.search-filter a.current {
    color: var(--accent);
    background: rgba(212,175,55,0.15);
}
.search-result-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.search-result-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 16px;
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-thumb {
    flex-shrink: 0;
}
.search-result-thumb img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}
.search-result-info-wrap {
    flex: 1;
}
.search-result-title {
    font-size: 16px;
    margin: 0 0 8px;
}
.search-result-title a {
    color: var(--text-color);
    text-decoration: none;
}
.search-result-title a:hover {
    color: var(--accent);
}
.search-result-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.search-result-date {
    color: var(--text-muted);
    font-size: 12px;
}
.search-result-empty {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
}
.search-related {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
}
.search-related a {
    color: var(--accent);
    text-decoration: none;
    margin-right: 12px;
}
.search-related a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .search-home-input { font-size: 16px; }
    .search-home-btn { padding: 16px 20px; }
    .search-result-thumb img { width: 80px; height: 80px; }
}

/* ========== 返回顶部按钮 ========== */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 80px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 16px rgba(139,90,43,0.3);
    border: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(139,90,43,0.4);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

@media (max-width: 768px) {
    .back-to-top {
        right: 16px;
        bottom: 70px;
        width: 44px;
        height: 44px;
    }
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* ===== 404 Page Container Center ===== */
.main-content.error-main {
    min-height: calc(100vh - 350px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-content.error-main .container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== 404 Error Page ===== */
.main-content .container .error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 20px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.error-code {
    font-size: 80px;
    font-weight: 900;
    color: #8B5A2B;
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.2;
    letter-spacing: -2px;
}

.error-title {
    font-size: 22px;
    font-weight: 700;
    color: #3d2b1f;
    margin-bottom: 12px;
}

.error-desc {
    font-size: 15px;
    color: #6a5a4a;
    margin-bottom: 28px;
    line-height: 1.6;
}

.error-actions {
    margin-bottom: 28px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.error-actions .btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.error-actions .btn-primary {
    background: #8B5A2B;
    color: #fff;
    border: 2px solid #8B5A2B;
}

.error-actions .btn-primary:hover {
    background: #6B4522;
    border-color: #6B4522;
}

.error-actions .btn-secondary {
    background: transparent;
    color: #8B5A2B;
    border: 2px solid #8B5A2B;
}

.error-actions .btn-secondary:hover {
    background: #8B5A2B;
    color: #fff;
}

.error-contact {
    padding: 16px 24px;
    background: #f8f5f0;
    border-radius: 8px;
    border: 1px solid #e8ddd0;
    text-align: center;
}

.error-contact p {
    margin: 4px 0;
    color: #5a4a3a;
    font-size: 14px;
}

.error-contact .contact-phone a {
    color: #8B5A2B;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

.error-contact .contact-phone a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .main-content .container .error-page {
        padding: 40px 15px;
    }
    .error-code {
        font-size: 60px;
    }
    .error-title {
        font-size: 18px;
    }
    .error-actions {
        flex-direction: column;
        gap: 8px;
    }
    .error-actions .btn {
        width: 100%;
        padding: 10px 20px;
    }
}


/* ===== 404 Page Center ===== */
.main-content.error-main {
    min-height: calc(100vh - 300px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.error-page {
    text-align: center;
    padding: 40px 20px;
    max-width: 500px;
    width: 100%;
}
