* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background: #f5f7fa;
    color: #333;
}

/* 登录页面 */
.login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    position: relative;
}

.login-box h1 {
    text-align: center;
    color: #667eea;
    margin-bottom: 10px;
}

.login-box .subtitle {
    text-align: center;
    color: #999;
    margin-bottom: 30px;
    font-size: 14px;
}

/* 微信二维码图片：确保为真实 img 标签，便于微信长按识别 */
.wechat-qr-code,
#wechatRegisterQrCode {
    display: block;
    max-width: 220px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 8px;
    background: #ffffff;
    -webkit-touch-callout: default;
    -webkit-user-select: none;
    user-select: none;
}

/* 手机端登录/注册不再显示二维码图形，直接显示跳转链接 */
@media (max-width: 768px) {
    #wechatQrContainer .desktop-qr-code,
    #wechatQrContainer img,
    #wechatRegisterQrCode,
    .wechat-qr-container .desktop-login-qr,
    .wechat-qr-container img#wechatQrCode {
        display: none !important;
    }
    #wechatQrContainer .mobile-register-link,
    .wechat-qr-container .mobile-login-link {
        display: block !important;
    }
}

@media (min-width: 769px) {
    #wechatQrContainer .mobile-register-link,
    .wechat-qr-container .mobile-login-link {
        display: none !important;
    }
    #wechatQrContainer .desktop-qr-code,
    .wechat-qr-container .desktop-login-qr {
        display: block;
    }
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.login-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #999;
}

