/**
 * ====================================================================================
 * 借阅/购买记录页面样式文件 (records.css)
 * ====================================================================================
 * 
 * 功能描述：
 * - 用户借阅记录和购买记录的展示页面样式
 * - 包含标签切换、筛选、表格展示、分页等组件
 * - 各种状态徽章的视觉区分
 * 
 * 页面结构：
 * - 顶部导航栏
 * - 页面标题区域
 * - 标签切换（借阅记录/购买记录）
 * - 筛选条件栏
 * - 数据表格
 * - 分页组件
 * 
 * 设计特色：
 * - 玻璃拟态设计风格
 * - 丰富的状态颜色编码（借阅中、已归还、逾期、待付款等）
 * - 表格行悬停高亮效果
 * - 流畅的动画过渡
 * 
 * 作者：Athena Library 开发团队
 * ====================================================================================
 */

/* ==================== CSS 变量定义 ==================== */
:root {
    /* 主色调 - 金色系 */
    --primary-gold: #D4AF37;         /* 主金色 */
    --primary-gold-hover: #F2C94C;   /* 金色悬停态 */
    
    /* 强调色 */
    --accent-purple: #7b4397;        /* 紫色强调 */
    --accent-red: #dc2430;           /* 红色强调 */
    
    /* 玻璃拟态效果 */
    --glass-bg: rgba(255, 255, 255, 0.05);        /* 玻璃背景 */
    --glass-border: rgba(255, 255, 255, 0.12);    /* 玻璃边框 */
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);  /* 玻璃阴影 */
    
    /* 文字颜色 */
    --text-main: #ffffff;                          /* 主文字 */
    --text-secondary: rgba(255, 255, 255, 0.7);   /* 次要文字 */
    --text-dark: #1a1a2e;                          /* 深色文字 */
    
    /* 圆角大小 */
    --radius-sm: 8px;      /* 小圆角 */
    --radius-md: 12px;     /* 中圆角 */
    --radius-lg: 16px;     /* 大圆角 */
    --radius-xl: 24px;     /* 超大圆角 */
    
    /* 阴影层级 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);    /* 小阴影 */
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);   /* 中阴影 */
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);   /* 大阴影 */
}

/* ==================== 全局重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==================== 页面主体 ==================== */
body {
    font-family: 'Poppins', sans-serif;
    /* 深蓝紫色渐变背景 */
    background: #0f0c29;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0c29 100%);
    min-height: 100vh;
    color: var(--text-main);
    position: relative;
    overflow-x: hidden;      /* 防止水平滚动 */
}

/* ==================== 动态背景光球效果 ==================== */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;    /* 不响应鼠标事件 */
}

/* 光球基础样式 */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);     /* 强模糊产生光晕 */
    opacity: 0.5;
    animation: float 12s infinite ease-in-out;
}

/* 第一个光球 - 紫色，左上角 */
.blob:nth-child(1) {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--accent-purple), #8e54e9);
    animation-duration: 15s;
}

/* 第二个光球 - 橙红色，右下角 */
.blob:nth-child(2) {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--accent-red), #f27121);
    animation-delay: -3s;    /* 错开动画起始 */
    animation-duration: 18s;
}

/* 第三个光球 - 金色，中央 */
.blob:nth-child(3) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-hover));
    opacity: 0.3;
    animation-delay: -6s;
    animation-duration: 20s;
}

/* 光球浮动动画 */
@keyframes float {
    0%, 100% { 
        transform: translate(0, 0) scale(1); 
    }
    33% { 
        transform: translate(50px, -30px) scale(1.1); 
    }
    66% { 
        transform: translate(-30px, 50px) scale(0.9); 
    }
}

/* ==================== 顶部导航栏 ==================== */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);   /* Safari 兼容 */
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    position: sticky;        /* 粘性定位 */
    top: 0;
    z-index: 100;
    animation: slideDown 0.6s ease;
}

/* 导航栏入场动画 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 导航栏内容容器 */
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* 品牌 Logo */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-gold);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);  /* 金色发光 */
    cursor: pointer;
    transition: all 0.3s;
}

.nav-brand:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

.nav-brand i {
    font-size: 28px;
}

/* 移动端菜单切换按钮 */
.menu-toggle {
    display: none;           /* 桌面端隐藏 */
    background: none;
    border: none;
    color: var(--primary-gold);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

/* 导航链接容器 */
.nav-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* 单个导航链接 */
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

/* 导航链接扫光效果 */
.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.5s;
}

.nav-link:hover::before {
    left: 100%;
}

/* 导航链接悬停状态 */
.nav-link:hover {
    background: rgba(212, 175, 55, 0.15);
    color: var(--primary-gold);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

/* 当前激活的导航链接 */
.nav-link.active {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-hover));
    color: var(--text-dark);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.nav-link.active:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

/* ==================== 通用容器 ==================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== 页面头部标题区域 ==================== */
.page-header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 50px 40px;
    margin: 35px auto;
    max-width: 1400px;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease;
}

