/* ============================================================
   1. CSS 变量 & 全局重置
   ============================================================ */
:root {
    --primary-color: #003d7a;
    --primary-light: #1a5ca6;
    --primary-dark: #002a55;
    --accent-color: #7ab713;
    --accent-light: #8fc934;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5a;
    --text-muted: #7a7a8a;
    --bg-white: #ffffff;
    --bg-light: #f5f7fa;
    --bg-gray: #f0f2f5;
    --border-color: #e2e5ea;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.14);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Segoe UI', -apple-system, sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   2. 全局链接 & 图片
   ============================================================ */
a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}
a:hover {
    color: var(--accent-color);
}

/* ============================================================
   3. 容器 & 布局 - 居中修复
   ============================================================ */
.ui.container {
    max-width: 1430px;
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
}

.tag-page-container {
    max-width: 1430px;
    margin: 0 auto;
    padding: 40px 30px 60px;
    width: 100%;
}

/* 所有内容居中 */
.sidebar-box {
    display: flex;
    justify-content: center;
    width: 100%;
}

.sidebar-right {
    width: 100%;
    max-width: 1430px;
}

/* ============================================================
   4. 区域标题（新增装饰）
   ============================================================ */
.section-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 10px;
}

.section-title-main {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.section-subtitle-main {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.section-divider span {
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 2px;
}

.section-divider .diamond {
    font-size: 12px;
    color: var(--accent-color);
    width: auto;
    height: auto;
    background: transparent;
}

/* ============================================================
   5. HERO BANNER - 居中
   ============================================================ */
.hero-banner {
    position: relative;
    max-width: 1430px;
    min-height: 320px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: calc(100% - 60px);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #003d7a 0%, #003d7a 55%, #7ab713 100%);
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 2px, transparent 2px, transparent 10px);
    pointer-events: none;
}

/* 新增：装饰光晕 */
.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(122, 183, 19, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 40%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
    padding: 40px 30px;
    width: 100%;
}

.hero-inner h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -1px;
    color: #fff;
}

.hero-inner p {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.92;
    margin-bottom: 20px;
}

.hero-labels {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-labels span {
    font-size: 14px;
    line-height: 1.8;
    background: rgba(255,255,255,0.12);
    padding: 6px 24px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(4px);
    letter-spacing: 0.3px;
}

/* ============================================================
   6. 产品网格 - 一行4个（居中 + 不变形）
   ============================================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 30px auto;
    width: 100%;
    max-width: 1430px;
    justify-content: center;
}

.product-item {
    list-style: none;
    display: flex;
    justify-content: center;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 320px;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* 图片容器 */
.product-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--bg-gray);
}

/* 图片样式 - 不变形 */
.product-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.product-image a {
    display: block;
    width: 100%;
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}

/* 图片遮罩层 */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 61, 122, 0.88);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(4px);
    pointer-events: none;
    z-index: 2;
}

.product-card:hover .product-overlay {
    opacity: 1;
    pointer-events: auto;
}

.product-excerpt {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255,255,255,0.92);
    text-align: center;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 90%;
}

.btn-readmore {
    font-size: 14px;
    line-height: 1.8;
    padding: 8px 28px;
    border: 2px solid #fff;
    color: #fff;
    border-radius: 50px;
    transition: var(--transition);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: transparent;
    cursor: pointer;
}

.btn-readmore:hover {
    background: #fff;
    color: var(--primary-color);
    transform: scale(1.05);
}

