:root {
    --primary-color: #2E7D32; /* 蚕道绿 */
    --secondary-color: #1565C0; /* 科技蓝 */
    --text-color: #333;
    --light-gray: #f4f4f4;
    --white: #fff;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    /* 新增高对比度颜色变量 */
    --card-bg: #ffffff;
    --card-text: #2c2c2c;
    --card-border: #e8e8e8;
}

/* 修复锚点跳转被导航栏遮挡的问题 */
html {
    scroll-padding-top: 100px;
}

/* 为特定锚点section添加额外的滚动边距 */
#cta-smalldata,
#service-loop-title {
    scroll-margin-top: 20px;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.8;
}

/* 当页面注入了主头部时，强制取消 body 顶部内边距，防止导航被整体下推 */
body.has-main-header {
    padding-top: 0 !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* 统一主/副标题样式：居中显示、主大副小 */
.section-title {
    text-align: center;
    font-size: 2.4rem;
    line-height: 1.25;
    font-weight: 800;
    margin: 0 0 16px;
}
.section-subtitle {
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    margin: 4px 0 28px;
}

/* Header */
.main-header {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 0;
    column-gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.logo a,
.logo a:link,
.logo a:visited,
.logo a:hover,
.logo a:active,
.logo a:focus {
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
}

.logo-text {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none !important;
}

.logo-img-container {
    position: relative;
    line-height: 0;
    top: 3px;
}

.logo-icon {
    height: 36px;
    width: auto;
}

.logo-img-container sup {
    position: absolute;
    top: -4px;
    right: -8px;
    font-size: 14px;
    color: var(--primary-color);
}

/* 导航样式 - 强制应用 */
.main-nav {
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
}

.nav-links {
    list-style: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-links li {
    margin: 0 !important;
    list-style: none !important;
}

.main-nav a {
    color: var(--primary-color);
    text-decoration: none;
    margin-left: 0 !important;
    font-weight: 500;
    font-size: 1.1em;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

.nav-actions a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-actions a:hover {
    color: var(--secondary-color);
}

.nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
    flex-wrap: nowrap;
}

/* 导航栏活跃状态样式 */
.main-nav a.active,
.nav-actions a.active {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white) !important;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
    transform: translateY(-1px);
}

/* 下划线提示效果 */
.main-nav a.active::after,
.nav-actions a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: slideIn 0.3s ease-out;
}

/* 滑入动画 */
@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 80%;
        opacity: 1;
    }
}

/* 悬停时的过渡效果 */
.main-nav a:not(.active):hover,
.nav-actions a:not(.active):hover {
    position: relative;
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

/* 为非活跃状态添加轻微的下划线预览 */
.main-nav a:not(.active):hover::after,
.nav-actions a:not(.active):hover::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--secondary-color);
    border-radius: 1px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .main-header .container {
        flex-wrap: wrap;
        row-gap: 8px;
    }
    .nav-links {
        flex-wrap: wrap;
        gap: 12px 16px;
    }
    .nav-actions {
        width: 100%;
        gap: 16px;
        justify-content: flex-start;
        margin-top: 4px;
    }
}

/* 在中等宽度时收紧间距和字号，避免临界换行 */
@media (max-width: 1100px) and (min-width: 769px) {
    .logo-text { font-size: 1.6em; }
    .main-nav, .nav-links, .nav-actions { gap: 16px !important; }
    .main-nav a, .nav-actions a { font-size: 1rem; }
    .main-nav a.active, .nav-actions a.active { padding: 6px 12px; }
}

@media (max-width: 980px) and (min-width: 769px) {
    .logo-text { font-size: 1.5em; }
    .main-nav, .nav-links, .nav-actions { gap: 12px !important; }
    .main-nav a, .nav-actions a { font-size: 0.95rem; }
}

/* 顶部横幅/hero 背景叠加半透明遮罩 */
.hero,
.hero-banner {
    height: 80vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/field-action.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative; /* 让伪元素能相对定位 */
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 0.2em;
    font-weight: 700;
    white-space: nowrap;
}

.hero p {
    font-size: 1.5em;
    font-weight: 300;
}

/* 标题后的小提示 */
.hero h1 .hint {
    font-size: 0.45em;
    font-weight: 500;
    color: var(--secondary-color);
    margin-left: 12px;
    white-space: nowrap;
}

/* 知识库页：使用 scbook.png 作为整幅背景图，参考首页布局 */
.hero--kb {
    /* 覆盖默认 hero 的背景图，保持 80vh 高度与 cover 模式 */
    background-image: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.35)), url('images/scbook.png');
    background-size: cover;
    background-position: center top;
    color: var(--white);
}

