/* 
 * 淘宝店铺推广主题 - 主样式表
 * 配色：淘宝橙 | 天猫红 | 科技蓝 | 清新绿
 */

/* ========== 基础重置 ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #ff6600;
    --primary-light: #ff944d;
    --primary-dark: #cc5200;
    --text: #333;
    --text-light: #666;
    --text-muted: #999;
    --bg: #f5f5f5;
    --white: #fff;
    --border: #e5e5e5;
    --shadow: 0 2px 12px rgba(0,0,0,.08);
    --shadow-hover: 0 4px 20px rgba(0,0,0,.12);
    --radius: 8px;
    --radius-large: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

img { max-width: 100%; display: block; }

/* ========== 顶部导航 ========== */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 20px;
}

.site-logo img { height: 40px; }
.logo-text { font-size: 1.5rem; font-weight: 700; color: var(--primary); }

.main-nav { display: flex; gap: 30px; }
.main-nav a { color: var(--text); font-size: 1rem; font-weight: 500; padding: 8px 0; border-bottom: 2px solid transparent; transition: all .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); border-bottom-color: var(--primary); text-decoration: none; }

.header-search { position: relative; }
.header-search input { width: 200px; padding: 8px 40px 8px 12px; border: 1px solid var(--border); border-radius: 20px; font-size: .9rem; }
.header-search button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 1rem; }

/* ========== 全屏 Banner ========== */
.hero-banner {
    position: relative;
    height: 60vh;
    max-height: 800px;
    overflow: hidden;
}

.banner-slider {
    position: absolute;
    inset: 0;
}

.banner-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-slide:first-child,
.banner-slide.active { opacity: 1; }

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.3) 0%, rgba(0,0,0,.6) 100%);
}



.banner-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    text-align: center;
    color: #fff;
    z-index: 2;
    width: 90%;
    max-width: 800px;
}

.banner-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,.5);
}

.banner-subtitle {
    font-size: 1.3rem;
    opacity: .9;
    margin-bottom: 30px;
}

.banner-btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all .3s;
}

.banner-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    text-decoration: none;
}

.banner-dots {
    position: absolute;
    bottom: 160px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.banner-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    transition: all .3s;
}

.banner-dots .dot.active {
    background: #fff;
    width: 30px;
    border-radius: 6px;
}

.default-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

/* Banner 搜索框 */
.banner-search {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    z-index: 3;
}

.banner-search form {
    display: flex;
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,.3);
}

.banner-search input {
    flex: 1;
    padding: 18px 30px;
    border: none;
    font-size: 1.1rem;
}

.banner-search button {
    padding: 18px 40px;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: 600;
}

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

/* 分类图标 */
.cat-icon { margin-right: 6px; }
.cat-icon-img { width: 20px; height: 20px; object-fit: contain; margin-right: 6px; vertical-align: middle; }

/* ========== 分类筛选 ========== */
.category-filter { background: var(--white); padding: 20px 0; border-bottom: 1px solid var(--border); }
.filter-tabs { display: flex; gap: 12px; flex-wrap: wrap; }
.filter-tabs a { padding: 8px 20px; border-radius: 20px; background: var(--bg); color: var(--text); font-size: .9rem; transition: all .2s; }
.filter-tabs a:hover, .filter-tabs a.active { background: var(--primary); color: var(--white); text-decoration: none; }

/* ========== 店铺列表 ========== */
.shop-list { padding: 40px 0; }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }

.shop-card {
    background: var(--white);
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all .3s;
}

