﻿/* ===================================
   CBAM 指南 - 主样式文件
   与 ohesg.com 保持一致的设计风格
   =================================== */

/* 基础变量 */
:root {
    /* 主色调 - 与 ohesg.com 一致的绿色 */

    /* 辅助色 */

    --accent-color: #f59e0b;
    --danger-color: #ef4444;
    --success-color: var(--primary-500);

    /* 文字颜色 */
    --text-color: #1f2937;
    --text-light: #4b5563;
    --text-muted: #9ca3af;

    /* 背景色 */
    --bg-color: #f9fafb;
    --bg-white: #ffffff;
    --bg-gray: #f3f4f6;

    /* 边框 */
    --border-color: #e5e7eb;

    /* 阴影 - 更柔和 */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);

    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* 过渡 */
    --transition: all 0.2s ease;

    /* 间距 */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* 导航栏高度 */
    --navbar-height: 60px;
}

/* 重置样式 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 容器 */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================================
   导航栏
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-badge {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-badge-text {
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.logo-text {
    color: var(--gray-900);
    font-weight: 600;
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-md);
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-color);
    color: var(--bg-white);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-color);
    transition: var(--transition);
}

/* ===================================
   面包屑导航
   =================================== */
.breadcrumb {
    padding: 8px 0;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    margin-top: 0;
    position: sticky;
    top: 60px;
    z-index: 999;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-color);
    font-weight: 500;
}

.breadcrumb-separator {
    color: var(--text-muted);
}

/* ===================================
   按钮
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--bg-white);
}

.btn-secondary:hover {
    background: #153b58;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

/* ===================================
   Hero 区域
   =================================== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

.hero-content {
    text-align: center;
    color: var(--bg-white);
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 32px;
    opacity: 0.9;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn-outline {
    color: var(--bg-white);
    border-color: rgba(255,255,255,0.6);
}

.hero .btn-outline:hover {
    background: var(--bg-white);
    color: var(--primary-color);
    border-color: var(--bg-white);
}

/* ===================================
   Section 通用样式
   =================================== */
section {
    padding: 70px 0;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1rem;
}

/* ===================================
   时间轴
   =================================== */
.timeline-section {
    background: var(--bg-white);
}

.timeline {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.timeline-item {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    position: relative;
    padding-left: 48px;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--border-color);
    border: 3px solid var(--bg-white);
    box-shadow: 0 0 0 2px var(--border-color);
}

.timeline-marker::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    width: 2px;
    height: 40px;
    background: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item:last-child .timeline-marker::after {
    display: none;
}

.timeline-content {
    padding-left: 8px;
}

.timeline-date {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-gray);
    color: var(--text-light);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.timeline-content h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--text-color);
    font-weight: 600;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* ===================================
   行业卡片
   =================================== */
.sectors-section {
    background: var(--bg-color);
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.sector-card {
    background: var(--bg-white);
    padding: 28px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.sector-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.sector-card:active {
    transform: translateY(-1px);
}

.sector-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.sector-card h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--text-color);
    font-weight: 500;
}

.sector-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* 行业模态框 */
.sector-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 24px;
    animation: fadeIn 0.2s ease;
}

.sector-modal {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: var(--shadow-lg);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-color);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

.modal-header {
    padding: 32px 32px 24px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.modal-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 12px;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin: 0;
}

.modal-body {
    padding: 24px 32px 32px;
}

.modal-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 24px;
    text-align: center;
}

.modal-section {
    margin-bottom: 24px;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section h3 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-light);
    display: inline-block;
}

.modal-products {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-products li {
    padding: 10px 16px;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    font-size: 0.9rem;
    position: relative;
    padding-left: 28px;
}

.modal-products li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 12px;
}

.modal-section p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    background: var(--bg-color);
    padding: 16px;
    border-radius: var(--radius-md);
}

