/*
 * 灵狐对账系统 - 主样式文件
 * Spirit Fox Bill System - Main Stylesheet
 * 
 * 基于灵狐剧本库UI设计规范
 * Based on Spirit Fox Script Library UI Design System
 */

/* ============================================
   1. CSS 变量 / CSS Variables
   ============================================ */

:root {
    /* 背景色 / Backgrounds */
    --bg-primary: linear-gradient(135deg, #ffeef8 0%, #e8f4ff 50%, #ffeef8 100%);
    --bg-card: #ffffff;
    --bg-modal: #ffffff;
    --bg-input: #fafafa;
    
    /* 文字色 / Text Colors */
    --text-primary: #ff6bb3;
    --text-secondary: #999999;
    --text-title: #ff6bb3;
    --text-body: #666666;
    --text-inverse: #ffffff;
    
    /* 强调色 / Accent Colors */
    --accent-pink: #ff9ed2;
    --accent-blue: #9ed2ff;
    --accent-gradient: linear-gradient(135deg, #ff9ed2 0%, #9ed2ff 100%);
    
    /* 边框与阴影 / Borders & Shadows */
    --border-color: #ff9ed2;
    --input-border: #ffeef8;
    --shadow-color: rgba(255, 158, 210, 0.3);
    --shadow-hover: rgba(255, 158, 210, 0.4);
    
    /* 组件特定 / Component Specific */
    --card-bg: linear-gradient(135deg, #ffeef8 0%, #e8f4ff 100%);
    --card-footer-bg: linear-gradient(135deg, #ffeef8 0%, #e8f4ff 100%);
    --spinner-border: #ffeef8;
    --modal-overlay: rgba(0, 0, 0, 0.6);
    --error-color: #ff6b6b;
    --success-color: #4ade80;
    
    /* 尺寸 / Dimensions */
    --sidebar-width: 280px;
    --header-height: 60px;
    --border-radius: 20px;
    --border-radius-sm: 15px;
    --border-radius-lg: 25px;
}

/* 深色模式 / Dark Mode */
[data-theme="dark"] {
    --bg-primary: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    --bg-card: #242438;
    --bg-modal: #242438;
    --bg-input: #1a1a2e;
    --text-primary: #ff9ed2;
    --text-secondary: #888899;
    --text-title: #ff9ed2;
    --text-body: #aaaabc;
    --accent-blue: #6bb3ff;
    --accent-gradient: linear-gradient(135deg, #ff9ed2 0%, #6bb3ff 100%);
    --shadow-color: rgba(255, 158, 210, 0.15);
    --shadow-hover: rgba(255, 158, 210, 0.25);
    --card-bg: linear-gradient(135deg, #2d2d4a 0%, #1e2a4a 100%);
    --card-footer-bg: linear-gradient(135deg, #2d2d4a 0%, #1e2a4a 100%);
    --input-border: #3d3d5c;
    --spinner-border: #2d2d4a;
    --modal-overlay: rgba(0, 0, 0, 0.8);
    --error-color: #ff8080;
    --success-color: #6ee7b7;
}

/* ============================================
   2. 基础样式 / Base Styles
   ============================================ */

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Segoe UI", "Microsoft YaHei", Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    background-attachment: fixed;
    color: var(--text-body);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
    transition: background 0.3s ease, color 0.3s ease;
}

/* 移动端基础样式 / Mobile base styles */
@media (max-aspect-ratio: 9/16) {
    body {
        padding: 10px;
    }
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-title);
    font-weight: bold;
    line-height: 1.3;
}

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

a:hover {
    color: var(--accent-pink);
}

/* ============================================
   3. 登录页面 / Login Page
   ============================================ */

.login-main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 40px);
}

.login-container {
    position: relative;
    width: 100%;
    max-width: 450px;
}

.login-box {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 50px 40px;
    box-shadow: 0 15px 50px var(--shadow-color);
    position: relative;
    z-index: 1;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    font-size: 80px;
    margin-bottom: 15px;
    animation: bounce 2s ease-in-out infinite;
}

.login-title {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 3px 3px 0 #ff6bb3, 6px 6px 0 rgba(0, 0, 0, 0.1);
}

.login-subtitle {
    font-size: 1.2em;
    color: var(--text-secondary);
}

.login-form .form-group {
    margin-bottom: 25px;
}

.login-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1em;
    color: var(--text-primary);
    font-weight: bold;
    margin-bottom: 10px;
}

.label-icon {
    font-size: 1.2em;
}

.login-form input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--input-border);
    border-radius: var(--border-radius-sm);
    font-size: 1em;
    background: var(--bg-input);
    color: var(--text-body);
    transition: all 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: var(--accent-pink);
    box-shadow: 0 0 15px var(--shadow-hover);
}

.form-error {
    color: var(--error-color);
    font-size: 0.95em;
    margin-bottom: 20px;
    display: none;
    padding: 10px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 10px;
    text-align: center;
}

