/**
 * XingCMS Default模板 - 主样式
 */

/* ========== 全局布局 ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
}

/* ========== 轮播图 ========== */
.banner {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: #000;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.banner-slide.active {
    opacity: 1;
    z-index: 2;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.banner-slide a.banner-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-decoration: none;
    z-index: 5;
}

.banner-slide a.banner-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.banner-content {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: left;
    color: #fff;
    z-index: 10;
}

.banner-content h2 {
    font-size: 35px;
    margin: 0;
    padding: 0 15px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.banner-subtitle {
    font-size: 18px;
    margin: 10px 0 0 15px;
    opacity: 0.9;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 80px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner:hover .banner-arrow {
    opacity: 1;
}

.banner-arrow:hover {
    background: rgba(0, 0, 0, 0.5);
}

.banner-prev {
    left: 0;
    border-radius: 0 4px 4px 0;
}

.banner-next {
    right: 0;
    border-radius: 4px 0 0 4px;
}

.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 10;
}

.banner-dots span {
    width: 12px;
    height: 12px;
    margin: 0 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.banner-dots span.active {
    background: #fff;
}

/* 移动端轮播图响应式 */
@media (max-width: 768px) {
    .banner {
        height: 280px;
    }

    .banner-slide img {
        object-fit: cover;
    }

    .banner-arrow {
        display: none;
    }

    .banner-content {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        text-align: center;
    }

    .banner-content h2 {
        font-size: 22px;
        line-height: 28px;
        margin: 0 0 8px 0;
    }

    .banner-subtitle {
        font-size: 14px;
        margin: 0;
    }

    .banner-dots {
        bottom: 15px;
    }

    .banner-dots span {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 200px;
    }

    .banner-content {
        width: 92%;
        padding: 12px;
    }

    .banner-content h2 {
        font-size: 18px;
        line-height: 22px;
    }

    .banner-subtitle {
        font-size: 12px;
    }

    .banner-dots {
        bottom: 10px;
    }
}

/* ========== 搜索页面 ========== */
.search-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
}

.search-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.9);
    z-index: 1;
}

.search-banner .container {
    position: relative;
    z-index: 2;
}

.search-banner h1 {
    color: #fff;
    font-size: 32px;
    margin-bottom: 30px;
    font-weight: 600;
}

.search-banner .search-form {
    display: flex;
    align-items: center;
    max-width: 700px;
    margin: 0 auto;
    gap: 12px;
}

.search-banner .search-input-wrap {
    flex: 1;
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px;
    border-radius: 50px;
}

.search-banner .search-input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    background: transparent;
}

.search-banner .search-btn {
    padding: 15px 35px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
}

.search-banner .search-reset {
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.95);
    color: #666;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
}

.search-page {
    padding: 40px 0;
    min-height: 60vh;
    background: #f8f9fa;
}

.search-result-info {
    margin-bottom: 20px;
    padding: 12px 18px;
    background: #f5f5f5;
    border-radius: 4px;
}

.search-results {
    margin-bottom: 30px;
}

.search-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 15px;
}

.item-thumb {
    flex-shrink: 0;
    width: 160px;
}

.item-thumb img {
    width: 100%;
    border-radius: 4px;
}

.item-content {
    flex: 1;
}

