/* ============================================
   工业风 + 清新淡雅风格 CSS - 基础样式
   低饱和、留白、灰白系
   ============================================ */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #7f8c8d;
    --accent-color: #95a5a6;
    --bg-color: #f8f9fa;
    --bg-light: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========== 导航栏 ========== */
.navbar {
    background-color: #2c3e50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.nav-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.logo:hover {
    color: #5dade2;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: #5dade2;
}

.nav-links a.active {
    color: #fff;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #5dade2;
}

/* ========== 主容器 ========== */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0rem;
    flex: 1;
}

/* ========== 轮播图 ========== */
.carousel-wrapper {
    width: 100%;
    margin-bottom: 1.5rem; /* 轮播与下方模块的标准间距，兼顾紧凑与可读性 */
    position: relative;
}

.carousel {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    position: relative;
    overflow: hidden;
}

.carousel-slide {
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    display: flex;
}

/* 轮播图指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator:hover {
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.carousel-indicator.active {
    background-color: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 1);
    transform: scale(1.3);
}

/* ========== 分类区域 ========== */
.section-title {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-align: center;
}

.category-list {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.category-item {
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.category-item:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.category-item.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 首页产品分类卡片中的标题样式（淡色，强调"产品相关"） */
.content-sidebar .section-title-tag {
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: left;
    color: var(--text-light);
    background-color: #f5f7fa;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
}

/* 首页 / 技术资料 左侧分类 + 右侧内容布局 */
.content-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 0;
}

.content-sidebar {
    background-color: var(--bg-light);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 1rem;
}

/* 分类卡片样式（用于首页的产品分类和技术资料分类） */
.category-sidebar-card {
    background-color: var(--bg-light);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    height: fit-content;
    margin-bottom: 1.5rem;
}

.category-sidebar-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

/* 首页右侧两个区块：产品 & 技术资料 */
.home-section {
    margin-bottom: 1.5rem; /* 各内容模块之间统一间距 */
}

.home-section-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.content-sidebar .category-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0;
    justify-content: flex-start;
}

.content-sidebar .category-item {
    width: 100%;
    text-align: left;
}

.content-main {
    width: 100%;
}

/* 首页技术资料模块整体样式 */
.tech-section {
    background-color: var(--bg-light);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 0.75rem 1.5rem; /* 上下缩小但保留适度留白 */
}

.tech-section .home-section-title {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    border-left: 3px solid var(--primary-color);
    padding-left: 0.75rem;
}

/* 首页产品模块整体样式，与技术资料模块协调 */
.product-section {
    background-color: var(--bg-light);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 0.75rem 1.5rem; /* 上下缩小但保留适度留白 */
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 0;
    align-items: flex-start;
}

.product-sidebar {
    border-right: 1px solid var(--border-color);
    padding-right: 1.25rem;
    margin-right: 1.25rem;
}

.product-main {
    width: 100%;
}

.product-section .home-section-title {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-left: 3px solid var(--primary-color);
    padding-left: 0.75rem;
}

/* 覆盖默认分类卡片样式，让其融入产品整体卡片 */
.product-section .category-sidebar-card {
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin-bottom: 0;
}

.product-section .category-sidebar-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.product-section .category-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-section .category-item {
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    border: 1px solid transparent;
    background-color: transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.product-section .category-item:hover {
    background-color: #f5f7fa;
    border-color: var(--border-color);
}

.product-section .category-item.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

@media (max-width: 767px) {
    .product-layout {
        grid-template-columns: 1fr;
    }

    .product-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        margin-right: 0;
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
    }
}

/* 首页技术资料列表（资讯样式） */
.tech-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.tech-list-item {
    display: block;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
}

.tech-list-item:last-child {
    border-bottom: none;
}

.tech-list-item:hover {
    background-color: #f5f7fa;
}

.tech-list-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
}

.tech-list-date {
    flex: 0 0 auto;
    font-size: 0.85rem;
    color: var(--text-light);
}

.tech-list-title {
    flex: 0 1 30%;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-color);
    overflow: hidden;
    text-overflow: ellipsis;
}

.tech-list-subtitle {
    flex: 1 1 auto;
    font-size: 0.9rem;
    color: var(--text-light);
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 767px) {
    .content-with-sidebar {
        grid-template-columns: 1fr;
    }

    .content-sidebar {
        order: 1;
    }

    .content-main {
        order: 2;
    }
}

/* ========== 九宫格 ========== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.grid.detail-mode {
    display: block;
}

.grid-item {
    background-color: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.grid-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.grid-item-image {
    width: 100%;
    height: 200px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.9rem;
    overflow: hidden;
    position: relative;
}

.grid-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-item-image:not(:has(img)) {
    background-color: #e0e0e0;
}

.grid-item-content {
    padding: 1.5rem;
}

.grid-item-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.grid-item-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.grid-item-price {
    margin-top: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.product-detail-html {
    margin-top: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-dark);
    width: 100%;
}

.product-detail-html img {
    max-width: 100%;
    height: auto;
    display: block;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: flex-start;
}

.product-detail-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--bg-light);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.product-detail-right {
    background-color: var(--bg-light);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    width: 100%;
}

.product-detail-basic .grid-item-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.product-detail-basic .grid-item-desc {
    -webkit-line-clamp: initial;
    display: block;
}

@media (max-width: 767px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
    }
}

/* ========== 面包屑导航 ========== */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 1rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb-separator {
    margin: 0 0.25rem;
    color: var(--text-light);
}

