/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #f5f5f5;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-wrapper {
    flex: 1;
}

a {
    color: #333;
    text-decoration: none;
}

a:hover {
    color: #e74c3c;
}

ul {
    list-style: none;
}

/* 布局工具类 */
.m {
    width: 1000px;
    margin: 0 auto;
}

.fl {
    float: left;
}

.fr {
    float: right;
}

.clear {
    clear: both;
}

.b10 {
    height: 10px;
}

.bd-b {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

/* 顶部导航栏 */
.head {
    background-color: #f8f8f8;
    border-bottom: 1px solid #ddd;
    padding: 8px 0;
}

.head_m {
    width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

.head_m .fl {
    color: #666;
}

.head_m .fr a {
    margin-left: 15px;
    color: #666;
}

.head_m .fr a:hover {
    color: #e74c3c;
}

/* Logo区域 */
.logo h3 {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}

.logo h3 a {
    color: #333;
}

/* 导航菜单 */
.m_menu {
    background-color: #333;
    margin: 0;
}

.m_menu .m {
    width: 1000px;
    margin: 0 auto;
}

.menu {
    width: 100%;
}

.menu ul {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.menu ul li {
    position: relative;
    flex-shrink: 0;
}

.menu ul li a {
    display: block;
    padding: 8px 15px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    font-size: 14px;
}

.menu ul li a:hover {
    background-color: #e74c3c;
    color: #fff;
}

.menu ul li span {
    display: block;
    padding: 8px 15px;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
}

.menu ul li span:hover {
    background-color: #e74c3c;
    color: #fff;
}

.menu ul li.menuon {
    background-color: #e74c3c;
}

.menu ul li.menuon span {
    color: #fff;
}

/* 下拉菜单 */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #444;
    min-width: 150px;
    z-index: 1000;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    padding: 10px 20px;
    font-size: 13px;
    border-bottom: 1px solid #555;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background-color: #e74c3c;
}

.menu ul li.post-btn {
    margin-left: auto;
    margin-right: 0;
}

.menu ul li.post-btn a {
    display: block;
    padding: 6px 15px;
    background-color: #e74c3c;
    color: #fff;
    border-radius: 4px;
    margin: 0;
    white-space: nowrap;
}

.menu ul li.post-btn a:hover {
    background-color: #c0392b;
    color: #fff;
}

/* 首页顶部区域 */
.home-top {
    background-color: #fff;
    padding: 0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

/* 左侧分类导航 */
.home-sidebar {
    width: 150px;
    background-color: #f5f5f5;
}

.sidebar-title {
    background-color: #e74c3c;
    color: #fff;
    padding: 12px 0;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}

.home-sidebar ul li {
    border-bottom: 1px solid #eee;
}

.home-sidebar ul li a {
    display: block;
    padding: 15px 20px;
    color: #333;
    font-size: 14px;
}

.home-sidebar ul li a:hover {
    background-color: #e74c3c;
    color: #fff;
}

.home-sidebar ul li a strong {
    font-weight: normal;
}

/* 中间Banner */
.home-banner {
    width: 550px;
    height: 300px;
    overflow: hidden;
}

.banner-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-text {
    text-align: center;
    color: #fff;
}

.banner-text h2 {
    font-size: 36px;
    margin-bottom: 10px;
    letter-spacing: 5px;
}

.banner-text p {
    font-size: 14px;
    letter-spacing: 3px;
    opacity: 0.8;
}

/* 右侧最新信息 */
.home-news {
    width: 300px;
    background-color: #fff;
}

.news-header {
    background-color: #e74c3c;
    color: #fff;
    padding: 12px 15px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

.news-list {
    padding: 10px 15px;
}

.news-list ul li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-list ul li a {
    color: #666;
    font-size: 13px;
}

.news-list ul li a:hover {
    color: #e74c3c;
}

/* 面包屑导航 */
.nav {
    padding: 10px 0;
    font-size: 13px;
}

.nav a {
    color: #666;
}

.nav a:hover {
    color: #e74c3c;
}

/* 首页分类板块 */
.category-section {
    background-color: #fff;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.category-header h2 {
    font-size: 16px;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.category-header h2 a {
    color: #333;
}

.category-header .more {
    float: right;
    font-size: 13px;
    font-weight: normal;
}

.category-header .more a {
    color: #999;
}

/* 排行榜 */
.ranking-list {
    width: 45%;
}

.ranking-list ul li {
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
}

.ranking-list ul li .rank {
    color: #e74c3c;
    font-weight: bold;
    margin-right: 5px;
}

.ranking-list ul li a {
    color: #333;
}

.ranking-list ul li a:hover {
    color: #e74c3c;
}

/* 商品网格 */
.product-grid {
    width: 50%;
    overflow: hidden;
}

.product-item {
    float: left;
    width: 33.33%;
    padding: 5px;
    text-align: center;
}

.product-item .product-image {
    width: 100%;
    height: 80px;
    overflow: hidden;
    margin-bottom: 5px;
}

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

.product-item .product-title {
    font-size: 12px;
    color: #666;
    height: 36px;
    overflow: hidden;
}

/* 分类列表页 */
.category-container {
    background-color: #fff;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.category-list {
    width: 70%;
}

.category-list ul li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    overflow: hidden;
}

.category-list ul li .fl {
    width: 100px;
    height: 80px;
    overflow: hidden;
    margin-right: 15px;
}

.category-list ul li .fl img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-list ul li .fr {
    width: calc(100% - 115px);
}

.category-list ul li .title {
    font-size: 15px;
    margin-bottom: 8px;
}

.category-list ul li .title a {
    color: #333;
}

.category-list ul li .title a:hover {
    color: #e74c3c;
}

.category-list ul li .title .salary {
    color: #e74c3c;
    font-weight: bold;
}

.category-list ul li .desc {
    color: #999;
    font-size: 13px;
    margin-bottom: 8px;
    height: 40px;
    overflow: hidden;
}

.category-list ul li .detail-info .tags {
    color: #999;
    font-size: 12px;
    margin-right: 15px;
}

/* 分页 */
.pagination {
    text-align: center;
    padding: 20px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 5px 12px;
    margin: 0 3px;
    border: 1px solid #ddd;
    color: #666;
}

.pagination a:hover {
    background-color: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}

.pagination .current {
    background-color: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}

/* 侧边栏 */
.sidebar {
    width: 28%;
}

.hot-recommend {
    background-color: #fff;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.hot-recommend h3 {
    font-size: 15px;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.hot-recommend ul li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.hot-recommend ul li a {
    color: #666;
    font-size: 13px;
}

.hot-recommend ul li a:hover {
    color: #e74c3c;
}

/* 商品详情页 */
.item-container {
    background-color: #fff;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.item-content {
    width: 70%;
}

.item-content h1 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.item-info {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table td {
    padding: 8px 10px;
    font-size: 14px;
}

.info-label {
    color: #999;
    width: 90px;
    white-space: nowrap;
}

.info-table .price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 16px;
}

.item-image {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.item-image h3 {
    font-size: 16px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
    text-align: left;
}

.item-image img {
    max-width: 100%;
    max-height: 500px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.item-description {
    margin-bottom: 20px;
}

.item-description h3 {
    font-size: 16px;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.desc-text p {
    line-height: 2;
    color: #555;
    margin-bottom: 8px;
    text-indent: 2em;
}

.item-specs {
    margin-bottom: 20px;
}

.item-specs h3 {
    font-size: 16px;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* 参数表格 */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table td {
    padding: 10px;
    border: 1px solid #eee;
}

.specs-table .section-header {
    background-color: #f5f5f5;
    font-weight: bold;
}

.specs-table .section-header td {
    text-align: center;
}

.specs-table .spec-label {
    width: 120px;
    background-color: #fafafa;
    color: #999;
}

.specs-table .spec-value {
    color: #333;
}

/* 表单页面 */
.form-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 0 auto;
}

.form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e74c3c;
}

.captcha-row {
    display: flex;
    gap: 10px;
}

.captcha-row input {
    flex: 1;
}

.captcha-img {
    height: 40px;
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.btn-submit:hover {
    background-color: #c0392b;
}

.form-links {
    text-align: center;
    margin-top: 20px;
}

.form-links a {
    color: #e74c3c;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal !important;
}

.checkbox-label input {
    width: auto;
}

/* VIP页面 */
.vip-container {
    background-color: #fff;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.vip-content {
    width: 70%;
}

.vip-content h1 {
    font-size: 20px;
    margin-bottom: 20px;
}

.vip-intro {
    margin-bottom: 20px;
    line-height: 1.8;
}

.vip-tiers {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.vip-tier {
    flex: 1;
    min-width: 200px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
}

.vip-tier h3 {
    color: #e74c3c;
    margin-bottom: 10px;
}

.vip-tier p {
    color: #666;
    margin-bottom: 15px;
}

.vip-tier .price span {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
}

.vip-benefits {
    margin-top: 20px;
}

.vip-benefits h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.vip-benefits ul li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

/* 静态页面 */
.static-page-container {
    background-color: #fff;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.static-page-content {
    width: 70%;
}

.static-page-content h1 {
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 10px;
}

.page-content {
    line-height: 1.8;
}

.page-content h2 {
    font-size: 18px;
    margin: 20px 0 10px;
    color: #333;
}

.page-content p {
    margin-bottom: 10px;
    text-indent: 2em;
}

/* 页脚 */
.foot {
    background-color: #333;
    color: #999;
    padding: 20px 0;
    text-align: center;
    margin-top: 20px;
}

.foot p {
    margin-bottom: 5px;
}

.foot a {
    color: #999;
}

.foot a:hover {
    color: #fff;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: #e74c3c;
    border-radius: 4px;
    display: none;
}

.back-to-top a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    font-size: 20px;
}

.back-to-top:hover {
    background-color: #c0392b;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .m {
        width: 100%;
        padding: 0 15px;
    }

    .head_m {
        width: 100%;
        padding: 0 15px;
    }

    .fl, .fr {
        float: none;
    }

    .category-list,
    .item-content,
    .sidebar,
    .vip-content,
    .static-page-content {
        width: 100%;
    }

    .ranking-list,
    .product-grid {
        width: 100%;
    }

    .product-item {
        width: 50%;
    }

    .vip-tiers {
        flex-direction: column;
    }
}
