/* ================================================
   HS编码详细页面样式
   ================================================ */

/* 页面容器 */
.hscode-detail-container {
    min-height: 100vh;
    background: var(--bg-secondary);
}

/* 顶部导航 */
.detail-header {
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.detail-header .header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.detail-header .brand-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.detail-header .brand-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.detail-header .brand-text {
    display: flex;
    flex-direction: column;
}

.detail-header .brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.detail-header .brand-title a {
    color: #4a9c01;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.detail-header .brand-title a:hover {
    color: var(--primary-green);
}

.detail-header .brand-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-header .header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-header .action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--neutral-gray-700);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
}

.detail-header .action-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    color: var(--primary-green);
}

/* 主题切换按钮 */
.theme-toggle .dark-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .light-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .dark-icon {
    display: block;
}

/* === 用户信息样式 === */
.detail-header .user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 0.25rem 0.5rem;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.detail-header .user-info:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.detail-header .user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    color: white;
    font-weight: 600;
    font-size: 12px;
    flex-shrink: 0;
}

.detail-header .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-header .user-details {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.detail-header .user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--neutral-gray-800);
    line-height: 1.2;
}

.detail-header .user-role {
    font-size: 0.75rem;
    color: var(--neutral-gray-600);
    line-height: 1.2;
}

.detail-header .user-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.detail-header .user-actions .action-btn {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
}

.detail-header .login-actions {
    display: flex;
    align-items: center;
}

.detail-header .login-actions .login-btn {
    width: auto;
    height: 44px;
    padding: 0 1rem;
    border-radius: 22px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--neutral-gray-700);
    cursor: pointer;
    transition: all 0.3s ease;
}

.detail-header .login-actions .login-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    color: var(--primary-green);
}

.detail-header .login-btn span {
    font-size: 0.9rem;
}

/* 暗色主题适配 */
[data-theme="dark"] .detail-header .user-info {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .detail-header .user-info:hover {
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(25px);
}

[data-theme="dark"] .detail-header .user-name {
    color: var(--neutral-gray-200);
}

[data-theme="dark"] .detail-header .user-role {
    color: var(--neutral-gray-200);
}

[data-theme="dark"] .detail-header .action-btn {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--neutral-gray-200);
}

[data-theme="dark"] .detail-header .action-btn:hover {
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(25px);
    color: var(--primary-green-light);
}

[data-theme="dark"] .detail-header .login-actions .login-btn {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--neutral-gray-200);
}

[data-theme="dark"] .detail-header .login-actions .login-btn:hover {
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(25px);
    color: var(--primary-green-light);
}

/* 主内容区域 */
.detail-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem; /* 减少上下内边距从1.5rem到1rem */
}

/* 简化的HS编码英雄区域 */
.hscode-hero {
    margin-bottom: 1.5rem; /* 减少下边距从3rem到1.5rem */
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem; /* 减少内边距从1.5rem 2rem到1rem 1.5rem */
    border-radius: 20px;
    border: 1px solid rgba(74, 156, 1, 0.1);
    margin-bottom: 1rem; /* 减少下边距从2rem到1rem */
    position: relative;
    overflow: hidden;
    gap: 1.5rem; /* 减少内部间距从2rem到1.5rem */
    min-height: 120px; /* 减少最小高度从150px到120px */
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74, 156, 1, 0.3), transparent);
}

/* 左侧内容区域 */
.hero-left {
    flex: 1;
    text-align: left;
}

.hscode-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem; /* 减少内边距从0.375rem 0.875rem到0.25rem 0.75rem */
    background: var(--primary-green);
    color: white;
    border-radius: 50px;
    font-size: 0.75rem; /* 减少字体大小从0.8rem到0.75rem */
    font-weight: 600;
    margin-bottom: 0.75rem; /* 减少下边距从1rem到0.75rem */
    box-shadow: 0 2px 8px rgba(74, 156, 1, 0.3);
}

.hscode-title {
    font-size: 1.75rem; /* 减少字体大小从1.875rem到1.75rem */
    font-weight: 700;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Courier New', monospace;
    color: var(--primary-green-light);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.commodity-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem; /* 减少下边距从1rem到0.75rem */
    line-height: 1.4;
}

.commodity-description {
    margin-top: 0.5rem; /* 减少上边距从0.75rem到0.5rem */
}