.btn-login {
    width: 100%;
    padding: 18px;
    font-size: 1.2em;
}

.login-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.deco-item {
    position: absolute;
    font-size: 30px;
    animation: sparkle 2s ease-in-out infinite;
}

.deco-1 {
    top: -20px;
    left: 20px;
}

.deco-2 {
    top: -30px;
    right: 30px;
    animation-delay: 0.5s;
}

.deco-3 {
    bottom: -20px;
    right: 20px;
    animation-delay: 1s;
}

/* ============================================
   4. 按钮样式 / Button Styles
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius-lg);
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--text-inverse);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-danger {
    background: linear-gradient(135deg, var(--accent-pink) 0%, #ff6b6b 100%);
    color: var(--text-inverse);
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
}

.btn-icon {
    font-size: 1.2em;
}

/* ============================================
   5. 侧边栏 / Sidebar
   ============================================ */

.sidebar {
    position: fixed;
    top: 0;
    left: calc(-1 * var(--sidebar-width));
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-card);
    box-shadow: 5px 0 30px var(--shadow-color);
    z-index: 1000;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar.open {
    left: 0;
}

.sidebar-header {
    padding: 30px 25px;
    border-bottom: 2px solid var(--input-border);
}

.sidebar-header h2 {
    font-size: 1.5em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    flex: 1;
    overflow-y: auto;
}

.sidebar-menu li {
    margin: 5px 15px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: var(--text-body);
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: var(--card-bg);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--accent-gradient);
    color: #fff;
}

.nav-icon {
    font-size: 1.5em;
}

.nav-text {
    font-weight: 500;
}

.sidebar-footer {
    padding: 20px;
    border-top: 2px solid var(--input-border);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--modal-overlay);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   6. 顶部导航栏 / Top Header
   ============================================ */

.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-card);
    box-shadow: 0 2px 20px var(--shadow-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
}

.menu-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--card-bg);
    border-radius: 50%;
    font-size: 1.5em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.menu-toggle:hover {
    background: var(--accent-pink);
    color: #fff;
    transform: scale(1.1);
}

.page-title {
    font-size: 1.3em;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    font-size: 1.3em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
}

/* ============================================
   7. 主内容区 / Main Content
   ============================================ */

.main-content {
    margin-top: calc(var(--header-height) + 20px);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   8. 卡片组件 / Card Components
   ============================================ */

.section-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    box-shadow: 0 5px 20px var(--shadow-color);
    overflow: hidden;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: var(--card-bg);
    border-bottom: 2px solid var(--input-border);
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h2 {
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    font-size: 1.3em;
}

.section-actions {
    display: flex;
    gap: 10px;
}

.badge {
    background: var(--accent-gradient);
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    margin-left: 10px;
}

/* ============================================
   9. 统计卡片 / Stat Cards
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

.stat-card.highlight {
    background: var(--accent-gradient);
    color: #fff;
}

.stat-card.highlight .stat-label,
.stat-card.highlight .stat-value,
.stat-card.highlight .stat-subtitle {
    color: #fff;
}

.stat-icon {
    font-size: 50px;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 1em;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.stat-subtitle {
    font-size: 0.85em;
    color: var(--text-secondary);
}

/* ============================================
   10. 表单样式 / Form Styles
   ============================================ */

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

.form-group label {
    display: block;
    font-size: 0.95em;
    color: var(--text-primary);
    font-weight: bold;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--input-border);
    border-radius: var(--border-radius-sm);
    font-size: 1em;
    background: var(--bg-input);
    color: var(--text-body);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-pink);
    box-shadow: 0 0 15px var(--shadow-hover);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

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

.form-row .form-group {
    flex: 1;
    min-width: 200px;
}

.form-row .form-group.flex-grow {
    flex: 2;
}

.form-actions {
    display: flex;
    align-items: flex-end;
}

.form-hint {
    font-size: 0.85em;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* ============================================
   11. 表格样式 / Table Styles
   ============================================ */

.table-container {
    overflow-x: auto;
    padding: 0 25px 25px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--input-border);
}

.data-table th {
    background: var(--card-bg);
    color: var(--text-primary);
    font-weight: bold;
    white-space: nowrap;
}

.data-table tbody tr:hover {
    background: rgba(255, 158, 210, 0.05);
}

.data-table td {
    color: var(--text-body);
}

.loading-row {
    text-align: center;
}

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 40px;
    color: var(--text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--spinner-border);
    border-top-color: var(--accent-pink);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid var(--spinner-border);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

/* ============================================
   12. 分页 / Pagination
   ============================================ */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    border-top: 2px solid var(--input-border);
}

.page-info {
    color: var(--text-secondary);
    font-size: 0.95em;
}