/* 页面头部入场动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 页面头部扫光效果 */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 页面主标题 */
.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    margin-bottom: 12px;
    color: var(--text-main);
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-header h1 i {
    color: var(--primary-gold);
}

/* 页面副标题 */
.page-header p {
    font-size: 17px;
    color: var(--text-secondary);
    font-weight: 300;
}

/* ==================== 标签切换组件 ==================== */
/* 用于在借阅记录和购买记录间切换 */
.tabs-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 35px;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.6s ease 0.1s both;  /* 延迟入场 */
}

/* 标签按钮容器 */
.tabs {
    display: flex;
    gap: 15px;
    border-bottom: 2px solid var(--glass-border);
}

/* 单个标签按钮 */
.tab-btn {
    padding: 16px 32px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

/* 标签底部指示线 */
.tab-btn::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;              /* 默认宽度为0 */
    height: 3px;
    background: linear-gradient(90deg, var(--primary-gold), var(--primary-gold-hover));
    transition: width 0.3s ease;
}

/* 标签悬停效果 */
.tab-btn:hover {
    color: var(--primary-gold);
    transform: translateY(-2px);
}

/* 激活的标签 */
.tab-btn.active {
    color: var(--primary-gold);
}

/* 激活标签的指示线展开 */
.tab-btn.active::before {
    width: 100%;
}

/* 标签内容区域 */
.tab-content {
    display: none;           /* 默认隐藏 */
    animation: fadeIn 0.4s ease;
}

/* 显示的标签内容 */
.tab-content.show {
    display: block;
}

/* 标签内容淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 筛选条件栏 ==================== */
.filter-bar {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 35px;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.6s ease 0.2s both;
}

/* 筛选项组 */
.filter-group {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;         /* 允许换行 */
    align-items: flex-end;   /* 底部对齐 */
}

/* 单个筛选项 */
.filter-item {
    flex: 1;
    min-width: 220px;        /* 最小宽度 */
}

/* 筛选项标签 */
.filter-item label {
    display: block;
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* 筛选下拉框和输入框 */
.filter-item select,
.filter-item input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-size: 15px;
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Poppins', sans-serif;
}

/* 下拉框选项 */
.filter-item select option {
    background: #24243e;
    color: white;
    padding: 10px;
}

/* 筛选控件聚焦状态 */
.filter-item select:focus,
.filter-item input:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
    background: rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* ==================== 按钮样式 ==================== */
.btn {
    padding: 14px 24px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 主要按钮 - 金色渐变 */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-hover));
    color: var(--text-dark);
    border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* ==================== 记录表格样式 ==================== */
.records-table {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.6s ease 0.3s both;
}

/* 表格基础样式 */
table {
    width: 100%;
    border-collapse: collapse;  /* 合并边框 */
}

/* 表头 */
thead {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
}

/* 表头单元格 */
thead th {
    padding: 20px 18px;
    text-align: left;
    font-weight: 700;
    font-size: 14px;
    color: var(--primary-gold);
    border-bottom: 2px solid rgba(212, 175, 55, 0.4);
    text-transform: uppercase;   /* 大写字母 */
    letter-spacing: 1px;
    position: relative;
}

/* 表头悬停下划线效果 */
thead th::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.3s ease;
}

thead th:hover::after {
    width: 100%;
}

/* 表格行 */
tbody tr {
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 表格行悬停效果 - 高亮并向右偏移 */
tbody tr:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(8px);
    box-shadow: -4px 0 0 var(--primary-gold);  /* 左侧金色指示线 */
}

/* 表格数据单元格 */
tbody td {
    padding: 18px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* ==================== 状态徽章样式 ==================== */
/* 通用徽章样式 */
.status-badge {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 借阅中状态 - 黄色 */
.status-borrowed {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.4);
    box-shadow: 0 0 10px rgba(241, 196, 15, 0.2);
}

/* 已归还状态 - 绿色 */
.status-returned {
    background: rgba(46, 213, 115, 0.2);
    color: #2ed573;
    border: 1px solid rgba(46, 213, 115, 0.4);
    box-shadow: 0 0 10px rgba(46, 213, 115, 0.2);
}

/* 待处理状态 - 橙黄色带脉冲动画 */
.status-pending {
    background: rgba(241, 196, 15, 0.2);
    color: #f39c12;
    border: 1px solid rgba(241, 196, 15, 0.4);
    box-shadow: 0 0 10px rgba(241, 196, 15, 0.2);
    animation: pulse 2s ease-in-out infinite;  /* 引起注意 */
}

/* 逾期状态 - 红色带脉冲动画 */
.status-overdue {
    background: rgba(231, 76, 60, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(231, 76, 60, 0.4);
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.2);
    animation: pulse 2s ease-in-out infinite;  /* 紧急提醒 */
}

/* 脉冲动画 - 透明度闪烁 */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 待付款状态（旧版） - 橙色 */
.status-pending-old {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.4);
}