.modal-resources {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.resource-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #f0f7f0, #e8f5e8);
    border: 1px solid var(--primary-light);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

.resource-link:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.resource-link span:first-child {
    font-size: 1.2rem;
}

.resource-link span:nth-child(2) {
    flex: 1;
    font-size: 0.9rem;
}

.link-arrow {
    opacity: 0.5;
    transition: var(--transition);
}

.resource-link:hover .link-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* 已完成节点 - 深绿色 */
.timeline-item.completed .timeline-marker {
    background: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-item.completed .timeline-date {
    background: var(--primary-color);
    color: var(--bg-white);
}

.timeline-item.completed .timeline-marker::after {
    background: var(--primary-light);
}

/* 当前节点 - 高亮绿色 */
.timeline-item.current .timeline-marker {
    background: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.25);
    width: 18px;
    height: 18px;
    top: 5px;
}

.timeline-item.current .timeline-date {
    background: var(--primary-color);
    color: var(--bg-white);
}

.timeline-item.current .timeline-content h3 {
    color: var(--primary-dark);
}

/* 未来节点 - 保持灰色（默认样式） */

.timeline-alert strong {
    color: #dc3545;
}

/* ===================================
   功能卡片
   =================================== */
.features-section {
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 28px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 500;
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 14px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.feature-link {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.feature-link:hover {
    color: var(--primary-dark);
}

/* ===================================
   页脚
   =================================== */
.footer {
    background: #f5f7f9;
    color: #333333;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 32px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    text-decoration: none;
}

.footer-brand .logo-badge {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-brand .logo-badge-text {
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.footer-brand .logo-text {
    font-size: 1.15rem;
    font-weight: 600;
    color: #222222;
}

.footer-brand p {
    margin-top: 12px;
    color: #666666;
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-brand .brand-note {
    margin-top: 16px;
    color: #718096;
    font-size: 12px;
}

.footer-brand .brand-note a {
    color: #1E40AF;
}

.footer-brand .brand-note a:hover {
    text-decoration: underline;
}

.footer-links h4,
.footer-external h4 {
    font-size: 0.95rem;
    margin-bottom: 14px;
    font-weight: 600;
    color: #222222;
}

.footer-links ul li,
.footer-external ul li {
    margin-bottom: 6px;
}

.footer-links a,
.footer-external a {
    color: #333333;
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-external a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    color: #666666;
    font-size: 0.8rem;
}

/* ===================================
   自评页面样式
   =================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    padding: 75px 0 38px;
    color: var(--bg-white);
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.assessment-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
}

.assessment-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
}

.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: var(--transition);
}

.progress-step.active {
    background: var(--primary-color);
    color: var(--bg-white);
}

.progress-step.completed {
    background: var(--primary-light);
    color: var(--bg-white);
}

.progress-line {
    width: 60px;
    height: 2px;
    background: var(--border-color);
    align-self: center;
}

.progress-line.active {
    background: var(--primary-color);
}

.assessment-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.question-group {
    margin-bottom: 32px;
}

.question-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary-dark);
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.option-item:hover {
    background: var(--bg-white);
    border-color: var(--primary-light);
}

.option-item.selected {
    background: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.option-item input {
    display: none;
}

.option-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.option-item.selected .option-radio {
    border-color: var(--bg-white);
}

.option-item.selected .option-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--bg-white);
    border-radius: 50%;
}

.assessment-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

/* 结果页面 */
.result-section {
    padding: 60px 0;
}

.result-header {
    text-align: center;
    margin-bottom: 48px;
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.result-header h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.result-header p {
    color: var(--text-light);
}

.result-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.result-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-color);
    border-radius: var(--radius-md);
}

.result-item-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.result-item-content h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.result-item-content p {
    font-size: 0.875rem;
    color: var(--text-light);
}

.impact-high {
    border-left: 4px solid #dc3545;
}

.impact-medium {
    border-left: 4px solid #ffc107;
}

.impact-low {
    border-left: 4px solid #28a745;
}

/* 资源链接样式 */
.resource-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.resource-link-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
}

.resource-link-item:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.resource-link-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.resource-link-content {
    flex: 1;
}

.resource-link-content h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.resource-link-content p {
    font-size: 0.875rem;
    opacity: 0.8;
}

.resource-link-arrow {
    font-size: 1.25rem;
    opacity: 0.6;
    transition: var(--transition);
}

.resource-link-item:hover .resource-link-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* ===================================
   Who needs CBAM 流程图
   =================================== */
.flowchart-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 24px;
}

.flowchart-start {
    text-align: center;
    margin-bottom: 40px;
}

.flowchart-start h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.flowchart-box {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.flowchart-question {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--primary-dark);
}

.flowchart-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.flowchart-btn {
    padding: 12px 32px;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid;
    min-width: 120px;
}

.flowchart-btn-yes {
    background: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.flowchart-btn-yes:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.flowchart-btn-no {
    background: transparent;
    color: var(--text-color);
    border-color: var(--border-color);
}

.flowchart-btn-no:hover {
    border-color: var(--text-color);
}

.flowchart-result {
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.flowchart-result.positive {
    background: linear-gradient(135deg, #fff5f5, #ffe5e5);
    border: 2px solid #dc3545;
}

.flowchart-result.negative {
    background: linear-gradient(135deg, #f0fff4, #e5ffe5);
    border: 2px solid #28a745;
}

.flowchart-result h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.flowchart-result p {
    margin-bottom: 16px;
    color: var(--text-light);
}

.flowchart-result ul {
    text-align: left;
    max-width: 400px;
    margin: 20px auto;
}

.flowchart-result li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.flowchart-result li:last-child {
    border-bottom: none;
}

.flowchart-reset {
    margin-top: 24px;
}

/* ===================================
   资料库页面
   =================================== */
.documents-section {
    padding: 60px 0;
}

/* 工具高亮区域 */
.tool-highlight {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
}

.tool-highlight-content {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.tool-highlight-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.tool-highlight-text {
    flex: 1;
    min-width: 200px;
}

.tool-highlight-text h3 {
    color: var(--bg-white);
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.tool-highlight-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin: 0;
}

.tool-highlight .btn {
    flex-shrink: 0;
    background: var(--bg-white);
    color: var(--primary-color);
    border: none;
}

.tool-highlight .btn:hover {
    background: var(--bg-color);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .tool-highlight-content {
        flex-direction: column;
        text-align: center;
    }
    
    .tool-highlight-text {
        min-width: 100%;
    }
}

.documents-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 30px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.document-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.document-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.document-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.document-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.document-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.document-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.document-link:hover {
    color: var(--primary-dark);
}

.document-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--bg-white);
    border-radius: 20px;
    font-size: 0.75rem;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* ===================================
   FAQ 页面
   =================================== */
.faq-section {
    padding: 60px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-section-title {
    margin: 48px 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-light);
    color: var(--primary-dark);
    font-size: 1.25rem;
}

.faq-section-title:first-of-type {
    margin-top: 0;
}

.faq-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: var(--primary-dark);
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-color);
}

.faq-icon {
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 0 24px 20px;
    color: var(--text-light);
    line-height: 1.8;
}

.faq-answer-content p {
    margin-bottom: 12px;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.faq-reference {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    padding: 8px 12px;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    margin-top: 12px;
}

/* FAQ列表样式 */
.faq-list {
    margin-top: 12px;
    padding-left: 0;
    list-style: none;
}

.faq-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    line-height: 1.6;
}

ul.faq-list li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--primary-color);
    font-weight: bold;
}

ol.faq-list {
    counter-reset: faq-counter;
}

ol.faq-list li {
    counter-increment: faq-counter;
}

ol.faq-list li::before {
    content: counter(faq-counter) '.';
    position: absolute;
    left: 4px;
    color: var(--primary-color);
    font-weight: 600;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ===================================
   响应式设计
   =================================== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .timeline {
        flex-direction: column;
        gap: 32px;
    }

    .timeline-item {
        max-width: none;
    }

    .timeline-marker::after {
        display: none;
    }

    .assessment-card {
        padding: 24px;
    }

    .flowchart-box {
        padding: 24px;
    }

    .flowchart-buttons {
        flex-direction: column;
    }

    .flowchart-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    section {
        padding: 60px 0;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .sectors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================
   动画
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s ease infinite;
}

/* ===================================
   工具页面头部 (Calculator & Help 共用)
   =================================== */
.tool-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 0;
    padding: 75px 0 38px;
    margin-bottom: 0;
    box-shadow: none;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.tool-header-actions {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 2;
    display: flex;
    gap: 6px;
}

.tool-header-btn {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.88);
    color: var(--primary-dark);
    text-decoration: none;
    border: none;
}

.tool-header-btn:hover {
    background: #ffffff;
    color: var(--primary-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tool-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.tool-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* ===================================
   计算器页面样式
   =================================== */
.content-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-top: 20px;
}

.content-card .section h2 {
    background-color: var(--primary-bg);
    color: var(--primary-dark);
    padding: 12px 20px;
    margin: 25px 0 15px;
    border-radius: var(--radius-sm);
    font-size: 18px;
    font-weight: 600;
    border-left: 4px solid var(--primary-color);
}

.table-scroll-container {
    overflow-x: auto;
    margin-bottom: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    max-width: 100%;
}

.content-card table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #fff;
    font-size: 14px;
    color: var(--text-color);
}

.content-card th,
.content-card td {
    padding: 12px 8px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.content-card th {
    background-color: var(--bg-gray);
    color: var(--text-color);
    font-weight: 600;
    white-space: nowrap;
}

.content-card tr:nth-child(even) {
    background-color: #f8f9fa;
}

.content-card input[type="text"],
.content-card input[type="number"],
.content-card select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.content-card input[type="text"]:focus,
.content-card input[type="number"]:focus,
.content-card select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}

.content-card input:invalid {
    border-left: 4px solid #dc3545;
}

.content-card input:valid:not(:placeholder-shown) {
    border-left: 4px solid #28a745;
}

.field-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 2px;
    display: block;
}

.field-success {
    color: #28a745;
    font-size: 12px;
    margin-top: 2px;
    display: block;
}

.guide-link {
    display: block;
    color: var(--primary-dark);
    font-size: 14px;
    margin: 5px 0 15px;
    text-decoration: none;
    text-align: left;
}

.guide-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.export-btn,
.action-buttons button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--bg-white);
    color: var(--primary-color);
    padding: 8px 16px;
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    margin: 5px;
}

