/* ========================================
   企业数据平台 - 商务风格样式
   ======================================== */

/* CSS 变量 */
:root {
    --primary: #1a365d;
    --primary-light: #2c5282;
    --primary-dark: #0d1b2a;
    --accent: #c9a227;
    --accent-light: #e0b83a;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-tertiary: #edf2f7;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ========================================
   导航栏
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

/* 汉堡按钮（默认隐藏） */
.hamburger-btn {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    border: none;
    background: none;
    border-radius: 8px;
    transition: background 0.2s;
}
.hamburger-btn:hover {
    background: var(--bg-tertiary);
}
.hamburger-btn span {
    display: block;
    height: 2px;
    background: #475569;
    border-radius: 2px;
    transition: 0.3s;
}

/* 移动端导航栏登录/注册 */
.nav-mobile-auth {
    display: none;
    gap: 8px;
    align-items: center;
    margin-left: auto;
}
.nav-mobile-auth a {
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}
.nav-mobile-auth a:first-child {
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.nav-mobile-auth a:last-child {
    color: #fff;
    background: var(--primary);
}

/* 移动端认证链接（动态渲染用） */
.nav-mobile-auth-link {
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}
.nav-mobile-auth-link.login-link {
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.nav-mobile-auth-link.register-link {
    color: #fff;
    background: var(--primary);
}

/* 移动端菜单遮罩 */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* 移动端菜单面板 */
.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 2001;
    display: flex;
    flex-direction: column;
    padding: 16px;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}
.mobile-menu-overlay.open .mobile-menu-panel {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    font-size: 20px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: 50%;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.mobile-menu-close:hover {
    background: var(--border);
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    font-size: 16px;
    color: #334155;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.2s;
}
.mobile-menu-link:hover {
    background: var(--bg-secondary);
}
.mobile-menu-link span {
    font-size: 18px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    font-size: 28px;
}

.brand-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 20px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
    background: var(--bg-tertiary);
}

.nav-link.active {
    color: var(--primary);
    background: var(--bg-tertiary);
}

.nav-link.admin-link {
    color: var(--accent);
}

/* 用户下拉菜单 */
.user-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    min-width: 200px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    overflow: hidden;
    animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-dropdown-menu.show {
    display: block;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.user-dropdown-item:last-child {
    border-bottom: none;
}

.user-dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.user-dropdown-item .icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.user-dropdown-item.profile:hover {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.05), rgba(44, 82, 130, 0.05));
}

.user-dropdown-item.logout:hover {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.05), rgba(224, 184, 58, 0.05));
    color: #d97706;
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* 用户下拉菜单头部 */
.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

.user-dropdown-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.user-dropdown-info {
    flex: 1;
    min-width: 0;
}

.user-dropdown-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.user-dropdown-email {
    font-size: 12px;
    opacity: 0.8;
}

/* 用户头像和下拉箭头 */
.user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    margin-right: 8px;
}

.dropdown-arrow {
    font-size: 10px;
    margin-left: 4px;
    transition: var(--transition);
}

.user-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* ========================================
   主内容区
   ======================================== */
.main-content {
    padding-top: 64px;
    min-height: calc(100vh - 64px);
}

.page {
    display: none;
    padding: 48px;
    max-width: 1400px;
    margin: 0 auto;
}

/* 详情页全宽布局 */
.page.detail-page {
    max-width: 100%;
    padding: 48px 24px;
}

.page.active {
    display: block;
}

.page-header {
    margin-bottom: 40px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-bottom: 16px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.back-button:hover {
    background: var(--border);
    color: var(--text-primary);
}

/* ========================================
   首页 - Hero 区域
   ======================================== */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: start;
    min-height: calc(100vh - 160px);
    padding: 48px 0;
}

.hero-content {
    max-width: 560px;
    padding-top: 24px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--primary-dark);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-title .highlight {
    color: var(--accent);
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 12px;
    background: linear-gradient(120deg, rgba(201,162,39,0.3), rgba(201,162,39,0.1));
    z-index: -1;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-bottom: 48px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 40px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-button .arrow {
    transition: var(--transition);
}

.cta-button:hover .arrow {
    transform: translateX(4px);
}

/* 首页搜索 */
.home-search-container {
    position: relative;
    margin: 32px 0 40px;
    max-width: 700px;
}

.home-search-box {
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 4px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.home-search-box:focus-within {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(26,54,93,0.08), var(--shadow-lg);
}

.home-search-box .search-icon {
    font-size: 20px;
    padding: 0 16px;
    color: var(--text-muted);
}

.home-search-box input {
    flex: 1;
    padding: 14px 8px;
    border: none;
    background: transparent;
    font-size: 16px;
    color: var(--text-primary);
    outline: none;
}

.home-search-box input::placeholder {
    color: var(--text-muted);
}

.home-search-box .search-btn {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.home-search-box .search-btn:hover {
    background: var(--primary-light);
}

/* 首页搜索下拉结果 */
.home-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    overflow: hidden;
}

.dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-secondary);
}

.dropdown-count {
    font-size: 12px;
    color: var(--text-muted);
}

.dropdown-list {
    max-height: 320px;
    overflow-y: auto;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--bg-secondary);
}

.dropdown-item-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.dropdown-item-info {
    flex: 1;
    min-width: 0;
}

.dropdown-item-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.dropdown-item-name mark {
    background: rgba(201,162,39,0.3);
    color: var(--text-primary);
    padding: 0 2px;
    border-radius: 2px;
}

.dropdown-item-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 6px;
}

.dropdown-item-arrow {
    color: var(--text-muted);
    font-size: 14px;
}

.dropdown-empty {
    padding: 32px;
    text-align: center;
    color: var(--text-muted);
}

.dropdown-empty span {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.dropdown-footer {
    padding: 12px 16px;
    text-align: center;
    background: var(--bg-tertiary);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-top: 1px solid var(--border);
}

.dropdown-footer:hover {
    background: var(--border);
}

/* Hero 合集区域 */
.hero-collections {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.hero-collections-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.hero-collections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.hero-collection-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.hero-collection-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.hero-collection-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
    background: var(--bg-primary);
}

.hero-collection-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-bottom: 12px;
}

.hero-collection-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.hero-collection-count {
    font-size: 13px;
    color: var(--text-muted);
}

