/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3c72;
    --secondary-color: #2a5298;
    --accent-color: #667eea;
    --text-color: #333;
    --light-text: #666;
    --border-color: #e0e0e0;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航栏 */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 20px 0;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-icon {
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.logo-text h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.logo-text p {
    font-size: 12px;
    opacity: 0.8;
    letter-spacing: 1px;
}

/* 导航栏 */
.nav {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-menu {
    display: flex;
    list-style: none !important;
    gap: 0;
    padding-left: 0;
    margin-left: 0;
}

.nav-menu > .nav-item {
    position: relative;
    display: block;
    padding: 15px 25px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s;
    list-style: none;
}

.nav-menu > .nav-item::marker {
    display: none;
    content: none;
}

.nav-menu > .nav-item:hover,
.nav-menu > .nav-item.active {
    color: var(--primary-color);
    background: rgba(30, 60, 114, 0.05);
}

/* 导航栏右侧按钮容器 */
.nav-btns {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

/* 导航栏胶囊按钮 */
.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 24px;
    border: 1.5px solid #d0d0d0;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.3s;
    white-space: nowrap;
}

.nav-btn img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.nav-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(30, 60, 114, 0.06);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    border-radius: 0 0 5px 5px;
    z-index: 10;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
}

.dropdown-item:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

/* 全局隐藏移动端菜单按钮和遮罩（已改用内联菜单） */
.mobile-menu-btn,
.mobile-overlay {
    display: none !important;
}

/* 右侧固定悬浮按钮 */
.floating-action-buttons {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: fit-content;
}

.fab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 28px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

.fab .fab-text {
    max-width: 0;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab.active .fab-text {
    max-width: 120px;
    opacity: 1;
    margin-right: 2px;
}

.fab.active {
    padding-left: 18px;
    padding-right: 18px;
}

/* 移动端：hover 也独立控制 */
@media (max-width: 768px) {
    .fab .fab-text {
        max-width: 0;
        opacity: 0;
    }
    .fab.active .fab-text {
        max-width: 90px;
        opacity: 1;
    }
}

.fab-oa {
    background: #fff;
    color: #1e3c72;
}

.fab-oa:hover {
    box-shadow: 0 6px 28px rgba(30, 60, 114, 0.45);
    transform: translateX(-4px);
}

.fab-supplier {
    background: #fff;
    color: #0f9b0f;
}

.fab-supplier:hover {
    background: #0f9b0f;
    color: #fff;
    box-shadow: 0 6px 28px rgba(15, 155, 15, 0.4);
    transform: translateX(-4px);
}

.fab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}

.fab-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 轮播图区域 */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 550px;
    overflow: hidden;
    background: #1a1a2e;
}

.hero-slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.8s ease;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

/* 红旗飘飘幻灯片：完整显示不裁剪 */
.slide-flag {
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-color: #1a1a2e !important;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.05) 0%, rgba(15, 52, 96, 0.03) 100%);
}

.slide.active {
    opacity: 1;
}

.hero-content {
    color: var(--white);
    width: 320px;
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    padding: 28px 32px;
    background: transparent;
    border: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.6);
}

.hero-content h2 {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 1px;
    line-height: 1.3;
    animation: slideInUp 0.8s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 28px;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.6;
    animation: slideInUp 0.8s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    animation: slideInUp 0.8s ease 0.4s backwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--white);
}

/* 轮播控制按钮 */
.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    align-items: center;
    z-index: 10;
}

.control-btn {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--white);
}