.commodity-description p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
    margin: 0;
}

/* 右侧操作区域 */
.hero-right {
    flex-shrink: 0;
}

.quick-actions {
    display: flex;
    gap: 0.5rem; /* 减少间距从0.75rem到0.5rem */
    flex-direction: row;
    align-items: center;
}

.quick-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem; /* 减少内边距从0.75rem 1.25rem到0.625rem 1rem */
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
    min-width: 120px; /* 减少最小宽度从140px到120px */
    white-space: nowrap;
    height: 48px; /* 设置固定高度为48px */
}

.quick-btn.primary {
    background: var(--primary-green);
    color: white;
    box-shadow: 0 4px 12px rgba(74, 156, 1, 0.3);
}

.quick-btn.primary:hover {
    background: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 156, 1, 0.4);
}

.quick-btn.secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.quick-btn.secondary:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}



/* 增强的详细信息网格 */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem; /* 减少网格间距从1.5rem到1rem */
    margin-bottom: 1.5rem; /* 减少下边距从3rem到1.5rem */
}

.feature-card {
    background: var(--bg-primary);
    border-radius: 20px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: rgba(74, 156, 1, 0.2);
}

.feature-card .card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1.5rem; 
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(74, 156, 1, 0.02) 100%);
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.feature-card .card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-green), transparent);
    border-radius: 1px;
}

.icon-wrapper {
    width: 40px; /* 减少尺寸从48px到40px */
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(74, 156, 1, 0.25);
    flex-shrink: 0;
}

.icon-wrapper i {
    color: white;
    font-size: 1.125rem; /* 减少字体大小从1.25rem到1.125rem */
}

.header-content {
    flex: 1;
}

.header-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
    padding-left: 0px; /* 移除左侧内边距 */
}



.feature-card .card-body {
    padding: 1rem 1.5rem; /* 减少上下内边距从1.5rem到1rem */
}

/* 申报要素特殊样式 */
.declaration-card {
    grid-column: 1 / -1;
}

.declaration-content {
    color: var(--primary-green);
    line-height: 1.7;
    font-size: 1rem;
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-green);
}

/* 计量单位样式 */
.units-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.unit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.unit-item:hover {
    background: rgba(74, 156, 1, 0.05);
    border-color: rgba(74, 156, 1, 0.2);
}

.unit-item label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.unit-item value {
    font-weight: 700;
    color: var(--primary-green-light);
    font-size: 0.95rem;
    font-family: 'SF Mono', 'Monaco', monospace;
}

/* 监管条件和检验检疫样式 */
.supervision-content,
.inspection-content {
    color: var(--text-secondary);
    line-height: 1.4;
    font-size: 0.9rem;
    padding: 0.8rem;
    border-radius: 12px;
    text-align: left;
    font-weight: 500;
    min-height: 40px;
    display: block;
    word-break: break-word;
    word-wrap: break-word;
}

/* 监管条件和检验检疫的列表样式 */
.supervision-content .condition-list,
.inspection-content .condition-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.supervision-content .condition-item,
.inspection-content .condition-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.4rem;
}

.supervision-content .condition-item:last-child,
.inspection-content .condition-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.supervision-content .condition-code,
.inspection-content .condition-code {
    display: inline-block;
    min-width: 2rem;
    padding: 0.2rem 0.4rem;
    background: var(--primary-green);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    margin-right: 0.6rem;
    text-align: center;
    flex-shrink: 0;
    line-height: 1.2;
}

.supervision-content .condition-desc,
.inspection-content .condition-desc {
    flex: 1;
    line-height: 1.3;
    color: var(--text-primary);
    font-size: 0.85rem;
}

/* 删除不再需要的简化显示样式，统一使用结构化显示 */

/* 暗色主题适配 */
[data-theme="dark"] .supervision-content .condition-item,
[data-theme="dark"] .inspection-content .condition-item {
    border-bottom-color: rgba(74, 156, 1, 0.2);
}

[data-theme="dark"] .supervision-content .condition-code,
[data-theme="dark"] .inspection-content .condition-code {
    background: var(--primary-green-light);
    color: var(--text-primary);
}

[data-theme="dark"] .supervision-content .condition-desc,
[data-theme="dark"] .inspection-content .condition-desc {
    color: var(--text-secondary);
}

