/* ===== 全局重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    min-width: 1200px;
    font-size: 14px;
}

a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #e1251b;
}

ul, li {
    list-style: none;
}

img {
    border: 0;
    display: block;
}

/* ===== 顶部导航栏 ===== */
.top-bar {
    background-color: #e3e4e5;
    border-bottom: 1px solid #ddd;
    font-size: 12px;
    color: #666;
    height: 30px;
    line-height: 30px;
}

.top-bar-inner {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

.top-bar a {
    color: #666;
    margin: 0 8px;
}

/* ===== Logo + 搜索栏 ===== */
.header {
    background-color: #fff;
    padding: 25px 0;
    border-bottom: 1px solid #eee;
}

.header-inner {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #e1251b;
}

.logo small {
    font-size: 14px;
    color: #999;
    font-weight: normal;
    margin-left: 10px;
}

.search-box {
    display: flex;
    width: 550px;
    height: 40px;
    border: 2px solid #e1251b;
    border-radius: 4px;
    overflow: hidden;
}

.search-box input {
    flex: 1;
    padding: 0 15px;
    border: 0;
    outline: none;
    font-size: 14px;
}

.search-box button {
    width: 90px;
    background-color: #e1251b;
    color: #fff;
    border: 0;
    cursor: pointer;
    font-size: 15px;
}

.search-box button:hover {
    background-color: #c81623;
}

.header-cart {
    width: 130px;
    height: 40px;
    line-height: 38px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #e1251b;
    font-size: 14px;
    background-color: #fff;
}

.header-cart:hover {
    border-color: #e1251b;
}

/* ===== 主导航栏 ===== */
.main-nav {
    background-color: #fff;
    border-bottom: 2px solid #e1251b;
}

.main-nav-inner {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
}

.nav-list li a {
    display: block;
    padding: 0 25px;
    height: 45px;
    line-height: 45px;
    font-size: 15px;
    color: #333;
}

.nav-list li a:hover,
.nav-list li a.active {
    background-color: #e1251b;
    color: #fff;
}

/* ===== 通用容器 ===== */
.container {
    width: 1200px;
    margin: 20px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 4px;
}

.page-title {
    font-size: 22px;
    font-weight: bold;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    color: #333;
}

/* ===== 商品卡片 ===== */
.goods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.goods-grid.col-4 {
    grid-template-columns: repeat(4, 1fr);
}

.goods-grid.col-5 {
    grid-template-columns: repeat(5, 1fr);
}

.goods-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.goods-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    border-color: #e1251b;
}

.goods-img {
    width: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 50px;
}

.goods-info {
    padding: 12px;
}

.goods-name {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 8px;
}

.goods-price {
    color: #e1251b;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.goods-price small {
    font-size: 12px;
    font-weight: normal;
}

.goods-actions {
    display: flex;
    gap: 8px;
}

.btn {
    flex: 1;
    height: 32px;
    line-height: 30px;
    text-align: center;
    border: 1px solid #e1251b;
    background-color: #fff;
    color: #e1251b;
    cursor: pointer;
    border-radius: 3px;
    font-size: 13px;
    transition: all 0.3s;
}

.btn:hover {
    background-color: #e1251b;
    color: #fff;
}

.btn-primary {
    background-color: #e1251b;
    color: #fff;
}

.btn-primary:hover {
    background-color: #c81623;
    color: #fff;
}

/* ===== 轮播 Banner ===== */
.banner {
    width: 1200px;
    height: 400px;
    margin: 20px auto;
    background: linear-gradient(135deg, #ff6b6b 0%, #e1251b 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 48px;
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.banner::after {
    content: "长春恒盟 · 精选好物";
    position: absolute;
    right: 60px;
    bottom: 40px;
    font-size: 18px;
    font-weight: normal;
    text-shadow: none;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
}

/* ===== 分类筛选 ===== */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 6px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    background-color: #fff;
}

.filter-tag:hover,
.filter-tag.active {
    border-color: #e1251b;
    background-color: #e1251b;
    color: #fff;
}

/* ===== 详情页 ===== */
.detail-wrap {
    display: flex;
    gap: 30px;
}

.detail-img {
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 80px;
    flex-shrink: 0;
}

.detail-info {
    flex: 1;
}

.detail-name {
    font-size: 22px;
    line-height: 1.4;
    margin-bottom: 15px;
}

.detail-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.detail-price-box {
    background-color: #fff5f5;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.detail-price-label {
    color: #999;
    font-size: 13px;
    margin-bottom: 5px;
}

.detail-price {
    color: #e1251b;
    font-size: 32px;
    font-weight: bold;
}

.detail-price small {
    font-size: 16px;
}

.detail-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    color: #666;
    font-size: 13px;
}