.export-btn:hover,
.action-buttons button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

#calculateAllBtn {
    background: var(--primary-color);
    color: white;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin: 20px 0;
    letter-spacing: 0.5px;
}

#calculateAllBtn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.3);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

button:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

.btn-processing {
    background: linear-gradient(45deg, #6c757d, #495057) !important;
    animation: pulse-opacity 1.5s ease-in-out infinite;
}

@keyframes pulse-opacity {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.btn-success {
    background: var(--success-color) !important;
    color: white !important;
    border-color: var(--success-color) !important;
    animation: success-flash 0.6s ease-in-out;
}

@keyframes success-flash {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.content-card #B1T1,
.content-card #B1T6Table {
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.content-card #B1T1 th,
.content-card #B1T6Table th {
    position: sticky;
    top: 0;
    background: var(--primary-color);
    color: #ffffff;
    padding: 12px 8px;
    font-size: 13px;
    white-space: nowrap;
    z-index: 1;
}

.content-card #B1T1 td,
.content-card #B1T6Table td {
    padding: 8px 6px;
    white-space: nowrap;
}

.content-card #B1T1 input,
.content-card #B1T1 select,
.content-card #B1T6Table input,
.content-card #B1T6Table select {
    min-width: 80px;
    max-width: 120px;
}

