/* ==========================================================================
   广州五险一金计算器 - 经典瑞士金融终端风格 (Swiss Financial Terminal Style)
   Design Characteristics: Sharp lines, hairline borders, zero puffy radius
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    
    --canvas-bg: #f8f9fa;
    --border-color: #d1d5db;
    --border-dark: #0f172a;
    
    --text-heading: #0f172a;
    --text-body: #1f2937;
    --text-muted: #6b7280;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--canvas-bg);
    color: var(--text-body);
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-num {
    font-family: var(--font-sans);
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* 隐藏数字输入框默认的上下箭头按钮 */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* 直角规整面板 */
.terminal-panel {
    background: #ffffff;
    border: 1px solid #d1d5db;
}

/* 核心指标深色看板 */
.hero-stat-card {
    background: #090e17;
    border: 1px solid #090e17;
    border-bottom: 1px solid #1e293b;
}

/* 表格直角排版与响应式滚动 */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

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

.fintech-table th {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    padding: 10px 16px;
    background: #f3f4f6;
    border-bottom: 1px solid #d1d5db;
    border-right: 1px solid #e5e7eb;
}

.fintech-table th:last-child {
    border-right: none;
}

.fintech-table td {
    padding: 12px 16px;
    font-size: 13px;
    border-bottom: 1px solid #e5e7eb;
    border-right: 1px solid #f3f4f6;
}

.fintech-table td:last-child {
    border-right: none;
}

.fintech-table tbody tr:hover td {
    background-color: #f9fafb;
}

.fintech-table tfoot tr td {
    background-color: transparent;
}

/* 移动端细微样式调整 */
@media (max-width: 640px) {
    .fintech-table th {
        padding: 8px 10px;
        font-size: 11px;
    }
    
    .fintech-table td {
        padding: 10px 10px;
        font-size: 12px;
    }
}

/* 比例标签 */
.rate-pill {
    display: inline-block;
    padding: 1px 5px;
    font-size: 11px;
    font-weight: 500;
    background-color: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

/* 打印样式适配 */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: #ffffff;
        color: #000000;
    }
    
    .hero-stat-card {
        background: #f8fafc !important;
        color: #000000 !important;
        border: 1px solid #000000;
    }
    
    .hero-stat-card * {
        color: #000000 !important;
    }
    
    .terminal-panel {
        border: 1px solid #000000;
    }
}