.hero--kb h1,
.hero--kb p {
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

/* 小提示在深色背景上改为浅色徽标样式 */
.hero--kb h1 .hint {
    font-size: 0.45em;
    font-weight: 600;
    color: #fff;
    margin-left: 12px;
    white-space: nowrap;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.28);
}

/* 移动端略减小高度与字号，确保布局协调 */
@media (max-width: 768px) {
    .hero--kb { height: 60vh; }
    .hero--kb h1 { font-size: 2.6em; }
    .hero--kb p { font-size: 1.2em; }
}

/* Slogan Section */
.slogan-section {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 40px 20px;
}

.slogan-main-text {
    font-size: 1.8em;
    font-weight: 700;
    margin: 0;
}

.slogan-url {
    font-size: 1.4em;
    font-weight: 300;
    margin-top: 10px;
    letter-spacing: 1.5px;
}

/* 新增：四行文案的白底桥接块，统一层级与间距 */
.slogan-bridge {
    background: var(--white);
    text-align: center;
    padding: 28px 20px 18px;
    border-bottom: 1px solid #f0f0f0;
}
.slogan-bridge-title {
    font-size: 2rem;
    line-height: 1.35;
    font-weight: 800;
    margin: 10px 0 8px;
}
.slogan-bridge-subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* 移动端略收紧字号，保持协调 */
@media (max-width: 768px) {
    .slogan-bridge-title { font-size: 1.6rem; }
    .slogan-bridge-subtitle { font-size: 0.98rem; }
}
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: center;
    justify-items: center;
    margin-top: 40px;
}

/* 新增：App 特性网格布局 */
.feature-grid-app {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item-app {
    text-align: center;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.feature-item-app img {
    max-width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
}

.feature-item-app h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.feature-item-app p {
    color: #666;
    line-height: 1.6;
}


/* 响应式布局：当屏幕较小时，确保微信扫码图片居中显示 */
@media (max-width: 768px) {
    .app-feature-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    
    .app-feature-grid .feature-item {
        text-align: center;
    }
    
    .app-feature-grid .feature-item:last-child {
        grid-column: 1;
        margin-top: 20px;
    }
}

/* 当有4个项目时的特殊布局 */
@media (min-width: 769px) and (max-width: 1200px) {
    .app-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .app-feature-grid .feature-item:last-child {
        grid-column: 1 / -1;
        justify-self: center;
        margin-top: 20px;
    }
}

/* After-sales service block */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.service-card img {
    width: 100%;
    max-height: 120px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 12px;
}

.service-card h3 {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-color);
    margin: 10px 0;
}

.service-card p {
    color: #555;
    font-size: 0.95em;
}

/* Principles */
.principles {
    margin-top: 40px;
}
.principles-title {
    text-align: center;
    font-size: 1.6em;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
}
.principles-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}
.principles-list li {
    background: var(--light-gray);
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--text-color);
    line-height: 1.6;
}
.principles-list .tag {
    display: inline-block;
    font-size: 12px;
    padding: 2px 8px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 999px;
    margin-right: 8px;
}

.qr-code-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    justify-items: center;
}

.qr-code-item {
    text-align: center;
}

.qr-code-item img {
    max-width: 200px;
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    border: 1px solid #eee;
    padding: 5px;
}

.qr-code-item p {
    font-size: 1.1em;
    font-weight: 500;
    color: var(--text-color);
}

.feature-item {
    text-align: center;
}

.feature-item img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.arrow {
    font-size: 3em;
    color: var(--primary-color);
    text-align: center;
    margin: 20px 0;
}

/* Full-width Image Section */
.full-width-img-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.full-width-img-section img {
    width: 100%;
    max-width: 1000px;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Call to Action Section */
.cta-section {
    background: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
}

.cta-section h2 {
    font-size: 2.2em;
    margin: 0;
    font-weight: 700;
    /* 新增：CTA 标题统一白色，避免被 .section-title 覆盖 */
    color: var(--white);
}

.cta-section p {
    font-size: 1.2em;
    margin-top: 10px;
}

/* 新增：服务闭环横幅改为品牌色（与页眉“蚕道农服”一致） */
#service-loop-title.cta-section {
    background: var(--primary-color);
}

/* 新增：进一步提高选择器优先级，防止.section-title覆盖颜色 */
.cta-section .section-title {
    color: var(--white);
}



