@charset "utf-8";
/* ============================================================
   设计公司广告发布平台 - 完整样式表 (响应式)
   ============================================================ */

/* === 基础重置与变量 === */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    --dark: #0f172a;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --gradient-1: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --gradient-2: linear-gradient(135deg, #06b6d4 0%, #2563eb 100%);
    --gradient-3: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: all 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.container-fluid { width: 100%; padding: 0 15px; margin: 0 auto; }

/* === 导航栏 === */
.navbar {
    background: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary) !important;
}

.navbar-brand img { height: 40px; }

.navbar-brand .brand-text span { color: var(--dark); }

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

.navbar-menu a {
    padding: 8px 16px;
    color: var(--gray-600);
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: 0.95rem;
}

.navbar-menu a:hover, .navbar-menu a.active {
    color: var(--primary);
    background: var(--gray-100);
}

.navbar-menu .btn-primary { color: #fff !important; }

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-700);
    cursor: pointer;
    padding: 5px;
}

/* === 首页轮播 === */
.hero-section {
    background: var(--gradient-1);
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.3;
}

.hero-content p {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 20px;
}

.hero-search {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-search input {
    flex: 1;
    border: none;
    padding: 16px 25px;
    font-size: 1rem;
    outline: none;
}

.hero-search select {
    border: none;
    padding: 16px 20px;
    font-size: 0.95rem;
    background: var(--gray-50);
    color: var(--gray-700);
    outline: none;
    min-width: 140px;
    cursor: pointer;
}

.hero-search button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 16px 35px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.hero-search button:hover { background: var(--primary-dark); }

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin-top: 25px;
    color: rgba(255,255,255,0.9);
}

.hero-stats .stat-item { text-align: center; }
.hero-stats .stat-number { font-size: 1.8rem; font-weight: 700; display: block; }
.hero-stats .stat-label { font-size: 0.9rem; opacity: 0.8; }

/* === 页面主体 === */
.main-content { flex: 1; padding: 0; }

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title .more-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
}

/* === 广告卡片 === */
.ad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.ad-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.ad-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.ad-card .card-image {
    height: 200px;
    background: var(--gray-200);
    position: relative;
    overflow: hidden;
}

.ad-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.ad-card:hover .card-image img { transform: scale(1.05); }

.ad-card .card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
}

.ad-card .card-body {
    padding: 18px 20px;
}

.ad-card .card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--gray-900);
}

.ad-card .card-summary {
    font-size: 0.88rem;
    color: var(--gray-500);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.ad-card .card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.82rem;
    color: var(--gray-400);
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}

.ad-card .card-meta span { display: flex; align-items: center; gap: 4px; }

.ad-card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px 15px;
}

.ad-card .company-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gray-600);
}

.ad-card .company-info .avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}

.price-tag {
    display: inline-block;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
}

/* === 分类卡片 === */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.cat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 25px 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.cat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background: var(--primary);
    color: #fff;
}

.cat-card .cat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.cat-card:hover .cat-icon { color: #fff; }

.cat-card .cat-name {
    font-size: 0.9rem;
    font-weight: 600;
}

/* === 推荐公司 === */
.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.company-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.company-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.company-card .company-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gray-100);
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    overflow: hidden;
}

.company-card .company-logo img { width: 100%; height: 100%; object-fit: cover; }

.company-card .company-name { font-size: 1.1rem; font-weight: 600; margin-bottom: 5px; }

.company-card .company-desc {
    font-size: 0.85rem;
    color: var(--gray-500);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

/* === 表单样式 === */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--gray-700);
    font-size: 0.92rem;
}

.form-label .required { color: var(--danger); margin-left: 2px; }

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: var(--transition);
    background: #fff;
    color: var(--gray-800);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-control.error { border-color: var(--danger); }

textarea.form-control { min-height: 120px; resize: vertical; }

select.form-control { cursor: pointer; }

.form-text {
    font-size: 0.82rem;
    color: var(--gray-400);
    margin-top: 4px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9rem;
}

.form-check input[type="checkbox"] { margin-top: 3px; }

