/* ============================================================
   国际油漆说明书查询系统 - 全局样式
   ============================================================ */

:root {
    --primary: #1A3A5C;
    --primary-light: #2D5F8A;
    --primary-dark: #0F2440;
    --accent: #E85D3A;
    --success: #27AE60;
    --danger: #E74C3C;
    --bg: #F5F6FA;
    --bg-white: #FFFFFF;
    --text: #1A1A2E;
    --text-secondary: #6B7280;
    --text-hint: #9CA3AF;
    --border: #E5E7EB;
    --border-light: #F3F4F6;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
        'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* ========== 导航栏 ========== */
.nav-bar {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.nav-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.logo-img {
    height: 32px;
    width: auto;
    background: white;
    padding: 3px 8px;
    border-radius: 4px;
    object-fit: contain;
}

.logo-icon { font-size: 24px; }

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-link {
    color: rgba(255,255,255,0.75);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background: rgba(255,255,255,0.15);
}

/* ========== 主内容 ========== */
.main-content {
    flex: 1;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

/* ========== Hero区域 ========== */
.hero {
    background: linear-gradient(160deg, var(--primary-dark), var(--primary) 60%, var(--primary-light));
    color: white;
    text-align: center;
    padding: 40px 24px 56px;
    margin: 0 -16px;
    border-radius: 0 0 30px 30px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

.hero-content { position: relative; z-index: 1; }

.hero-logo-img {
    height: 64px;
    width: auto;
    background: white;
    padding: 8px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: contain;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.hero-subtitle {
    font-size: 16px;
    opacity: 0.8;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.hero-desc {
    font-size: 14px;
    opacity: 0.6;
    line-height: 1.5;
}

/* ========== 搜索区域 ========== */
.search-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    margin-top: -24px;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-lg);
    margin-bottom: 24px;
    transition: box-shadow 0.3s;
}

.search-section.search-active {
    box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.15), var(--shadow-lg);
}

.search-box {
    display: flex;
    gap: 12px;
}

.search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--bg);
    border-radius: 24px;
    padding: 0 16px;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.search-input-wrap:focus-within {
    border-color: var(--primary);
    background: white;
}

.search-icon-svg { flex-shrink: 0; margin-right: 8px; }

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    padding: 14px 0;
    outline: none;
    color: var(--text);
}

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

.search-clear {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.btn-search {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    padding: 0 24px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(26,58,92,0.3);
}

.btn-search:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-search:active { transform: scale(0.97); }

.quick-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.tag-label {
    font-size: 13px;
    color: var(--text-hint);
}

.tag {
    display: inline-block;
    padding: 6px 16px;
    background: #E8F4FD;
    color: var(--primary);
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.tag:hover { background: #D0E8FA; }
.tag:active { transform: scale(0.95); }

/* ========== 搜索结果 ========== */
.results-section { margin-bottom: 32px; }

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.results-count {
    font-size: 14px;
    color: var(--text-secondary);
}

.results-count strong { color: var(--accent); }

.results-keyword {
    font-size: 13px;
    color: var(--text-hint);
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 0;
    color: var(--text-hint);
    gap: 16px;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.spinner-small {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* 产品卡片 */
.product-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.15s;
}

.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.product-card:active { transform: scale(0.985); }

.product-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.product-sales-code {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

.product-banner {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.lang-badges {
    display: flex;
    gap: 6px;
}

.lang-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.lang-badge.zh { background: #E8F4FD; color: var(--primary); }
.lang-badge.en { background: #FFF3E0; color: #E65100; }

/* 证书类型徽章 */
.cert-type-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    background: #FFF4E6;
    color: #E8590C;
    border: 1px solid #FBD5B3;
}
.cert-type-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* 证书类型筛选下拉 */
.cert-type-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.cert-type-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}
.cert-type-filter select {
    padding: 8px 12px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-primary);
    background: #fff;
    min-width: 200px;
    max-width: 100%;
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
    font-size: 13px;
    color: var(--text-hint);
}

/* 空状态 */
.empty-state { text-align: center; padding: 60px 20px; }

.empty-icon { font-size: 64px; margin-bottom: 16px; opacity: 0.6; }

.empty-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.empty-desc { font-size: 14px; color: var(--text-hint); line-height: 1.6; }

/* 使用提示 */
.tips-section { margin-bottom: 32px; }

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

.tips-card h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.tip-items { display: flex; flex-direction: column; gap: 16px; }

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.tip-num {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E8F4FD;
    color: var(--primary);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.tip-item strong { color: var(--primary); }

/* ========== 弹窗 ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(2px);
}

.modal-card {
    background: white;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    background: white;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    z-index: 1;
}

.modal-sales-code {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

.modal-banner {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-hint);
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

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

.modal-product-info {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-product-info .info-row {
    display: flex;
    margin-bottom: 6px;
}

.modal-product-info .info-label {
    color: var(--text-hint);
    width: 80px;
    flex-shrink: 0;
}

.manual-list-title {
    font-size: 16px;
    margin-bottom: 12px;
}

.manual-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.manual-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.manual-lang-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.manual-lang-badge.zh { background: #E8F4FD; color: var(--primary); }
.manual-lang-badge.en { background: #FFF3E0; color: #E65100; }

.manual-file-name {
    font-size: 14px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.manual-file-size {
    font-size: 12px;
    color: var(--text-hint);
    margin-top: 2px;
}

.manual-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-sm {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
    white-space: nowrap;
}

.btn-sm:active { transform: scale(0.95); }

.btn-preview { background: #E8F4FD; color: var(--primary); }
.btn-download { background: var(--primary); color: white; }

/* ========== 上传页面 ========== */
.page-header {
    text-align: center;
    padding: 32px 0 24px;
}

.page-header h1 { font-size: 24px; margin-bottom: 8px; }
.page-header p { color: var(--text-secondary); }
.page-header-actions { margin-top: 16px; }

.form-section { margin-bottom: 40px; }

.upload-form { display: flex; flex-direction: column; gap: 16px; }

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

.form-card-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.form-row { display: flex; gap: 16px; }

.form-row .form-group { flex: 1; }

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

.form-group:last-child { margin-bottom: 0; }

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

.required { color: var(--danger); }

.form-group input[type="text"],
.form-group input[type="search"],
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
    background: white;
}

.form-group input:focus,
.form-group select:focus { border-color: var(--primary); }

.form-hint {
    display: block;
    font-size: 12px;
    color: var(--text-hint);
    margin-top: 4px;
}

/* 语言选择器 */
.lang-selector { display: flex; gap: 12px; }

.lang-option input { display: none; }

.lang-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 32px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg);
}

.lang-option input:checked + .lang-card {
    border-color: var(--primary);
    background: #E8F4FD;
}

.lang-flag { font-size: 32px; }
.lang-text { font-size: 14px; font-weight: 500; }

/* 文件上传 */
.file-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 36px;
    text-align: center;
    background: var(--bg);
    transition: border-color 0.2s;
    cursor: pointer;
}

.file-upload-area:hover { border-color: var(--primary); }

.file-placeholder { cursor: pointer; }

.file-icon { font-size: 40px; display: block; margin-bottom: 12px; opacity: 0.5; }

.file-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--primary);
    display: block;
    margin-bottom: 4px;
}

.file-hint {
    font-size: 12px;
    color: var(--text-hint);
}

.file-selected { display: flex; align-items: center; justify-content: space-between; }

.file-info { display: flex; align-items: center; gap: 12px; }

.file-name { font-size: 14px; font-weight: 500; color: var(--primary); display: block; }

.file-size { font-size: 12px; color: var(--text-hint); display: block; margin-top: 2px; }

.file-remove {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-hint);
    cursor: pointer;
    padding: 4px 8px;
}