.detail-meta span {
    background-color: #f5f5f5;
    padding: 4px 10px;
    border-radius: 3px;
}

.detail-actions {
    display: flex;
    gap: 15px;
}

.detail-actions .btn {
    flex: none;
    width: 180px;
    height: 45px;
}

/* ===== 商家入驻协议 ===== */
.agreement-section {
    margin-top: 30px;
    margin-bottom: 25px;
    border: 1px solid #f0d4d4;
    border-radius: 4px;
    background-color: #fffbfb;
    overflow: hidden;
}

.agreement-title {
    padding: 14px 20px;
    font-size: 16px;
    color: #e1251b;
    background-color: #fff5f5;
    border-bottom: 1px solid #f0d4d4;
    margin: 0;
}

.agreement-content {
    padding: 18px 22px;
    max-height: 260px;
    overflow-y: auto;
    line-height: 1.8;
    color: #555;
    font-size: 13px;
    background-color: #fff;
}

.agreement-content p {
    margin-bottom: 10px;
}

.agreement-content p:last-child {
    margin-bottom: 0;
}

.agreement-content::-webkit-scrollbar {
    width: 6px;
}

.agreement-content::-webkit-scrollbar-thumb {
    background-color: #e1251b;
    border-radius: 3px;
}

.agreement-content::-webkit-scrollbar-track {
    background-color: #f5f5f5;
}

.agreement-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    background-color: #fff5f5;
    border-top: 1px solid #f0d4d4;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.agreement-check input {
    margin: 0;
    cursor: pointer;
}

.agreement-check strong {
    color: #e1251b;
}

/* ===== 商家信息 ===== */
.merchant-section {
    margin-top: 30px;
    padding: 25px;
    background-color: #fafafa;
    border-radius: 4px;
    border: 1px solid #eee;
}

.merchant-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e1251b;
    display: inline-block;
}

.merchant-info {
    display: flex;
    gap: 30px;
    align-items: center;
}

.merchant-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700 0%, #ff6b6b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    flex-shrink: 0;
}

.merchant-detail h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.merchant-detail p {
    color: #666;
    line-height: 1.8;
    font-size: 13px;
}