/* Footer */
.main-footer {
    background: #222;
    color: #aaa;
    padding: 40px 0;
    text-align: center;
}

.main-footer p {
    margin: 0;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5em; }
    .hero p { font-size: 1.2em; }
    .slogan-section { font-size: 1.4em; }
    .section-title { font-size: 1.8rem; }   /* 移动端主标题稍降 */
    .section-subtitle { font-size: 0.95rem; } /* 移动端副标题更小一点 */
    .feature-grid {
        grid-template-areas:
            "top"
            "arrow-down"
            "left"
            "arrow-right"
            "right";
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .arrow-right {
        transform: rotate(90deg);
    }
    .arrow { display: none; }
}

/* Knowledge Base Section */
.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* 横向展开的知识模块样式 */
.knowledge-category.wide-layout {
    grid-column: span 2; /* 占据两个网格列 */
    min-width: 0; /* 防止内容溢出 */
}

/* 在宽屏设备上占据更多列 */
@media (min-width: 1200px) {
    .knowledge-category.wide-layout {
        grid-column: span 3; /* 在大屏幕上占据三列 */
    }
}

/* 横向布局的子分类样式 */
.knowledge-category.wide-layout .sub-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.knowledge-category.wide-layout .sub-category {
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.knowledge-category.wide-layout .sub-category h4 {
    font-size: 1.1em;
    color: var(--primary-color);
    margin: 0 0 10px 0;
    font-weight: 600;
}

.knowledge-category.wide-layout .sub-category ul {
    margin: 0;
}

.knowledge-category.wide-layout .sub-category ul li {
    margin-bottom: 8px;
}

.knowledge-category.wide-layout .sub-category ul li a {
    font-size: 0.9em;
    line-height: 1.4;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .knowledge-category.wide-layout {
        grid-column: span 1; /* 在移动设备上恢复单列 */
    }
    
    .knowledge-category.wide-layout .sub-categories {
        grid-template-columns: 1fr; /* 移动设备上子分类也是单列 */
    }
}
.knowledge-category {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.knowledge-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.knowledge-category h3 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 为每个主题添加图标背景 */
.knowledge-category h3::before {
    content: '';
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

/* 不同主题的图标 */
.knowledge-category:nth-child(1) h3::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232E7D32"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>');
}

.knowledge-category:nth-child(2) h3::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232E7D32"><path d="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0L19.2 12l-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"/></svg>');
}

.knowledge-category:nth-child(3) h3::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232E7D32"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>');
}

.knowledge-category:nth-child(4) h3::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232E7D32"><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"/></svg>');
}

.knowledge-category:nth-child(5) h3::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232E7D32"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm3.5 6L12 10.5 8.5 8 12 5.5 15.5 8zM8.5 16L12 13.5 15.5 16 12 18.5 8.5 16z"/></svg>');
}

.knowledge-category:nth-child(n+6) h3::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232E7D32"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>');
}

.knowledge-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.knowledge-category ul li {
    margin-bottom: 14px;
    padding-left: 20px;
    position: relative;
}

.knowledge-category ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8em;
    top: 2px;
}

.knowledge-category ul li a {
    text-decoration: none;
    color: var(--card-text);
    font-weight: 500;
    transition: color 0.3s ease;
    line-height: 1.6;
    display: block;
}

.knowledge-category ul li a:hover {
    color: var(--secondary-color);
    padding-left: 8px;
    transition: all 0.3s ease;
}

/* 添加渐变背景装饰 */
.knowledge-category::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color)20, transparent);
    border-radius: 0 12px 0 60px;
    opacity: 0.1;
}

/* 删除以下重复的样式定义 */
.knowledge-category ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.knowledge-category ul li a:hover {
    color: var(--secondary-color);
}

/* Article Page Styles */
.article-page {
    padding: 60px 20px;
}

.article-page h1, .article-page h2 {
    color: var(--primary-color);
}