.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.dot.active {
    background: var(--white);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* 数据统计区域 */
.stats-section {
    padding: 60px 0;
    background: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: var(--white);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.stat-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* 快速入口区域 */
.quick-access-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-title p {
    font-size: 16px;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.quick-access-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.quick-access-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.qa-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.quick-access-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.quick-access-card p {
    color: var(--light-text);
    font-size: 14px;
}

/* 业务系统板块 */
.systems-section {
    padding: 80px 0;
    background: var(--bg-color);
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.system-card {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-height: 280px;
    color: white;
}

.system-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.system-card-supplier {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%) !important;
}

.system-icon {
    width: 120px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    flex-shrink: 0;
}

.system-content {
    padding: 30px;
    flex: 1;
}

.system-content h3 {
    font-size: 24px;
    color: white;
    margin-bottom: 8px;
    font-weight: 600;
}

.system-content > p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    margin-bottom: 20px;
}

.system-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.system-features li {
    font-size: 13px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.system-btn {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.system-card:hover .system-btn {
    background: rgba(255, 255, 255, 0.35);
}

/* 供应商注册区域 */
.register-section {
    padding: 80px 0;
    background: var(--white);
}

.register-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.register-info {
    padding: 30px;
}

.register-info h3 {
    font-size: 28px;
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.register-info > p {
    color: var(--light-text);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.register-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.register-benefits li {
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.register-contact {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
}

.register-contact h4 {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 15px;
}

.register-contact p {
    font-size: 14px;
    color: var(--light-text);
    margin: 8px 0;
}

.register-form-container {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.form-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    padding: 15px 0 10px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.form-section-title:first-of-type {
    padding-top: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.date-range {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.date-range input[type="date"] {
    flex: 1;
    min-width: 120px;
}

.date-range span {
    color: var(--light-text);
}

/* 单选按钮组样式 */
.radio-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.radio-item input[type="radio"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.radio-item span {
    color: var(--text-color);
}

/* 只读输入框样式 */
.form-group input[readonly] {
    background-color: var(--bg-color);
    color: var(--light-text);
    cursor: not-allowed;
}

.form-group input[readonly]:focus {
    border-color: var(--border-color);
}

/* 三列表单布局 */
.form-row.three-columns {
    grid-template-columns: 1fr 1fr 1fr;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.file-upload {
    border: 2px dashed var(--primary-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--bg-color);
}

.file-upload:hover {
    background: #f0f4ff;
    border-color: var(--secondary-color);
}

.file-upload .upload-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.file-upload p {
    margin: 5px 0;
    color: var(--text-color);
    font-size: 14px;
}

.file-upload .upload-hint {
    font-size: 12px !important;
    color: var(--light-text) !important;
}

.file-list {
    margin-top: 15px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: var(--bg-color);
    border-radius: 6px;
    margin-bottom: 8px;
}

.file-item-name {
    font-size: 13px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-item-remove {
    color: #ef4444;
    cursor: pointer;
    font-size: 18px;
}

.form-agreement {
    margin: 20px 0;
    padding: 15px;
    background: var(--bg-color);
    border-radius: 6px;
}

.form-agreement .checkbox-label {
    font-size: 13px;
    color: var(--light-text);
}

.form-agreement a {
    color: var(--primary-color);
    text-decoration: none;
}

.form-agreement a:hover {
    text-decoration: underline;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 15px;
    min-width: 140px;
}

.btn-outline {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* 弹窗基础样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

/* 注册成功弹窗 */
.modal-success {
    text-align: center;
    padding: 40px;
    max-width: 500px;
}

.modal-success .success-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.modal-success h2 {
    font-size: 28px;
    color: #10b981;
    margin-bottom: 15px;
}

.modal-success > p {
    color: var(--light-text);
    margin-bottom: 10px;
}

.success-notify {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
    background: var(--bg-color);
    padding: 15px 20px;
    border-radius: 8px;
}

.success-notify li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-color);
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

/* 最新公告区域 */
.news-section {
    padding: 60px 0;
    background: var(--white);
}

.news-grid {
    display: block;
}

/* 横向统计卡片（位于最新公告下方） */
.news-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s;
}

.news-item:hover {
    background: var(--bg-color);
}

.news-tag {
    padding: 5px 15px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 3px;
    font-size: 12px;
    margin-right: 15px;
    flex-shrink: 0;
}

.news-tag.tag-result {
    background: var(--success);
}

.news-tag.tag-correction {
    background: var(--warning);
}

.news-item a {
    flex: 1;
    color: var(--text-color);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-item a:hover {
    color: var(--primary-color);
}

.news-date {
    color: var(--light-text);
    font-size: 14px;
    margin-left: 15px;
}

.news-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 横向统计卡片（位于最新公告下方） */
.news-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.stat-box h3 {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
}

/* 政策动态区域 */
.policies-section {
    padding: 60px 0;
}

/* 政策法规列表（从API加载，支持自动滚动+手动滚动） */
.policies-list {
    background: var(--white);
    border-radius: 10px;
    padding: 0;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow-y: auto;
    max-height: 265px; /* 约显示5条 */
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.policies-list::-webkit-scrollbar {
    width: 6px;
}
.policies-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}
.policies-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
    cursor: pointer;
}
.policies-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.policies-scroll-track {
    overflow: hidden;
}

.policies-scroll-content {
    animation: policyScroll linear infinite;
}

.policies-list:hover .policies-scroll-content {
    animation-play-state: paused;
}

@keyframes policyScroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.policy-list-item {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
    gap: 15px;
}

.policy-list-item:last-child {
    border-bottom: none;
}

.policy-list-item:hover {
    background: var(--bg-color);
}

.policy-list-item:hover .policy-list-title {
    color: var(--primary-color);
}

.policy-list-category {
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
    min-width: 60px;
    text-align: center;
}

.cat-law { background: #fef2f2; color: #dc2626; }
.cat-regulation { background: #fff7ed; color: #ea580c; }
.cat-rule { background: #eff6ff; color: #2563eb; }
.cat-local { background: #f0fdf4; color: #16a34a; }
.cat-notice { background: #faf5ff; color: #9333ea; }
.cat-other { background: #f3f4f6; color: #4b5563; }

.policy-list-title {
    flex: 1;
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s;
}

.policy-list-date {
    font-size: 13px;
    color: var(--light-text);
    flex-shrink: 0;
}

/* 官方网站快捷入口 */
.official-links {
    margin-top: 30px;
}

.official-links-title {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.official-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.official-link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    padding: 18px 16px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.official-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.official-link-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.official-link-icon .guohui-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

.official-link-text h4 {
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--primary-color);
    white-space: nowrap;
}

.official-link-text p {
    font-size: 13px;
    color: var(--light-text);
}

/* 底部区域 */
.footer {
    background: linear-gradient(135deg, #1a3a5c 0%, #0d2137 100%);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

/* 4 列 footer 布局（tenders.html 等子页面使用） */
.footer-content.columns-4 {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-section h3,
.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.footer-section h3 {
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-section ul li a::before {
    content: '›';
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-section ul li a:hover::before {
    color: #fff;
    transform: translateX(3px);
}

/* 左侧主区域 */
.footer-section-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.footer-brand h3 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.75;
    max-width: 420px;
    margin-top: -5px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 5px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.88;
}

.contact-icon {
    font-size: 16px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: fit-content;
}

.map-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.map-icon {
    font-size: 16px;
}

/* 右侧快速入口 */
.footer-section-links h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
    opacity: 0.95;
}

.footer-quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.quick-link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    text-decoration: none;
    color: var(--white);
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.quick-link-card:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.2);
}

.quick-link-icon {
    font-size: 22px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    flex-shrink: 0;
}

.quick-link-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.quick-link-title {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.95;
}

.quick-link-desc {
    font-size: 12px;
    opacity: 0.6;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    opacity: 0.6;
    font-size: 13px;
    line-height: 1.8;
}

.beian-line a {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.beian-line a:hover {
    color: #ffffff;
}

/* ========================================
   移动端响应式设计 - 完整优化
   ======================================== */

/* 移动端导航菜单 */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .policies-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .policies-content {
        grid-template-columns: 1fr;
    }

    .policy-scroll {
        max-height: 300px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-content.columns-4 {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-quick-links {
        grid-template-columns: 1fr;
    }

    .official-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 平板适配 */
    .hero-section {
        height: 70vh;
        min-height: 500px;
    }

    .hero-content {
        width: 320px;
        right: 5%;
        padding: 25px 30px;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    /* 头部适配 */
    .header {
        padding: 15px 0;
    }

    .header-top {
        flex-direction: row;
        gap: 10px;
    }

    .logo-icon {
        width: 45px;
        height: 45px;
        font-size: 28px;
    }

    .logo-text h1 {
        font-size: 16px;
    }

    .logo-text p {
        font-size: 9px;
        display: none;
    }

    /* 移动端导航 - 汉堡菜单 → 内联菜单 */
    .nav {
        position: sticky;
        top: 0;
    }

    .nav .container {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        padding: 6px 8px;
        gap: 0;
    }

    /* 全局隐藏汉堡按钮和遮罩 */
    .mobile-menu-btn,
    .mobile-overlay {
        display: none !important;
    }

    .nav-menu {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 2px;
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        flex-direction: row;
        padding: 0;
        box-shadow: none;
        z-index: auto;
        overflow-y: visible;
    }

    .nav-menu.active {
        right: auto;
    }

    .nav-menu > .nav-item {
        padding: 7px 10px;
        font-size: 13px;
        border-bottom: none;
        border-radius: 6px;
        white-space: nowrap;
        display: inline-block;
    }

    .nav-menu > .nav-item:hover,
    .nav-menu > .nav-item.active {
        background: rgba(30, 60, 114, 0.08);
        color: var(--primary-color);
    }

    /* nav-btns 内联 */
    .nav-btns {
        margin-left: 4px;
        gap: 5px;
    }

    .nav-btn {
        padding: 5px 12px;
        font-size: 12px;
        border-radius: 18px;
        white-space: nowrap;
    }

    .nav-btn img {
        width: 18px;
        height: 18px;
    }

    /* 下拉菜单：改成点击弹出 */
    .dropdown {
        position: relative;
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0;
        visibility: hidden;
        display: block;
        background: var(--white);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
        min-width: 150px;
        border-radius: 8px;
        z-index: 1001;
    }

    .dropdown-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .dropdown-item {
        padding: 10px 16px;
        font-size: 13px;
        white-space: nowrap;
    }

    .dropdown::after {
        content: ' ▾';
        font-size: 10px;
    }

    .dropdown.active::after {
        content: ' ▴';
        font-size: 10px;
    }

    /* 轮播图移动端 */
    .hero-section {
        height: 60vh;
        min-height: 400px;
    }

    .hero-content {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
        padding: 25px;
        top: 50%;
        transform: translateY(-50%);
    }

    .hero-content h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .hero-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }

    .slider-controls {
        bottom: 20px;
    }

    .control-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    /* 统计区域移动端 */
    .stats-section {
        padding: 40px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-card {
        padding: 20px 15px;
    }

    .stat-icon {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 12px;
    }

    /* 快速入口移动端 */
    .quick-access-section {
        padding: 40px 0;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .section-title p {
        font-size: 12px;
    }

    .quick-access-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .quick-access-card {
        padding: 20px;
        display: flex;
        align-items: center;
        gap: 15px;
        text-align: left;
    }

    .qa-icon {
        font-size: 36px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .quick-access-card h3 {
        font-size: 16px;
        margin-bottom: 5px;
    }

    .quick-access-card p {
        font-size: 12px;
    }

    /* 业务系统移动端 */
    .systems-section {
        padding: 40px 0;
    }

    .systems-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .system-card {
        flex-direction: column;
        min-height: auto;
    }

    .system-icon {
        width: 100%;
        padding: 25px;
        font-size: 40px;
    }

    .system-content {
        padding: 20px;
    }

    .system-content h3 {
        font-size: 18px;
    }

    .system-features {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .system-features li {
        font-size: 12px;
    }

    /* 新闻公告移动端 */
    .news-section {
        padding: 40px 0;
    }

    .news-item {
        padding: 12px;
    }

    .news-tag {
        padding: 3px 10px;
        font-size: 11px;
        margin-right: 10px;
    }

    .news-item a {
        font-size: 13px;
    }

    .news-date {
        font-size: 12px;
        margin-left: 10px;
        flex-shrink: 0;
    }

    .stat-box {
        padding: 20px;
    }

    .stat-value {
        font-size: 28px;
    }

    /* 政策动态移动端 */
    .policies-section {
        padding: 40px 0;
    }

    .policies-grid {
        grid-template-columns: 1fr;
    }

    .policy-card {
        padding: 20px;
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .policy-icon {
        font-size: 36px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .policy-card h4 {
        font-size: 15px;
    }

    .policy-card p {
        font-size: 12px;
        display: none;
    }

    .policies-sidebar {
        padding: 20px;
    }

    .policy-scroll {
        max-height: 250px;
    }

    /* 横向统计卡片移动端 */
    .news-stats-row {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 20px;
    }

    /* 政策法规列表移动端 */
    .policy-list-item {
        padding: 12px 15px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .policy-list-category {
        font-size: 11px;
        padding: 3px 8px;
    }

    .policy-list-title {
        font-size: 14px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        width: 100%;
        order: 3;
        margin-left: 0;
    }

    .policy-list-date {
        font-size: 12px;
        margin-left: auto;
    }

    /* 官方网站入口移动端 */
    .official-links-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .official-link-card {
        padding: 15px 18px;
    }

    .official-link-icon {
        font-size: 28px;
    }

    .official-link-text h4 {
        font-size: 14px;
    }

    .official-link-text p {
        font-size: 12px;
    }

    /* 供应商注册区域响应式 */
    .register-section {
        padding: 40px 0;
    }

    .register-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .register-info {
        text-align: center;
        padding: 20px;
    }

    .register-info h3 {
        font-size: 22px;
    }

    .register-benefits {
        text-align: left;
    }

    .register-benefits li {
        font-size: 14px;
        padding: 8px 0;
    }

    .register-form-container {
        padding: 20px;
    }

    .form-section-title {
        font-size: 14px;
        padding: 12px 0 8px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 12px;
    }

    .form-row.three-columns {
        grid-template-columns: 1fr;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 14px;
    }

    .radio-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .date-range {
        flex-direction: column;
        align-items: stretch;
    }

    .date-range input[type="date"] {
        min-width: auto;
        width: 100%;
    }

    .file-upload {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
        gap: 12px;
    }

    .btn-lg {
        width: 100%;
        padding: 14px 24px;
    }

    .success-actions {
        flex-direction: column;
    }

    .success-actions .btn {
        width: 100%;
    }

    .modal-content {
        max-width: 95%;
        margin: 10px;
    }

    .modal-success {
        padding: 30px 20px;
    }

    .modal-success .success-icon {
        font-size: 48px;
    }

    .modal-success h2 {
        font-size: 22px;
    }

    /* 底部移动端 */
    .footer {
        padding: 40px 0 15px;
    }

    .footer-content,
    .footer-content.columns-4 {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-desc {
        max-width: 100%;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .footer-contact {
        align-items: center;
    }

    .contact-item {
        justify-content: center;
    }

    .map-link {
        margin: 10px auto 0;
    }

    .footer-quick-links {
        grid-template-columns: 1fr 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .quick-link-card {
        padding: 12px;
    }

    .footer-bottom {
        padding-top: 15px;
    }

    .footer-bottom p {
        font-size: 12px;
        padding: 0 10px;
    }
}

/* 悬浮按钮移动端适配 */
@media (max-width: 768px) {
    .floating-action-buttons {
        right: 12px;
        top: auto;
        bottom: 80px;
        transform: none;
    }

    .fab {
        padding: 10px 14px;
        border-radius: 24px;
        font-size: 12px;
    }

    .fab.active .fab-text {
        max-width: 90px;
        opacity: 1;
    }

    .fab-icon {
        font-size: 16px;
        width: 22px;
        height: 22px;
    }

    .fab:hover {
        transform: translateX(-2px);
    }
}

/* 小屏幕手机适配 */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .header {
        padding: 12px 0;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .logo-text h1 {
        font-size: 14px;
    }

    .hero-section {
        height: 55vh;
        min-height: 350px;
    }

    .hero-content {
        padding: 20px;
    }

    .hero-content h2 {
        font-size: 20px;
    }

    .hero-content p {
        font-size: 13px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 15px 10px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 11px;
    }

    .section-title h2 {
        font-size: 20px;
    }

    .quick-access-card {
        padding: 15px;
    }

    .qa-icon {
        font-size: 30px;
    }

    .quick-access-card h3 {
        font-size: 14px;
    }

    /* 表单进一步适配 */
    .form-group input,
    .form-group select {
        padding: 10px 12px;
        font-size: 14px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* 触摸友好的交互 */
@media (hover: none) and (pointer: coarse) {
    .nav-menu > .nav-item,
    .dropdown-item,
    .quick-access-card,
    .system-card,
    .policy-card,
    .news-item,
    .btn {
        min-height: 44px;
    }

    .control-btn,
    .dot {
        min-width: 44px;
        min-height: 44px;
    }
}

/* 平板横屏适配 */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .hero-section {
        height: 75vh;
    }

    .hero-content {
        width: 350px;
    }

    .nav-menu > .nav-item {
        padding: 12px 18px;
        font-size: 14px;
    }
}
/* ==================== 富文本编辑器样式 ==================== */
.rich-editor-wrapper {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s;
}
.rich-editor-wrapper:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.rich-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 10px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}
.rich-editor-toolbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    transition: all 0.15s;
}
.rich-editor-toolbar button:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}
.rich-editor-toolbar button.active {
    background: #dbeafe;
    border-color: #2563eb;
    color: #2563eb;
}
.rich-editor-toolbar .separator {
    width: 1px;
    height: 24px;
    background: #d1d5db;
    margin: 0 4px;
    align-self: center;
}
.rich-editor-toolbar select {
    height: 32px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 0 8px;
    font-size: 13px;
    color: #374151;
    background: #fff;
    cursor: pointer;
    outline: none;
}
.rich-editor-toolbar select:focus {
    border-color: #2563eb;
}
.rich-editor-content {
    min-height: 260px;
    max-height: 500px;
    padding: 14px 16px;
    overflow-y: auto;
    background: #fff;
    font-size: 14px;
    line-height: 1.8;
    color: #1f2937;
    outline: none;
}
.rich-editor-content:empty::before {
    content: attr(data-placeholder);
    color: #9ca3af;
    pointer-events: none;
}
.rich-editor-content p {
    margin: 0 0 8px;
}
.rich-editor-content h1, .rich-editor-content h2, .rich-editor-content h3 {
    margin: 12px 0 6px;
}
.rich-editor-content ul, .rich-editor-content ol {
    padding-left: 24px;
    margin: 6px 0;
}
.rich-editor-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 8px 0;
}
.rich-editor-content th, .rich-editor-content td {
    border: 1px solid #d1d5db;
    padding: 6px 10px;
    text-align: left;
}
.rich-editor-content th {
    background: #f3f4f6;
    font-weight: 600;
}
.rich-editor-content img {
    max-width: 100%;
    height: auto;
}