/* ============================================
   13. 模态框 / Modal
   ============================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--modal-overlay);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-modal);
    border-radius: var(--border-radius-lg);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-small {
    max-width: 450px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: var(--card-bg);
    border-bottom: 2px solid var(--input-border);
    position: sticky;
    top: 0;
    z-index: 1;
}

.modal-header h3 {
    font-size: 1.3em;
}

.close-btn {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.close-btn:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-form {
    padding: 25px;
}

.modal-body {
    padding: 25px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 2px solid var(--input-border);
    margin-top: 10px;
}

.preview-box {
    background: var(--card-bg);
    border-radius: var(--border-radius-sm);
    padding: 20px;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-label {
    color: var(--text-secondary);
    font-size: 0.95em;
}

.preview-value {
    color: var(--text-primary);
    font-size: 1.2em;
    font-weight: bold;
}

.confirm-message {
    text-align: center;
    font-size: 1.1em;
    color: var(--text-body);
}

.warning-icon {
    font-size: 50px;
    display: block;
    margin-bottom: 15px;
}

/* ============================================
   14. Toast 提示 / Toast Notification
   ============================================ */

.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-modal);
    color: var(--text-body);
    padding: 15px 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 5px 20px var(--shadow-color);
    font-size: 1em;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    max-width: 90%;
    text-align: center;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

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

.toast.error {
    background: var(--error-color);
    color: #fff;
}

/* ============================================
   15. 接龙解析页面 / Parser Page
   ============================================ */

.parser-input-section {
    padding: 25px;
}

.parser-textarea {
    min-height: 200px;
    resize: vertical;
    font-family: monospace;
    line-height: 1.8;
}

.parser-results {
    padding: 0 25px;
}

.parser-summary {
    display: flex;
    gap: 30px;
    padding: 20px 25px;
    background: var(--card-bg);
    border-top: 2px solid var(--input-border);
    flex-wrap: wrap;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-label {
    color: var(--text-secondary);
    font-size: 0.95em;
}

.summary-value {
    color: var(--text-primary);
    font-size: 1.2em;
    font-weight: bold;
}

/* 可编辑单元格 / Editable cells */
.editable-cell input {
    width: 80px;
    padding: 8px;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    text-align: right;
    font-size: 0.9em;
}

.editable-cell input:focus {
    border-color: var(--accent-pink);
    outline: none;
}

/* ============================================
   16. 信息卡片 / Info Card
   ============================================ */

.info-card {
    background: linear-gradient(135deg, rgba(255, 158, 210, 0.1) 0%, rgba(158, 210, 255, 0.1) 100%);
}

.info-content {
    padding: 25px;
}

.info-content h4 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.info-content ul {
    margin-bottom: 20px;
    padding-left: 25px;
}

.info-content li {
    margin-bottom: 10px;
    color: var(--text-body);
}

.code-block {
    background: var(--bg-input);
    border-radius: var(--border-radius-sm);
    padding: 15px;
    font-family: monospace;
    font-size: 0.9em;
    margin-bottom: 20px;
    overflow-x: auto;
}

.info-note {
    background: rgba(255, 158, 210, 0.1);
    border-radius: var(--border-radius-sm);
    padding: 15px;
    color: var(--text-body);
}

.note-icon {
    margin-right: 8px;
}

/* ============================================
   17. 筛选表单 / Filter Form
   ============================================ */

.filter-form {
    padding: 25px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filter-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* ============================================
   18. 工资表单 / Salary Form
   ============================================ */

.salary-form {
    padding: 25px;
}

/* ============================================
   19. 动画 / Animations
   ============================================ */

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

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   20. 响应式设计 / Responsive Design
   ============================================ */

/* 平板 / Tablet */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-row .form-group {
        min-width: 100%;
    }
}

/* 手机横屏 / Mobile Landscape */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-actions {
        width: 100%;
    }
    
    .section-actions .btn {
        flex: 1;
    }
    
    .parser-summary {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .filter-actions .btn {
        width: 100%;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
    }
}

/* 手机竖屏 / Mobile Portrait */
@media (max-aspect-ratio: 9/16) {
    .login-box {
        padding: 35px 25px;
    }
    
    .login-title {
        font-size: 2em;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-icon {
        font-size: 40px;
    }
    
    .stat-value {
        font-size: 1.5em;
    }
    
    .table-container {
        padding: 0 15px 15px;
    }
    
    .data-table {
        font-size: 0.85em;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .page-info {
        order: -1;
        width: 100%;
        text-align: center;
    }
}

/* 小屏手机 / Small Mobile */
@media (max-width: 480px) {
    .page-title {
        font-size: 1.1em;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 0.9em;
    }
    
    .section-header h2 {
        font-size: 1.1em;
    }
}

/* ============================================
   21. 打印样式 / Print Styles
   ============================================ */

@media print {
    body {
        background: #fff;
        padding: 0;
    }
    
    .sidebar,
    .top-header,
    .section-actions,
    .btn {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    .section-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}