/* 当前层级高亮，呼应整体配色 */
#breadcrumb-current-product,
#breadcrumb-current-tech {
    color: var(--text-dark);
    font-weight: 500;
}

/* ========== 分页 ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.pagination button:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ========== 页脚 ========== */
.footer {
    background-color: #2c3e50;
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
    margin-top: 0;
    color: #ecf0f1;
    font-size: 0.9rem;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    text-align: left;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.footer-text {
    line-height: 1.8;
    color: #bdc3c7;
    margin: 0;
}

.footer-contact {
    line-height: 2;
    color: #bdc3c7;
}

.footer-contact p {
    margin: 0.5rem 0;
}

.footer-contact strong {
    color: #fff;
    font-weight: 500;
}

.footer-contact-link {
    color: #5dade2;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-contact-link:hover {
    color: #3498db;
    text-decoration: underline;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin: 0.75rem 0;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #5dade2;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-copyright {
    color: #95a5a6;
    margin: 0.5rem 0;
    font-size: 0.85rem;
}

.footer-copyright a {
    color: #95a5a6;
    text-decoration: none;
}

.footer-copyright a:hover {
    color: #5dade2;
    text-decoration: underline;
}

.footer-report {
    color: #7f8c8d;
    margin: 0.5rem 0;
    font-size: 0.8rem;
    line-height: 1.6;
}

.footer-report a {
    color: #7f8c8d;
    text-decoration: none;
}

.footer-report a:hover {
    color: #5dade2;
    text-decoration: underline;
}

/* 响应式设计 - 基础样式中的移动端优化由 style-mobile.css 处理 */

/* ========== 关于我们页面 ========== */
.about-content {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    background-color: var(--bg-light);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.about-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--primary-color);
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.about-subtitle {
    font-size: 1.3rem;
    color: var(--text-dark);
    font-weight: 500;
    margin: 0;
}

.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.about-text-section {
    display: flex;
    flex-direction: column;
}

.about-text-section:hover .section-heading {
    color: #3498db;
    border-bottom-color: #3498db;
}

.about-text-section:hover .about-text {
    color: #34495e;
}

.section-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    transition: color 0.3s, border-bottom-color 0.3s;
}

.about-text {
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 1rem;
    margin: 0;
    transition: color 0.3s;
}

.about-image-section {
    text-align: center;
}

.about-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-quality {
    margin-top: 3rem;
}

.quality-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.quality-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s, box-shadow 0.3s, border-left-color 0.3s;
    cursor: pointer;
}

.quality-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left-color: #3498db;
}

.quality-item:hover .quality-content h3 {
    color: #3498db;
}

.quality-item:hover .quality-content p {
    color: #34495e;
}

.quality-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    transition: background 0.3s, transform 0.3s;
}

.quality-item:hover .quality-number {
    background: linear-gradient(135deg, #3498db, #2980b9);
    transform: scale(1.1);
}

.quality-content {
    flex: 1;
}

.quality-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.quality-content p {
    line-height: 1.8;
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
    transition: color 0.3s;
}

/* 响应式设计 */
@media (max-width: 767px) {
    .about-intro {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-title {
        font-size: 2rem;
    }
    
    .about-subtitle {
        font-size: 1.1rem;
    }
    
    .quality-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .quality-number {
        margin-bottom: 1rem;
    }
}

/* ========== 后台管理样式 ========== */
.admin-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

.admin-layout {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.admin-sidebar {
    width: 220px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 1rem 0.5rem;
    height: fit-content;
}

.admin-menu {
    list-style: none;
}

.admin-menu-item {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-dark);
    border-radius: 4px;
    transition: all 0.2s;
    display: block;
    text-decoration: none;
}

.admin-menu-item:hover {
    background-color: #f2f4f6;
    text-decoration: none;
}

.admin-menu-item.active {
    background-color: var(--primary-color);
    color: #fff;
}

.admin-main {
    flex: 1;
}

.tab-welcome {
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    color: var(--text-dark);
}

.tab-welcome h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.tab-welcome p {
    color: var(--text-light);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-title {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--primary-color);
}

.admin-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #34495e;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #5f6f7f;
}

/* 表格样式 */
.table-container {
    background-color: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

table th {
    background-color: #f5f5f5;
    font-weight: 500;
    color: var(--primary-color);
}

table tr:hover {
    background-color: #f9f9f9;
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* 模态框（全屏遮罩弹窗） */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 2rem;
    max-width: min(600px, 90vw);
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    margin: 1rem;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

/* 登录页面 */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.login-box {
    background-color: var(--bg-light);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    width: 100%;
    max-width: min(400px, 90vw);
    margin: 0 auto;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

/* TinyMCE 弹窗置于最上层，避免被遮挡 */
.tox-tinymce-aux,
.tox-dialog {
    z-index: 4000 !important;
}

/* ========== 响应式设计 ========== */

/* 移动端导航菜单按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

.menu-toggle:hover {
    color: #5dade2;
}