.delete-btn,
.delete-btn-b1t4,
.delete-btn-b1t8,
button[onclick*="delete"],
button[onclick*="Delete"] {
    background-color: var(--bg-white);
    color: var(--danger-color);
    padding: 6px 12px;
    border: 1px solid var(--danger-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.delete-btn:hover,
.delete-btn-b1t4:hover,
.delete-btn-b1t8:hover,
button[onclick*="delete"]:hover,
button[onclick*="Delete"]:hover {
    background-color: var(--danger-color);
    color: #fff;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2);
}

#bubblePrompt {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.disclaimer {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 6px;
    font-size: 14px;
    color: #666;
    border-top: 2px solid #e9ecef;
}

.error-message {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    margin: 15px auto;
    max-width: 1200px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.error-content {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.error-icon {
    margin-right: 10px;
    font-size: 18px;
}

.error-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.error-close:hover {
    background-color: rgba(0,0,0,0.1);
}

.table-wrapper {
    position: relative;
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.table-scroll {
    overflow-x: auto;
    max-width: 100%;
    border-radius: 8px;
}

#cbamInfoBox {
    background-color: var(--primary-bg);
    border: 1px solid var(--primary-light);
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    color: var(--text-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

#cbamInfoBox h3 {
    color: var(--primary-dark);
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 10px;
    display: inline-block;
}

.cbam-calc-row {
    font-size: 16px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.cbam-result-highlight {
    font-weight: bold;
    font-size: 20px;
    color: #d63384;
    background: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

/* 计算器页面响应式 */
@media (max-width: 1200px) {
    .table-scroll-container { font-size: 13px; }
    .content-card input, .content-card select { min-width: 70px; font-size: 13px; padding: 6px; }
}

@media (max-width: 992px) {
    .table-scroll-container { font-size: 12px; }
    .content-card input, .content-card select { min-width: 60px; font-size: 12px; padding: 5px; }
    .content-card th, .content-card td { padding: 8px 4px; }
}

@media (max-width: 768px) {
    .content-card { padding: 15px; margin-top: 15px; }
    .content-card .section h2 { font-size: 16px; padding: 10px 15px; }
    .table-scroll-container { margin: 10px -15px; border-radius: 0; font-size: 11px; }
    .content-card input, .content-card select { min-width: 50px; font-size: 11px; padding: 4px; }
    .content-card th, .content-card td { padding: 6px 3px; }
    .export-btn, .action-buttons button { padding: 8px 12px; font-size: 12px; }
    .tool-header { padding: 36px var(--spacing-md) 24px; }
    .tool-header-actions { position: relative; z-index: 2; justify-content: center; margin-bottom: 20px; }
}

@media (max-width: 480px) {
    .table-scroll-container { font-size: 10px; }
    .content-card input, .content-card select { min-width: 45px; font-size: 10px; }
    .export-btn, .action-buttons button { padding: 6px 10px; font-size: 11px; margin: 3px; text-align: left; }
}

/* ===================================
   帮助页面样式
   =================================== */
section[id],
h3[id] {
    scroll-margin-top: 100px;
}

h3[id]::before {
    content: "";
    display: block;
    height: 100px;
    margin-top: -100px;
    visibility: hidden;
    pointer-events: none;
}

.layout {
    display: flex;
    gap: var(--spacing-xl);
}

.toc {
    flex: 0 0 220px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: sticky;
    top: 80px;
    align-self: flex-start;
    height: fit-content;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.toc-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.toc ul { list-style: none; }

.toc a {
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    padding: var(--spacing-xs) 0;
    padding-left: var(--spacing-md);
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.toc a:hover,
.toc a.active {
    border-left-color: var(--primary-color);
    background: var(--primary-bg);
    color: var(--primary-color);
}

.toc li.sub { padding-left: var(--spacing-sm); }
.toc li.sub a { font-size: 0.82rem; color: var(--text-light); padding-left: var(--spacing-lg); }
.toc li.sub a:hover { color: var(--primary-color); }

.content {
    flex: 1;
    min-width: 0;
}

.layout .section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: var(--spacing-lg);
    overflow: hidden;
}

.section-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--bg-gray);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    background: var(--bg-gray);
}

.section-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.section-body {
    padding: var(--spacing-lg);
}

.layout .section h2 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--border-color);
}

.layout .section h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin: var(--spacing-lg) 0 var(--spacing-sm);
}

.layout .section h4 {
    font-size: 1rem;
    color: var(--text-color);
    margin: var(--spacing-md) 0 var(--spacing-sm);
    font-weight: 600;
}

.layout .section p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.layout .section ul,
.layout .section ol {
    color: var(--text-light);
    padding-left: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.layout .section ul li,
.layout .section ol li {
    margin-bottom: var(--spacing-xs);
}

.note {
    background: #fffbeb;
    border-left: 4px solid var(--accent-color);
    padding: var(--spacing-md);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.9rem;
    color: #92400e;
    margin: var(--spacing-md) 0;
    line-height: 1.6;
}

.tip {
    background: var(--primary-bg);
    border-left: 4px solid var(--primary-color);
    padding: var(--spacing-md);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.9rem;
    color: var(--primary-dark);
    margin: var(--spacing-md) 0;
    line-height: 1.6;
}

.formula {
    background: var(--primary-bg);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-sm);
    padding: var(--spacing-md);
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.95rem;
    color: var(--primary-dark);
    margin: var(--spacing-md) 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-md) 0;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--bg-gray);
    vertical-align: middle;
}