/* 提交按钮 */
.form-submit { text-align: center; padding: 8px 0 32px; }

.btn-submit {
    width: 100%;
    max-width: 400px;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: 28px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(26,58,92,0.3);
}

.btn-submit:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-submit:active { transform: scale(0.97); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* 成功弹窗 */
.success-card { text-align: center; padding: 40px 30px 30px; }

.success-icon-wrap { font-size: 72px; margin-bottom: 16px; }

.success-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 16px;
}

.success-details {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 16px;
    text-align: left;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 24px;
}

.success-actions { display: flex; gap: 12px; }

.success-actions button { flex: 1; }

.btn-primary,
.btn-secondary,
.btn-danger {
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
}

.btn-primary { background: var(--primary); color: white; }
.btn-secondary { background: var(--bg); color: var(--text); border: 1.5px solid var(--border); }
.btn-danger { background: var(--danger); color: white; }

.btn-primary:active,
.btn-secondary:active,
.btn-danger:active { transform: scale(0.96); }

/* Toast */
.toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    z-index: 300;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideDown 0.3s ease;
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

@keyframes slideDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ========== 管理页面 ========== */
.manage-section { margin-bottom: 40px; }

.manage-search { margin-bottom: 16px; }

.manage-search input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 24px;
    font-size: 15px;
    outline: none;
}