/* 已付款状态 - 蓝色 */
.status-paid {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
    border: 1px solid rgba(33, 150, 243, 0.4);
}

/* 已发货状态 - 紫色 */
.status-shipped {
    background: rgba(156, 39, 176, 0.2);
    color: #9c27b0;
    border: 1px solid rgba(156, 39, 176, 0.4);
}

/* 已完成状态 - 绿色 */
.status-completed {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

/* 已取消状态 - 灰色 */
.status-cancelled {
    background: rgba(158, 158, 158, 0.2);
    color: #9e9e9e;
    border: 1px solid rgba(158, 158, 158, 0.4);
}

/* ==================== 操作按钮样式 ==================== */
.action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Poppins', sans-serif;
}

/* 归还按钮 - 金色渐变 */
.btn-return {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-hover));
    color: var(--text-dark);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

/* 归还按钮扫光效果 */
.btn-return::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-return:hover::before {
    left: 100%;
}

.btn-return:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* 归还按钮禁用状态 */
.btn-return:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ==================== 逾期罚款显示 ==================== */
.overdue-fine {
    color: #ff6b6b;
    font-weight: 700;
    font-size: 15px;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.3);  /* 红色发光效果 */
}

/* ==================== 空状态展示 ==================== */
/* 当没有记录时显示的空状态 */
.empty-records {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

/* 空状态图标 - 浮动动画 */
.empty-records i {
    font-size: 80px;
    margin-bottom: 24px;
    color: rgba(212, 175, 55, 0.3);
    animation: float 3s ease-in-out infinite;
}

/* 空状态标题 */
.empty-records h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-main);
}

/* 空状态描述 */
.empty-records p {
    font-size: 16px;
    margin-bottom: 24px;
}

/* ==================== 分页组件 ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 35px;
    padding: 25px;
}

/* 分页按钮 */
.page-btn {
    padding: 12px 20px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-main);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

/* 分页按钮悬停效果 */
.page-btn:hover:not(:disabled) {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    transform: translateY(-2px);
}

/* 分页按钮禁用状态 */
.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* 当前页按钮 */
.page-btn.active {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-hover));
    color: var(--text-dark);
    border-color: var(--primary-gold);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* 分页信息文字 */
.page-info {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

/* ==================== 加载动画遮罩 ==================== */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* 加载旋转器 */
.loading .spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(212, 175, 55, 0.2);
    border-top-color: var(--primary-gold);  /* 顶部边框高亮 */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 旋转动画 */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 加载提示文字 */
.loading p {
    margin-top: 20px;
    color: var(--text-main);
    font-size: 16px;
}

/* ==================== 自定义滚动条 ==================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

/* 滚动条轨道 */
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-hover));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-gold-hover);
}

/* ==================== 响应式设计 - 移动端适配 ==================== */
/* 平板设备 (宽度 <= 768px) */
@media (max-width: 768px) {
    /* 导航栏调整 */
    .navbar .container {
        flex-wrap: wrap;
        padding: 16px 20px;
    }
    
    .navbar {
        position: relative;
    }

    .navbar .container {
        position: relative;
    }

    /* 显示菜单切换按钮 */
    .menu-toggle {
        display: block;
    }
    
    /* 导航链接改为下拉菜单 */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(25px);
        border: 1px solid var(--glass-border);
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        padding: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    /* 菜单展开状态 */
    .nav-links.show {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }
    
    /* 下滑动画 */
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* 导航链接全宽 */
    .nav-link {
        width: 100%;
        justify-content: flex-start;
    }
    
    /* 页面头部缩小 */
    .page-header {
        padding: 35px 25px;
        margin: 25px auto;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .page-header p {
        font-size: 15px;
    }
    
    /* 标签容器调整 */
    .tabs-container {
        padding: 20px;
    }
    
    /* 标签改为垂直排列 */
    .tabs {
        flex-direction: column;
        border-bottom: none;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
        border-bottom: 2px solid var(--glass-border);
        border-radius: var(--radius-sm);
    }
    
    .tab-btn.active {
        background: rgba(212, 175, 55, 0.15);
    }
    
    /* 筛选栏调整 */
    .filter-bar {
        padding: 20px;
    }
    
    /* 筛选项垂直排列 */
    .filter-group {
        flex-direction: column;
    }
    
    .filter-item {
        width: 100%;
        min-width: 0;
    }
    
    /* 表格横向滚动 */
    .records-table {
        overflow-x: auto;
    }
    
    table {
        min-width: 900px;     /* 保证表格最小宽度 */
        font-size: 13px;
    }
    
    thead th,
    tbody td {
        padding: 14px 10px;
    }
    
    /* 分页调整 */
    .pagination {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .page-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* 手机设备 (宽度 <= 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .nav-brand {
        font-size: 22px;
    }
    
    table {
        min-width: 800px;
        font-size: 12px;
    }
}
