/* ========================================
   深色时尚大气风格 - 全局样式
   ======================================== */

/* CSS变量定义 - 统一配色方案 */
:root {
    --bg-primary: #0D0D14;
    --bg-secondary: #14141F;
    --bg-tertiary: #1E1E2D;
    --bg-card: #1A1A28;
    --bg-hover: #252535;
    
    --accent-gold: #FFB800;
    --accent-gold-light: #FFD54F;
    --accent-gold-dark: #FF8F00;
    
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0C0;
    --text-muted: #6B6B80;
    
    --success: #67C23A;
    --warning: #E6A23C;
    --danger: #F56C6C;
    --info: #409EFF;
    
    --border-color: #2D2D3F;
    --border-light: #3D3D50;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 20px rgba(255,184,0,0.15);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "微软雅黑", sans-serif;
}

body {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-gold);
}

/* ========================================
   全局头部导航样式
   ======================================== */
.global-header {
    width: 100%;
    height: 70px;
    background: linear-gradient(180deg, #0D0D14 0%, #14141F 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,184,0,0.1);
    padding: 0 48px;
    display: flex;
    align-items: center;
    gap: 48px;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.logo {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.city-select-wrapper {
    position: relative;
}

.city-select {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-hover) 100%);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 8px 14px;
    cursor: pointer;
    transition: var(--transition);
    min-width: 120px;
}

.city-select:hover {
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-glow);
}

.city-icon {
    width: 16px;
    height: 16px;
    color: var(--accent-gold);
    flex-shrink: 0;
}

.city-select select {
    background: transparent;
    color: var(--text-primary);
    border: none;
    outline: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    flex: 1;
    min-width: 80px;
}

.city-select select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 8px 12px;
}

.dropdown-arrow {
    width: 14px;
    height: 14px;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: var(--transition);
}

.city-select:hover .dropdown-arrow {
    color: var(--accent-gold);
    transform: rotate(180deg);
}

.nav-menu {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.nav-link {
    padding: 10px 22px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.nav-link:hover {
    background: linear-gradient(135deg, rgba(255,184,0,0.1) 0%, rgba(255,184,0,0.05) 100%);
    color: var(--accent-gold);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,184,0,0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: var(--transition);
}

.nav-link:hover::before {
    width: 100px;
    height: 100px;
}

.auth-buttons {
    display: flex;
    gap: 12px;
    margin-left: 24px;
}

.auth-btn {
    padding: 10px 24px;
    border-radius: 22px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.login-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.login-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.register-btn {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    color: var(--bg-primary);
    box-shadow: 0 4px 16px rgba(255,184,0,0.3);
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255,184,0,0.4);
    color: var(--bg-primary);
}

/* ========================================
   内容区块通用样式
   ======================================== */
.content-box {
    margin: 24px 40px;
    padding: 28px;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

/* 区块标题 */
.section-title {
    color: var(--accent-gold);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    border-radius: 2px;
}

/* ========================================
   卡片样式
   ======================================== */
.card {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-gold) 50%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--border-light);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.card:hover::before {
    opacity: 1;
}

/* 图片容器 */
.img-box {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-hover) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.img-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.3) 100%);
}

/* ========================================
   按钮样式
   ======================================== */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    color: var(--bg-primary);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(255,184,0,0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255,184,0,0.4);
    color: var(--bg-primary);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

/* ========================================
   标签/筛选按钮样式
   ======================================== */
.tag-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.tag-btn {
    padding: 8px 20px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.tag-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.tag-btn.active {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    color: var(--bg-primary);
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255,184,0,0.3);
}

/* ========================================
   网格布局
   ======================================== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ========================================
   列表样式
   ======================================== */
.list-item {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    gap: 20px;
    align-items: center;
}

.list-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
    transform: translateX(4px);
}

/* ========================================
   徽章/标签样式
   ======================================== */
.badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg-tertiary);
    color: var(--accent-gold);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: rgba(103, 194, 58, 0.15);
    color: var(--success);
}

.badge-warning {
    background: rgba(230, 162, 60, 0.15);
    color: var(--warning);
}

/* ========================================
   分页/统计信息
   ======================================== */
.page-info {
    text-align: center;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 13px;
}

/* ========================================
   商家页面样式
   ======================================== */
.merchant-page {
    min-height: calc(100vh - 130px);
}

.hero-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 48px 48px 32px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 32px;
}

.search-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 28px;
    padding: 0 20px;
    transition: var(--transition);
}

.search-input-wrapper:focus-within {
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-glow);
}

.search-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    margin-right: 12px;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
    padding: 14px 0;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    color: var(--bg-primary);
    border: none;
    padding: 14px 32px;
    border-radius: 28px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(255,184,0,0.3);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255,184,0,0.4);
}

.main-content {
    display: flex;
    gap: 32px;
    padding: 32px 48px;
}

.sidebar {
    width: 260px;
    flex-shrink: 0;
}

.filter-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

.filter-title {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.filter-item:hover {
    background: var(--bg-hover);
}

.filter-item.active {
    background: linear-gradient(135deg, rgba(255,184,0,0.15) 0%, rgba(255,184,0,0.05) 100%);
    border: 1px solid rgba(255,184,0,0.3);
}

.filter-item input[type="radio"] {
    display: none;
}

.filter-item span:first-of-type {
    color: var(--text-secondary);
    font-size: 14px;
    flex: 1;
}

.filter-item.active span:first-of-type {
    color: var(--accent-gold);
}

.filter-item .count {
    color: var(--text-muted);
    font-size: 12px;
    background: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: 10px;
}

.merchant-list {
    flex: 1;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-label {
    color: var(--text-muted);
    font-size: 14px;
}

.sort-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.sort-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.sort-btn.active {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    color: var(--bg-primary);
    font-weight: 600;
}

.view-toggle {
    display: flex;
    gap: 4px;
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 4px;
}

.view-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.view-btn svg {
    width: 18px;
    height: 18px;
}

.view-btn:hover {
    color: var(--text-primary);
}

.view-btn.active {
    background: var(--bg-hover);
    color: var(--accent-gold);
}

.merchant-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.merchant-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.merchant-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-light);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-hover) 100%);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    color: var(--bg-primary);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.card-badge.hot {
    background: linear-gradient(135deg, #F56C6C 0%, #E64980 100%);
}

.card-content {
    padding: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-title {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
}

.rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.star {
    font-size: 14px;
}

.score {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 14px;
}

.review-count {
    color: var(--text-muted);
    font-size: 12px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.card-tags .tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.card-desc {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.location {
    color: var(--text-muted);
    font-size: 12px;
}

.view-detail {
    color: var(--accent-gold);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.view-detail:hover {
    margin-left: 4px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.page-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover:not(.disabled) {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.page-btn.active {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    border-color: transparent;
    color: var(--bg-primary);
    font-weight: 600;
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ========================================
   全局底部样式
   ======================================== */
.global-footer {
    width: 100%;
    text-align: center;
    padding: 32px 0;
    margin-top: 60px;
    background: linear-gradient(180deg, transparent 0%, var(--bg-secondary) 100%);
    border-top: 1px solid var(--border-color);
}

.global-footer p {
    color: var(--text-muted);
    font-size: 13px;
    margin: 6px 0;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1200px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .global-header {
        padding: 0 20px;
        gap: 20px;
    }
    .content-box {
        margin: 20px;
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .grid-4, .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }
    .nav-menu {
        display: none;
    }
    .content-box {
        margin: 16px;
        padding: 20px;
    }
}

/* ========================================
   动画效果
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255,184,0,0.15);
    }
    50% {
        box-shadow: 0 0 30px rgba(255,184,0,0.25);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.5s ease-out;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}