.hero-collection-count span {
    color: var(--accent);
    font-weight: 700;
}

/* 国家/城市标签 */
.collection-location-tag {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 4px;
    background: rgba(79, 70, 229, 0.08);
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid rgba(79, 70, 229, 0.15);
}

/* 日期标签 */
.collection-date-tag {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ========================================
   国家/城市管理（后台通用）
   ======================================== */
.region-management,
.collection-management {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.management-form,
.collection-form {
    margin-bottom: 20px;
}

.region-item-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.region-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    gap: 12px;
}

.region-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.region-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.region-item-badge {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.region-item-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L1 4h14z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px !important;
    cursor: pointer;
}

/* ========================================
   合集筛选栏
   ======================================== */
.collections-filter-bar {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.filter-label {
    font-size: 13px;
    color: var(--text-muted);
    min-width: 80px;
    padding-top: 6px;
    flex-shrink: 0;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
    overflow: visible;
}

.filter-pill {
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
}

/* ========================================
   合集表单
   ======================================== */
.form-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ========================================
   后台合集列表操作按钮
   ======================================== */
.admin-collection-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.btn-edit-small {
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.btn-edit-small:hover {
    background: var(--primary);
    border-color: var(--primary);
    filter: brightness(1.1);
}

.btn-delete-small {
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.btn-delete-small:hover {
    background: #ef4444;
    border-color: #ef4444;
}

/* ========================================
   公司列表页 - Hero 头部
   ======================================== */
.list-hero {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 32px 28px;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.list-hero-top {
    display: flex;
    align-items: center;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.back-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.list-hero-body {
    display: flex;
    align-items: center;
    gap: 16px;
}

.list-hero-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.list-hero-text {
    flex: 1;
}

.list-hero-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.list-hero-title .highlight {
    color: var(--accent);
}

.list-hero-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
}

.list-search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-primary);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    transition: var(--transition);
    max-width: 480px;
}

.list-search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,115,186,0.12);
}

.list-search-box .list-search-icon {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.list-search-box input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: var(--text-primary);
    min-width: 0;
}

.list-search-box input::placeholder {
    color: var(--text-muted);
}

/* ========================================
   公司合集
   ======================================== */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.collection-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 32px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.collection-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.collection-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.collection-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 20px;
}

.collection-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.collection-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.collection-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.collection-count {
    display: flex;
    align-items: center;
    gap: 4px;
}

.collection-arrow {
    margin-left: auto;
    font-size: 20px;
    color: var(--accent);
    transition: var(--transition);
}

.collection-card:hover .collection-arrow {
    transform: translateX(4px);
}

/* ========================================
   全局搜索
   ======================================== */