.article-page h1 {
    font-size: 2.8em;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.article-page h2 {
    font-size: 2em;
    margin-top: 40px;
    margin-bottom: 15px;
}

.article-page p {
    font-size: 1.1em;
    line-height: 1.9;
}

.article-page ul, .article-page ol {
    padding-left: 25px;
}

.article-page li {
    margin-bottom: 10px;
}

.article-page strong {
    color: var(--text-color);
}

.article-page a {
    color: var(--secondary-color);
    text-decoration: none;
}

.article-page a:hover {
    text-decoration: underline;
}

.registered-mark {
    font-size: 0.6em;
    vertical-align: super;
    color: var(--primary-color);
    margin-left: 2px;
}

/* 查看更多链接样式 */
.view-more {
    color: var(--primary-color);
    font-size: 0.7em;
    font-weight: 500;
    text-decoration: none;
    float: right;
    margin-top: 2px;
    transition: opacity 0.3s ease;
}

.view-more:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* 确保h3标题容器能够包含浮动元素 */
.knowledge-category h3 {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    overflow: hidden; /* 清除浮动 */
}

/* 二级子主题样式 */
.sub-category {
    margin-left: 20px;
    margin-bottom: 20px;
    border-left: 3px solid var(--secondary-color);
    padding-left: 15px;
}

.sub-category h4 {
    font-size: 1.1em;
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
}

.sub-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sub-category ul li {
    margin-bottom: 8px;
}

.sub-category ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.sub-category ul li a:hover {
    color: var(--secondary-color);
}

/* 主页三阶段矢量示意 */
.evolution-visual-section {
  background: #fff;
  padding: 8px 0 16px;
}
.evolution-visual {
  max-width: 1100px;
  margin: 0 auto;
}
.evolution-visual .svg-evolution {
  width: 100%;
  height: auto;
  display: block;
}
/* 小屏优化：略微增大整体比例与行距 */
@media (max-width: 640px) {
  .evolution-visual-section { padding: 4px 0 8px; }
}

/* 调整“六项服务原则”副标题的行距 */
.principles-section .section-subtitle {
    line-height: 1.3;
}

/* ==========================================================================
   服务闭环标题与图表 (Service Loop Title & Diagram)
   ========================================================================== */

/* 服务闭环：标题横幅复用 cta-section，无需额外颜色设置 */
#service-loop-title .section-title {
    line-height: 1.3;
}

/* 服务闭环矢量图容器 */
.service-cycle-section {
    background: #fff;
    padding: 48px 0;
}

.service-cycle-svg {
    display: block;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

/* 中部摘要文字 */
.cycle-summary {
    text-align: center;
    font-weight: 700;
    color: #2563EB; /* 品牌蓝 */
    margin-top: 24px;
    font-size: 1.1rem;
    display: table;           /* 新增：让元素收缩内容宽度 */
    margin-left: auto;        /* 新增：配合 display: table 实现水平居中 */
    margin-right: auto;       /* 新增：配合 display: table 实现水平居中 */
}

/* 移动端优化：缩放文字，增加间距防止重叠 */
@media (max-width: 768px) {
    .service-cycle-section { padding: 36px 0; }
    .cycle-summary { font-size: 1rem; }
    .service-cycle-svg text { font-size: 18px; }
}

/* ==========================================================================
   售后服务与原则模块 (After-Sales Service & Principles Section)
   ========================================================================== */

/* 服务闭环部分 */
.service-loop-section {
    background-color: #f9fafb; /* 轻灰色背景 */
    padding: 60px 0;
}

.service-loop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: left;
}

.service-loop-item {
    padding: 20px;
}

.service-loop-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-loop-item h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #333;
}

.service-loop-item p {
    color: #666;
    line-height: 1.6;
}


/* 六项服务原则部分 */
.principles-section {
    padding: 80px 0;
    background-color: #fff;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
    gap: 30px;
    align-items: stretch;
    justify-content: center; /* 确保基础样式包含居中 */
}

.principle-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(149, 157, 165, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.principle-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(149, 157, 165, 0.2);
}

.principle-card__header {
    padding: 12px 20px;
    color: #fff;
    display: flex;
    justify-content: flex-start;
}

.principle-card__badge {
    font-size: 0.8rem;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
}