/* 现代化税率信息 */
.tax-section {
    margin-bottom: 1.5rem; /* 减少下边距从3rem到1.5rem */
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem; /* 减少下边距从2rem到1rem */
    padding: 0 0.5rem;
}

.header-icon {
    width: 48px; /* 减少尺寸从56px到48px */
    height: 48px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(74, 156, 1, 0.25);
}

.header-icon i {
    color: white;
    font-size: 1.25rem; /* 减少字体大小从1.5rem到1.25rem */
}

.header-text h2 {
    font-size: 1.375rem; /* 减少字体大小从1.5rem到1.375rem */
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}



.tax-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem; /* 减少网格间距从1.5rem到1rem */
}

.tax-card {
    background: var(--bg-primary);
    border-radius: 20px;
    border: 1px solid var(--border-light);
    padding: 1.25rem; /* 调整内边距以适应新布局 */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    display: flex; /* 改为flex布局 */
    align-items: center; /* 垂直居中 */
    gap: 1rem; /* 图标和信息之间的间距 */
}

.tax-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-green-light));
}

.tax-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(74, 156, 1, 0.2);
}

.tax-card .tax-icon {
    width: 48px; /* 减少图标尺寸以适应新布局 */
    height: 48px;
    border-radius: 14px; /* 调整圆角 */
    background: linear-gradient(135deg, rgba(74, 156, 1, 0.1), rgba(95, 177, 1, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0; /* 移除下边距，因为现在是左右布局 */
    border: 2px solid rgba(74, 156, 1, 0.1);
    flex-shrink: 0; /* 防止图标被压缩 */
}

.tax-card .tax-icon i {
    color: var(--primary-green);
    font-size: 1.25rem; /* 稍微调整图标大小 */
}

.tax-info {
    flex: 1; /* 让信息区域占据剩余空间 */
    min-width: 0; /* 允许内容收缩 */
}

.tax-info h4 {
    font-size: 1rem; /* 稍微减少标题字体 */
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0; /* 减少下边距 */
    line-height: 1.3;
}

.tax-rate {
    font-size: 1.75rem; /* 保持较大的数字显示 */
    font-weight: 700;
    color: var(--primary-green);
    margin: 0;
    line-height: 1.1;
    font-family: 'Inter', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 2px rgba(74, 156, 1, 0.1);
}



/* 税率卡片特定颜色 */
.mfn-tax::before {
    background: linear-gradient(90deg, #4f8fc7, #6ba3d4);
}

.mfn-tax .tax-icon {
    background: linear-gradient(135deg, rgba(79, 143, 199, 0.15), rgba(107, 163, 212, 0.08)); /* 增强背景对比 */
    border-color: rgba(79, 143, 199, 0.25); /* 增强边框 */
}

.mfn-tax .tax-icon i {
    color: #4f8fc7;
}

.mfn-tax .tax-rate {
    color: #4f8fc7;
}

.general-tax::before {
    background: linear-gradient(90deg, #737880, #a7abb0);
}

.general-tax .tax-icon {
    background: linear-gradient(135deg, rgba(115, 120, 128, 0.15), rgba(167, 171, 176, 0.08)); /* 增强背景对比 */
    border-color: rgba(115, 120, 128, 0.25); /* 增强边框 */
}

.general-tax .tax-icon i {
    color: #737880;
}

.general-tax .tax-rate {
    color: #737880;
}

.export-tax::before {
    background: linear-gradient(90deg, #d9534f, #e67e70);
}

.export-tax .tax-icon {
    background: linear-gradient(135deg, rgba(217, 83, 79, 0.15), rgba(230, 126, 112, 0.08)); /* 增强背景对比 */
    border-color: rgba(217, 83, 79, 0.25); /* 增强边框 */
}

.export-tax .tax-icon i {
    color: #d9534f;
}

.export-tax .tax-rate {
    color: #d9534f;
}

/* 默认增值税卡片样式保持原有的绿色主题 */
.vat-tax .tax-icon {
    background: linear-gradient(135deg, rgba(74, 156, 1, 0.15), rgba(95, 177, 1, 0.08)); /* 增强背景对比 */
    border-color: rgba(74, 156, 1, 0.25); /* 增强边框 */
}

/* 增强的CIQ代码区域 */
.ciq-section {
    margin-bottom: 1rem; /* 减少下边距从2rem到1rem */
}

/* 返回按钮样式 */
.back-button-container {
    margin-top: 1rem; /* 减少上边距从2rem到1rem */
    text-align: center;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.back-button:hover {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 156, 1, 0.2);
}

.back-button i {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.back-button:hover i {
    transform: translateX(-2px);
}

/* 暗色主题适配 */
[data-theme="dark"] .back-button {
    background: rgba(42, 47, 58, 0.4);
    backdrop-filter: blur(20px);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

[data-theme="dark"] .back-button:hover {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.ciq-container {
    background: var(--bg-primary);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.ciq-table-wrapper {
    overflow-x: auto;
    background: var(--bg-primary);
}

.ciq-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    line-height: 1.6;
    table-layout: fixed;
}

.ciq-table th,
.ciq-table td {
    padding: 0.75rem 1rem; /* 减少内边距从1rem 1.5rem到0.75rem 1rem */
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

/* 精确列宽设置防止串行 */
.ciq-table th:nth-child(1),
.ciq-table td:nth-child(1) {
    width: 180px;
    min-width: 180px;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ciq-table th:nth-child(2),
.ciq-table td:nth-child(2) {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ciq-table th:nth-child(3),
.ciq-table td:nth-child(3) {
    width: auto;
    min-width: 250px;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.ciq-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid var(--primary-green);
    font-size: 0.9rem;
}

.ciq-table tbody tr {
    transition: all 0.2s ease;
    background: var(--bg-primary);
}

/* CIQ表格悬停效果 */
.ciq-table tbody tr:hover {
    background: rgba(74, 156, 1, 0.05) !important;

}

.ciq-table .loading-cell {
    text-align: center;
    padding: 2rem; /* 减少内边距从4rem到2rem */
    color: var(--text-secondary);
    background: var(--bg-primary);
    border: none;
}

.ciq-table .loading-cell .loading-spinner {
    width: 40px; /* 减少尺寸从48px到40px */
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem; /* 减少下边距从1.5rem到1rem */
    display: block;
}

.ciq-table .loading-cell span {
    font-weight: 600;
    font-size: 1rem; /* 减少字体大小从1.125rem到1rem */
    display: block;
    color: var(--text-secondary);
}

.ciq-table .empty-cell {
    text-align: center;
    padding: 2rem; /* 减少内边距从4rem到2rem */
    color: var(--text-muted);
    font-style: italic;
    font-size: 1rem; /* 减少字体大小从1.125rem到1rem */
    background: var(--bg-primary);
    border: none;
}

.ciq-table .hscode-cell {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Courier New', monospace;
    font-weight: 600;
    color: var(--primary-green);
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.ciq-table .ciq-code-cell {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Courier New', monospace;
    font-weight: 600;
    color: var(--primary-green);
    font-size: 0.85rem;
    letter-spacing: 0.2px;
}

.ciq-table .ciq-name-cell {
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
    word-wrap: break-word;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* 暗色主题适配 */
[data-theme="dark"] .ciq-container {
    background: rgba(42, 47, 58, 0.4);
    backdrop-filter: blur(20px);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .ciq-table th {
    background: rgba(42, 47, 58, 0.4);
    border-bottom-color: var(--primary-green-light);
}

[data-theme="dark"] .ciq-table tbody tr {
    background: rgba(42, 47, 58, 0.4);
    backdrop-filter: blur(10px);
}

/* 暗色主题下的CIQ表格悬停效果 */


[data-theme="dark"] .ciq-table td {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .ciq-table .hscode-cell {
    color: var(--primary-green-light);
}

/* 加载动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .ciq-table {
        font-size: 0.8rem;
    }
    
    .ciq-table th,
    .ciq-table td {
        padding: 0.75rem 0.5rem;
    }
    
    /* 移动端列宽调整 */
    .ciq-table th:nth-child(1),
    .ciq-table td:nth-child(1) {
        width: 120px;
        min-width: 120px;
        max-width: 120px;
    }
    
    .ciq-table th:nth-child(2),
    .ciq-table td:nth-child(2) {
        width: 100px;
        min-width: 100px;
        max-width: 100px;
    }
    
    .ciq-table th:nth-child(3),
    .ciq-table td:nth-child(3) {
        min-width: 150px;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .detail-header .user-details {
        display: none;
    }
    
    .detail-header .user-info {
        padding: 0.5rem;
    }
    
    .detail-header .login-btn span {
        display: none;
    }
    
    .detail-header .login-actions .login-btn {
        width: 44px;
        padding: 0;
    }
    
    .detail-header .header-content {
        padding: 0 0.75rem;
        height: 60px;
    }
    
    .detail-header .brand-logo {
        width: 32px;
        height: 32px;
    }
    
    .detail-header .brand-title {
        font-size: 1.125rem;
    }
    
    .detail-main {
        padding: 0.75rem 0.75rem; /* 减少移动端内边距从1rem到0.75rem */
    }
    
    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem; /* 减少内边距从1.5rem 1rem到1rem */
        margin-bottom: 1rem; /* 减少下边距从1.5rem到1rem */
        gap: 1rem; /* 减少间距从1.5rem到1rem */
    }
    
    .hero-left {
        width: 100%;
    }
    
    .hero-right {
        width: 100%;
    }
    
    .hscode-title {
        font-size: 1.5rem;
    }
    
    .commodity-title {
        font-size: 1rem;
        margin-bottom: 0.5rem; /* 减少下边距从0.75rem到0.5rem */
    }
    
    .quick-actions {
        flex-direction: row;
        gap: 0.375rem;
        justify-content: stretch;
        flex-wrap: nowrap;
    }
    
    .quick-btn {
        flex: 1;
        min-width: 0;
        padding: 0.5rem 0.5rem;
        font-size: 0.75rem;
        height: 40px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }
    
    .quick-btn span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .quick-btn i {
        font-size: 0.75rem;
        flex-shrink: 0;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem; /* 减少间距从1rem到0.75rem */
        margin-bottom: 1rem; /* 减少下边距从2rem到1rem */
    }
    
    .feature-card .card-header {
        padding: 0.75rem 1rem; /* 减少内边距从1.25rem到0.75rem 1rem */
    }
    
    .feature-card .card-body {
        padding: 0.75rem 1rem; /* 减少内边距从1.25rem到0.75rem 1rem */
    }
    
    .icon-wrapper {
        width: 36px; /* 减少尺寸从40px到36px */
        height: 36px;
    }
    
    .header-content h3 {
        font-size: 1rem;
    }
    
    .section-header {
        margin-bottom: 0.75rem; /* 减少下边距从1.5rem到0.75rem */
    }
    
    .header-icon {
        width: 40px; /* 减少尺寸从48px到40px */
        height: 40px;
    }
    
    .header-text h2 {
        font-size: 1.25rem;
    }
    
    .tax-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem; /* 减少间距从1rem到0.75rem */
    }
    
    .tax-card {
        padding: 1rem; /* 减少内边距从1.5rem到1rem */
        display: flex; /* 确保移动端也使用flex布局 */
        align-items: center;
        gap: 0.75rem; /* 移动端减少间距 */
        min-height: 80px; /* 设置最小高度保持一致性 */
    }
    
    .tax-card .tax-icon {
        width: 40px; /* 移动端进一步减少图标尺寸 */
        height: 40px;
        margin-bottom: 0; /* 确保移除下边距 */
        border-radius: 12px; /* 调整圆角 */
    }
    
    .tax-card .tax-icon i {
        font-size: 1.125rem; /* 调整移动端图标字体大小 */
    }
    
    .tax-info {
        display: flex;
        flex-direction: column; /* 确保税率名称和数值垂直排列 */
        gap: 0.25rem; /* 名称和数值之间的间距 */
    }
    
    .tax-info h4 {
        font-size: 0.85rem; /* 移动端减少标题字体 */
        margin: 0; /* 移除边距，使用gap控制间距 */
        line-height: 1.2;
        color: var(--text-secondary);
    }
    
    .tax-rate {
        font-size: 1.25rem; /* 移动端适当减少数字大小 */
        font-weight: 600;
        color: var(--text-primary);
        line-height: 1.1;
    }
    
    .ciq-table th,
    .ciq-table td {
        padding: 0.5rem 0.5rem; /* 减少内边距从0.75rem到0.5rem */
        font-size: 0.8rem;
    }
    
    .ciq-table .loading-cell {
        padding: 1.5rem; /* 减少内边距从2rem到1.5rem */
    }
    
    .ciq-table .loading-cell .loading-spinner {
        width: 32px;
        height: 32px;
        border-width: 3px;
    }
    
    .back-button-container {
        margin-top: 0.75rem; /* 减少上边距从1.5rem到0.75rem */
    }
    
    .back-button {
        padding: 0.5rem 1rem; /* 减少内边距从0.625rem 1.25rem到0.5rem 1rem */
        font-size: 0.8rem;
    }
}

/* 现代化动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* 页面加载动画 */
.hscode-hero {
    animation: fadeInUp 0.8s ease-out;
}

.feature-card {
    animation: fadeInUp 0.6s ease-out;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.tax-card {
    animation: slideInFromLeft 0.6s ease-out;
}

.tax-card:nth-child(1) { animation-delay: 0.1s; }
.tax-card:nth-child(2) { animation-delay: 0.2s; }
.tax-card:nth-child(3) { animation-delay: 0.3s; }
.tax-card:nth-child(4) { animation-delay: 0.4s; }

/* 微交互效果 */
.quick-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.feature-card:active {
    transform: translateY(-2px) scale(0.99);
}

.tax-card:active {
    transform: translateY(-4px) scale(0.99);
}

/* 焦点状态优化 */
.quick-btn:focus,
.feature-card:focus,
.tax-card:focus {
    outline: 3px solid rgba(74, 156, 1, 0.3);
    outline-offset: 2px;
}

/* 暗色主题适配 */
[data-theme="dark"] .hero-content {
    backdrop-filter: blur(20px);
    border-color: rgba(74, 156, 1, 0.2);
}

[data-theme="dark"] .feature-card {
    backdrop-filter: blur(20px);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .feature-card:hover {
    background: rgba(42, 47, 58, 0.45);
    backdrop-filter: blur(25px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(74, 156, 1, 0.3);
}

[data-theme="dark"] .feature-card .card-header {
    background: rgba(42, 47, 58, 0.1);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .tax-card {
    backdrop-filter: blur(20px);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .tax-card:hover {
    background: rgba(42, 47, 58, 0.45);
    backdrop-filter: blur(25px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(74, 156, 1, 0.3);
}

[data-theme="dark"] .description-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .ciq-container {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* 滚动行为优化 */
html {
    scroll-behavior: smooth;
}

/* 新增：中等屏幕优化 - 1011px-1067px（防止头部和按钮换行） */
@media (min-width: 1011px) and (max-width: 1067px) {
    .detail-header .header-content {
        padding: 0 1rem;
    }

    .detail-header .brand-area { gap: 0.5rem; }

    .detail-header .brand-title {
        font-size: 1.15rem;
        white-space: nowrap;
    }

    .detail-header .user-info {
        padding: 0.4rem 0.75rem;
    }

    .detail-header .user-name,
    .detail-header .user-role {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .detail-header .user-name { max-width: 120px; }
    .detail-header .user-role { max-width: 100px; }

    .quick-actions { gap: 0.5rem; }
    .quick-btn { 
        padding: 0.6rem 1rem; 
        min-width: 120px; 
        font-size: 0.85rem; 
        height: 46px; /* 中等屏幕设置为46px高度 */
    }
    
    /* 中等屏幕税率卡片优化 */
    .tax-cards {
        grid-template-columns: repeat(2, 1fr); /* 中等屏幕改为2列显示 */
        gap: 1rem;
    }
    
    .tax-card {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .tax-card .tax-icon {
        width: 44px;
        height: 44px;
    }
    
    .tax-info h4 {
        font-size: 0.95rem;
    }
    
    .tax-rate {
        font-size: 1.5rem;
    }
}

/* 新增：更严格的中等屏幕优化 - 1015px-1067px（隐藏导航文字，进一步压缩间距） */
@media (min-width: 1015px) and (max-width: 1067px) {
    .detail-header .header-content { padding: 0 0.75rem; }
    .detail-header .brand-area { gap: 0.5rem; }
    .detail-header .brand-title { font-size: 1.1rem; white-space: nowrap; }

    /* 收紧导航并仅显示图标 */
    .detail-header .tools-nav-inline { margin: 0 0.5rem; }
    .detail-header .tools-nav-inline .nav-tab { padding: 0.6rem; min-width: 44px; justify-content: center; }
    .detail-header .tools-nav-inline .nav-tab span { display: none; }
    .detail-header .tools-nav-inline .nav-tab small { display: none; }

    /* 收紧用户信息与操作按钮 */
    .detail-header .user-info { padding: 0.35rem 0.6rem; }
    .detail-header .user-actions .action-btn { width: 30px; height: 30px; font-size: 0.8rem; }
    .detail-header .action-btn { width: 40px; height: 40px; }
    .detail-header .login-btn span { display: none; }

    /* 防止文字换行并截断 */
    .detail-header .user-name, .detail-header .user-role { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .detail-header .user-name { max-width: 120px; }
    .detail-header .user-role { max-width: 100px; }
    
    /* 税率卡片在窄屏幕下的优化 */
    .tax-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .tax-card {
        padding: 0.875rem;
        gap: 0.625rem;
    }
    
    .tax-card .tax-icon {
        width: 40px;
        height: 40px;
    }
    
    .tax-card .tax-icon i {
        font-size: 1.125rem;
    }
    
    .tax-info {
        display: flex;
        flex-direction: column; /* 确保税率名称和数值垂直排列 */
        gap: 0.25rem; /* 名称和数值之间的间距 */
    }
    
    .tax-info h4 {
        font-size: 0.8rem;
        margin: 0; /* 移除边距，使用gap控制间距 */
        line-height: 1.2;
        color: var(--text-secondary);
    }
    
    .tax-rate {
        font-size: 1.125rem; /* 调整为更合适的大小 */
        font-weight: 600;
        color: var(--text-primary);
        line-height: 1.1;
    }
}

/* 减少动画的可访问性设置 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
} 

/* 极小屏幕优化 - 480px以下 */
@media (max-width: 480px) {
    .tax-cards {
        grid-template-columns: repeat(2, 1fr); /* 极小屏幕保持2列，节省空间 */
        gap: 0.5rem;
    }
    
    .tax-card {
        padding: 0.75rem;
        gap: 0.5rem; /* 图标和信息区域之间的间距 */
        min-height: auto; /* 允许高度自适应 */
        flex-direction: row; /* 保持水平布局：图标在左，信息在右 */
        align-items: center; /* 垂直居中对齐 */
        text-align: left; /* 左对齐 */
    }
    
    .tax-card .tax-icon {
        width: 32px; /* 进一步缩小图标 */
        height: 32px;
        border-radius: 8px;
        flex-shrink: 0; /* 防止图标被压缩 */
        margin: 0; /* 移除自动居中 */
    }
    
    .tax-card .tax-icon i {
        font-size: 0.875rem; /* 减小图标字体 */
    }
    
    .tax-info {
        flex: 1; /* 占据剩余空间 */
        min-width: 0; /* 允许内容收缩 */
        display: flex;
        flex-direction: column; /* 税率名称和数值垂直排列 */
        gap: 0.125rem; /* 名称和数值之间的小间距 */
    }
    
    .tax-info h4 {
        font-size: 0.75rem; /* 减小标题字体 */
        margin: 0; /* 移除边距 */
        line-height: 1.2; /* 紧凑行高 */
        color: var(--text-secondary); /* 使用次要文字颜色 */
    }
    
    .tax-rate {
        font-size: 1rem; /* 适当减小税率数字 */
        font-weight: 600; /* 加粗税率数字 */
        color: var(--text-primary); /* 主要文字颜色 */
        line-height: 1.1; /* 紧凑行高 */
    }
    
    /* 英雄区域在极小屏幕的进一步优化 */
    .hero-content {
        padding: 0.75rem;
        gap: 0.75rem;
        min-height: 100px;
    }
    
    .hscode-title {
        font-size: 1.375rem;
    }
    
    .quick-actions {
        gap: 0.25rem;
        flex-wrap: wrap;
    }
    
    .quick-btn {
        flex: 1;
        min-width: 0;
        padding: 0.375rem 0.25rem;
        font-size: 0.7rem;
        height: 36px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }
    
    .quick-btn span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .quick-btn i {
        font-size: 0.7rem;
        flex-shrink: 0;
    }
}

/* 超小屏幕优化 (360px以下) */
@media (max-width: 360px) {
    .quick-actions {
        gap: 0.2rem;
    }
    
    .quick-btn {
        padding: 0.25rem 0.125rem;
        font-size: 0.65rem;
        height: 32px;
    }
    
    .quick-btn i {
        font-size: 0.65rem;
        margin-right: 0.125rem;
    }
    
    .quick-btn span {
        font-size: 0.65rem;
    }
} 