.global-search-container {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.global-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 4px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.global-search-box:focus-within {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(26,54,93,0.08), var(--shadow-md);
}

.global-search-box .search-icon {
    font-size: 20px;
    padding: 0 16px;
    color: var(--text-muted);
}

.global-search-box input {
    flex: 1;
    padding: 14px 8px;
    border: none;
    background: transparent;
    font-size: 16px;
    color: var(--text-primary);
    outline: none;
}

.global-search-box input::placeholder {
    color: var(--text-muted);
}

.global-search-box .search-clear {
    padding: 8px 12px;
    margin-right: 8px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.global-search-box .search-clear:hover {
    background: var(--border);
    color: var(--text-primary);
}

/* 搜索结果区域 */
.search-results {
    max-width: 1400px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.search-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.search-results-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.search-results-count {
    font-size: 14px;
    color: var(--text-muted);
}

/* 搜索高亮 */
.company-card mark {
    background: rgba(201,162,39,0.3);
    color: var(--text-primary);
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 600;
}

/* ========================================
   公司列表
   ======================================== */
.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(26,54,93,0.1);
}

.search-btn {
    padding: 14px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--primary-light);
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.company-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
    height: 220px; /* 锁定卡片高度，保持比例一致 */
    display: flex;
    flex-direction: column;
}

.company-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.company-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.company-logo {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.company-info {
    flex: 1;
    min-width: 0;
}

.company-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company-industry {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.company-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.company-tag {
    padding: 4px 12px;
    background: var(--bg-tertiary);
    border-radius: 100px;
    font-size: 12px;
    color: var(--text-secondary);
}

.company-tag.highlight {
    background: rgba(201,162,39,0.15);
    color: var(--accent);
}

.company-brief {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

/* ===== 电话拨号按钮 ===== */
.phone-call-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}
.phone-call-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: scale(1.1);
}

/* ========================================
   公司详情
   ======================================== */
.detail-content {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
}

.detail-hero {
    background: #fff;
    padding: 20px 24px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.detail-body {
    padding: 20px 24px;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.detail-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.detail-logo {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #1a365d, #2c5282);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.25);
}

.detail-title-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-name {
    font-size: 30px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.3;
}

.detail-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.detail-tag {
    padding: 2px 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

.detail-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.detail-body {
    padding: 20px 24px;
    max-height: none;
    overflow-y: visible;
}

.detail-section {
    margin-bottom: 16px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}

/* 详情页左右布局 */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

/* 详情页容器 - 全宽 */
.detail-container {
    max-width: 1600px;
    margin: 0 auto;
    max-height: none;
    overflow: visible;
}

/* 企查查风格信息表格 */
.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.info-table tr {
    border-bottom: 1px solid var(--border);
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table td {
    padding: 8px 12px;
    vertical-align: top;
}

.table-label {
    width: 120px;
    min-width: 120px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-weight: 500;
    text-align: right;
    border-right: 1px solid var(--border);
}

.table-value {
    flex: 1;
    color: var(--text-primary);
    word-break: break-all;
    width: auto;
    min-width: 200px;
}

.table-value-short {
    width: auto;
    min-width: 120px;
    color: var(--text-primary);
}

/* 状态标签 */
.status-badge {
    display: inline-block;
    padding: 2px 10px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

/* ===== 工商信息卡片式布局 ===== */
.info-card {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.info-card-row {
    display: flex;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.info-card-row:last-child {
    border-bottom: none;
}

.info-card-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.info-card-item:first-child {
    padding-right: 12px;
}

.info-card-item:last-child {
    padding-left: 12px;
}

.info-card-item:only-child {
    padding: 0;
}

.info-card-item.full-width {
    flex: 1 1 100%;
    padding: 0;
}

.info-card-label {
    font-size: 13px;
    color: #999;
    margin-bottom: 4px;
    line-height: 1.4;
}

.info-card-value {
    font-size: 15px;
    color: #333;
    line-height: 1.5;
    word-break: break-all;
}

.company-name-value {
    font-size: 17px;
    font-weight: 600;
    color: #333;
}

.en-name {
    letter-spacing: 0.3px;
}

/* 链接样式 */
.link-blue {
    color: var(--primary-light);
    text-decoration: none;
}

.link-blue:hover {
    text-decoration: underline;
}

/* 经营范围盒子 */
.scope-box {
    background: var(--bg-secondary);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    line-height: 1.6;
    color: var(--text-primary);
    font-size: 14px;
}

/* ========================================
   后台管理 - 上传步骤
   ======================================== */
.upload-step {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    transition: var(--transition);
}

.upload-step.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.upload-step.active {
    border-color: var(--primary);
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.upload-step.disabled .step-number {
    background: var(--text-muted);
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.selected-collection {
    color: var(--primary);
    font-weight: 600;
}

.collection-select-area {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.collection-select-item {
    padding: 16px;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.collection-select-item:hover {
    border-color: var(--primary-light);
}

.collection-select-item.selected {
    border-color: var(--primary);
    background: var(--bg-secondary);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.collection-select-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.collection-select-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.collection-select-hint {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px dashed var(--border);
}

/* ========================================
   后台管理 - 合集管理
   ======================================== */
.collection-management {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    margin-bottom: 32px;
}

.collection-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-input, .form-textarea {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: var(--transition);
    background: var(--bg-secondary);
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-primary);
}

.form-textarea {
    resize: vertical;
    min-height: 60px;
}

.subsection-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.admin-collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.admin-collection-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.admin-collection-item:hover {
    border-color: var(--primary-light);
    background: var(--bg-primary);
}

.admin-collection-info {
    flex: 1;
    min-width: 0;
}

.admin-collection-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.admin-collection-meta {
    font-size: 13px;
    color: var(--text-muted);
}

/* 三栏布局 - 详情页全宽 */
.detail-layout-three {
    display: grid;
    grid-template-columns: 300px minmax(700px, 1fr) 300px;
    gap: 16px;
    width: 100%;
    align-items: stretch;
    flex: 1;
    overflow: hidden;
}

/* 左侧公司列表 */
.detail-left-sidebar {
    overflow-y: auto;
}

.detail-company-list {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.detail-company-items {
    flex: 1;
    overflow-y: auto;
}

.detail-list-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

/* 详情页公司列表搜索 */
.detail-list-search {
    position: relative;
    margin-bottom: 12px;
}

.detail-list-search .detail-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--text-muted);
}

.detail-list-search input {
    width: 100%;
    padding: 8px 12px 8px 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 13px;
    background: var(--bg-secondary);
    transition: var(--transition);
}

.detail-list-search input:focus {
    outline: none;
    border-color: var(--primary-light);
    background: var(--bg-primary);
}

.detail-list-search input::placeholder {
    color: var(--text-muted);
}

.detail-company-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-company-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.detail-company-item:hover {
    background: var(--bg-secondary);
    border-color: var(--border);
}

.detail-company-item.active {
    background: linear-gradient(135deg, rgba(26,54,93,0.08), rgba(44,82,130,0.12));
    border-color: var(--primary);
}

.detail-company-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.detail-company-item.active .detail-company-logo {
    background: linear-gradient(135deg, var(--accent), #e69138);
}

.detail-company-info {
    flex: 1;
    min-width: 0;
}

.detail-company-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-company-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.detail-list-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.detail-company-items {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.detail-company-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    min-height: 95px !important;
    max-height: 100px !important;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.detail-company-item:hover {
    background: var(--bg-secondary);
    border-color: var(--border);
}

.detail-company-item.active {
    background: linear-gradient(135deg, rgba(26,54,93,0.08), rgba(44,82,130,0.12));
    border-color: var(--primary);
}

.detail-company-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.detail-company-item.active .detail-company-logo {
    background: linear-gradient(135deg, var(--accent), #e69138);
}

.detail-company-info {
    flex: 1;
    min-width: 0;
}

.detail-company-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-company-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.detail-list-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.detail-list-pagination button {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.detail-page-jump-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}

.detail-page-jump {
    width: 40px;
    height: 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 13px;
    text-align: center;
    padding: 0 4px;
    outline: none;
    transition: var(--transition);
}

.detail-page-jump:focus {
    border-color: var(--primary);
    background: var(--bg-primary);
}

.detail-page-jump::-webkit-inner-spin-button,
.detail-page-jump::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.detail-page-jump-btn {
    height: 28px;
    padding: 0 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 13px !important;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.detail-page-jump-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.detail-list-pagination button:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.detail-list-pagination button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.detail-list-pagination span {
    font-size: 13px;
    color: var(--text-secondary);
    min-width: 40px;
    text-align: center;
}

/* 中间主内容区 */
.detail-main-center {
    min-width: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* 工商信息卡片 移动端适配 */
@media (max-width: 768px) {
    .info-card-row {
        padding: 10px 12px;
    }
    .info-card-label {
        font-size: 12px;
    }
    .info-card-value {
        font-size: 14px;
    }
    .company-name-value {
        font-size: 16px;
    }
}

.detail-main {
    min-width: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.detail-sidebar {
    overflow-y: auto;
}

/* 联系人卡片 */
.contact-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

/* 联系人项 */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
}

.contact-item.primary {
    background: linear-gradient(135deg, rgba(26,54,93,0.05), rgba(44,82,130,0.08));
    margin: -12px -16px 0;
    padding: 20px 16px;
    border-radius: var(--radius-md);
}

.contact-item.secondary {
    padding: 12px 0;
}

.contact-avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.contact-avatar.small {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.contact-info {
    flex: 1;
    min-width: 0;
}

.contact-name-lg {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.contact-name-sm {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.contact-role {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 8px;
}

.contact-role-sm {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-phone-lg {
    font-size: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-phone-lg a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    font-family: 'SF Mono', Monaco, monospace;
}

.contact-phone-lg a:hover {
    text-decoration: underline;
}

.phone-icon {
    font-size: 14px;
}

.contact-phone-sm {
    font-size: 13px;
    color: var(--text-secondary);
}

.contact-phone-sm a {
    color: var(--primary-light);
    text-decoration: none;
    font-family: 'SF Mono', Monaco, monospace;
}

.contact-phone-sm a:hover {
    text-decoration: underline;
}

.contact-divider-line {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

/* 无联系人提示 */
.contact-empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-text {
    font-size: 14px;
}

/* 响应式：小屏幕时堆叠 */
@media (max-width: 1400px) {
    .detail-layout-three {
        grid-template-columns: 260px minmax(560px, 1fr) 260px;
        gap: 16px;
        overflow: visible;
    }
}

@media (max-width: 1200px) {
    .detail-layout-three {
        grid-template-columns: 240px 1fr 240px;
        gap: 12px;
        overflow: visible;
    }
    
    .detail-company-list {
        padding: 12px;
    }
    
    .detail-company-item {
        padding: 8px;
    }
    
    .detail-company-logo {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .detail-company-name {
        font-size: 13px;
    }
    
    .detail-company-meta {
        font-size: 11px;
    }
}

@media (max-width: 1024px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
    
    .detail-layout-three {
        grid-template-columns: 1fr;
    }

    .detail-content {
        height: auto;
    }

    .detail-body {
        overflow: visible;
    }

    .detail-main,
    .detail-main-center,
    .detail-sidebar,
    .detail-left-sidebar {
        overflow: visible;
    }

    .detail-left-sidebar {
        display: none;
    }

    .detail-sidebar {
        order: -1;
    }

    .contact-card {
        margin-bottom: 24px;
    }
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-item.contact-pair {
    background: var(--bg-secondary);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.detail-item.contact-pair .detail-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.detail-item.contact-pair .detail-value {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.contact-name {
    font-weight: 600;
    color: var(--primary);
    min-width: 60px;
}

.contact-divider {
    color: var(--border);
    font-weight: 300;
}

.contact-phone {
    color: var(--text-primary);
    font-family: 'SF Mono', Monaco, monospace;
    letter-spacing: 0.5px;
}

.detail-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 500;
}

.detail-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.detail-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.detail-btn.primary {
    background: var(--primary);
    color: white;
    border: none;
}

.detail-btn.primary:hover {
    background: var(--primary-light);
}

.detail-btn.secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.detail-btn.secondary:hover {
    background: var(--border);
}

/* ========================================
   后台管理
   ======================================== */
.admin-container {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.upload-section {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 48px;
}

.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 64px 48px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary-light);
    background: var(--bg-secondary);
}

.upload-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.upload-text {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.upload-hint {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.upload-btn {
    padding: 12px 32px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.upload-btn:hover {
    background: var(--primary-light);
}

/* 模板区域 */
.template-section {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.template-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.template-section p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.template-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 13px;
}

.template-table th,
.template-table td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid var(--border);
}

.template-table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--primary);
}

.template-table td {
    color: var(--text-secondary);
}

.download-btn {
    padding: 10px 24px;
    background: var(--bg-tertiary);
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.download-btn:hover {
    background: var(--border);
}

/* 预览区域 */
.preview-section {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.preview-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.preview-info {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.preview-table-wrapper {
    overflow-x: auto;
    margin-bottom: 24px;
    max-height: 400px;
    overflow-y: auto;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.preview-table th,
.preview-table td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid var(--border);
    white-space: nowrap;
}

.preview-table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--primary);
    position: sticky;
    top: 0;
}

.preview-table td {
    color: var(--text-secondary);
}

.preview-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

.cancel-btn {
    padding: 12px 24px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cancel-btn:hover {
    background: var(--border);
}

.confirm-btn {
    padding: 12px 32px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.confirm-btn:hover {
    background: var(--accent-light);
}

/* 数据管理 */
.data-management {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.data-management h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
}

.data-stats {
    display: flex;
    gap: 48px;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.data-stat-item {
    display: flex;
    flex-direction: column;
}

.data-stat-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
}

.data-stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.data-actions {
    display: flex;
    gap: 16px;
}

.action-btn {
    padding: 12px 24px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    background: var(--border);
}

.action-btn.danger {
    background: #fed7d7;
    color: #c53030;
    border-color: #fc8181;
}

.action-btn.danger:hover {
    background: #fc8181;
    color: white;
}

/* ========================================
   页脚
   ======================================== */
.footer {
    text-align: center;
    padding: 32px;
    color: var(--text-muted);
    font-size: 14px;
    border-top: 1px solid var(--border);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .navbar {
        padding: 0 24px;
    }
    
    .page {
        padding: 32px 24px;
    }
}

@media (max-width: 768px) {
    /* ===== 导航栏 ===== */
    .navbar {
        padding: 0 16px;
        height: 52px;
    }
    .brand-text {
        font-size: 17px;
    }
    .logo {
        font-size: 22px;
    }
    .nav-links {
        display: none;
    }
    .hamburger-btn {
        display: flex;
    }
    .nav-mobile-auth {
        display: flex;
    }

    /* ===== 页面容器 ===== */
    .main-content {
        padding-top: 52px;
    }
    .page {
        padding: 20px 12px;
    }
    .page.detail-page {
        padding: 16px 12px;
    }

    /* ===== 首页 Hero（匹配 preview 渐变风格） ===== */
    .hero {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
        min-height: auto;
        background: linear-gradient(135deg, #1a365d, #2c5282);
        border-radius: 12px;
        margin: 8px 0;
        overflow: hidden;
    }
    .hero-content {
        padding: 28px 16px 20px;
        text-align: center;
        max-width: 100%;
    }
    .hero-title {
        font-size: 28px;
        margin-bottom: 10px;
        color: #fff;
    }
    .hero-title .highlight {
        color: #f6ad55;
    }
    .hero-subtitle {
        font-size: 14px;
        color: #cbd5e0;
        margin-bottom: 20px;
    }
    .hero-stats {
        justify-content: center;
        gap: 12px;
        margin-bottom: 20px;
    }
    .stat-item {
        flex: 1;
        background: rgba(255,255,255,.12);
        border-radius: 8px;
        padding: 12px 8px;
        text-align: center;
    }
    .stat-number {
        font-size: 22px;
        color: #f6ad55;
        line-height: 1;
    }
    .stat-label {
        font-size: 11px;
        color: #94a3b8;
        margin-top: 4px;
    }
    .cta-button {
        display: none;
    }
    .home-search-container {
        display: none;
    }

    /* 首页合集区 */
    .hero-collections {
        padding: 16px 12px;
        border-radius: 0;
        background: var(--bg-primary);
    }
    .hero-collections-title {
        font-size: 14px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    .hero-collections-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .hero-collection-card {
        padding: 10px;
        min-width: 0;
        overflow: hidden;
    }
    .hero-collection-card::before {
        height: 2px;
    }
    .hero-collection-name {
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .hero-collection-count {
        font-size: 11px;
    }
    .hero-collection-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
        margin-bottom: 6px;
    }
    .hero-collection-cover-img {
        width: 40px;
        height: 40px;
    }

    /* ===== 合集页 ===== */
    .collections-filter-bar {
        padding: 12px 14px;
    }
    .filter-row {
        flex-direction: column;
        gap: 6px;
    }
    .filter-label {
        min-width: auto;
        padding-top: 0;
    }
    .filter-pills {
        flex-wrap: wrap;
        padding-bottom: 0;
    }
    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .collection-card {
        padding: 20px;
    }
    .collection-icon {
        width: 48px;
        height: 48px;
        font-size: 26px;
        margin-bottom: 12px;
    }
    .collection-name {
        font-size: 16px;
    }
    .collection-desc {
        font-size: 13px;
    }
    .page-title {
        font-size: 24px;
    }
    .page-header {
        margin-bottom: 20px;
    }

    /* ===== 公司列表 Hero ===== */
    .list-hero {
        padding: 16px 20px;
        margin-bottom: 16px;
    }
    .list-hero-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .list-hero-icon {
        width: 44px;
        height: 44px;
    }
    .list-hero-title {
        font-size: 22px;
    }
    .list-hero-subtitle {
        font-size: 13px;
    }
    .list-search-box {
        max-width: 100%;
        padding: 8px 12px;
    }
    .list-search-box input {
        font-size: 14px;
    }

    /* ===== 公司列表卡片（匹配 preview 横向布局） ===== */
    .company-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .company-card {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        height: auto;
        min-height: auto;
    }
    .company-header {
        flex-shrink: 0;
        margin-bottom: 0;
    }
    .company-logo {
        width: 44px;
        height: 44px;
        font-size: 18px;
        border-radius: 10px;
    }
    .company-info {
        flex: 1;
        min-width: 0;
    }
    .company-name {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .company-industry {
        font-size: 12px;
        margin-top: 2px;
    }
    .company-tags {
        margin: 0;
    }
    .company-tag {
        font-size: 11px;
        padding: 2px 8px;
    }
    .company-brief {
        display: none;
    }
    .search-bar {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }
    .search-input {
        padding: 12px 16px;
        font-size: 14px;
    }
    .search-btn {
        width: 100%;
        padding: 12px;
    }

    /* ===== 公司详情页 ===== */
    .detail-container {
        max-width: 100%;
    }
    .detail-hero {
        padding: 16px;
    }
    .detail-header-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .detail-logo {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    .detail-name {
        font-size: 22px;
    }
    .detail-tags {
        justify-content: center;
    }
    .detail-header-right {
        align-items: center;
    }
    .detail-fav-btn {
        margin-left: 0;
        margin-top: 4px;
        padding: 8px 16px;
        font-size: 13px;
    }
    .detail-body {
        padding: 16px;
    }
    .detail-layout-three {
        grid-template-columns: 1fr;
        gap: 12px;
        overflow: visible;
    }
    .detail-left-sidebar {
        display: none;
    }
    .detail-main-center {
        overflow: visible;
    }
    .detail-content {
        height: auto;
    }
    .detail-company-list {
        padding: 14px;
    }
    .section-title {
        font-size: 14px;
    }

    /* 工商信息卡片 移动端 */
    .info-card-row {
        padding: 10px 12px;
    }
    .info-card-label {
        font-size: 12px;
    }
    .info-card-value {
        font-size: 14px;
    }
    .company-name-value {
        font-size: 16px;
    }

    /* ===== 联系方式卡片 ===== */
    .contact-card {
        padding: 16px;
    }
    .contact-card-title {
        font-size: 14px;
        margin-bottom: 12px;
    }
    .contact-item {
        gap: 12px;
        padding: 12px 0;
    }
    .contact-avatar {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    .contact-name-lg {
        font-size: 17px;
    }
    .contact-phone-lg {
        font-size: 14px;
    }

    /* ===== 详情页按钮 ===== */
    .detail-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
        padding-top: 20px;
    }
    .detail-btn {
        width: 100%;
        justify-content: center;
    }
    .detail-grid {
        grid-template-columns: 1fr;
    }

    /* ===== 搜索结果页 ===== */
    .global-search-container {
        padding: 0;
    }
    .search-results {
        padding: 0;
    }
    .search-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* ===== 分页 ===== */
    .pagination button,
    .pagination span {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
        padding: 0 6px;
    }

    /* ===== 页脚 ===== */
    .footer {
        padding: 20px 16px;
        font-size: 12px;
    }

    /* ===== 后台管理 ===== */
    .data-stats {
        flex-direction: column;
        gap: 24px;
    }
    .data-stat-value {
        font-size: 28px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }

    /* ===== 合集封面 ===== */
    .collection-cover-img {
        width: 100%;
        height: 80px;
    }
    .hero-collection-cover-img {
        width: 60px;
        height: 60px;
    }

    /* ===== 用户下拉 ===== */
    .user-dropdown-menu {
        right: -40px;
        min-width: 180px;
    }
}

/* ===== 超小屏手机 @480px ===== */
@media (max-width: 480px) {
    /* Hero */
    .hero-content {
        padding: 24px 14px 16px;
    }
    .hero-title {
        font-size: 24px;
    }
    .hero-subtitle {
        font-size: 13px;
    }
    .stat-number {
        font-size: 20px;
    }
    .stat-label {
        font-size: 10px;
    }
    .hero-stats {
        gap: 8px;
    }
    .stat-item {
        padding: 10px 6px;
    }
    .cta-button {
        padding: 12px 20px;
        font-size: 14px;
    }
    /* 合集页 */
    .collections-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .collection-card {
        padding: 12px;
    }
    .collection-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
        margin-bottom: 8px;
    }
    .collection-name {
        font-size: 13px;
    }
    .collection-desc {
        font-size: 11px;
        -webkit-line-clamp: 1;
    }
    .collection-meta {
        font-size: 11px;
        gap: 6px;
    }
    .collection-location-tag {
        font-size: 10px;
    }
    .page-title {
        font-size: 20px;
    }

    /* 公司列表 */
    .list-hero {
        padding: 12px 14px;
    }
    .list-hero-title {
        font-size: 18px;
    }
    .company-card {
        padding: 12px;
    }
    .company-logo {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .company-name {
        font-size: 15px;
    }

    /* 详情页 */
    .detail-name {
        font-size: 19px;
    }
    .detail-hero {
        padding: 12px;
    }
    .detail-body {
        padding: 12px;
    }
    .contact-card {
        padding: 12px;
    }
    .contact-avatar {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    .contact-name-lg {
        font-size: 15px;
    }
    .contact-phone-lg {
        font-size: 13px;
    }
    .info-card-label {
        font-size: 11px;
    }
    .info-card-value {
        font-size: 13px;
    }

    /* 搜索 */
    .home-search-box .search-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
    .list-search-box {
        padding: 6px 10px;
    }
    .mobile-menu-panel {
        width: 100%;
        right: -100%;
    }
}

/* ========================================
   动画
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page.active {
    animation: fadeIn 0.4s ease;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 48px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.empty-state-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state-desc {
    font-size: 15px;
}

/* ========================================
   后台管理 - 侧边栏布局
   ======================================== */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 64px);
    padding-top: 64px;
}

/* 侧边栏 */
.admin-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: var(--primary-dark);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    z-index: 100;
}

.sidebar-logo {
    padding: 20px 16px;
    font-size: 15px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-nav {
    flex: 1;
    padding: 8px 0;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-nav-item:hover {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
}

.sidebar-nav-item.active {
    background: rgba(255,255,255,0.12);
    color: white;
    border-left-color: var(--accent);
    font-weight: 600;
}

.sidebar-stats {
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    gap: 16px;
}

.sidebar-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-stat-num {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

.sidebar-stat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}

/* 主内容区 */
.admin-main {
    flex: 1;
    margin-left: 220px;
    padding: 32px 40px;
    min-height: 100vh;
    overflow-x: hidden;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-tab-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-search-input {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    width: 240px;
    outline: none;
    transition: border-color 0.2s;
}

.admin-search-input:focus {
    border-color: var(--primary-light);
}

/* 统计行 */
.admin-stats-row {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.admin-stats-row .admin-stat-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    min-width: 100px;
    text-align: center;
}

/* ========================================
   企业管理表格
   ======================================== */
.company-admin-table-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    overflow-x: auto;
}

.company-admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.company-admin-table th {
    background: var(--bg-secondary);
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
}

.company-admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--bg-tertiary);
    vertical-align: middle;
}

.company-admin-table tr:last-child td {
    border-bottom: none;
}

.company-admin-table tr:hover td {
    background: var(--bg-secondary);
}

.company-name-cell {
    font-weight: 600;
    color: var(--text-primary);
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.company-actions {
    display: flex;
    gap: 6px;
    white-space: nowrap;
}

.company-actions button {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid;
}

.btn-edit-row {
    background: none;
    border-color: var(--primary-light) !important;
    color: var(--primary-light);
}

.btn-edit-row:hover {
    background: var(--primary-light);
    color: white;
}

.btn-delete-row {
    background: none;
    border-color: #e53e3e !important;
    color: #e53e3e;
}

.btn-delete-row:hover {
    background: #e53e3e;
    color: white;
}

.table-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 40px !important;
}

/* 分页 */
.admin-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.admin-pagination button {
    padding: 6px 14px;
    border: 1px solid var(--border);
    background: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.admin-pagination button:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
}

.admin-pagination button.active-page {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.admin-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ========================================
   数据管理卡片
   ======================================== */
.data-management {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 640px;
}

.data-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.data-card.danger {
    border-color: #fed7d7;
    background: #fff5f5;
}

.data-card-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.data-card-info {
    flex: 1;
}

.data-card-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.data-card-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* ========================================
   企业编辑侧边栏
   ======================================== */
.company-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 200;
    display: none;
}

.company-sidebar-overlay.open {
    display: block;
}

.company-sidebar {
    position: fixed;
    top: 0;
    right: -480px;
    width: 480px;
    height: 100vh;
    background: white;
    z-index: 201;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}

.company-sidebar.open {
    right: 0;
}

.company-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.company-sidebar-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.sidebar-close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-secondary);
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.sidebar-close-btn:hover {
    background: var(--bg-tertiary);
}

.company-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.company-sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* 企业表单 */
.company-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
}

.company-form-grid .form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.company-form-grid .form-group.full-width {
    grid-column: 1 / -1;
}

.company-form-grid label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.company-form-grid input,
.company-form-grid select,
.company-form-grid textarea {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.company-form-grid input:focus,
.company-form-grid select:focus,
.company-form-grid textarea:focus {
    border-color: var(--primary-light);
}

.company-form-grid textarea {
    resize: vertical;
    min-height: 80px;
}

/* 联系人动态行 */
.contacts-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.btn-add-contact {
    padding: 4px 12px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--primary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-contact:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.contacts-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr 32px;
    gap: 8px;
    align-items: end;
}

.contact-row .form-group {
    margin: 0;
}

.btn-remove-contact {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    transition: all 0.2s;
}

.btn-remove-contact:hover {
    background: #fef2f2;
    color: #ef4444;
}

/* 响应式 */
@media (max-width: 900px) {
    .admin-sidebar {
        width: 180px;
    }
    .admin-main {
        margin-left: 180px;
        padding: 24px 20px;
    }
    .company-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* 更多展会文字链接 */
.hero-more-link {
    display: block;
    margin-top: 12px;
    font-size: 15px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
    text-align: right;
}
.hero-more-link:hover {
    color: var(--accent);
}

/* 分页控件 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.pagination button,
.pagination span {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text);
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    white-space: nowrap;
}
.pagination button:hover:not(:disabled) {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.pagination .page-current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    font-weight: 700;
    cursor: default;
}
.pagination .page-ellipsis {
    border: none;
    background: none;
    cursor: default;
    color: var(--text-muted);
}
.page-jump-input {
    width: 44px;
    height: 36px;
    padding: 0 6px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text);
    border-radius: 6px;
    font-size: 13px;
    text-align: center;
    outline: none;
}
.page-jump-input:focus {
    border-color: var(--primary);
}
.page-jump-btn {
    min-width: 44px;
    height: 36px;
    padding: 0 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.page-jump-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ===================== 合集封面图 ===================== */
/* 首页 Hero 卡片封面：固定 80×80 正方形，等比缩放后居中裁切 */
.hero-collection-cover-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto 8px;
    display: block;
    flex-shrink: 0;
}

/* 合集页卡片封面：固定 100% 宽 × 100px 高，等比缩放后居中裁切 */
.collection-cover-img {
    width: 35%;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 14px;
    display: block;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

/* 后台合集列表缩略图：固定 40×40 正方形 */
.admin-collection-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
    vertical-align: middle;
    cursor: pointer;
}

.admin-collection-thumb-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-tertiary);
    vertical-align: middle;
}

.btn-upload-small {
    background: none;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 3px 5px;
    font-size: 12px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}
.btn-upload-small:hover {
    background: var(--bg-tertiary);
    color: var(--accent);
    border-color: var(--accent);
}


/* ===== 收藏按钮 ===== */
.detail-fav-btn {
    margin-left: auto;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border: 2px solid var(--border);
    border-radius: 25px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.detail-fav-btn svg path {
    transition: all 0.2s;
}

.detail-fav-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 139, 221, 0.35);
}

.detail-fav-btn:hover svg path {
    fill: #fff;
}

.detail-fav-btn.favorited {
    background: rgba(237, 100, 100, 0.1);
    border-color: rgba(237, 100, 100, 0.4);
    color: #ed6363;
}

.detail-fav-btn.favorited svg path {
    fill: #ed6363;
    stroke: none;
}

.detail-fav-btn.favorited:hover {
    background: rgba(237, 100, 100, 0.2);
    border-color: rgba(237, 100, 100, 0.6);
    box-shadow: 0 4px 12px rgba(237, 100, 100, 0.3);
}

/* ===== 收藏列表页 ===== */
.page-favorites {
    padding: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.fav-page-header {
    margin-bottom: 36px;
}

.fav-page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.fav-page-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.fav-empty {
    text-align: center;
    padding: 80px 0;
}

.fav-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.fav-empty-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.fav-empty-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

.fav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.fav-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.fav-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.fav-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.fav-card-logo {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.fav-card-title {
    flex: 1;
    min-width: 0;
}

.fav-card-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fav-card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.fav-card-tag {
    padding: 3px 10px;
    background: var(--bg-secondary);
    border-radius: 100px;
    font-size: 12px;
    color: var(--text-secondary);
}

.fav-card-tag.fav-status {
    color: var(--success);
    background: rgba(72, 187, 120, 0.1);
}

.fav-card-actions {
    display: flex;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.fav-card-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    border: none;
}

.fav-card-btn-view {
    background: var(--accent);
    color: #fff;
}

.fav-card-btn-view:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.fav-card-btn-remove {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.fav-card-btn-remove:hover {
    background: rgba(237, 100, 100, 0.1);
    color: #ed6363;
    border-color: rgba(237, 100, 100, 0.4);
}

.fav-card-date {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.fav-info-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.fav-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.fav-info-item span:first-child {
    color: var(--text-tertiary);
    width: 50px;
    flex-shrink: 0;
}


/* 上次浏览时间标签 */
.last-viewed-label {
    /* 纯文字样式由 inline style 控制，此处保留基础定位 */
    display: inline;
}

#lastViewedLabel { font-size: 13px; color: #94a3b8; }

/* ==================== 搜索结果页面样式 ==================== */
.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.search-results-count {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.search-results-sort select {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

.search-results-sort select:focus {
    border-color: var(--primary-light);
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}





.company-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-active {
    background: rgba(72, 187, 120, 0.1);
    color: #48bb78;
}

.status-inactive {
    background: rgba(245, 101, 101, 0.1);
    color: #f56565;
}

.status-other {
    background: rgba(160, 174, 192, 0.1);
    color: #a0aec0;
}

.company-card-body {
    margin-bottom: 16px;
}

.company-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.info-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.info-value {
    color: var(--text-primary);
    text-align: right;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.company-card-footer {
    display: flex;
    justify-content: flex-end;
}

.btn-view {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-view:hover {
    background: var(--primary-light);
}

.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px;
    color: var(--text-muted);
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px;
}

.error-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: #f56565;
}

.error-state-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.error-state-desc {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.pagination button {
    padding: 8px 12px;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    min-width: 36px;
}

.pagination button:hover:not(:disabled) {
    background: var(--bg-tertiary);
    border-color: var(--primary-light);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .page-current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination .page-ellipsis {
    padding: 8px 12px;
    color: var(--text-muted);
}

/* 响应式调整 */
/* 中等屏幕（平板电脑） */
@media (max-width: 1024px) {
    .company-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* 小屏幕（手机） */
@media (max-width: 768px) {
    .search-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .company-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .pagination {
        gap: 2px;
    }
    
    .pagination button {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 32px;
    }
}

/* ==================== 统一弹窗组件 ==================== */
/* 遮罩层 */
.uni-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}
.uni-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 弹窗卡片 */
.uni-modal-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}
.uni-modal-overlay.active .uni-modal-card {
    transform: translateY(0) scale(1);
}

/* 图标 */
.uni-modal-icon {
    font-size: 48px;
    margin-bottom: 16px;
    line-height: 1;
}

/* 标题 */
.uni-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

/* 右上角关闭按钮 */
.uni-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 18px;
    color: #94a3b8;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}
.uni-modal-close:hover {
    background: #f1f5f9;
    color: #475569;
}

/* 描述 */
.uni-modal-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 28px;
    white-space: pre-line;
}

/* 按钮组 */
.uni-modal-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* 蓝色渐变主按钮 */
.uni-modal-btn-primary {
    display: inline-block;
    padding: 12px 36px;
    background: linear-gradient(135deg, #4f8bdd, #3a6fd8);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(79, 139, 221, 0.35);
}
.uni-modal-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 139, 221, 0.45);
}
.uni-modal-btn-primary:active {
    transform: translateY(0);
}

/* 红色渐变按钮（用于确认删除等危险操作） */
.uni-modal-btn-danger {
    display: inline-block;
    padding: 12px 36px;
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(245, 101, 101, 0.35);
}
.uni-modal-btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 101, 101, 0.45);
}
.uni-modal-btn-danger:active {
    transform: translateY(0);
}

/* 灰色取消按钮 */
.uni-modal-btn-cancel {
    display: inline-block;
    padding: 12px 28px;
    background: #f1f5f9;
    color: #64748b;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.uni-modal-btn-cancel:hover {
    background: #e2e8f0;
}

/* 弹窗正文左对齐模式 */
.uni-modal-card.text-left {
    text-align: left;
}

/* 弹窗无图标模式 */
.uni-modal-card.no-icon .uni-modal-title {
    margin-top: 0;
}

/* 响应式 */
@media (max-width: 480px) {
    .uni-modal-card {
        padding: 32px 24px 24px;
    }
    .uni-modal-icon {
        font-size: 40px;
    }
    .uni-modal-title {
        font-size: 16px;
    }
    .uni-modal-desc {
        font-size: 13px;
    }
    .uni-modal-btn-primary,
    .uni-modal-btn-danger,
    .uni-modal-btn-cancel {
        padding: 10px 24px;
        font-size: 14px;
    }
}

/* ==================== 统一 Toast 通知 ==================== */
.uni-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-120%);
    z-index: 10000;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
}
.uni-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.uni-toast.success {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: #fff;
}
.uni-toast.error {
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: #fff;
}
.uni-toast.warning {
    background: linear-gradient(135deg, #f6ad55, #ed8936);
    color: #fff;
}
.uni-toast.info {
    background: linear-gradient(135deg, #4f8bdd, #3a6fd8);
    color: #fff;
}

/* ==================== 登录弹窗（企查查风格） ==================== */
.login-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    padding: 20px;
}
.login-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.login-modal {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    width: 860px;
    max-width: 100%;
    display: flex;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25), 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(24px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.34, 1.3, 0.64, 1);
    position: relative;
}
.login-modal-overlay.active .login-modal {
    transform: translateY(0) scale(1);
}

/* 左侧品牌区 */
.login-modal-left {
    width: 38%;
    background: linear-gradient(160deg, #1a365d 0%, #234e82 60%, #1a365d 100%);
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 480px;
    position: relative;
    overflow: hidden;
}
.login-modal-left::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
}
.login-modal-left::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}
.login-modal-brand {
    position: relative;
    z-index: 1;
}
.login-modal-brand-logo {
    font-size: 36px;
    margin-bottom: 12px;
}
.login-modal-brand-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: 1px;
}
.login-modal-brand-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
}
.login-modal-features {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    margin: 20px 0;
}
.login-modal-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
}
.login-modal-feature-icon {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.login-modal-footer {
    position: relative;
    z-index: 1;
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    text-align: center;
}

/* 右侧表单区 */
.login-modal-right {
    flex: 1;
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    position: relative;
}
.login-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.login-modal-close:hover {
    background: #e2e8f0;
    color: #475569;
}
.login-modal-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 28px;
}
.login-modal-tab {
    padding: 8px 0;
    margin-right: 32px;
    font-size: 16px;
    font-weight: 600;
    color: #94a3b8;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}
.login-modal-tab.active {
    color: #1a365d;
    border-bottom-color: #1a365d;
}
.login-modal-tab:hover:not(.active) {
    color: #64748b;
}
.login-form-pane { display: none; }
.login-form-pane.active { display: block; }

/* 输入框 */
.login-input-group {
    position: relative;
    margin-bottom: 16px;
}
.login-input-group .login-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
}
.login-input-group .login-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}
.login-input-group .login-input::placeholder { color: #cbd5e1; }
.login-input-group .login-input:focus {
    border-color: #1a365d;
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.08);
}
.login-input-group.code-input {
    display: flex;
    gap: 10px;
}
.login-input-group.code-input .login-input {
    flex: 1;
}
.login-input-group.code-input .login-input-code-btn {
    padding: 0 16px;
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    color: #1a365d;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    flex-shrink: 0;
}
.login-input-group.code-input .login-input-code-btn:hover {
    background: #e2e8f0;
}
.login-input-group.code-input .login-input-code-btn:disabled {
    color: #94a3b8;
    cursor: not-allowed;
}

/* 记住+忘记 */
.login-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.login-form-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
}
.login-form-options input[type="checkbox"] {
    accent-color: #1a365d;
    width: 15px;
    height: 15px;
}
.login-form-options .forgot-link {
    font-size: 13px;
    color: #1a365d;
    text-decoration: none;
    font-weight: 500;
}
.login-form-options .forgot-link:hover { text-decoration: underline; }

/* 登录按钮 */
.login-btn-submit {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #1a365d, #2c5282);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.3);
    letter-spacing: 1px;
}
.login-btn-submit:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(26, 54, 93, 0.35);
}
.login-btn-submit:active { transform: translateY(0); }
.login-btn-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 第三方登录分割线 */
.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 16px;
    color: #cbd5e1;
    font-size: 12px;
}
.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* 其他登录方式 */
.login-third-party {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.login-third-party-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.login-third-party-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* 注册提示 */
.login-form-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}
.login-form-footer a {
    color: #1a365d;
    font-weight: 600;
    text-decoration: none;
}
.login-form-footer a:hover { text-decoration: underline; }

/* 错误提示 */
.login-error-msg {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 13px;
    margin-bottom: 14px;
    display: none;
}
.login-error-msg.show { display: block; }

/* 成功提示（登录后短暂显示） */
.login-success-msg {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 13px;
    margin-bottom: 14px;
    display: none;
}
.login-success-msg.show { display: block; }

/* 响应式：小屏幕时隐藏左侧 */
@media (max-width: 640px) {
    .login-modal-left { display: none; }
    .login-modal { width: 100%; border-radius: 12px; }
    .login-modal-right { padding: 36px 24px 28px; }
    .login-modal-tab { font-size: 15px; margin-right: 24px; }
}

/* 滑入动画 */
@keyframes loginSlideIn {
    from { transform: translateY(24px) scale(0.97); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}
.login-modal-overlay.active .login-modal {
    animation: loginSlideIn 0.35s cubic-bezier(0.34, 1.3, 0.64, 1);
}