.manage-search input:focus { border-color: var(--primary); }

.product-table-wrap {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.product-table th {
    background: var(--bg);
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.product-table td {
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-light);
}

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

.product-table .code-cell {
    font-weight: 600;
    color: var(--primary);
}

.badge-group { display: flex; gap: 6px; }

.action-btns { display: flex; gap: 8px; }

.btn-table {
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
}

.btn-table-view { background: #E8F4FD; color: var(--primary); }
.btn-table-del { background: #FEE2E2; color: var(--danger); }
.btn-table:active { transform: scale(0.95); }

/* 确认弹窗 */
.confirm-card { padding: 32px 24px 24px; text-align: center; }

.confirm-card h3 { margin-bottom: 12px; }

.confirm-card p { color: var(--text-secondary); margin-bottom: 24px; line-height: 1.5; }

.confirm-actions { display: flex; gap: 12px; justify-content: center; }

/* ========== 底部 ========== */
.footer {
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: var(--text-hint);
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

/* ========== 入口卡片 ========== */
.entry-section {
    margin: -24px 0 24px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.entry-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px 22px;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.2s;
    border: 2px solid var(--border);
    position: relative;
    overflow: hidden;
}

.entry-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.2s;
}

.entry-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

.entry-card:hover::before { opacity: 1; }

.entry-card:active { transform: scale(0.985); }

/* MSDS 入口：橙色 */
.entry-card:last-child::before { background: #E65100; }
.entry-card:last-child:hover { border-color: #E65100; }

/* 施工指导入口：绿色（覆盖 last-child 的橙色） */
.entry-card-appg::before { background: #2F855A !important; }
.entry-card-appg:hover { border-color: #2F855A !important; }

/* 证书入口：金橙色（覆盖 last-child 的橙色） */
.entry-card-cert::before { background: #E8590C !important; }
.entry-card-cert:hover { border-color: #E8590C !important; }

.entry-icon-wrap { flex-shrink: 0; }

.entry-info { flex: 1; min-width: 0; }

.entry-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.entry-desc {
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.entry-hint {
    font-size: 12px;
    color: var(--text-hint);
}

.entry-arrow {
    font-size: 28px;
    color: var(--text-hint);
    flex-shrink: 0;
    font-weight: 300;
}

/* ========== 搜索模式栏 ========== */
.search-mode-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.mode-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.mode-back {
    background: none;
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}

.mode-back:hover { background: var(--bg); }

/* ========== 上传类型选择器 ========== */
.upload-type-selector {
    display: flex;
    gap: 16px;
}

.upload-type-option { flex: 1; }

.upload-type-option input { display: none; }

.upload-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 22px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg);
    text-align: center;
}

.upload-type-option input:checked + .upload-type-card {
    border-color: var(--primary);
    background: #E8F4FD;
    box-shadow: 0 0 0 3px rgba(26,58,92,0.1);
}

.upload-type-card:hover { border-color: var(--primary); }

.upload-type-icon { font-size: 32px; }

.upload-type-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.upload-type-desc {
    font-size: 12px;
    color: var(--text-hint);
    letter-spacing: 0.5px;
}

@media (max-width: 600px) {
    .upload-type-selector { flex-direction: column; }
    .upload-type-card { flex-direction: row; gap: 14px; padding: 16px; }
    .upload-type-icon { font-size: 28px; }
}

/* MSDS 语言徽章 */
.lang-badge.msds-zh {
    background: #FFF3E0;
    color: #E65100;
}

.lang-badge.msds-en {
    background: #FCE4EC;
    color: #C62828;
}

/* ========== 响应式 ========== */
@media (max-width: 600px) {
    .hero-title { font-size: 22px; }
    .form-row { flex-direction: column; gap: 0; }
    .lang-selector { flex-direction: column; }
    .lang-card { flex-direction: row; padding: 14px 20px; }
    .modal-card { max-height: 90vh; }
    .product-table th:nth-child(3),
    .product-table td:nth-child(3) { display: none; }
    .nav-inner { padding: 10px 14px; }
    .nav-link { padding: 6px 12px; font-size: 13px; }
    .entry-card { padding: 18px 16px; }
    .entry-title { font-size: 17px; }
}