.data-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 13px;
}

.data-table td {
    color: var(--text-color);
    font-size: 14px;
}

.data-table tbody tr:hover {
    background: var(--bg-gray);
}

code {
    background: var(--bg-gray);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.1em 0.4em;
    font-size: 0.88em;
    color: #3b82f6;
    font-family: 'Consolas', 'Monaco', monospace;
}

.glossary-link {
    color: var(--primary-dark);
    text-decoration: underline dotted var(--primary-light);
    text-underline-offset: 2px;
}

.glossary-link:hover {
    color: var(--primary-color);
    text-decoration: underline solid var(--primary-color);
}

.glossary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.glossary-card {
    background: var(--bg-gray);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    transition: box-shadow 0.2s;
}

.glossary-card:hover { box-shadow: var(--shadow-md); }

.glossary-abbr {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.glossary-full {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 8px;
    font-style: italic;
}

.glossary-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.65;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.feature-grid .feature-card {
    background: var(--bg-gray);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s;
}

.feature-grid .feature-card:hover { box-shadow: var(--shadow-md); }
.feature-grid .feature-card h4 { color: var(--primary-dark); font-size: 15px; margin: 0 0 10px; }
.feature-grid .feature-card p { font-size: 13.5px; color: var(--text-light); margin: 0 0 8px; }
.feature-grid .feature-card ul { font-size: 13px; color: var(--text-light); margin: 0 0 0 18px; }
.feature-grid .feature-card li { margin-bottom: 4px; }

.step-item { display: flex; gap: 14px; margin: 14px 0; }

.step-number {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    margin-top: 2px;
}

.step-content { flex: 1; }
.step-content p { margin-bottom: 8px; }

a.ext-link { color: var(--primary-color); text-decoration: none; font-weight: 500; }
a.ext-link:hover { text-decoration: underline; }

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: background 0.2s, transform 0.2s;
    z-index: 800;
}

