/* ============================================================
   ShoesTrade 鞋业外贸商城  前台样式
   ============================================================ */

:root {
    --primary: #c8102e;
    --primary-dark: #a00d24;
    --dark: #1f2430;
    --gray: #6b7280;
    --light: #f5f7fa;
    --border: #e5e7eb;
}

* { box-sizing: border-box; }

body {
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: #333;
    background: #fff;
    font-size: 14px;
    line-height: 1.6;
}

a { color: #333; text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); text-decoration: none; }
img { max-width: 100%; }

/* ---------- 顶部信息条 ---------- */
.topbar {
    background: var(--dark);
    color: #cbd0da;
    font-size: 13px;
    height: 36px;
    line-height: 36px;
}
.topbar-info span { margin-right: 20px; }
.topbar-info i { margin-right: 5px; color: var(--primary); }
.topbar-lang a { color: #cbd0da; }
.topbar-lang a.active { color: #fff; font-weight: bold; }
.topbar-lang .divider { margin: 0 8px; color: #4b5563; }

/* ---------- 头部 ---------- */
.site-header {
    padding: 20px 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
}
.site-logo {
    display: inline-flex;
    align-items: center;
    font-size: 26px;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -.5px;
}
.site-logo i {
    color: var(--primary);
    font-size: 30px;
    margin-right: 10px;
}
.search-wrap { padding-top: 6px; }
.search-form {
    display: flex;
    border: 2px solid var(--primary);
    border-radius: 4px;
    overflow: hidden;
}
.search-form .form-control {
    border: none;
    box-shadow: none;
    height: 42px;
    font-size: 14px;
}
.search-form .form-control:focus { box-shadow: none; }
.search-form .btn-search {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0 26px;
    height: 42px;
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
}
.search-form .btn-search:hover { background: var(--primary-dark); }
.hot-words { margin-top: 8px; font-size: 12px; color: var(--gray); }
.hot-words span { margin-right: 6px; }
.hot-words a { color: var(--gray); margin-right: 12px; }
.hot-words a:hover { color: var(--primary); }
.contact-wrap { text-align: right; padding-top: 6px; }
.btn-inquiry {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 11px 26px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    transition: all .2s;
}
.btn-inquiry:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-inquiry i { margin-right: 6px; }

/* ---------- 主导航 ---------- */
.main-nav {
    background: var(--dark);
    height: 50px;
}
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; }
.nav-list > li > a {
    display: block;
    color: #d7dbe3;
    padding: 0 22px;
    height: 50px;
    line-height: 50px;
    font-size: 15px;
    transition: all .2s;
}
.nav-list > li > a:hover,
.nav-list > li.active > a {
    background: var(--primary);
    color: #fff;
}

/* ---------- 通用区块 ---------- */
.section { padding: 50px 0; }
.section-gray { background: var(--light); }
.section-title {
    text-align: center;
    margin-bottom: 36px;
}
.section-title h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 10px;
}
.section-title p { color: var(--gray); margin: 0; }
.section-title .line {
    width: 50px;
    height: 3px;
    background: var(--primary);
    margin: 14px auto 0;
}
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 12px;
}
.section-head h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    padding-left: 14px;
    border-left: 4px solid var(--primary);
}
.section-head .more { color: var(--gray); font-size: 13px; }
.section-head .more:hover { color: var(--primary); }