.shop-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.shop-logo-wrap { position: relative; height: 180px; background: linear-gradient(135deg, #f8f8f8, #eee); display: flex; align-items: center; justify-content: center; }

.shop-logo { width: 120px; height: 120px; border-radius: 12px; object-fit: cover; }

.shop-level-badge { position: absolute; top: 12px; right: 12px; font-size: 1.5rem; }

.shop-info { padding: 20px; }

.shop-name { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }

.shop-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.shop-category, .shop-level { font-size: .8rem; padding: 4px 10px; border-radius: 12px; background: var(--bg); color: var(--text-light); }
.shop-level { background: #fff3e0; color: #e65100; }

.shop-desc { font-size: .9rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.shop-stars { color: #ffb300; font-size: 1rem; letter-spacing: 2px; }

.shop-actions { display: flex; gap: 8px; padding: 16px 20px; border-top: 1px solid var(--border); }
.btn-detail, .btn-visit { flex: 1; padding: 10px; text-align: center; border-radius: var(--radius); font-size: .9rem; font-weight: 500; transition: all .2s; text-decoration: none; }
.btn-detail { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-detail:hover { background: var(--white); }
.btn-visit { background: var(--primary); color: var(--white); }
.btn-visit:hover { background: var(--primary-dark); }

/* ========== 分页 ========== */
.pagination { text-align: center; padding: 40px 0; }
.pagination a, .pagination span { display: inline-block; padding: 10px 16px; margin: 0 4px; border-radius: var(--radius); background: var(--white); color: var(--text); }
.pagination a:hover { background: var(--primary); color: var(--white); text-decoration: none; }
.pagination .current { background: var(--primary); color: var(--white); }

/* ========== 统计区块 ========== */
.shop-stats { background: var(--white); padding: 40px 0; margin-top: 40px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat-item { padding: 24px; }
.stat-num { display: block; font-size: 2.5rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 1rem; color: var(--text-light); margin-top: 8px; }

/* ========== 页脚 ========== */
.site-footer { background: #2a2a2a; color: #aaa; padding: 40px 0; }
.footer-content { text-align: center; }
.footer-copyright { margin-bottom: 16px; }
.footer-keywords a { color: #888; margin: 0 8px; }
.footer-keywords a:hover { color: var(--primary); }

/* ========== 店铺详情页 ========== */
.shop-detail { padding: 40px 0; }

.breadcrumb { margin-bottom: 32px; font-size: .9rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-light); }
.breadcrumb span { margin: 0 8px; }

.shop-detail-card { background: var(--white); border-radius: var(--radius-large); overflow: hidden; box-shadow: var(--shadow); }

.shop-detail-header { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 32px; border-bottom: 1px solid var(--border); }

.shop-logo-large-wrap { display: flex; align-items: center; justify-content: center; }
.shop-logo-large { width: 160px; height: 160px; border-radius: 12px; object-fit: cover; }
.shop-logo-placeholder { width: 160px; height: 160px; border-radius: 12px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 4rem; }

.shop-detail-title { font-size: 1.8rem; margin-bottom: 16px; }
.shop-detail-meta { margin-bottom: 16px; }
.meta-item { display: inline-block; margin-right: 24px; margin-bottom: 12px; }
.meta-item strong { color: var(--text); }
.level-badge { background: #fff3e0; padding: 4px 12px; border-radius: 12px; }
.stars-display { color: #ffb300; letter-spacing: 2px; }

.shop-detail-desc { margin-bottom: 20px; }
.shop-detail-desc p { margin: 8px 0 0 0; color: var(--text-light); }

.shop-visit-btn { margin-top: 24px; }
.btn-primary-large { display: inline-block; padding: 14px 40px; background: var(--primary); color: var(--white); border-radius: var(--radius); font-size: 1.1rem; font-weight: 600; }
.btn-primary-large:hover { background: var(--primary-dark); text-decoration: none; }

.shop-detail-content { padding: 32px; line-height: 1.8; }
.shop-detail-content h2 { font-size: 1.4rem; margin: 32px 0 16px; color: var(--text); }
.shop-detail-content p { margin-bottom: 16px; }
.shop-detail-content img { border-radius: var(--radius); margin: 16px 0; }

.shop-seo-tags { padding: 24px 32px; background: var(--bg); display: flex; gap: 12px; flex-wrap: wrap; }
.shop-seo-tags a { padding: 6px 16px; background: var(--white); border-radius: 16px; font-size: .85rem; color: var(--text-light); }
.shop-seo-tags a:hover { background: var(--primary); color: var(--white); text-decoration: none; }

/* 相关推荐 */
.related-shops { margin-top: 48px; }
.section-title { font-size: 1.3rem; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.shop-grid-small { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.shop-card-small { display: flex; flex-direction: column; align-items: center; padding: 16px; background: var(--white); border-radius: var(--radius); text-align: center; }
.shop-card-small img { width: 80px; height: 80px; border-radius: 8px; margin-bottom: 8px; object-fit: cover; }
.shop-card-small span { font-size: .9rem; color: var(--text); }
.shop-card-small:hover { box-shadow: var(--shadow); }

/* ========== 空状态 ========== */
.no-shops { text-align: center; padding: 80px 20px; color: var(--text-muted); }

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; height: auto; padding: 12px 20px; }
    .main-nav { order: 3; width: 100%; justify-content: center; gap: 16px; margin-top: 12px; }
    .hero-title { font-size: 1.8rem; }
    .hero-section { padding: 60px 0 40px; }
    .shop-detail-header { grid-template-columns: 1fr; text-align: center; }
    .shop-logo-large-wrap { margin-bottom: 20px; }
    .stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .shop-grid { grid-template-columns: 1fr; }
    .filter-tabs { justify-content: center; }
}

/* ========== 新版店铺详情样式 ========== */
.shop-detail-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding: 40px;
}

.shop-detail-logo {
    position: relative;
    text-align: center;
}

.shop-detail-logo img {
    width: 200px;
    height: 200px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.badge-tmall {
    position: absolute;
    top: -8px;
    right: 20px;
    background: #ff0036;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: .8rem;
    font-weight: 600;
}

.shop-detail-name {
    font-size: 2rem;
    margin-bottom: 16px;
}

.shop-detail-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
}

.shop-detail-nick {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.shop-detail-desc {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 24px;
}

.shop-detail-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
}

.stat-box {
    text-align: center;
    padding: 16px 24px;
    background: var(--bg);
    border-radius: var(--radius);
}

.stat-box .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-box .stat-label {
    font-size: .85rem;
    color: var(--text-light);
}

.shop-detail-actions {
    display: flex;
    gap: 16px;
}

.btn-primary {
    padding: 14px 40px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--primary-dark);
    text-decoration: none;
}

.btn-secondary {
    padding: 14px 30px;
    background: var(--bg);
    color: var(--text);
    border-radius: var(--radius);
}

.btn-secondary:hover {
    background: var(--border);
    text-decoration: none;
}

/* 搜索页 */
.search-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 60px 0;
    text-align: center;
    color: #fff;
}

.search-title {
    font-size: 2rem;
    margin-bottom: 24px;
}

.search-form-large {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,.2);
}

.search-form-large input {
    flex: 1;
    padding: 20px 30px;
    border: none;
    font-size: 1.1rem;
}

.search-form-large button {
    padding: 20px 40px;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
}

.search-form-large button:hover {
    background: var(--primary-dark);
}

.search-result-info {
    margin-bottom: 24px;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius);
}

.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results p {
    margin-bottom: 16px;
    color: var(--text-muted);
}

/* 店铺徽章 */
.shop-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: .75rem;
    font-weight: 600;
}

.shop-badge.tmall {
    background: #ff0036;
    color: #fff;
}

.shop-badge.recommend {
    background: var(--primary);
    color: #fff;
}

/* 店铺统计行 */
.shop-stats-row {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    font-size: .85rem;
}

.stat-commission {
    color: var(--primary);
    font-weight: 600;
}

.stat-items {
    color: var(--text-muted);
}

/* 面包屑 */
.breadcrumb {
    background: var(--white);
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb .sep {
    color: var(--text-muted);
}

.breadcrumb .current {
    color: var(--text);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-banner {
        min-height: 500px;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-content {
        position: relative;
        transform: none;
        margin: 0 auto;
    }
    
    .shop-detail-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .shop-detail-logo img {
        width: 150px;
        height: 150px;
    }
    
    .shop-detail-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .shop-detail-stats {
        justify-content: center;
    }
}