.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }
.back-to-top.show { display: flex; }

.help-tool-nav { display: none; }

/* 帮助页面响应式 */
@media (max-width: 1024px) {
    .layout { flex-direction: column; }
    .toc { position: static; flex: none; max-height: none; }
}

@media (max-width: 768px) {
    .help-tool-nav {
        display: block;
        position: sticky;
        top: var(--navbar-height);
        z-index: 999;
        background: var(--bg-white);
        border-bottom: 1px solid var(--border-color);
    }
    .help-tool-nav .tool-nav-links {
        flex-direction: row; flex-wrap: wrap; justify-content: center;
        padding: 6px 16px; gap: 0; list-style: none; display: flex;
    }
    .help-tool-nav .tool-nav-links li a {
        white-space: nowrap; font-size: 0.8rem; padding: 6px 10px;
        color: var(--text-light); text-decoration: none;
    }
    .toc { display: none; }
    .content { width: 100%; }
    .section-body { padding: var(--spacing-md); }
    .glossary-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .data-table { font-size: 13px; }
    .data-table th, .data-table td { padding: 10px 12px; }
}

@media (max-width: 480px) {
    .tool-title { font-size: 1.25rem; }
    .tool-subtitle { font-size: 0.9rem; }
}

/* 打印样式 */
@media print {
    .navbar, .breadcrumb, .help-tool-nav, .tool-header-actions, .toc { display: none !important; }
    .tool-header { margin-top: 0; }
    .layout .section { box-shadow: none; border: 1px solid #ddd; page-break-inside: avoid; }
}


/* Glossary-style shell for cbam-steel deployed pages */
.cbam-steel-breadcrumb {
    position: static;
    top: auto;
    z-index: auto;
    margin-top: 0;
    padding: 0;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.cbam-steel-breadcrumb .mx-auto,
.cbam-steel-hero .mx-auto {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.cbam-steel-breadcrumb .text-sm {
    font-size: 0.875rem;
    line-height: 1.5rem;
}

.cbam-steel-breadcrumb .text-gray-500 {
    color: #6b7280;
}

.cbam-steel-breadcrumb .text-gray-900,
.cbam-steel-breadcrumb .hover\:text-gray-900:hover {
    color: #111827;
}

.cbam-steel-breadcrumb .text-emerald-600 {
    color: #059669;
}

.cbam-steel-breadcrumb .font-medium {
    font-weight: 500;
}

.cbam-steel-breadcrumb .mx-2 {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.cbam-steel-breadcrumb [aria-label="面包屑导航"] {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.cbam-steel-hero {
    background: var(--primary-color);
    border-bottom: 1px solid var(--primary-dark);
    height: 100px;
    padding: 0;
    color: #fff;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.cbam-steel-hero .py-8 {
    padding-top: 1rem;
    padding-bottom: 1rem;
    width: 100%;
}

.cbam-steel-hero .grid {
    display: grid;
    gap: 1.5rem;
}

.cbam-steel-hero-title {
    margin: 0;
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: #fff;
}

.cbam-steel-hero-subtitle {
    margin-top: 0.5rem;
    max-width: 42rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.6;
}

.cbam-steel-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.75rem;
}

.cbam-steel-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.cbam-steel-hero-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f9fafb;
}

@media (min-width: 1024px) {
    .cbam-steel-hero .lg\:grid-cols-\[1fr_auto\] {
        grid-template-columns: 1fr auto;
    }

    .cbam-steel-hero .lg\:items-start {
        align-items: start;
    }

    .cbam-steel-hero-actions {
        justify-content: flex-end;
    }
}

@media (max-width: 640px) {
    .cbam-steel-hero-title {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .cbam-steel-hero-actions {
        width: 100%;
    }

    .cbam-steel-hero-btn {
        flex: 1 1 auto;
    }
}
