/* Xorgos.com 自定义样式 - 轻量化，仅覆盖必要部分 */

:root {
    --brand-dark: #1a1a2e;
    --brand-accent: #f5a623;
    --brand-red: #e74c3c;
}

body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 首页 Hero 搜索区 */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 60px 0 50px;
    margin-bottom: 30px;
}
.hero-section h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.hero-section .lead {
    color: rgba(255,255,255,0.75);
    margin-bottom: 28px;
    font-size: 1rem;
}
.search-box {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
}
.search-box .form-control {
    height: 56px;
    font-size: 1.1rem;
    border-radius: 8px 0 0 8px;
    border: none;
    padding-left: 20px;
}
.search-box .btn-search {
    height: 56px;
    border-radius: 0 8px 8px 0;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0 32px;
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: #1a1a2e;
}
.search-box .btn-search:hover {
    background: #e89a10;
    border-color: #e89a10;
    color: #1a1a2e;
}
.hot-keywords {
    margin-top: 14px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}
.hot-keywords a {
    color: var(--brand-accent);
    text-decoration: none;
    margin: 0 6px;
}
.hot-keywords a:hover {
    text-decoration: underline;
}

/* 统计条 */
.stats-bar {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}
.stats-bar .stat-num {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--brand-dark);
}
.stats-bar .stat-label {
    font-size: 0.85rem;
    color: #6c757d;
}

/* 车源卡片 */
.ad-card {
    background: #fff;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s, transform 0.2s;
    border-left: 4px solid transparent;
}
.ad-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    transform: translateY(-1px);
    border-left-color: var(--brand-accent);
}
.ad-card .ad-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-dark);
    margin-bottom: 6px;
}
.ad-card .ad-title a {
    color: inherit;
    text-decoration: none;
}
.ad-card .ad-title a:hover {
    color: var(--brand-accent);
}
.ad-card .ad-meta {
    font-size: 0.85rem;
    color: #6c757d;
}
.ad-card .ad-meta span {
    margin-right: 14px;
}
.ad-card .ad-desc {
    font-size: 0.9rem;
    color: #495057;
    margin-top: 8px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ad-card .ad-price {
    font-size: 1.15rem;
}
.ad-card .badge-brand {
    background: #e8f4fd;
    color: #0c63a8;
    font-weight: 500;
}
.ad-card .featured-tag {
    background: var(--brand-accent);
    color: #1a1a2e;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    margin-left: 8px;
}

/* 品牌筛选 */
.brand-filter {
    background: #fff;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.brand-filter a {
    display: inline-block;
    padding: 4px 14px;
    margin: 3px 4px;
    border-radius: 20px;
    background: #f1f3f5;
    color: #495057;
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.15s;
}
.brand-filter a:hover,
.brand-filter a.active {
    background: var(--brand-accent);
    color: #1a1a2e;
}

/* 详情页 */
.ad-detail {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.ad-detail .detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 12px;
}
.ad-detail .detail-price {
    font-size: 1.8rem;
    margin-bottom: 20px;
}
.ad-detail .detail-row {
    padding: 10px 0;
    border-bottom: 1px solid #f1f3f5;
    font-size: 0.95rem;
}
.ad-detail .detail-row .label {
    color: #6c757d;
    width: 100px;
    display: inline-block;
}
.ad-detail .detail-desc {
    margin-top: 20px;
    line-height: 1.8;
    color: #343a40;
    white-space: pre-wrap;
}
.contact-box {
    background: #fff8e7;
    border: 1px solid #ffe0a3;
    border-radius: 10px;
    padding: 20px;
    margin-top: 24px;
}
.contact-box .contact-phone {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--brand-red);
}

/* 分页 */
.pagination .page-link {
    color: var(--brand-dark);
}
.pagination .page-item.active .page-link {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
}

/* 表单卡片 */
.form-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    max-width: 560px;
    margin: 40px auto;
}
.form-card-wide {
    max-width: 800px;
}

/* 后台表格 */
.table-admin th {
    background: var(--brand-dark);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}
.table-admin td {
    vertical-align: middle;
    font-size: 0.9rem;
}
.status-pending  { color: #f59f00; font-weight: 600; }
.status-approved { color: #2b8a3e; font-weight: 600; }
.status-rejected { color: #c92a2a; font-weight: 600; }
.status-expired  { color: #868e96; font-weight: 600; }

/* 侧边栏 */
.sidebar-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.sidebar-card h6 {
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 12px;
}

/* 响应式 */
@media (max-width: 768px) {
    .hero-section { padding: 36px 0 30px; }
    .hero-section h1 { font-size: 1.4rem; }
    .search-box .form-control,
    .search-box .btn-search { height: 48px; font-size: 0.95rem; }
    .ad-detail { padding: 18px; }
    .ad-detail .detail-title { font-size: 1.2rem; }
}