.merchant-tags {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.merchant-tag {
    background-color: #fff5f5;
    color: #e1251b;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
}

.merchant-stats {
    display: flex;
    gap: 30px;
    margin-left: auto;
    text-align: center;
}

.merchant-stat-num {
    font-size: 22px;
    font-weight: bold;
    color: #e1251b;
}

.merchant-stat-label {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* ===== 入驻表单 ===== */
.form-wrap {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.form-tip {
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 25px;
    color: #876800;
    font-size: 13px;
    line-height: 1.8;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.form-group label .required {
    color: #e1251b;
    margin-right: 4px;
}

.form-control {
    width: 100%;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #e1251b;
}

textarea.form-control {
    height: 100px;
    padding: 10px 15px;
    resize: vertical;
    line-height: 1.6;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-submit {
    width: 100%;
    height: 45px;
    background-color: #e1251b;
    color: #fff;
    border: 0;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.form-submit:hover {
    background-color: #c81623;
}

/* ===== 登录/注册 ===== */
.auth-wrap {
    width: 1200px;
    margin: 30px auto;
    background-color: #fff;
    display: flex;
    min-height: 540px;
    border-radius: 4px;
    overflow: hidden;
}

.auth-side {
    flex: 1;
    background: linear-gradient(135deg, #e1251b 0%, #ff6b6b 100%);
    color: #fff;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-side h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.auth-side p {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.9;
}

.auth-form {
    width: 480px;
    padding: 60px 50px;
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding-bottom: 15px;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.auth-tab.active {
    color: #e1251b;
    border-bottom-color: #e1251b;
    font-weight: bold;
}

.auth-link {
    text-align: right;
    margin-top: 15px;
    font-size: 13px;
}

.auth-link a {
    color: #e1251b;
}

.auth-bottom {
    text-align: center;
    margin-top: 30px;
    color: #999;
    font-size: 13px;
}

.auth-bottom a {
    color: #e1251b;
    margin-left: 5px;
}

/* ===== 购物车 ===== */
.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    background-color: #f5f5f5;
    padding: 12px;
    text-align: left;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #eee;
}

.cart-table td {
    padding: 18px 12px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 30px;
    margin-right: 15px;
    float: left;
}

.cart-item-name {
    padding-top: 10px;
    line-height: 1.5;
    color: #333;
}

.cart-qty {
    display: inline-flex;
    border: 1px solid #ddd;
    border-radius: 3px;
    overflow: hidden;
}

.cart-qty button {
    width: 28px;
    height: 28px;
    background-color: #fff;
    border: 0;
    cursor: pointer;
    font-size: 14px;
}

.cart-qty button:hover {
    background-color: #f5f5f5;
}

.cart-qty input {
    width: 50px;
    height: 28px;
    border: 0;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    outline: none;
}

.cart-total-bar {
    margin-top: 20px;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 4px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.cart-total-info {
    font-size: 14px;
    color: #666;
}

.cart-total-price {
    color: #e1251b;
    font-size: 24px;
    font-weight: bold;
}

.btn-checkout {
    width: 160px;
    height: 45px;
    background-color: #e1251b;
    color: #fff;
    border: 0;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.btn-checkout:hover {
    background-color: #c81623;
}

.empty-cart {
    text-align: center;
    padding: 80px 0;
    color: #999;
}

.empty-cart-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

/* ===== Footer ===== */
.footer {
    background-color: #2b2b2b;
    color: #999;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 13px;
}
.footer p{
	color: #FFFFFF;
	line-height: 30px;
}

.footer a{
	color: #FFFFFF;
}

/* ===== 商品列表侧边栏 ===== */
.list-wrap {
    display: flex;
    gap: 20px;
}

.list-side {
    width: 200px;
    background-color: #fff;
    border-radius: 4px;
    padding: 20px;
    flex-shrink: 0;
}

.list-side h3 {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e1251b;
}

.list-side li {
    padding: 8px 0;
    cursor: pointer;
    color: #666;
}

.list-side li:hover {
    color: #e1251b;
}

.list-main {
    flex: 1;
}

/* ===== 二手信息列表 ===== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.info-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.info-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    border-color: #e1251b;
}

.info-card-img {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 60px;
}

.info-card-body {
    padding: 14px;
}

.info-card-title {
    font-size: 15px;
    color: #333;
    line-height: 1.5;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 12px;
    font-weight: 500;
}

.info-card-publisher {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999;
    font-size: 12px;
}

.info-card-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700 0%, #ff6b6b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    flex-shrink: 0;
}

/* ===== 二手信息详情 ===== */
.info-detail-wrap {
    display: flex;
    gap: 30px;
}

.info-detail-img {
    width: 480px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 100px;
    flex-shrink: 0;
}

.info-detail-body {
    flex: 1;
}

.info-detail-title {
    font-size: 24px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 18px;
    font-weight: bold;
}

.info-detail-intro {
    background-color: #fafafa;
    padding: 18px;
    border-radius: 4px;
    line-height: 2;
    color: #555;
    font-size: 18px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.info-detail-intro p {
    margin-bottom: 8px;
}

.info-publisher-card {
    background-color: #fffbfb;
    border: 1px solid #f0d4d4;
    border-radius: 4px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 30px;
}

.info-publisher-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700 0%, #ff6b6b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

.info-publisher-info {
    flex: 1;
}

.info-publisher-name {
    font-size: 16px;
    color: #333;
    margin-bottom: 6px;
    font-weight: 500;
}

.info-publisher-label {
    color: #999;
    font-size: 12px;
}

.info-contact-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-contact-label {
    color: #999;
    font-size: 13px;
}

.btn-contact {
    background-color: #e1251b;
    color: #fff;
    border: 0;
    border-radius: 4px;
    padding: 8px 18px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.3s;
}

.btn-contact:hover {
    background-color: #c81623;
}

.info-phone-revealed {
    color: #e1251b;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* ===== 发布信息页 ===== */
.publish-fee-banner {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border: 1px solid #f0d4d4;
    border-radius: 4px;
    padding: 20px 25px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.publish-fee-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #e1251b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.publish-fee-info h3 {
    color: #e1251b;
    font-size: 18px;
    margin-bottom: 6px;
}

.publish-fee-info p {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

.publish-fee-price {
    margin-left: auto;
    color: #e1251b;
    font-size: 32px;
    font-weight: bold;
    text-align: right;
}

.publish-fee-price small {
    font-size: 14px;
    font-weight: normal;
    display: block;
    color: #999;
}
