/* =====================================================
   出口合规通 - 样式表
   ===================================================== */

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
}

/* 导航栏 */
.navbar {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
}

/* 按钮 */
.btn {
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

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

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

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

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

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

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Hero区域 */
.hero {
    text-align: center;
    padding: 4rem 2rem 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* 上传区域 */
.upload-area {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.upload-zone {
    border: 2px dashed var(--gray-300);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 1rem;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary);
    background: #f0f5ff;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.upload-text {
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.upload-hint {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--gray-500);
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.url-input-group {
    display: flex;
    gap: 0.5rem;
}

.url-input-group input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.url-input-group input:focus {
    border-color: var(--primary);
}

.platform-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.platform-tag {
    padding: 0.25rem 0.75rem;
    background: var(--gray-100);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--gray-700);
}

.manual-link {
    margin-top: 1rem;
    text-align: center;
}

.manual-link a {
    color: var(--gray-500);
    font-size: 0.85rem;
    text-decoration: none;
}

.manual-link a:hover {
    color: var(--primary);
}

/* 特性卡片 */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 3rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-desc {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* 工作流程 */
.workflow {
    padding: 3rem 2rem;
    text-align: center;
    background: white;
}

.workflow h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.workflow-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.step {
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 12px;
    min-width: 200px;
}

.step-num {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-desc {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.step-arrow {
    font-size: 1.5rem;
    color: var(--gray-300);
}

/* 表单 */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-700);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

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

.form-hint {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

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

/* 检查页面 */
.check-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.check-header {
    text-align: center;
    margin-bottom: 2rem;
}

.check-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.check-header p {
    color: var(--gray-500);
}

.input-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.check-actions {
    text-align: center;
    margin-top: 2rem;
}

/* 加载页面 */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 2rem;
}

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

.loading-text {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.loading-sub {
    color: var(--gray-500);
}

.progress-bar {
    width: 300px;
    height: 8px;
    background: var(--gray-200);
    border-radius: 100px;
    margin-top: 1.5rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #818cf8);
    border-radius: 100px;
    animation: progress 3s ease-in-out;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* 结果页面 */
.result-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.result-banner {
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.result-banner.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.result-banner.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.result-banner.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.result-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.result-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.result-meta {
    opacity: 0.9;
    font-size: 0.9rem;
}

.info-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.info-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.params-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.param-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.param-label {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.param-value {
    font-weight: 500;
    font-size: 0.9rem;
}

.check-detail {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: 8px;
}

.detail-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.detail-icon.success {
    background: #d1fae5;
    color: #059669;
}

.detail-icon.warning {
    background: #fef3c7;
    color: #d97706;
}

.detail-icon.danger {
    background: #fee2e2;
    color: #dc2626;
}

.detail-text {
    flex: 1;
}

.detail-title {
    font-weight: 500;
    font-size: 0.9rem;
}

.detail-desc {
    color: var(--gray-500);
    font-size: 0.8rem;
}

.disclaimer {
    background: #fef3c7;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #92400e;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* 弹窗 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    position: relative;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-sm {
    max-width: 300px;
    text-align: center;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
}

.close:hover {
    color: var(--gray-900);
}

.modal-footer {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--gray-500);
}

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

/* 历史记录 */
.history-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.history-header {
    text-align: center;
    margin-bottom: 2rem;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.history-item:hover {
    transform: translateY(-2px);
}

.history-info h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.history-info p {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.history-result {
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
}

.history-result.pass {
    background: #d1fae5;
    color: #059669;
}

.history-result.warning {
    background: #fef3c7;
    color: #d97706;
}

.history-result.danger {
    background: #fee2e2;
    color: #dc2626;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--gray-500);
}

.empty-state .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--gray-500);
    font-size: 0.85rem;
    border-top: 1px solid var(--gray-200);
    margin-top: 3rem;
}

/* 提示消息 */
.toast {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
}

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

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

.toast.warning {
    background: var(--warning);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 导航栏搜索 */
.nav-search {
    position: relative;
}

.nav-search input {
    width: 160px;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    font-size: 0.8rem;
    outline: none;
    transition: all 0.2s;
    background: var(--gray-50);
}

.nav-search input:focus {
    width: 240px;
    border-color: var(--primary);
    background: white;
}

.nav-search-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
    min-width: 360px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 300;
}

.nav-search-dropdown.active {
    display: block;
}

.nav-search-dropdown .search-group {
    padding: 0.75rem 1rem 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-search-dropdown a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--gray-700);
    text-decoration: none;
    transition: background 0.15s;
}

.nav-search-dropdown a:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.nav-search-dropdown .search-empty {
    padding: 1.5rem 1rem;
    text-align: center;
    color: var(--gray-500);
    font-size: 0.85rem;
}

/* 信息查询模块通用样式 */
.info-page-container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.info-page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.info-page-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

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

.info-search-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.info-search-bar input {
    flex: 1;
    min-width: 200px;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
}

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

.info-search-bar select {
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    background: white;
}

.info-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-detail-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
}

.info-detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.info-list-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.info-list-table th {
    background: var(--gray-50);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-700);
    border-bottom: 2px solid var(--gray-200);
}

.info-list-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9rem;
}

.info-list-table tr:hover td {
    background: var(--gray-50);
}

.info-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.info-pagination button {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.15s;
}

.info-pagination button:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

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

.info-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.info-detail-header {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.info-detail-body {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    line-height: 1.8;
}

.info-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.25rem;
}

.info-tag.blue {
    background: #dbeafe;
    color: #1e40af;
}

.info-tag.green {
    background: #d1fae5;
    color: #065f46;
}

.info-tag.yellow {
    background: #fef3c7;
    color: #92400e;
}

.info-tag.red {
    background: #fee2e2;
    color: #991b1b;
}

.info-empty {
    text-align: center;
    padding: 3rem;
    color: var(--gray-500);
}

.info-empty .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* 响应式 */
@media (max-width: 768px) {
    .features {
        grid-template-columns: 1fr;
    }

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

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

    .hero h1 {
        font-size: 1.75rem;
    }

    .workflow-steps {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .result-actions {
        flex-direction: column;
    }

    .history-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .navbar {
        padding: 0 1rem;
    }

    .nav-links {
        gap: 0.75rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .nav-search input {
        width: 100px;
    }

    .nav-search input:focus {
        width: 150px;
    }

    .nav-search-dropdown {
        min-width: 280px;
        right: -50px;
    }

    .info-page-container {
        padding: 0 1rem;
    }

    .info-search-bar {
        flex-direction: column;
    }

    .info-search-bar input {
        min-width: 100%;
    }

    .info-list-table {
        font-size: 0.8rem;
    }

    .info-list-table th,
    .info-list-table td {
        padding: 0.5rem 0.5rem;
    }

    .guidance-layout {
        flex-direction: column;
    }

    .guidance-sidebar {
        width: 100%;
        position: static;
        max-height: none;
    }

    .info-card-grid {
        grid-template-columns: 1fr;
    }
}

/* 信息查询模块：行点击悬停效果 */
.info-row-clickable {
    transition: background 0.15s;
}

.info-row-clickable:hover {
    background: #eff6ff !important;
}

/* 信息查询模块：加载骨架屏 */
.info-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
    height: 1rem;
    margin-bottom: 0.5rem;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 信息查询模块：淡入动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-detail-card,
.news-card {
    animation: fadeInUp 0.3s ease-out;
}

/* =====================================================
   合规报告示例 — 专业报告设计
   ===================================================== */

/* --- 页面底色 --- */
body { background: #f1f5f9; }

/* --- Hero --- */
.demo-hero {
    background: linear-gradient(165deg, #0b1121 0%, #132038 45%, #1a3555 100%);
    padding: 4.5rem 2rem 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.demo-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 40%, rgba(59,130,246,0.12) 0%, transparent 55%),
                radial-gradient(ellipse at 70% 60%, rgba(245,158,11,0.08) 0%, transparent 55%);
}
.demo-hero-inner { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }

.demo-hero-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
    color: #94a3b8; padding: 0.35rem 1.1rem; border-radius: 100px;
    font-size: 0.78rem; letter-spacing: 0.05em; margin-bottom: 1.5rem;
}
.demo-hero-badge .dot { width: 6px; height: 6px; background: #22c55e; border-radius: 50%; }

.demo-hero h1 { font-size: 2.5rem; font-weight: 800; color: #fff; margin: 0 0 0.6rem; letter-spacing: -0.03em; }
.demo-hero h1 em { font-style: normal; color: #60a5fa; }

.demo-hero-meta { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.demo-hero-meta span { color: #94a3b8; font-size: 0.82rem; background: rgba(255,255,255,0.03); padding: 0.3rem 0.75rem; border-radius: 6px; }

/* 结果状态卡片 */
.demo-status {
    display: inline-flex; align-items: center; gap: 1rem;
    background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.25);
    border-radius: 14px; padding: 1rem 1.75rem; margin-bottom: 0.5rem;
}
.demo-status-icon { width: 46px; height: 46px; background: rgba(245,158,11,0.18); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.demo-status-body { text-align: left; }
.demo-status-label { font-size: 0.7rem; color: #fbbf24; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.demo-status-text { font-size: 1rem; font-weight: 600; color: #fcd34d; margin-top: 0.1rem; }
.demo-status-badge { background: rgba(245,158,11,0.22); color: #fbbf24; padding: 0.3rem 0.85rem; border-radius: 8px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; flex-shrink: 0; }

.demo-hero-actions { margin-top: 1.75rem; display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.demo-lang-btn { padding: 0.45rem 1rem; border-radius: 8px; border: 1px solid rgba(255,255,255,0.12); background: transparent; color: #94a3b8; cursor: pointer; font-size: 0.8rem; transition: all 0.2s; font-family: inherit; }
.demo-lang-btn:hover { border-color: rgba(255,255,255,0.35); color: #e2e8f0; }
.demo-lang-btn.active { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.3); font-weight: 600; }

/* --- 主容器 --- */
.demo-main { max-width: 860px; margin: 0 auto; padding: 2.5rem 1.5rem 3rem; }

/* --- 卡片 --- */
.demo-card { background: #fff; border-radius: 14px; padding: 1.75rem 2rem; margin-bottom: 1.25rem; box-shadow: 0 1px 3px rgba(0,0,0,0.04); border: 1px solid #e4e7ec; }
.demo-card-hd { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.25rem; padding-bottom: 0.85rem; border-bottom: 1px solid #f0f2f5; }
.demo-card-ic { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0; }
.demo-card-ic.c1 { background: #eff6ff; color: #2563eb; }
.demo-card-ic.c2 { background: #fffbeb; color: #d97706; }
.demo-card-ic.c3 { background: #f0fdf4; color: #16a34a; }
.demo-card-ic.c4 { background: #eef2ff; color: #4f46e5; }
.demo-card-tt { font-size: 1.05rem; font-weight: 700; color: #0f172a; letter-spacing: -0.01em; }

/* --- 统计 --- */
.demo-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 0.85rem; }
.demo-stat { text-align: center; padding: 1.25rem 0.75rem; background: #f8fafc; border-radius: 12px; border: 1px solid #e8ecf1; }
.demo-stat-v { font-size: 1.8rem; font-weight: 800; color: #0f172a; line-height: 1.1; }
.demo-stat-v.warn { color: #d97706; }
.demo-stat-l { font-size: 0.76rem; color: #64748b; margin-top: 0.35rem; font-weight: 500; }

/* --- 参数表 --- */
.demo-tbl { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid #e4e7ec; border-radius: 10px; overflow: hidden; }
.demo-tbl th { background: #f8fafc; padding: 0.65rem 1rem; text-align: left; font-size: 0.76rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 2px solid #e4e7ec; }
.demo-tbl td { padding: 0.75rem 1rem; border-bottom: 1px solid #f0f2f5; font-size: 0.88rem; color: #334155; }
.demo-tbl tr:last-child td { border-bottom: none; }
.demo-tbl tr.row-warn { background: #fffef9; }
.demo-tbl tr.row-warn td:first-child { border-left: 3px solid #f59e0b; padding-left: calc(1rem - 3px); }
.demo-tbl tr.row-safe td:first-child { border-left: 3px solid #22c55e; padding-left: calc(1rem - 3px); }
.demo-tag { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.2rem 0.6rem; border-radius: 100px; font-size: 0.76rem; font-weight: 600; }
.demo-tag.warn { background: #fef3c7; color: #92400e; }
.demo-tag.safe { background: #dcfce7; color: #166534; }

/* --- 手风琴 --- */
.demo-ac { display: flex; flex-direction: column; gap: 0.55rem; }
.demo-ac-item { border: 1px solid #e4e7ec; border-radius: 10px; overflow: hidden; }
.demo-ac-hd { display: flex; align-items: center; gap: 0.85rem; padding: 0.85rem 1rem; cursor: pointer; background: #fafbfc; user-select: none; transition: background 0.15s; }
.demo-ac-hd:hover { background: #f0f2f5; }
.demo-ac-code { font-weight: 700; color: #2563eb; font-size: 0.85rem; font-family: 'SF Mono',Consolas,monospace; background: #eff6ff; padding: 0.18rem 0.5rem; border-radius: 5px; flex-shrink: 0; }
.demo-ac-name { flex: 1; font-size: 0.88rem; color: #1e293b; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.demo-ac-meta { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.demo-ac-score { font-size: 0.8rem; font-weight: 700; padding: 0.18rem 0.55rem; border-radius: 6px; }
.demo-ac-score.m { background: #fef3c7; color: #92400e; }
.demo-ac-score.l { background: #dcfce7; color: #166534; }
.demo-ac-arr { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 0.65rem; transition: transform 0.25s; }
.demo-ac-item.open .demo-ac-arr { transform: rotate(90deg); }
.demo-ac-body { display: none; padding: 0.85rem 1rem; background: #fff; border-top: 1px solid #e4e7ec; }
.demo-ac-item.open .demo-ac-body { display: block; }
.demo-ac-body p { font-size: 0.85rem; color: #475569; line-height: 1.7; margin: 0; }
.demo-ac-body p strong { color: #1e293b; }

/* --- 法规 --- */
.demo-legal { background: #f8fafc; border: 1px solid #e2e8f0; border-left: 4px solid #2563eb; border-radius: 0 10px 10px 0; padding: 1.1rem 1.25rem; }
.demo-legal h4 { font-size: 0.88rem; font-weight: 700; color: #0f172a; margin: 0 0 0.55rem; }
.demo-legal ul { list-style: none; padding: 0; margin: 0 0 0.75rem; }
.demo-legal ul li { font-size: 0.85rem; color: #475569; line-height: 1.7; padding: 0.12rem 0 0.12rem 0.9rem; position: relative; }
.demo-legal ul li::before { content: ''; position: absolute; left: 0; top: 0.65rem; width: 5px; height: 5px; background: #94a3b8; border-radius: 50%; }
.demo-legal .law { font-size: 0.85rem; color: #475569; line-height: 1.7; padding-top: 0.45rem; border-top: 1px solid #e2e8f0; margin: 0; }

/* --- 建议 --- */
.demo-advice { display: flex; flex-direction: column; gap: 0.75rem; }
.demo-adv-item { display: flex; gap: 0.85rem; align-items: flex-start; padding: 0.75rem 1rem; background: #f8fafc; border-radius: 10px; border: 1px solid #e8ecf1; }
.demo-adv-num { width: 30px; height: 30px; background: linear-gradient(135deg,#2563eb,#1d4ed8); color: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.82rem; flex-shrink: 0; }
.demo-adv-body { flex: 1; }
.demo-adv-body strong { display: block; font-size: 0.88rem; color: #0f172a; margin-bottom: 0.1rem; }
.demo-adv-body span { font-size: 0.82rem; color: #64748b; line-height: 1.5; }

/* --- Tabs --- */
.demo-tabs-nav { display: flex; border-bottom: 1px solid #e4e7ec; margin-bottom: 1.25rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.demo-tabs-nav::-webkit-scrollbar { height: 0; }
.demo-tab { padding: 0.6rem 1rem; border: none; background: none; cursor: pointer; font-size: 0.82rem; color: #64748b; font-weight: 500; white-space: nowrap; font-family: inherit; position: relative; transition: color 0.15s; }
.demo-tab::after { content: ''; position: absolute; bottom: -1px; left: 0.75rem; right: 0.75rem; height: 2px; background: transparent; border-radius: 1px; transition: background 0.15s; }
.demo-tab:hover { color: #2563eb; }
.demo-tab.active { color: #2563eb; font-weight: 600; }
.demo-tab.active::after { background: #2563eb; }
.demo-tab-pnl { display: none; min-height: 160px; }
.demo-tab-pnl.active { display: block; }
.demo-tab-load { display: flex; align-items: center; justify-content: center; padding: 3rem 1rem; color: #94a3b8; font-size: 0.85rem; }
.demo-tab-load::before { content: ''; width: 18px; height: 18px; border: 2px solid #e2e8f0; border-top-color: #2563eb; border-radius: 50%; animation: spin 0.7s linear infinite; margin-right: 0.5rem; }
.demo-prev-tbl { width: 100%; border-collapse: collapse; font-size: 0.83rem; }
.demo-prev-tbl th { background: #f8fafc; padding: 0.5rem 0.75rem; text-align: left; font-weight: 600; color: #64748b; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 2px solid #e4e7ec; }
.demo-prev-tbl td { padding: 0.55rem 0.75rem; border-bottom: 1px solid #f0f2f5; color: #334155; }
.demo-prev-tbl tr:hover td { background: #fafbfc; }
.demo-prev-link { display: inline-flex; align-items: center; gap: 0.25rem; margin-top: 0.75rem; color: #2563eb; font-size: 0.82rem; text-decoration: none; font-weight: 600; }
.demo-prev-link:hover { text-decoration: underline; }
.demo-prev-news { padding: 0.6rem 0; border-bottom: 1px solid #f0f2f5; }
.demo-prev-news:last-child { border-bottom: none; }
.demo-prev-news .t { font-weight: 600; color: #1e293b; font-size: 0.85rem; margin-bottom: 0.15rem; }
.demo-prev-news .m { font-size: 0.76rem; color: #94a3b8; }
.demo-prev-guid { padding: 0.45rem 0; border-bottom: 1px solid #f0f2f5; }
.demo-prev-guid:last-child { border-bottom: none; }
.demo-prev-guid a { color: #2563eb; text-decoration: none; font-size: 0.85rem; font-weight: 500; }

/* --- 免责 --- */
.demo-disc { background: #fffbeb; border: 1px solid #fde68a; border-left: 4px solid #f59e0b; border-radius: 10px; padding: 0.85rem 1.1rem; font-size: 0.8rem; color: #92400e; line-height: 1.65; margin-bottom: 1.5rem; }

/* --- 底部 --- */
.demo-foot { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 0 0; border-top: 1px solid #e4e7ec; flex-wrap: wrap; gap: 0.75rem; }
.demo-foot-meta { color: #94a3b8; font-size: 0.8rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.demo-foot-acts { display: flex; gap: 0.5rem; }

/* --- 响应式 --- */
@media (max-width: 768px) {
    .demo-hero { padding: 2.5rem 1rem 2rem; }
    .demo-hero h1 { font-size: 1.5rem; }
    .demo-hero-meta { gap: 0.4rem; }
    .demo-hero-meta span { font-size: 0.72rem; padding: 0.2rem 0.5rem; }
    .demo-status { flex-direction: column; text-align: center; padding: 1rem; }
    .demo-status-body { text-align: center; }
    .demo-main { padding: 1.25rem 0.75rem 2rem; }
    .demo-card { padding: 1.25rem 1rem; }
    .demo-stats { grid-template-columns: repeat(2,1fr); gap: 0.5rem; }
    .demo-stat { padding: 1rem 0.5rem; }
    .demo-stat-v { font-size: 1.4rem; }
    .demo-ac-hd { flex-wrap: wrap; }
    .demo-ac-name { white-space: normal; }
    .demo-tbl th,.demo-tbl td { padding: 0.5rem 0.6rem; font-size: 0.78rem; }
    .demo-foot { flex-direction: column; align-items: flex-start; }
    .demo-foot-acts { width: 100%; }
    .demo-foot-acts .btn { flex: 1; text-align: center; justify-content: center; }
}