.item-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.item-type {
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.type-news { background: #e6f7ff; color: #1890ff; }
.type-product { background: #fff0f6; color: #eb2f96; }
.type-case { background: #f6ffed; color: #52c41a; }
.type-gallery { background: #fff7e6; color: #fa8c16; }
.type-page { background: #f9f0ff; color: #722ed1; }

.item-date {
    color: #999;
    font-size: 13px;
}

.item-title {
    font-size: 17px;
    margin-bottom: 8px;
}

.item-title a {
    color: #333;
    text-decoration: none;
}

.item-title a:hover {
    color: #007bff;
}

.item-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.item-desc mark,
.item-title mark {
    background: #ffe58f;
    padding: 1px 3px;
    color: #d48806;
}

.search-empty {
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
}

.empty-icon {
    color: #ddd;
    margin-bottom: 15px;
}

.search-empty h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

/* 搜索初始状态样式 */
.search-initial {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.initial-icon {
    color: #ddd;
    margin-bottom: 20px;
}

.initial-icon svg {
    width: 80px;
    height: 80px;
}

.search-initial h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.search-initial p {
    color: #999;
    font-size: 14px;
}

.empty-tips {
    display: inline-block;
    text-align: left;
    padding: 15px 20px;
    background: #fafafa;
    border-radius: 4px;
}

.empty-tips ul {
    margin: 0;
    padding-left: 18px;
}

.empty-tips li {
    color: #888;
    font-size: 13px;
    margin-bottom: 4px;
}

.search-page .pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.search-page .page-btn,
.search-page .page-num {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
}

.search-page .page-num.active {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

/* 移动端和平板响应式 */
@media (max-width: 1024px) {
    .search-banner {
        padding: 140px 0 60px;
    }
    
    .search-banner h1 {
        font-size: 24px;
        margin-bottom: 5px;
    }
    
    .search-banner .search-form {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }
    
    .search-banner .search-input-wrap {
        width: 100%;
    }
    
    .search-banner .search-btn.desktop-btn,
    .search-banner .search-reset.desktop-btn {
        display: none;
    }
    
    .search-buttons-mobile {
        display: flex;
        gap: 10px;
        width: 100%;
    }
    
    .search-buttons-mobile .search-btn,
    .search-buttons-mobile .search-reset {
        flex: 1;
        padding: 12px 20px;
        text-align: center;
    }
    
    .search-btn.mobile-only {
        display: block;
        width: 100%;
        padding: 12px 20px;
    }
    
    .search-item {
        flex-direction: column;
    }
    
    .item-thumb {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    
    /* 移动端搜索框样式 */
    .mobile-search-box {
        display: block;
        margin-bottom: 20px;
        padding: 15px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .mobile-search-form-result {
        display: flex;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .mobile-search-input-result {
        flex: 1;
        padding: 12px 15px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 16px;
        min-width: 0;
        box-sizing: border-box;
    }
    
    .mobile-search-btn-result {
        padding: 12px 20px;
        background: #007bff;
        color: #fff;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    /* 移动端相册网格优化 */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .gallery-thumb {
        height: auto;
    }
    
    .gallery-thumb img {
        height: auto;
        width: 100%;
    }
    
    /* 移动端隐藏遮罩层 */
    .gallery-overlay {
        display: none !important;
    }
    
    .gallery-title-mobile {
        padding: 10px;
        font-size: 13px;
    }
}

/* 桌面端隐藏移动端搜索框 */
@media (min-width: 1025px) {
    .mobile-search-box {
        display: none;
    }
}

/* ========== 相册页面样式 ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.gallery-item:hover {
    /* 移除悬停效果，保持板块稳定 */
}

.gallery-thumb {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.gallery-thumb img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: #fff;
}

.overlay-content .icon-search {
    font-size: 48px;
    display: block;
    opacity: 0.9;
}

/* 桌面端隐藏遮罩层中的标题，显示图片下方的标题 */
@media (min-width: 1025px) {
    .gallery-overlay .gallery-title {
        display: none;
    }
}

.gallery-title-mobile {
    display: block;
    padding: 12px;
    background: #fff;
    font-size: 15px;
    color: #333;
    text-align: center;
    border-top: 1px solid #f0f0f0;
    font-weight: 500;
}

/* 桌面端隐藏遮罩层中的标题，显示图片下方的标题 */
@media (min-width: 1025px) {
    .gallery-overlay .gallery-title {
        display: none;
    }
}

/* 内容卡片样式 */
.content-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* 营销单页内容样式 */
.landing-page-content {
    padding: 40px 0;
    background: transparent;
    font-size: 16px;
    line-height: 1.8;
}

.landing-page-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.landing-page-content p {
    margin: 0 0 1em 0;
}

.landing-page-content h1,
.landing-page-content h2,
.landing-page-content h3,
.landing-page-content h4,
.landing-page-content h5,
.landing-page-content h6 {
    margin: 1.5em 0 0.8em 0;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
}

.landing-page-content h1 {
    font-size: 1.75rem;
}

.landing-page-content h2 {
    font-size: 1.5rem;
}

.landing-page-content h3 {
    font-size: 1.25rem;
}

.landing-page-content h4 {
    font-size: 1.125rem;
}

.landing-page-content h5 {
    font-size: 1rem;
}

.landing-page-content h6 {
    font-size: 0.875rem;
}

.landing-page-content ul,
.landing-page-content ol {
    margin: 1em 0;
    padding-left: 2em;
}

.landing-page-content ul {
    list-style-type: disc;
}

.landing-page-content ol {
    list-style-type: decimal;
}

.landing-page-content li {
    margin: 0.5em 0;
    line-height: 1.8;
}

.landing-page-content blockquote {
    margin: 1em 0;
    padding: 1em 1.5em;
    border-left: 4px solid #667eea;
    background: #f8f9fa;
    color: #555;
    font-style: italic;
}

.landing-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
}

.landing-page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.landing-page-content table th,
.landing-page-content table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}

.landing-page-content table th {
    background: #f5f5f5;
    font-weight: 600;
}

.landing-page-content hr {
    margin: 2em 0;
    border: none;
    border-top: 1px solid #ddd;
}



.content-card {
    display: block;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
    text-decoration: none;
}

.content-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.content-card-thumb {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 比例 */
    overflow: hidden;
}

.content-card-thumb.square {
    padding-bottom: 100%; /* 1:1 比例 */
}

.content-card-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-card:hover .content-card-overlay {
    opacity: 1;
}

.view-btn {
    padding: 8px 20px;
    background: rgba(255,255,255,0.9);
    border-radius: 20px;
    color: #333;
    font-size: 14px;
}

.content-card-info {
    padding: 15px;
}

.content-card-info h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.content-card-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.content-card-meta {
    font-size: 13px;
    color: #999;
}

/* ========== 下载详情页样式 ========== */
.download-detail {
    max-width: 900px;
    margin: 0 auto;
}

.download-detail-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.download-thumb {
    flex-shrink: 0;
    width: 300px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
}

.download-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.download-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 60px;
}

.download-header-info {
    flex: 1;
}

.download-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 15px;
    line-height: 1.4;
}

.download-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #888;
}


.download-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.download-summary {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    border-left: 3px solid var(--primary-color, #007bff);
}

.download-file-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.download-file-box.empty {
    background: #f5f5f5;
    box-shadow: none;
    justify-content: center;
}

.download-file-box.empty p {
    margin: 0;
    color: #999;
    font-size: 15px;
}

/* ========== 下载列表筛选 ========== */
.download-filter {
    margin-bottom: 30px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background: #f5f5f5;
    color: #333;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: #e0e0e0;
}

.filter-btn.active {
    background: #e74c3c;
    color: #fff;
}

/* ========== 下载列表按钮 ========== */
.download-item-btn {
    padding: 0 15px 15px;
    text-align: center;
}

.btn-download-small {
    display: inline-block;
    padding: 6px 16px;
    background: #e74c3c;
    color: #fff;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-download-small:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

.empty-tip {
    text-align: center;
    color: #999;
    grid-column: 1/-1;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #fff;
}

.file-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.file-details {
    flex: 1;
}

.file-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    word-break: break-all;
}

.file-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    opacity: 0.9;
}

.download-count {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #667eea;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.download-content {
    margin-bottom: 40px;
}

.download-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.download-content .content-body {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}

.download-content .content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.download-content .content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.download-content .content-body th,
.download-content .content-body td {
    border: 1px solid #ddd;
    padding: 10px 12px;
    text-align: left;
}

.download-content .content-body th {
    background: #f5f5f5;
    font-weight: 600;
}

.article-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.nav-item {
    display: block;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}

.nav-item:hover {
    background: #e9ecef;
}

.nav-empty {
    color: #999;
    cursor: default;
}

.nav-empty:hover {
    background: transparent;
}

.nav-label {
    font-size: 14px;
}

.back-list {
    text-align: center;
    padding-top: 20px;
}

.btn-back {
    display: inline-block;
    padding: 12px 30px;
    background: #f0f0f0;
    color: #333;
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s;
}

.btn-back:hover {
    background: #e0e0e0;
}

/* 下载详情页响应式 */
@media screen and (max-width: 768px) {
    .download-detail-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .download-thumb {
        width: 100%;
        height: 200px;
    }
    
    .download-title {
        font-size: 18px;
    }
    
    .download-meta {
        gap: 15px;
        font-size: 13px;
    }
    
    .download-file-box {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }
    
    .file-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .file-icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }
    
    .file-name {
        font-size: 16px;
    }
    
    .btn-download {
        width: 100%;
        justify-content: center;
        padding: 16px 30px;
    }
    
    .article-nav {
        padding: 15px;
    }
    
    .nav-label {
        font-size: 13px;
    }
}

/* ========== 单页内容样式 ========== */
.page-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

/* 关于我们页面样式 - 无装饰，仅排版 */
.about-page-content {
    padding: 30px 0;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.page-content p,
.about-page-content p {
    margin: 0 0 1em 0;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6,
.about-page-content h1,
.about-page-content h2,
.about-page-content h3,
.about-page-content h4,
.about-page-content h5,
.about-page-content h6 {
    margin: 1.5em 0 0.8em 0;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
}

.page-content h1,
.about-page-content h1 {
    font-size: 1.75rem;
}

.page-content h2,
.about-page-content h2 {
    font-size: 1.5rem;
}

.page-content h3,
.about-page-content h3 {
    font-size: 1.25rem;
}

.page-content h4,
.about-page-content h4 {
    font-size: 1.125rem;
}

.page-content h5,
.about-page-content h5 {
    font-size: 1rem;
}

.page-content h6,
.about-page-content h6 {
    font-size: 0.875rem;
}

.page-content ul,
.page-content ol,
.about-page-content ul,
.about-page-content ol {
    margin: 1em 0;
    padding-left: 2em;
}

.page-content ul,
.about-page-content ul {
    list-style-type: disc;
}

.page-content ol,
.about-page-content ol {
    list-style-type: decimal;
}

.page-content li,
.about-page-content li {
    margin: 0.5em 0;
    line-height: 1.8;
}

.page-content img,
.about-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
}

.page-content table,
.about-page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.page-content table th,
.page-content table td,
.about-page-content table th,
.about-page-content table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}

.page-content table th,
.about-page-content table th {
    background: #f5f5f5;
    font-weight: 600;
}

.page-content blockquote,
.about-page-content blockquote {
    margin: 1em 0;
    padding: 1em 1.5em;
    border-left: 4px solid #667eea;
    background: #f8f9fa;
    color: #555;
    font-style: italic;
}

.page-content hr,
.about-page-content hr {
    margin: 2em 0;
    border: none;
    border-top: 1px solid #ddd;
}

@media (max-width: 768px) {
    .page-content {
        padding: 20px;
        font-size: 15px;
    }
    
    .about-page-content {
        padding: 20px 0;
        font-size: 15px;
    }
    
    .page-content h1,
    .about-page-content h1 {
        font-size: 1.5rem;
    }
    
    .page-content h2,
    .about-page-content h2 {
        font-size: 1.25rem;
    }
    
    .page-content h3,
    .about-page-content h3 {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .page-content {
        padding: 15px;
        font-size: 14px;
    }
    
    .about-page-content {
        padding: 15px 0;
        font-size: 14px;
    }
    
    .page-content h1,
    .about-page-content h1 {
        font-size: 1.25rem;
    }
    
    .page-content h2,
    .about-page-content h2 {
        font-size: 1.125rem;
    }
    
    .page-content h3,
    .about-page-content h3 {
        font-size: 1rem;
    }
}

/* ========== 内容详情样式 ========== */
.content-detail {
    padding: 30px 0;
}

.content-detail h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 15px;
    line-height: 1.4;
}

.content-meta {
    font-size: 14px;
    color: #888;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

@media (max-width: 768px) {
    .content-detail {
        padding: 20px 0;
    }
    
    .content-detail h1 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .content-detail {
        padding: 15px 0;
    }
    
    .content-detail h1 {
        font-size: 18px;
    }
}

/* ========== 表格响应式样式 ========== */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 15px 0;
    border-radius: 4px;
}

.table-wrapper.has-overflow {
    border: 1px solid #ddd;
}

/* 桌面端：智能表格布局 */
@media (min-width: 769px) {
    .table-wrapper table {
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        border-collapse: collapse;
        margin: 0;
        table-layout: auto;
    }
    
    /* 默认所有单元格不换行 */
    .table-wrapper th,
    .table-wrapper td {
        padding: 10px;
        border: 1px solid #ddd;
        white-space: nowrap;
        word-wrap: normal;
        overflow-wrap: normal;
    }
    
    /* JavaScript会动态添加allow-wrap类，允许长文本列换行 */
    .table-wrapper th.allow-wrap,
    .table-wrapper td.allow-wrap {
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* 强制覆盖表格固定宽度属性，但允许自动宽度 */
    .article-content table,
    .content-body table,
    .landing-page-content table,
    .page-content table,
    .specs-content table {
        max-width: 100% !important;
    }
    
    /* 强制覆盖单元格固定宽度属性，让浏览器自动分配 */
    .article-content table td,
    .article-content table th,
    .content-body table td,
    .content-body table th,
    .landing-page-content table td,
    .landing-page-content table th,
    .page-content table td,
    .page-content table th,
    .specs-content table td,
    .specs-content table th {
        width: auto !important;
    }
}

/* 移动端表格优化：允许横向滚动 */
@media (max-width: 768px) {
    .table-wrapper {
        margin: 10px 0;
        border: 1px solid #ddd;
    }
    
    .table-wrapper table {
        width: auto !important;
        min-width: 600px !important;
        border-collapse: collapse;
        margin: 0;
        table-layout: auto;
    }
    
    .table-wrapper th,
    .table-wrapper td {
        padding: 10px;
        border: 1px solid #ddd;
        white-space: nowrap;
    }
    
    /* 强制覆盖表格固定宽度属性 */
    .article-content table,
    .content-body table,
    .landing-page-content table,
    .page-content table,
    .specs-content table {
        width: auto !important;
        min-width: 600px !important;
    }
    
    /* 强制覆盖单元格固定宽度属性 */
    .article-content table td,
    .article-content table th,
    .content-body table td,
    .content-body table th,
    .landing-page-content table td,
    .landing-page-content table th,
    .page-content table td,
    .page-content table th,
    .specs-content table td,
    .specs-content table th {
        width: auto !important;
    }
}