/* 卡片颜色 */
.principle-card__header.color--green { background-color: #34D399; }
.principle-card__header.color--amber { background-color: #FBBF24; }
.principle-card__header.color--blue { background-color: #60A5FA; }
.principle-card__header.color--purple { background-color: #A78BFA; }

.principle-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* 占据剩余空间 */
    text-align: left;
}

.principle-card__body h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.principle-card__body p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.principle-card__image {
    width: 100%;
    border-radius: 8px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.principle-card__meta {
    font-size: 0.9rem;
    color: #777;
    margin-top: auto; /* 推到底部 */
}

.principle-card__list {
    list-style-position: inside;
    padding-left: 0;
    margin-bottom: 20px;
}
.principle-card__list li {
    margin-bottom: 8px;
    color: #555;
}

/* 手风琴/折叠效果 */
.principle-accordion-toggle {
    background: #f3f4f6;
    border: none;
    padding: 10px 15px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    margin-top: 15px;
    transition: background-color 0.3s;
}
.principle-accordion-toggle:hover {
    background-color: #e5e7eb;
}
.principle-accordion-toggle i {
    transition: transform 0.3s ease;
}
.principle-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding-left: 10px;
}
/* 新增：常显状态 */
.principle-accordion-content.always-open {
    max-height: none;
    overflow: visible;
}
/* 新增：静态标题条不显示手型光标 */
.principle-accordion-toggle[aria-hidden="true"] {
    cursor: default;
}
.principle-accordion-content ul {
    list-style: none;
    padding: 15px 0 5px 0;
}
.principle-accordion-content li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #555;
}
.principle-accordion-content li i {
    margin-right: 12px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

/* 人才激励列表 */
.principle-card__icon-list {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}
.principle-card__icon-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
}
.principle-card__icon-list i {
    font-size: 1.2rem;
    color: #60A5FA;
    margin-right: 15px;
    margin-top: 4px;
}
.principle-card__icon-list p {
    margin: 0;
    font-weight: bold;
    color: #333;
}
.principle-card__icon-list span {
    font-size: 0.9rem;
    color: #666;
}

/* 数据案例墙 */
.case-study-list {
    margin-top: 10px;
}
.case-study-item {
    border-left: 4px solid;
    padding: 12px 15px;
    margin-bottom: 15px;
    background-color: #f9fafb;
    border-radius: 0 8px 8px 0;
}
.case-study-item.case--green { border-color: #34D399; }
.case-study-item.case--blue { border-color: #60A5FA; }
.case-study-item.case--amber { border-color: #FBBF24; }

.case-study-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-weight: bold;
}
.case-study-item__header i {
    margin-right: 8px;
}
.case-study-item__header small {
    font-size: 0.8rem;
    color: #888;
}
.case-study-item p {
    margin: 0;
    font-size: 0.95rem;
}


/* 五个配套服务措施 */
.support-measures {
    padding: 60px 0;
    background-color: #f9fafb;
}

.support-measures-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.support-measure-item {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.support-measure-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.support-measure-item__icon-wrapper {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.support-measure-item__icon-wrapper i {
    font-size: 1.8rem;
}

/* 图标颜色 */
.icon--green { background-color: #34D399; }
.icon--blue { background-color: #60A5FA; }
.icon--amber { background-color: #FBBF24; }
.icon--purple { background-color: #A78BFA; }
.icon--red { background-color: #F87171; }

.support-measure-item h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.support-measure-item p {
    color: #666;
    font-size: 0.9rem;
}


/* 响应式设计 */
@media (max-width: 1024px) {
    .principles-grid {
        /* 在这个断点，我们让它继承基础样式即可，无需额外规则 */
        /* 如果需要微调，可以改列宽，但 justify-content 保持不变 */
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .support-measures-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .service-loop-grid,
    .support-measures-grid {
        grid-template-columns: 1fr;
    }
    .principles-grid {
        grid-template-columns: 1fr;
        justify-content: stretch; /* 在单列时，恢复拉伸以占满宽度 */
    }
    .service-loop-item {
        text-align: center;
    }
}
/* hero 修饰类：知识库页使用浅色背景与紧凑高度 */
.hero--light {
    background: var(--light-gray);
    color: var(--text-color);
}
.hero--light h1,
.hero--light p {
    color: inherit; /* 避免被 .hero 的白色文字覆盖 */
}
.hero--compact {
    height: auto;       /* 覆盖 80vh */
    padding: 60px 0;    /* 改为常规内边距 */
}
/* 可选：小屏下再收紧字号 */
.arrow { display: none; }

/* 知识库页顶部背景图标 */
.hero--with-icon::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    background: url('images/scbook.png') no-repeat center/contain;
    opacity: 0.22;      /* 低不干扰文字 */
    pointer-events: none;
}

/* 为有图标的 hero 适当增大上内边距，避免覆盖标题 */
.hero--with-icon {
    padding-top: 160px; /* 覆盖 hero--compact 的上内边距 */
}

@media (max-width: 600px) {
    .hero--with-icon {
        padding-top: 120px;
    }
    .hero--with-icon::before {
        width: 88px;
        height: 88px;
        top: 12px;
    }
}

/* Knowledge Base Section */
.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* 横向展开的知识模块样式 */
.knowledge-category.wide-layout {
    grid-column: span 2; /* 占据两个网格列 */
    min-width: 0; /* 防止内容溢出 */
}

/* 在宽屏设备上占据更多列 */
@media (min-width: 1200px) {
    .knowledge-category.wide-layout {
        grid-column: span 3; /* 在大屏幕上占据三列 */
    }
}

/* 横向布局的子分类样式 */
.knowledge-category.wide-layout .sub-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.knowledge-category.wide-layout .sub-category {
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.knowledge-category.wide-layout .sub-category h4 {
    font-size: 1.1em;
    color: var(--primary-color);
    margin: 0 0 10px 0;
    font-weight: 600;
}

.knowledge-category.wide-layout .sub-category ul {
    margin: 0;
}

.knowledge-category.wide-layout .sub-category ul li {
    margin-bottom: 8px;
}

.knowledge-category.wide-layout .sub-category ul li a {
    font-size: 0.9em;
    line-height: 1.4;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .knowledge-category.wide-layout {
        grid-column: span 1; /* 在移动设备上恢复单列 */
    }
    
    .knowledge-category.wide-layout .sub-categories {
        grid-template-columns: 1fr; /* 移动设备上子分类也是单列 */
    }
}
.knowledge-category {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.knowledge-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.knowledge-category h3 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 为每个主题添加图标背景 */
.knowledge-category h3::before {
    content: '';
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

/* 不同主题的图标 */
.knowledge-category:nth-child(1) h3::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232E7D32"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>');
}

.knowledge-category:nth-child(2) h3::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232E7D32"><path d="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0L19.2 12l-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"/></svg>');
}

.knowledge-category:nth-child(3) h3::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232E7D32"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>');
}

.knowledge-category:nth-child(4) h3::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232E7D32"><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"/></svg>');
}

.knowledge-category:nth-child(5) h3::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232E7D32"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm3.5 6L12 10.5 8.5 8 12 5.5 15.5 8zM8.5 16L12 13.5 15.5 16 12 18.5 8.5 16z"/></svg>');
}

.knowledge-category:nth-child(n+6) h3::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232E7D32"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>');
}

.knowledge-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.knowledge-category ul li {
    margin-bottom: 14px;
    padding-left: 20px;
    position: relative;
}

.knowledge-category ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8em;
    top: 2px;
}

.knowledge-category ul li a {
    text-decoration: none;
    color: var(--card-text);
    font-weight: 500;
    transition: color 0.3s ease;
    line-height: 1.6;
    display: block;
}

.knowledge-category ul li a:hover {
    color: var(--secondary-color);
    padding-left: 8px;
    transition: all 0.3s ease;
}

/* 添加渐变背景装饰 */
.knowledge-category::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color)20, transparent);
    border-radius: 0 12px 0 60px;
    opacity: 0.1;
}

/* 删除以下重复的样式定义 */
.knowledge-category ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.knowledge-category ul li a:hover {
    color: var(--secondary-color);
}

/* Article Page Styles */
.article-page {
    padding: 60px 20px;
}

.article-page h1, .article-page h2 {
    color: var(--primary-color);
}

.article-page h1 {
    font-size: 2.8em;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.article-page h2 {
    font-size: 2em;
    margin-top: 40px;
    margin-bottom: 15px;
}

.article-page p {
    font-size: 1.1em;
    line-height: 1.9;
}

.article-page ul, .article-page ol {
    padding-left: 25px;
}

.article-page li {
    margin-bottom: 10px;
}

.article-page strong {
    color: var(--text-color);
}

.article-page a {
    color: var(--secondary-color);
    text-decoration: none;
}

.article-page a:hover {
    text-decoration: underline;
}

.registered-mark {
    font-size: 0.6em;
    vertical-align: super;
    color: var(--primary-color);
    margin-left: 2px;
}

/* 查看更多链接样式 */
.view-more {
    color: var(--primary-color);
    font-size: 0.7em;
    font-weight: 500;
    text-decoration: none;
    float: right;
    margin-top: 2px;
    transition: opacity 0.3s ease;
}

.view-more:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* 确保h3标题容器能够包含浮动元素 */
.knowledge-category h3 {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    overflow: hidden; /* 清除浮动 */
}

/* 二级子主题样式 */
.sub-category {
    margin-left: 20px;
    margin-bottom: 20px;
    border-left: 3px solid var(--secondary-color);
    padding-left: 15px;
}

.sub-category h4 {
    font-size: 1.1em;
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
}

.sub-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sub-category ul li {
    margin-bottom: 8px;
}

.sub-category ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.sub-category ul li a:hover {
    color: var(--secondary-color);
}