.product-title {
    font-size: 16px;
    line-height: 1.6;
    font-weight: 600;
    color: var(--text-primary);
    padding: 16px 20px 20px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.product-title:hover {
    color: var(--primary-color);
}

/* ============================================================
   7. 所有 H1-H6 标签样式
   ============================================================ */
h1 {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

h2 {
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
}

h3 {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

h4 {
    font-size: 24px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

h5 {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

h6 {
    font-size: 18px;
    line-height: 1.6;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* ============================================================
   8. DET1-DET7 内容样式
   ============================================================ */
.editor-content-intro,
.company-desc,
.cat-description,
.seo-public .text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.editor-content-intro p,
.company-desc p,
.cat-description p,
.seo-public .text p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 14px;
    color: var(--text-secondary);
}

.editor-content-intro ul,
.company-desc ul,
.cat-description ul,
.seo-public .text ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 14px;
}

.editor-content-intro ul li,
.company-desc ul li,
.cat-description ul li,
.seo-public .text ul li {
    font-size: 14px;
    line-height: 1.8;
    padding: 6px 0 6px 28px;
    position: relative;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.editor-content-intro ul li::before,
.company-desc ul li::before,
.cat-description ul li::before,
.seo-public .text ul li::before {
    content: '◆';
    position: absolute;
    left: 0;
    top: 6px;
    color: var(--accent-color);
    font-size: 12px;
}

.editor-content-intro h4,
.company-desc h4,
.cat-description h4,
.seo-public .text h4 {
    font-size: 24px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 24px;
    margin-bottom: 10px;
}

.editor-content-intro h4:first-child,
.company-desc h4:first-child,
.cat-description h4:first-child,
.seo-public .text h4:first-child {
    margin-top: 0;
}

.editor-content-intro h3,
.company-desc h3,
.cat-description h3,
.seo-public .text h3 {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 12px;
}

.editor-content-intro h5,
.company-desc h5,
.cat-description h5,
.seo-public .text h5 {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 18px;
    margin-bottom: 8px;
}

.editor-content-intro h6,
.company-desc h6,
.cat-description h6,
.seo-public .text h6 {
    font-size: 18px;
    line-height: 1.6;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 14px;
    margin-bottom: 6px;
}

/* ============================================================
   9. 标签页标题区
   ============================================================ */
.tag-hero-section {
    padding: 30px 0 20px;
    text-align: center;
}

.tag-title {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.tag-subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 24px;
    letter-spacing: 2px;
}

.editor-content-intro {
    background: var(--bg-white);
    padding: 30px 36px;
    border-radius: var(--radius-md);
    border-left: 5px solid var(--accent-color);
    box-shadow: var(--shadow-sm);
    text-align: left;
}

/* ============================================================
   10. 关于公司区域
   ============================================================ */
.about-section {
    padding: 40px 0;
}

.section-title {
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 32px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 4px;
}

.about-grid {
    display: grid;
    gap: 40px;
    align-items: center;
}

.about-grid.two-col {
    grid-template-columns: 1fr 1.2fr;
}

.about-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 300px;
    display: block;
}

.about-text h3 {
    font-size: 28px;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.company-desc {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ============================================================
   11. 推荐链接
   ============================================================ */
.more-info {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 28px 32px;
    margin-top: 40px;
    box-shadow: var(--shadow-sm);
}

.more-info h4 {
    font-size: 24px;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.recommend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.recommend-links a {
    font-size: 14px;
    line-height: 1.8;
    padding: 6px 18px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.recommend-links a:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================================
   12. 分页
   ============================================================ */
.m-page {
    text-align: center;
    margin-top: 40px;
    padding: 10px 0;
}

/* ============================================================
   13. 响应式设计
   ============================================================ */

@media (max-width: 1200px) {
    .product-grid {
        gap: 24px;
    }
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    
    .about-grid.two-col {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-banner {
        width: calc(100% - 32px);
        min-height: 240px;
    }
    
    .hero-inner h1 {
        font-size: 36px;
    }
    
    h1 { font-size: 36px; }
    h2 { font-size: 30px; }
    .section-title-main { font-size: 30px; }
}

@media (max-width: 768px) {
    .ui.container,
    .tag-page-container {
        padding: 0 16px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .product-image img {
        height: 200px;
    }
    
    .hero-banner {
        width: calc(100% - 24px);
        min-height: 180px;
        border-radius: var(--radius-md);
    }
    
    .hero-inner {
        padding: 24px 16px;
    }
    
    .hero-inner h1 {
        font-size: 28px;
    }
    
    .hero-inner p {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .hero-labels span {
        font-size: 12px;
        line-height: 1.8;
        padding: 4px 14px;
    }
    
    h1 { font-size: 28px; line-height: 1.2; }
    h2 { font-size: 24px; line-height: 1.2; }
    h3 { font-size: 20px; line-height: 1.4; }
    h4 { font-size: 18px; line-height: 1.6; }
    h5 { font-size: 16px; line-height: 1.6; }
    h6 { font-size: 15px; line-height: 1.6; }
    
    .section-title-main { font-size: 24px; }
    .section-subtitle-main { font-size: 14px; }
    .section-divider span { width: 30px; }
    
    .tag-title {
        font-size: 28px;
    }
    
    .editor-content-intro {
        padding: 20px;
    }
    
    .about-image img {
        min-height: 200px;
    }
    
    .more-info {
        padding: 20px;
    }
    
    .more-info h4 {
        font-size: 18px;
    }
    
    .recommend-links a {
        font-size: 13px;
        line-height: 1.8;
        padding: 4px 14px;
    }
    
    .product-title {
        font-size: 15px;
        line-height: 1.6;
        padding: 12px 14px 16px;
        min-height: 50px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-image img {
        height: 150px;
    }
    
    .hero-inner h1 {
        font-size: 22px;
    }
    
    .hero-inner p {
        font-size: 13px;
        line-height: 1.6;
    }
    
    .hero-labels {
        gap: 8px;
    }
    
    .hero-labels span {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
    h3 { font-size: 18px; line-height: 1.6; }
    h4 { font-size: 16px; line-height: 1.6; }
    
    .section-title-main { font-size: 20px; }
    .section-subtitle-main { font-size: 13px; }
    .section-divider span { width: 20px; }
    
    .tag-title {
        font-size: 24px;
    }
    
    .editor-content-intro {
        padding: 16px;
    }
    
    .product-title {
        font-size: 14px;
        line-height: 1.8;
        padding: 10px 10px 14px;
        min-height: 44px;
    }
}

/* ============================================================
   14. 辅助类
   ============================================================ */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }