/* gb99.cn 国家标准信息查询平台 - 专业版样式 */

:root {
    --primary: #0a4b8c;
    --primary-light: #1a6dc9;
    --primary-dark: #063663;
    --gold: #c9a227;
    --gold-light: #e6c250;
    --text-dark: #1a1a1a;
    --text-gray: #555;
    --text-light: #888;
    --text-muted: #aaa;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--bg-light);
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover {
    color: var(--primary-light);
    text-decoration: none;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 20px rgba(10, 75, 140, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
}

.logo a::before {
    content: '';
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    border-radius: var(--radius);
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-dark);
}

.nav {
    display: flex;
    align-items: center;
}

.nav a {
    margin-left: 36px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.25s ease;
}

.nav a:hover, .nav a.active {
    color: #fff;
    border-bottom-color: var(--gold);
}

/* Main */
.main {
    min-height: calc(100vh - 140px);
    padding: 48px 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #0d5a9c 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 48px;
    position: relative;
    overflow: visible;
    z-index: 1;
}

.hero::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.03'%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");
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.hero .subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.search-box {
    display: flex;
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-lg);
    overflow: visible;
}

.search-box input {
    flex: 1;
    padding: 16px 24px;
    font-size: 17px;
    border: none;
    outline: none;
    background: rgba(255, 255, 255, 0.95);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box button {
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--primary-dark);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    transform: translateY(-1px);
}

.search-box button:active {
    transform: translateY(0);
}

/* 搜索输入包装器 */
.search-input-wrapper {
    position: relative;
    flex: 1;
    min-height: 48px;
    z-index: 1001;
}

.search-input-wrapper input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: none;
    outline: none;
    font-size: 16px;
}

/* 自动联想下拉框 */
.search-suggest {
    position: absolute !important;
    top: calc(100% + 2px) !important;
    left: 0 !important;
    right: 0 !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0 0 8px 8px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    max-height: 400px !important;
    overflow-y: auto !important;
    z-index: 100000 !important;
    display: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.search-suggest.visible {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.search-suggest::-webkit-scrollbar {
    width: 8px;
}

.search-suggest::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.search-suggest::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* 联想建议项 */
.suggest-item {
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-light);
}

.suggest-item:last-child {
    border-bottom: none;
}

.suggest-item:hover {
    background: linear-gradient(135deg, rgba(10, 75, 140, 0.08) 0%, rgba(201, 162, 39, 0.08) 100%);
}

.suggest-item em {
    font-style: normal;
    color: var(--primary);
    font-weight: 700;
    background: linear-gradient(135deg, rgba(10, 75, 140, 0.15) 0%, rgba(201, 162, 39, 0.15) 100%);
    padding: 0 4px;
    border-radius: 3px;
}

.suggest-code {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
}

.suggest-name {
    font-size: 13px;
    color: var(--text-gray);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: -40px auto 48px;
    position: relative;
    z-index: 0;
}

.stat-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-gray);
}

/* Categories Section */
.categories {
    margin-bottom: 48px;
}

.section-title {
    font-size: 26px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--gold) 100%);
    border-radius: 2px;
    margin-right: 12px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.category-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.category-card h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.category-card p {
    color: var(--text-gray);
    font-size: 14px;
}

.category-card .icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(10, 75, 140, 0.1) 0%, rgba(201, 162, 39, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
}

/* Standard List */
.latest-standards {
    margin-bottom: 48px;
}

.standard-list-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.standard-item {
    display: grid;
    grid-template-columns: 160px 1fr 140px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
    transition: background 0.2s ease;
}

.standard-item:last-child {
    border-bottom: none;
}

.standard-item:hover {
    background: var(--bg-light);
}

.standard-item .std-code {
    font-weight: 600;
    font-size: 15px;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.standard-item .std-code::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    margin-left: 10px;
}

.standard-item .std-name {
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.standard-item .std-date {
    color: var(--text-light);
    font-size: 14px;
}

.more-link {
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--border-light);
}

.more-link a {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    color: var(--primary);
    transition: all 0.2s ease;
}

.more-link a:hover {
    padding-right: 8px;
}

/* Standard Table */
.standard-table {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.standard-table table {
    width: 100%;
    border-collapse: collapse;
}

.standard-table thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.standard-table th,
.standard-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.standard-table th {
    font-weight: 600;
    font-size: 14px;
}

.standard-table tbody tr {
    transition: background 0.2s ease;
}

.standard-table tbody tr:hover {
    background: var(--bg-light);
}

.std-name-cell {
    max-width: 450px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-detail {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-detail:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(10, 75, 140, 0.3);
}

/* Status */
.status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.status.现行 {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
}

.status.废止 {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
}

.status.被替代 {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #ef6c00;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 24px;
}

.pagination a {
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination a:hover:not(.active) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination a.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination .disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Detail Page */
.detail-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 48px;
}

.detail-header {
    padding-bottom: 32px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 32px;
}

.detail-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.detail-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    font-weight: 500;
}

.detail-status {
    display: inline-block;
    margin-top: 16px;
}

.detail-table {
    width: 100%;
}

.detail-table tr {
    border-bottom: 1px solid var(--border-light);
}

.detail-table tr:last-child {
    border-bottom: none;
}

.standard-analysis {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px solid var(--border);
}

.standard-analysis h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
}

.analysis-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
}

.analysis-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.analysis-section p {
    line-height: 1.8;
    color: var(--text-gray);
    margin: 0 0 12px 0;
}

.source-info {
    font-size: 13px;
    color: var(--gold) !important;
    font-style: italic;
}

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

.scenario-item {
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--gold);
    color: var(--text-gray);
    font-size: 14px;
}

.no-data {
    color: var(--text-light) !important;
    font-style: italic;
}

.detail-table th,
.detail-table td {
    padding: 16px 20px;
    vertical-align: top;
}

.detail-table th {
    width: 200px;
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-gray);
    font-size: 14px;
    text-align: right;
}

.detail-table td {
    color: var(--text-dark);
    font-size: 15px;
}

.back-link {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.back-link a {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 500;
}

.back-link a::before {
    content: '←';
    margin-right: 8px;
}

/* Category Page */
.page-header {
    margin-bottom: 36px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.page-header p {
    color: var(--text-gray);
}

.category-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    background: var(--bg-card);
    padding: 8px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    width: fit-content;
}

.category-tabs .tab {
    padding: 12px 28px;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    color: var(--text-gray);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.category-tabs .tab:hover {
    background: var(--bg-light);
}

.category-tabs .tab.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
}

.category-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
}

.category-sidebar {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 24px;
    position: sticky;
    top: 90px;
    height: fit-content;
}

.category-sidebar h3 {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.tree-view ul {
    list-style: none;
}

.tree-view li {
    margin-bottom: 4px;
}

.tree-view a {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: var(--radius);
    color: var(--text-gray);
    font-size: 14px;
    transition: all 0.2s ease;
}

.tree-view a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.tree-view a.selected {
    background: linear-gradient(135deg, rgba(10, 75, 140, 0.1) 0%, rgba(201, 162, 39, 0.1) 100%);
    color: var(--primary);
    font-weight: 500;
    border-left: 3px solid var(--primary);
}

.tree-view .code {
    font-weight: 600;
    margin-right: 12px;
    min-width: 65px;
    font-family: monospace;
}

.tree-view .count {
    margin-left: auto;
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    color: var(--text-light);
}

.category-main {
    min-height: 500px;
}

/* 全宽度分类内容布局 */
.category-content-full {
    width: 100%;
    min-height: 500px;
}

/* 大类选项卡容器 */
.major-category-tabs {
    margin-bottom: 32px;
}

.major-tabs-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

/* 大类选项卡按钮 */
.major-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 12px;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    min-height: 56px;
}

.major-tab:hover {
    background: rgba(10, 75, 140, 0.08);
    border-color: rgba(10, 75, 140, 0.2);
    transform: translateY(-2px);
}

.major-tab.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(10, 75, 140, 0.35);
    transform: translateY(-2px);
}

.major-tab-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}

.major-tab-code {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    min-width: 24px;
}

.major-tab-name {
    font-weight: 600;
    flex: 1;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 全宽度子分类网格布局 */
.sub-category-grid-full {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    width: 100%;
}

/* 全宽度子分类卡片 */
.sub-category-card-full {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 140px;
}

.sub-category-card-full:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

/* 全宽度子分类图标 */
.sub-category-icon-full {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sub-category-card-full:hover .sub-category-icon-full {
    transform: scale(1.1);
}

.icon-text-full {
    font-size: 28px;
    line-height: 1;
}

/* 全宽度子分类信息 */
.sub-category-info-full {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.sub-category-code-full {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(10, 75, 140, 0.06) 0%, rgba(201, 162, 39, 0.06) 100%);
    padding: 4px 12px;
    border-radius: 16px;
}

.sub-category-name-full {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    word-break: keep-all;
    margin: 0;
    padding: 0;
}

/* 子分类网格布局 */
.sub-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
}

/* 分类区域标题 */
.category-section-header {
    grid-column: 1 / -1;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-light);
}

.category-section-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.category-section-header p {
    color: var(--text-gray);
    font-size: 14px;
}

/* 子分类卡片 */
.sub-category-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sub-category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

/* 子分类图标 */
.sub-category-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.sub-category-card:hover .sub-category-icon {
    transform: scale(1.1);
}

.icon-text {
    font-size: 32px;
    line-height: 1;
}

/* 子分类信息 */
.sub-category-info {
    width: 100%;
}

.sub-category-code {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    background: linear-gradient(135deg, rgba(10, 75, 140, 0.08) 0%, rgba(201, 162, 39, 0.08) 100%);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

.sub-category-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    word-break: keep-all;
}

/* 标准列表区域 */
.standard-list-area {
    width: 100%;
}

/* Admin Styles */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg-light);
}