/* ---------- 商品卡片 ---------- */
.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 24px;
    transition: all .25s;
    height: calc(100% - 24px);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    transform: translateY(-3px);
    border-color: var(--primary);
}
.product-thumb {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: var(--light);
}
.product-thumb img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s;
}
.product-card:hover .product-thumb img { transform: scale(1.06); }
.product-badge {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 3px;
}
.product-badge.new { background: #059669; }
.product-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.product-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.product-title a { color: #222; }
.product-price { margin-top: auto; }
.product-price .now {
    color: var(--primary);
    font-size: 19px;
    font-weight: 700;
}
.product-price .unit { font-size: 12px; color: var(--gray); margin-left: 4px; }
.product-price .old {
    color: #9ca3af;
    font-size: 13px;
    text-decoration: line-through;
    margin-left: 8px;
}
.product-meta {
    font-size: 12px;
    color: var(--gray);
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
}

/* ---------- 分类展示 ---------- */
.cat-card {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 24px 14px;
    text-align: center;
    margin-bottom: 24px;
    transition: all .25s;
}
.cat-card:hover { border-color: var(--primary); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.cat-card .cat-icon {
    width: 64px; height: 64px;
    line-height: 64px;
    border-radius: 50%;
    background: #fdecee;
    color: var(--primary);
    font-size: 28px;
    margin: 0 auto 12px;
}
.cat-card h4 { font-size: 15px; font-weight: 600; margin: 0; color: #222; }

/* ---------- 轮播 ---------- */
.hero-slider { position: relative; }
.hero-slide {
    height: 460px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-slide::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.25) 60%, transparent 100%);
}
.hero-caption {
    position: relative;
    z-index: 2;
    color: #fff;
    padding-top: 120px;
    max-width: 560px;
}
.hero-caption h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 16px;
}
.hero-caption p { font-size: 17px; opacity: .92; margin-bottom: 26px; }
.hero-caption .btn-hero {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 13px 34px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
}
.hero-caption .btn-hero:hover { background: var(--primary-dark); color: #fff; }

/* ---------- 文章 ---------- */
.article-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 24px;
    transition: all .25s;
}
.article-card:hover { box-shadow: 0 8px 22px rgba(0,0,0,.09); transform: translateY(-2px); }
.article-thumb { padding-top: 58%; position: relative; overflow: hidden; background: var(--light); }
.article-thumb img { position: absolute; top:0; left:0; width:100%; height:100%; object-fit: cover; }
.article-body { padding: 16px; }
.article-body h4 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    height: 44px;
    overflow: hidden;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.article-body .summary {
    color: var(--gray);
    font-size: 13px;
    line-height: 1.6;
    height: 42px;
    overflow: hidden;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.article-body .meta { font-size: 12px; color: #9ca3af; }

/* ---------- 关键词云 ---------- */
.keyword-cloud { line-height: 2.4; }
.keyword-cloud a {
    display: inline-block;
    padding: 3px 12px;
    margin: 0 8px 8px 0;
    background: #f3f4f6;
    border-radius: 14px;
    font-size: 13px;
    color: #4b5563;
    transition: all .2s;
}
.keyword-cloud a:hover { background: var(--primary); color: #fff; }
.keyword-group { margin-bottom: 26px; }
.keyword-group h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    margin-bottom: 14px;
}
.letter-nav { margin-bottom: 28px; }
.letter-nav a {
    display: inline-block;
    width: 32px; height: 32px;
    line-height: 32px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 4px;
    margin: 0 5px 8px 0;
    font-size: 13px;
}
.letter-nav a:hover, .letter-nav a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- 排架 ---------- */
.filter-bar {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 24px;
}
.filter-row { display: flex; padding: 6px 0; font-size: 13px; align-items: baseline; }
.filter-row .label { color: var(--gray); width: 80px; flex-shrink: 0; }
.filter-row .opts a {
    display: inline-block;
    padding: 2px 12px;
    margin-right: 10px;
    border-radius: 3px;
    color: #4b5563;
}
.filter-row .opts a:hover, .filter-row .opts a.active { background: var(--primary); color: #fff; }

.sort-bar {
    display: flex;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0 20px;
    margin-bottom: 20px;
}
.sort-bar a {
    padding: 12px 18px;
    color: #4b5563;
    font-size: 14px;
    border-bottom: 2px solid transparent;
}
.sort-bar a.active, .sort-bar a:hover { color: var(--primary); border-bottom-color: var(--primary); }

/* ---------- 商品详情 ---------- */
.detail-gallery { margin-bottom: 20px; }
.detail-main-img {
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    padding-top: 100%;
    position: relative;
    background: var(--light);
}
.detail-main-img img { position: absolute; top:0; left:0; width:100%; height:100%; object-fit: cover; }
.detail-thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.detail-thumbs img {
    width: 72px; height: 72px;
    object-fit: cover;
    border: 2px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
}
.detail-thumbs img.active, .detail-thumbs img:hover { border-color: var(--primary); }

.detail-info h1 { font-size: 24px; font-weight: 700; margin: 0 0 14px; line-height: 1.35; }
.detail-subtitle { color: var(--gray); font-size: 14px; margin-bottom: 18px; }
.detail-price-box {
    background: #fdf3f4;
    border-radius: 6px;
    padding: 18px 20px;
    margin-bottom: 20px;
}
.detail-price-box .price {
    color: var(--primary);
    font-size: 32px;
    font-weight: 700;
}
.detail-price-box .price small { font-size: 15px; font-weight: 500; }
.detail-price-box .moq { color: var(--gray); font-size: 13px; margin-top: 6px; }
.detail-attrs { margin-bottom: 20px; }
.detail-attrs .attr-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 14px;
}
.detail-attrs .attr-row .k { color: var(--gray); width: 100px; flex-shrink: 0; }
.sku-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.sku-item {
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
}
.sku-item:hover, .sku-item.active { border-color: var(--primary); color: var(--primary); }
.btn-detail-inquiry {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
.btn-detail-inquiry:hover { background: var(--primary-dark); color: #fff; }

.detail-tabs { margin-top: 40px; }
.detail-content { padding: 24px 4px; line-height: 1.9; font-size: 15px; }
.detail-content img { max-width: 100%; height: auto; }

/* ---------- 分页 ---------- */
.pagination-wrap { text-align: center; margin-top: 30px; }
.pagination > li > a, .pagination > li > span { color: #4b5563; }
.pagination > .active > a, .pagination > .active > span {
    background: var(--primary);
    border-color: var(--primary);
}

/* ---------- 面包屑 ---------- */
.breadcrumb-wrap {
    background: var(--light);
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.breadcrumb { margin: 0; background: none; padding: 0; font-size: 13px; }
.breadcrumb > li + li:before { content: "/"; color: #9ca3af; }

/* ---------- 页脚 ---------- */
.site-footer { margin-top: 0; }
.footer-main { background: #22262f; color: #9aa1ad; padding: 50px 0 30px; }
.footer-col h4 { color: #fff; font-size: 16px; font-weight: 600; margin: 0 0 18px; }
.footer-col p { font-size: 13px; line-height: 1.8; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; font-size: 13px; }
.footer-col ul li a { color: #9aa1ad; }
.footer-col ul li a:hover { color: #fff; }
.footer-contact li i { color: var(--primary); width: 18px; margin-right: 6px; }
.footer-bottom {
    background: #1a1d24;
    color: #7b8290;
    padding: 18px 0;
    text-align: center;
    font-size: 13px;
}
.footer-bottom p { margin: 0; }

/* ---------- 询盘弹窗 ---------- */
.modal-header { background: var(--primary); color: #fff; border-radius: 4px 4px 0 0; }
.modal-header .close { color: #fff; opacity: .9; }
.modal-title { font-weight: 600; }
.inquiry-tip { color: var(--gray); font-size: 12px; margin-top: 8px; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

/* ---------- 其他 ---------- */
.empty-tip { text-align: center; color: #9ca3af; padding: 60px 0; font-size: 15px; }
.empty-tip i { font-size: 48px; display: block; margin-bottom: 16px; color: #d1d5db; }
.sidebar-box { background: #fff; border: 1px solid var(--border); border-radius: 6px; margin-bottom: 20px; }
.sidebar-box .box-head {
    font-size: 16px;
    font-weight: 600;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    border-left: 4px solid var(--primary);
}
.sidebar-box .box-body { padding: 16px; }
.mini-post { display: flex; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.mini-post:last-child { border-bottom: none; }
.mini-post .t { font-size: 13px; line-height: 1.5; }

@media (max-width: 991px) {
    .site-header { padding: 14px 0; }
    .search-wrap { margin: 12px 0; }
    .contact-wrap { text-align: left; }
    .nav-list { flex-wrap: wrap; height: auto; }
    .nav-list > li > a { height: 44px; line-height: 44px; padding: 0 14px; font-size: 14px; }
    .hero-slide { height: 320px; }
    .hero-caption { padding-top: 70px; }
    .hero-caption h1 { font-size: 26px; }
    .filter-row { flex-direction: column; }
    .filter-row .label { width: auto; margin-bottom: 6px; }
}