.login-footer a {
    color: #667eea;
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

/* 导航栏 */
.navbar {
    background: white;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.nav-brand img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-link {
    padding: 10px 20px;
    color: #666;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    background: #f0f0ff;
    color: #667eea;
}

/* 下拉菜单样式 */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 下拉菜单 - 使用 opacity 和 visibility 实现延迟隐藏 */
.nav-dropdown .dropdown-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px 0;
    z-index: 1001;
    margin-top: 5px;
    border: 1px solid #e0e0e0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

/* 鼠标在菜单上时也保持显示 */
.nav-dropdown .dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown .dropdown-item {
    display: block;
    padding: 10px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.nav-dropdown .dropdown-item:hover {
    background: #f0f0ff;
    color: #667eea;
}

.nav-dropdown .dropdown-item[data-page] {
    cursor: pointer;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

/* 主容器 */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.content-page h2 {
    margin-bottom: 20px;
    color: #333;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-value {
    font-size: 36px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
}

.stat-label {
    color: #999;
    font-size: 14px;
}

/* Dashboard 网格 */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.dashboard-grid .quick-access-card,
.dashboard-grid .homepage-search-card {
    grid-column: 1 / -1;
}

.dashboard-grid .dashboard-left-column {
    grid-column: 1;
}

.dashboard-grid .dashboard-right-column {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 首页搜索栏 */
.homepage-search-card {
    grid-column: 1 / -1;
}

.homepage-search-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.homepage-search-header h3 {
    margin: 0;
    white-space: nowrap;
    font-size: 20px;
}

.homepage-search-input {
    flex: 1;
    min-width: 220px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.homepage-search-input:focus {
    border-color: #1976d2;
}

.homepage-search-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.homepage-search-actions .btn {
    flex: 1;
    min-width: 140px;
    white-space: nowrap;
}

.dashboard-grid .world-map-card {
    grid-column: 1 / -1;
}

.world-map-card #industryNewsMap {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    background: #a5c9e8;
    border: 1px solid #bbdefb;
}

.industry-news-map-label-icon {
    background: transparent !important;
    border: none !important;
}

.industry-news-map-label {
    width: 200px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #1976d2;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    pointer-events: auto;
    user-select: none;
    transition: box-shadow 0.2s, transform 0.2s;
}

.industry-news-map-label:hover {
    box-shadow: 0 4px 14px rgba(25, 118, 210, 0.3);
    transform: translateY(-1px);
}

.industry-news-map-label .label-title {
    font-weight: 600;
    color: #1976d2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    max-height: 2.8em;
}

.industry-news-map-label .label-meta {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 行业动态地图详情弹窗中的表格样式 */
.industry-news-detail-modal table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 14px;
}

.industry-news-detail-modal th,
.industry-news-detail-modal td {
    border: 1px solid #d0d0d0;
    padding: 8px 12px;
    text-align: left;
    vertical-align: top;
}

.industry-news-detail-modal th {
    background: #f5f5f5;
    font-weight: 600;
}

.industry-news-detail-modal tr:nth-child(even) {
    background: #fafafa;
}

/* 图片库网格（首页最新图片资料展示 4 条） */
.latest-industry-news-card .section-more-link {
    margin-left: 12px;
    font-size: 14px;
    font-weight: 400;
    color: #1890ff;
    text-decoration: none;
}

.latest-industry-news-card .section-more-link:hover {
    text-decoration: underline;
}

.latest-industry-news-card .industry-news-thumbnail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.image-library-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.image-library-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #f5f5f5;
}

.image-library-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.2s;
}

.image-library-item:hover img {
    transform: scale(1.05);
}

.image-library-item .img-name {
    padding: 8px;
    background: #f5f5f5;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    word-break: break-all;
}

.latest-industry-news-card .image-library-item .img-name {
    font-size: 15px;
}

.image-library-item .img-date {
    padding: 0 8px 8px;
    background: #f5f5f5;
    color: #999;
    font-size: 12px;
}

.image-library-text-item {
    grid-column: 1 / -1;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.image-library-text-item:hover .image-library-text-title {
    color: #007bff;
}

.image-library-text-title {
    color: #333;
    font-size: 15px;
    flex: 1;
    word-break: break-all;
}

.image-library-text-date {
    color: #999;
    font-size: 13px;
    white-space: nowrap;
}

.image-library-more {
    grid-column: 1 / -1;
    text-align: right;
    padding-top: 10px;
}

.image-library-more a {
    color: #007bff;
    font-size: 14px;
    text-decoration: none;
}

.image-library-more a:hover {
    text-decoration: underline;
}

/* 首页更多图片资料列表（次新的标题 + 日期） */
.latest-industry-news-card .industry-news-text-list {
    display: flex;
    flex-direction: column;
}

.latest-industry-news-card .image-library-text-item {
    grid-column: auto;
    padding: 9px 0;
}

.latest-industry-news-card .image-library-text-title {
    font-size: 15px;
}

.latest-industry-news-card .image-library-text-date {
    font-size: 12px;
}

.latest-industry-news-card .image-library-text-locked {
    cursor: not-allowed;
    opacity: 0.75;
}

.latest-industry-news-card .image-library-text-locked .image-library-text-title {
    color: #868e96;
}

/* 文件资料列表 */
.pdf-library-list {
    display: flex;
    flex-direction: column;
}

.pdf-library-text-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.pdf-library-text-item:hover .pdf-library-text-title {
    color: #007bff;
}

.pdf-library-text-title {
    color: #333;
    font-size: 15px;
    flex: 1;
    word-break: break-all;
}

.pdf-library-text-date {
    color: #999;
    font-size: 13px;
    white-space: nowrap;
}

.pdf-library-more {
    text-align: right;
    padding-top: 10px;
}

.pdf-library-more a {
    color: #007bff;
    font-size: 14px;
    text-decoration: none;
}

.pdf-library-more a:hover {
    text-decoration: underline;
}

/* 月报周报列表 */
.monthly-weekly-list {
    display: flex;
    flex-direction: column;
}

.monthly-weekly-text-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.monthly-weekly-text-item:hover .monthly-weekly-name-row {
    color: #007bff;
}

.monthly-weekly-name-row {
    color: #333;
    font-size: 15px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    width: 100%;
}

.monthly-weekly-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 13px;
}

.monthly-weekly-type {
    color: #007bff;
    text-decoration: none;
    white-space: nowrap;
}

.monthly-weekly-type:hover {
    text-decoration: underline;
}

.monthly-weekly-date {
    color: #999;
    white-space: nowrap;
}

.annual-report-date {
    text-align: right;
}

/* 首页最新年报：标题允许折行展示 */
.latest-annual-card .annual-report-item {
    padding: 10px 0;
    margin-bottom: 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #eee;
    border-radius: 0;
}

.latest-annual-card .annual-report-item:last-child {
    margin-bottom: 0;
    border-bottom: 1px solid #eee;
}

.latest-annual-card .expert-card-header {
    margin-bottom: 0;
    gap: 10px;
}

.latest-annual-card .expert-name {
    flex: 1;
    min-width: 0;
    font-weight: normal;
    word-break: break-all;
}

.latest-annual-card .more-annual-reports {
    text-align: right;
    margin-top: 0;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.latest-annual-card .more-annual-reports a {
    color: #1890ff;
    font-size: 14px;
    text-decoration: none;
}

.latest-annual-card .more-annual-reports a:hover {
    text-decoration: underline;
}

/* 首页最新海外车款列表 */
.haiwai-list {
    display: flex;
    flex-direction: column;
}

.haiwai-text-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.haiwai-text-item:hover .haiwai-text-title {
    color: #007bff;
}

.haiwai-text-title {
    color: #333;
    font-size: 15px;
    line-height: 1.4;
    word-break: break-all;
}

.haiwai-text-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    font-size: 13px;
    color: #999;
}

.haiwai-more {
    text-align: right;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.haiwai-more a {
    color: #1890ff;
    font-size: 14px;
    text-decoration: none;
}

.haiwai-more a:hover {
    text-decoration: underline;
}

.latest-annual-card .annual-report-date {
    flex-shrink: 0;
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.card h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

.card h3.section-title-lg {
    font-size: 24px;
}

/* 筛选栏 */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    min-width: 200px;
}

/* 数据表格 */
.data-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.data-table-item {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    align-items: center;
}

.data-table-item:last-child {
    border-bottom: none;
}

.data-table-header {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
}

/* 状态标签 */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background: #fff3e0;
    color: #ff9800;
}

.status-active,
.status-verified {
    background: #e8f5e9;
    color: #4caf50;
}

.status-rejected {
    background: #ffebee;
    color: #f44336;
}

.status-completed {
    background: #e3f2fd;
    color: #2196f3;
}

.status-featured {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

/* 模态框（仅针对非 Bootstrap 的自定义弹窗，避免覆盖 Bootstrap 5 的 modal 样式） */
.modal:not(.fade) {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1002;
    justify-content: center;
    align-items: center;
}

.modal.show:not(.fade) {
    display: flex;
}

.modal:not(.fade) .modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal:not(.fade) .modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.modal:not(.fade) .modal-close:hover {
    color: #333;
}

/* 首页搜索结果弹窗 */
.homepage-search-results {
    padding: 10px 0;
}

.search-result-section {
    margin-bottom: 25px;
}

.search-result-section h3 {
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    color: #333;
    font-size: 17px;
}

.search-result-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-result-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-result-list li:last-child {
    border-bottom: none;
}

.search-result-list li a {
    color: #1976d2;
    text-decoration: none;
    font-size: 15px;
    flex: 1;
    min-width: 200px;
    line-height: 1.5;
}

.search-result-list li a:hover {
    text-decoration: underline;
}

.search-result-date {
    color: #999;
    font-size: 13px;
    white-space: nowrap;
}

.search-result-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}

.search-result-empty {
    color: #999;
    padding: 15px;
    text-align: center;
    margin: 0;
}

.search-result-more {
    text-align: right;
    margin-top: 10px;
}

.search-result-more a {
    color: #1976d2;
    text-decoration: none;
    font-size: 14px;
}

.search-result-more a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .search-result-list li a {
        min-width: 100%;
    }
    .search-result-date,
    .search-result-tag {
        font-size: 12px;
    }
}

/* 页面头部 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* 专家卡片列表 */
.expert-card {
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #fafafa;
}

.expert-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.expert-name {
    font-size: 16px;
    font-weight: 600;
}

.expert-info {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

/* 操作按钮组 */
.action-buttons {
    display: flex;
    gap: 8px;
}

.action-buttons .btn {
    padding: 5px 10px;
    font-size: 12px;
}

/* 响应式 */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-grid .dashboard-left-column,
    .dashboard-grid .dashboard-right-column {
        grid-column: 1;
    }

    .latest-industry-news-card .industry-news-thumbnail-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .navbar {
        padding: 0 15px;
    }
    
    .nav-menu {
        display: none;
    }
    
    /* 手机端隐藏行业动态地图，屏幕太小不适合查看 */
    .world-map-card {
        display: none;
    }

    /* 手机端不显示最新文件资料部分 */
    .latest-pdfs-card {
        display: none;
    }

    /* 手机端不显示最新海外车款部分 */
    .latest-haiwai-card {
        display: none;
    }
}

/* 折叠屏等较宽手机：行业动态一行显示两条 */
@media (min-width: 480px) and (max-width: 768px) {
    .latest-industry-news-card .industry-news-thumbnail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