.admin-sidebar {
    width: 250px;
    background: linear-gradient(180deg, #1e3a5f 0%, #0d2847 100%);
    color: white;
    padding: 24px 0;
    position: fixed;
    height: 100vh;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.admin-sidebar .logo {
    padding: 0 24px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.admin-sidebar .logo a {
    font-size: 20px;
}

.admin-sidebar .logo a::before {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.admin-sidebar nav a {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
    border-left: 3px solid transparent;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: var(--gold);
}

.admin-sidebar nav a::before {
    margin-right: 10px;
    opacity: 0.75;
}

.admin-main {
    flex: 1;
    margin-left: 250px;
    padding: 32px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.admin-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-gray);
}

.admin-user a {
    color: var(--primary);
}

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

.admin-card h3 {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 75, 140, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 75, 140, 0.3);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-gray);
}

.btn-secondary:hover {
    background: var(--border);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: var(--bg-light);
}

.admin-table th,
.admin-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.admin-table th {
    font-weight: 600;
    color: var(--text-gray);
    font-size: 14px;
}

.admin-table tbody tr:hover {
    background: var(--bg-light);
}

.admin-actions {
    display: flex;
    gap: 8px;
}

.admin-actions a,
.admin-actions button {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: var(--radius);
}

/* Login Page */
.login-page {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.login-container {
    background: var(--bg-card);
    padding: 48px;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 420px;
}

.login-container h1 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.login-container p {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 32px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-form .form-group {
    margin-bottom: 0;
}

.login-form .btn {
    margin-top: 12px;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.login-footer a {
    color: var(--primary);
    font-weight: 500;
}

/* Loading & Empty */
.loading, .empty, .error {
    text-align: center;
    padding: 60px;
    color: var(--text-light);
}

.loading {
    font-size: 16px;
}

.empty {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    color: rgba(255, 255, 255, 0.6);
    padding: 40px 0;
    margin-top: 48px;
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-section h4 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    grid-column: 1 / -1;
    text-align: center !important;
    width: 100%;
    padding-top: 24px;
    display: block;
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 960px) {
    .category-content {
        grid-template-columns: 1fr;
    }

    .category-sidebar {
        order: 2;
        position: static;
    }

    .footer .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* 大类选项卡响应式 */
    .major-tabs-container {
        gap: 8px;
        padding: 12px;
    }
    
    .major-tab {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .major-tab-icon {
        font-size: 18px;
    }
    
    /* 子分类网格响应式 */
    .sub-category-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }
    
    .sub-category-card {
        padding: 20px;
    }
    
    .sub-category-icon {
        width: 60px;
        height: 60px;
    }
    
    .icon-text {
        font-size: 26px;
    }
    
    .category-section-header h2 {
        font-size: 20px;
    }
    
    /* 全宽度子分类网格响应式 */
    .sub-category-grid-full {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
    
    .sub-category-card-full {
        padding: 20px 12px;
        min-height: 130px;
    }
    
    .sub-category-icon-full {
        width: 56px;
        height: 56px;
    }
    
    .icon-text-full {
        font-size: 24px;
    }
    
    .sub-category-code-full {
        font-size: 12px;
        padding: 3px 10px;
    }
    
    .sub-category-name-full {
        font-size: 13px;
    }
    
    /* 大类选项卡响应式 */
    .major-tabs-container {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
        padding: 16px;
    }
    
    .major-tab {
        padding: 14px 10px;
        font-size: 13px;
        min-height: 52px;
    }
    
    .major-tab-icon {
        font-size: 20px;
    }
    
    .major-tab-code {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    /* 全宽度子分类网格响应式 */
    .sub-category-grid-full {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
    
    .sub-category-card-full {
        padding: 18px 10px;
        min-height: 120px;
    }
    
    .sub-category-icon-full {
        width: 50px;
        height: 50px;
    }
    
    .icon-text-full {
        font-size: 22px;
    }
    
    .sub-category-code-full {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .sub-category-name-full {
        font-size: 12px;
    }
    
    /* 大类选项卡响应式 */
    .major-tabs-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 8px;
        padding: 14px;
    }
    
    .major-tab {
        padding: 12px 8px;
        font-size: 12px;
        min-height: 48px;
    }
    
    .major-tab-icon {
        font-size: 18px;
    }
    
    .major-tab-code {
        font-size: 12px;
    }
}

@media (max-width: 640px) {
    .sub-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sub-category-card {
        padding: 16px;
    }
    
    .sub-category-icon {
        width: 56px;
        height: 56px;
    }
    
    .icon-text {
        font-size: 24px;
    }
    
    .sub-category-code {
        font-size: 12px;
    }
    
    .sub-category-name {
        font-size: 14px;
    }
    
    /* 全宽度子分类网格响应式 */
    .sub-category-grid-full {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .sub-category-card-full {
        padding: 16px 8px;
        min-height: 110px;
    }
    
    .sub-category-icon-full {
        width: 44px;
        height: 44px;
    }
    
    .icon-text-full {
        font-size: 20px;
    }
    
    .sub-category-code-full {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .sub-category-name-full {
        font-size: 12px;
    }
    
    /* 大类选项卡响应式 */
    .major-tabs-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 12px;
    }
    
    .major-tab {
        padding: 10px 8px;
        font-size: 11px;
        min-height: 44px;
        flex-direction: column;
        gap: 4px;
    }
    
    .major-tab-icon {
        font-size: 16px;
    }
    
    .major-tab-code {
        font-size: 12px;
    }
    
    .major-tab-name {
        text-align: center;
        font-weight: 500;
    }
}

@media (max-width: 768px) {
    .header .container {
        height: 60px;
    }

    .logo a {
        font-size: 20px;
    }

    .logo a::before {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .nav a {
        margin-left: 20px;
        font-size: 14px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero .subtitle {
        font-size: 16px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .standard-item {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }

    .standard-item .std-code::after {
        display: none;
    }

    .section-title {
        font-size: 22px;
    }

    .detail-card {
        padding: 24px;
    }

    .detail-table th {
        width: 120px;
        text-align: left;
    }

    .admin-sidebar {
        width: 200px;
    }

    .admin-main {
        margin-left: 200px;
        padding: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* 新增字段样式 */
.detail-section {
    margin-top: 24px;
    padding: 20px;
    background: #f8fafc;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.detail-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}

.detail-section p {
    line-height: 1.8;
    color: var(--text-gray);
    font-size: 14px;
}

.ai-interpretation {
    background: linear-gradient(135deg, rgba(10, 75, 140, 0.05) 0%, rgba(201, 162, 39, 0.05) 100%);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid rgba(201, 162, 39, 0.2);
}

.ai-interpretation p {
    line-height: 2;
    color: var(--text-dark);
    font-size: 15px;
}

.application-summary {
    background: #fff;
    padding: 16px;
    border-radius: var(--radius);
    border-left: 4px solid var(--gold);
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-gray);
}

.detail-table td {
    word-break: break-word;
    white-space: pre-wrap;
}

/* 摘要样式 - 简化合并版本 */
.summary-section {
    margin-top: 24px;
    padding: 20px;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.summary-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.summary-content {
    background: #fafbfc;
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

.summary-text {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-dark);
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
}