@charset "UTF-8";
/* 全局样式 */
/* 重置所有元素的默认边距和内边距，使用边框盒模型 */
* { margin: 0; padding: 0; box-sizing: border-box; }
/* 重置所有链接的默认样式 */
a {
    text-decoration: none;
    color: inherit;
}
/* 设置body的基础样式，包括字体、背景色和文字颜色 */
body { font-family: 'Microsoft YaHei', Arial, sans-serif; background-color: #f5f5f5; color: #333; min-height: 100vh; }
/* 页面盒子样式 */
.page-box { max-width: 1320px; margin: 0 auto; background-color: #fff; border: 1px solid #ddd; box-shadow: 0 2px 10px rgba(0,0,0,0.1); min-height: 100vh; }
/* 容器样式，设置最大宽度、居中对齐和内边距 */
.container { max-width: 1320px; margin: 0 auto; padding: 20px; }

/* 带前缀的头部样式 */
/* 头部容器 */
.head_header { display: flex; align-items: center; padding: 15px 0; max-width: 1320px; margin: 0 auto; background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
/* 头部内部容器 */
.head_header .container { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 0 20px; }
/* 头部左侧 */
.head_header-left { flex: 1; display: flex; align-items: center; }
/* 站点 logo */
.head_site-logo { display: flex; flex-direction: column; text-decoration: none; color: #fff; min-width: 200px; padding: 10px 15px; border-radius: 8px; transition: all 0.3s ease; }
.head_site-logo:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
/* 站点名称和域名 */
.head_site-name, .head_site-domain { width: 220px; text-align: left; box-sizing: border-box; display: block; }
/* 站点名称 */
.head_site-name { font-size: 22px; font-weight: bold; margin-bottom: 4px; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
/* 站点域名 */
.head_site-domain { font-size: 13px; color: #bdc3c7; letter-spacing: 1px; word-spacing: 2px; }
/* 头部右侧 */
.head_header-right { flex: 1; text-align: right; }
/* 头部链接列表 */
.head_header-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; align-items: center; }
/* 头部链接项 */
.head_header-links li { display: inline; }
/* 头部链接样式 */
.head_header-links a, .head_header-link { color: #fff !important; text-decoration: none; font-size: 15px; padding: 12px 24px; border-radius: 25px; transition: all 0.3s ease; display: inline-block; background: rgba(52,152,219,0.8); font-weight: bold; border: 2px solid rgba(255,255,255,0.3); white-space: nowrap; min-width: 80px; text-align: center; }
/* 头部链接 hover 效果 */
.head_header-links a:hover, .head_header-link:hover { color: #fff !important; background: #e74c3c; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(231,76,60,0.4); border-color: #e74c3c; }

/* 面包屑导航 */
/* 面包屑导航容器 */
.breadcrumb { padding: 10px 0; margin-bottom: 20px; font-size: 14px; color: #666; }
/* 面包屑导航链接 */
.breadcrumb a { color: #3498db; text-decoration: none; }
/* 面包屑导航链接 hover 效果 */
.breadcrumb a:hover {}

/* 标题样式 */
/* h1 标题样式 */
h1 { font-size: 24px; font-weight: bold; color: #333; margin-bottom: 20px; text-align: center; }

/* 横向固定分类导航样式 */
/* 分类导航容器 */
.category-fixed-nav { background: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); overflow: hidden; margin-bottom: 20px; }
/* 主导航 */
.main-nav { display: flex; background: #3498db; flex-wrap: nowrap; justify-content: space-around; }
/* 主导航项 */
.main-nav-item { padding: 12px 20px; color: #fff; text-decoration: none; font-weight: bold; transition: background 0.3s; }
/* 主导航项 hover 效果 */
.main-nav-item:hover { background: #2980b9; }
/* 主导航项激活状态 */
.main-nav-item.active { background: #e74c3c; }
/* 子导航栏 */
.sub-nav-bar { display: flex; flex-wrap: wrap; gap: 8px; padding: 15px; background: #f9f9f9; border-bottom: 1px solid #eee; }
/* 子导航项 */
.sub-nav-item { padding: 6px 14px; background: #fff; border-radius: 15px; color: #666; text-decoration: none; font-size: 13px; border: 1px solid #ddd; transition: all 0.3s; }
/* 子导航项 hover 效果 */
.sub-nav-item:hover { background: #3498db; color: #fff; border-color: #3498db; }
/* 子导航项激活状态 */
.sub-nav-item.active { background: #3498db; color: #fff; border-color: #3498db; }
/* 子导航项当前状态 */
.sub-nav-item.current { background: #e74c3c; color: #fff; border-color: #e74c3c; }

/* 商品数量提示 */
/* 商品数量提示容器 */
.product-count { text-align: center; padding: 10px; color: #999; font-size: 13px; }
/* 商品数量提示链接 */
.product-count a { color: #3498db; text-decoration: none; }
/* 商品数量提示链接 hover 效果 */
.product-count a:hover {}

/* 空状态 */
/* 空状态容器 */
.empty-state { text-align: center; padding: 40px; color: #999; }

/* 分页样式 */
/* 分页容器 */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 20px 0; }
/* 分页链接和页码 */
.pagination a, .pagination span { padding: 6px 12px; border-radius: 4px; text-decoration: none; color: #333; background: #fff; border: 1px solid #ddd; font-size: 13px; }
/* 分页链接 hover 效果 */
.pagination a:hover { background: #3498db; color: #fff; border-color: #3498db; }
/* 当前页码 */
.pagination .current { background: #3498db; color: #fff; border-color: #3498db; }
/* 禁用状态 */
.pagination .disabled { color: #ccc; pointer-events: none; }

/* 返回链接 */
/* 返回链接容器 */
.back-links { margin-top: 20px; text-align: center; }
/* 返回链接 */
.back-links a { color: #3498db; text-decoration: none; margin: 0 10px; }
/* 返回链接 hover 效果 */
.back-links a:hover {}

/* 显示控制 */
/* 显示分类列表 */
.show-category-list { display: block; }
/* 隐藏商品列表 */
.show-product-list { display: none; }

/* 按钮样式 */
/* 基础按钮样式 */
.btn { display: inline-block; padding: 12px 24px; background-color: #3498db; color: #fff; text-decoration: none; border-radius: 4px; transition: all 0.3s ease; margin: 10px; font-weight: bold; text-align: center; }
/* 按钮 hover 效果 */
.btn:hover { background-color: #2980b9; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
/* 主要按钮 */
.btn-primary { background: #e74c3c; color: #fff; font-size: 18px; font-weight: bold;}
/* 主要按钮 hover 效果 */
.btn-primary:hover { background: #c0392b; }
/* 轮廓按钮 */
.btn-outline { background: #fff; color: #e74c3c; border: 2px solid #e74c3c; }
/* 轮廓按钮 hover 效果 */
.btn-outline:hover { background: #e74c3c; color: #fff; }

/* 带前缀的页脚样式 */
/* 页脚容器 */
.end_footer { margin-top: 40px; padding: 40px 0; max-width: 1320px; margin: 0 auto; background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); color: #fff; border-top: 3px solid #3498db; }
/* 页脚内容 */
.end_footer-content { width: 100%; padding: 0 20px; }
/* 页脚信息 */
.end_footer-info { text-align: center; }
/* 页脚信息段落 */
.end_footer-info p { margin: 10px 0; font-size: 14px; color: #ecf0f1; line-height: 1.6; }
/* 页脚信息标题 */
.end_footer-info strong { color: #fff; font-size: 18px; display: block; margin-bottom: 15px; }
/* 页脚链接 */
.end_footer-info a { color: #3498db; text-decoration: none; transition: color 0.3s; }
/* 页脚链接 hover 效果 */
.end_footer-info a:hover { color: #5dade2; }