/* === 按钮 === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; color: #fff; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; }

.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { background: #d97706; color: #fff; }

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline-primary:hover { background: var(--primary); color: #fff; }

.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn-lg { padding: 14px 32px; font-size: 1.1rem; }

.btn-block { width: 100%; }

/* === 面包屑 === */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    font-size: 0.88rem;
    color: var(--gray-400);
}

.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .current { color: var(--gray-700); font-weight: 500; }

/* === 详情页 === */
.detail-header {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.detail-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--gray-900);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.88rem;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.detail-meta span { display: flex; align-items: center; gap: 5px; }

.detail-content {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    line-height: 1.8;
}

.detail-content img { border-radius: var(--radius); margin: 15px 0; }

.detail-contact {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
}

.contact-item:last-child { border-bottom: none; }

.contact-item .icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

/* === 卡片/面板 === */
.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
    font-size: 1rem;
}

.card-body { padding: 20px; }

/* === 表格 === */
.table-responsive { overflow-x: auto; }

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table th, .table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
}

.table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tr:hover { background: var(--gray-50); }

/* === 警告提示 === */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.92rem;
    position: relative;
}

.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

.alert-dismissible { padding-right: 40px; position: relative; }

.btn-close {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

.btn-close:hover { opacity: 1; }

/* === 空状态 === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-400);
}

.empty-state .icon { font-size: 3rem; margin-bottom: 15px; }
.empty-state h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--gray-600); }

/* === 分页 === */
.pagination {
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 20px 0;
}

.page-item { display: inline; }

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    color: var(--gray-600);
    font-size: 0.88rem;
    transition: var(--transition);
    background: #fff;
}

.page-link:hover {
    background: var(--gray-100);
    color: var(--primary);
    border-color: var(--primary);
}

.page-item.active .page-link {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* === 页脚 === */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 60px 0 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 40px;
}

.footer h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer p {
    font-size: 0.88rem;
    line-height: 1.8;
}

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    color: var(--gray-400);
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-links a:hover { color: #fff; padding-left: 5px; }

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom a { color: var(--gray-400); }
.footer-bottom a:hover { color: #fff; }

.footer-contact { margin-top: 15px; }
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.88rem;
}

/* === 登录/注册页布局 === */
.auth-page {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 15px;
}

.auth-box {
    background: #fff;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
}

.auth-box h2 {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.auth-box .auth-subtitle {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 30px;
    font-size: 0.92rem;
}

/* === 标签/badge === */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-primary { background: #dbeafe; color: #1d4ed8; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #cffafe; color: #0e7490; }
.badge-secondary { background: var(--gray-200); color: var(--gray-600); }

/* === 页面内部导航 === */
.page-tabs {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.page-tabs a {
    flex: 1;
    text-align: center;
    padding: 12px 20px;
    font-weight: 500;
    color: var(--gray-600);
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    font-size: 0.92rem;
}

.page-tabs a:hover { background: var(--gray-50); }
.page-tabs a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: var(--gray-50);
}

/* === 用户中心布局 === */
.user-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 25px;
    padding: 30px 0;
}

.user-sidebar {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.user-profile-mini {
    padding: 25px;
    text-align: center;
    background: var(--gradient-1);
    color: #fff;
}

.user-profile-mini .avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.user-profile-mini .name { font-size: 1rem; font-weight: 600; }
.user-profile-mini .role { font-size: 0.82rem; opacity: 0.8; }

.user-nav { list-style: none; padding: 0; }

.user-nav li { border-bottom: 1px solid var(--gray-100); }

.user-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--gray-600);
    font-size: 0.9rem;
    transition: var(--transition);
}

.user-nav a:hover, .user-nav a.active {
    color: var(--primary);
    background: var(--gray-50);
}

.user-nav a .nav-icon { width: 20px; text-align: center; }

.user-nav .badge {
    margin-left: auto;
}

/* === 统计卡片 === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
}

.stat-card .stat-info {}
.stat-card .stat-number { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); }
.stat-card .stat-label { font-size: 0.85rem; color: var(--gray-500); }

/* === 加载动画 === */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 40px auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* === 模态框 === */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-overlay.show { display: flex; }

.modal-box {
    background: #fff;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 { font-size: 1.1rem; font-weight: 600; }

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-400);
}

.modal-body { padding: 20px; }
.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* === 图片轮播 === */
.slider-section { margin-bottom: 30px; }

.swiper { width: 100%; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }

.swiper-slide { position: relative; }

.swiper-slide img { width: 100%; height: 400px; object-fit: cover; }

.swiper-slide .slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}

.swiper-slide .slide-caption h3 { font-size: 1.4rem; margin-bottom: 5px; }
.swiper-slide .slide-caption p { font-size: 0.9rem; opacity: 0.9; }

/* === 特色功能区域 === */
.features-section {
    padding: 60px 0;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.feature-card:hover { background: var(--gray-50); }

.feature-card .feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

.feature-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 0.88rem; color: var(--gray-500); }

/* === 响应式 - 平板 === */
@media (max-width: 991px) {
    .hero-content h1 { font-size: 1.8rem; }
    .hero-search { flex-direction: column; border-radius: var(--radius); }
    .hero-search select { min-width: 100%; }
    .hero-search button { padding: 14px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .user-layout { grid-template-columns: 1fr; }
    .user-sidebar { display: none; }
    .ad-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
    .swiper-slide img { height: 280px; }
}

/* === 响应式 - 手机 === */
@media (max-width: 767px) {
    .navbar-toggle { display: block; }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 15px;
        box-shadow: var(--shadow-lg);
        gap: 0;
    }

    .navbar-menu.show { display: flex; }

    .navbar-menu a {
        padding: 12px 16px;
        border-radius: 0;
        border-bottom: 1px solid var(--gray-100);
    }

    .hero-section { padding: 35px 0; }
    .hero-content h1 { font-size: 1.3rem; margin-bottom: 8px; }
    .hero-content p { font-size: 0.9rem; margin-bottom: 15px; }
    .hero-stats { gap: 25px; flex-wrap: wrap; }
    .hero-stats .stat-number { font-size: 1.4rem; }

    .section-title { font-size: 1.2rem; }

    .ad-grid { grid-template-columns: 1fr; }
    .cat-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
    .company-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .auth-box { padding: 25px 20px; }
    .detail-header { padding: 20px; }
    .detail-content { padding: 20px; }
    .swiper-slide img { height: 200px; }
    .swiper-slide .slide-caption h3 { font-size: 1.1rem; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }

    .page-tabs { flex-wrap: wrap; }
    .page-tabs a { flex: none; width: 50%; font-size: 0.85rem; padding: 10px; }
}

@media (max-width: 480px) {
    .hero-stats .stat-item { width: 45%; }
    .stats-grid { grid-template-columns: 1fr; }
}

/* === 标签输入 === */
.tags-input-container {
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 8px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-height: 42px;
    cursor: text;
}

.tags-input-container:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--gray-100);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.tag-item .tag-remove {
    cursor: pointer;
    color: var(--gray-400);
    font-weight: bold;
}

.tag-item .tag-remove:hover { color: var(--danger); }

.tags-input {
    border: none;
    outline: none;
    flex: 1;
    min-width: 100px;
    font-size: 0.92rem;
    padding: 3px 0;
}

/* === 富文本编辑器简化 === */
.editor-toolbar {
    display: flex;
    gap: 5px;
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--gray-50);
    flex-wrap: wrap;
}

.editor-toolbar button {
    padding: 4px 10px;
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 0.82rem;
    transition: var(--transition);
}

.editor-toolbar button:hover { background: var(--gray-100); border-color: var(--gray-300); }

.editor-content {
    border: 1px solid var(--gray-300);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    min-height: 200px;
}

.editor-content:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

/* === 图片上传预览 === */
.upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.upload-area:hover { border-color: var(--primary); background: var(--gray-50); }

.upload-area .upload-icon { font-size: 2.5rem; color: var(--gray-400); margin-bottom: 10px; }
.upload-area p { color: var(--gray-500); font-size: 0.9rem; }

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.image-preview-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
}

.image-preview-item img { width: 100%; height: 100%; object-fit: cover; }

.image-preview-item .remove-img {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === Toast提示 === */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

.toast {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 10px;
    color: #fff;
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 280px;
}

.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-warning { background: var(--warning); }
.toast-info { background: var(--primary); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* === 滚动到顶部 === */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.show { display: flex; }
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-3px); }
