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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f6fa;
    color: #333;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    padding-bottom: 80px;
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

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

/* 通用按钮涟漪效果 */
.btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease-out, height 0.5s ease-out;
    pointer-events: none;
}

.btn:active::after {
    width: 200px;
    height: 200px;
    transition: width 0s, height 0s;
}

.btn-primary {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.6);
}

.btn-primary::after {
    background: rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary::after {
    background: rgba(0, 0, 0, 0.1);
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.btn-danger:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.btn-danger::after {
    background: rgba(255, 255, 255, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #55efc4, #00b894);
    color: white;
    box-shadow: 0 4px 15px rgba(85, 239, 196, 0.4);
}

.btn-success:hover {
    box-shadow: 0 6px 20px rgba(85, 239, 196, 0.6);
}

.btn-success::after {
    background: rgba(255, 255, 255, 0.4);
}

/* 表单样式 */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #4facfe;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 12px;
    padding: 15px 10px;
    margin: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

/* 列表样式 */
.list-item {
    display: flex;
    align-items: center;
    padding: 16px 10px;
    background: white;
    border-radius: 8px;
    margin: 0 10px 10px 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.list-item:active {
    transform: scale(0.98) translateY(0px);
}

/* 列表项涟漪效果 */
.list-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.2) 1%, transparent 1%);
    transform: scale(0);
    transition: transform 0.5s, opacity 1s;
    z-index: 0;
}

.list-item:active::before {
    transform: scale(1);
    opacity: 0;
    transition: 0s;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    padding: 12px 0 8px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #9ca3af;
    padding: 4px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 0 4px;
}

.nav-item:hover {
    background: rgba(255, 102, 52, 0.1);
    transform: translateY(-2px);
}

.nav-item:active {
    transform: translateY(0px) scale(0.95);
    background: rgba(255, 102, 52, 0.2);
}

/* 导航项涟漪效果 */
.nav-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 102, 52, 0.3) 1%, transparent 1%);
    transform: scale(0);
    transition: transform 0.5s, opacity 1s;
    z-index: 0;
}

.nav-item:active::before {
    transform: scale(1);
    opacity: 0;
    transition: 0s;
}

.nav-item.active {
    color: #FF6634;
}

.nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.nav-label {
    font-size: 12px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

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

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px 25px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    margin: 20px;
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.modal-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-buttons {
    display: flex;
    gap: 12px;
}

.modal-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.modal-btn:hover {
    transform: translateY(-1px);
}

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

/* 弹窗按钮涟漪效果 */
.modal-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease-out, height 0.5s ease-out;
    pointer-events: none;
}

.modal-btn:active::after {
    width: 200px;
    height: 200px;
    transition: width 0s, height 0s;
}

.modal-btn.primary {
    background: #4facfe;
    color: white;
    box-shadow: 0 2px 8px rgba(79, 172, 254, 0.3);
}

.modal-btn.primary:hover {
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.4);
}

.modal-btn.primary::after {
    background: rgba(255, 255, 255, 0.4);
}

.modal-btn.secondary {
    background: #f3f4f6;
    color: #374151;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-btn.secondary:hover {
    background: #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-btn.secondary::after {
    background: rgba(0, 0, 0, 0.1);
}

/* 加载样式 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4facfe;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 消息提示 */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.toast.success {
    background: rgba(16, 185, 129, 0.9);
}

.toast.error {
    background: rgba(239, 68, 68, 0.9);
}

.toast.warning {
    background: rgba(245, 158, 11, 0.9);
}

/* 
=================
页面标题样式 - 通用顶部导航栏
=================

使用方法：
1. 基本三栏布局：
   <div class="page-header">
       <button class="back-btn" onclick="window.history.back()">‹</button>
       <div class="page-title">页面标题</div>
       <div class="header-spacer"></div>
   </div>

2. 带右侧操作按钮：
   <div class="page-header">
       <button class="back-btn" onclick="window.history.back()">‹</button>
       <div class="page-title">页面标题</div>
       <button class="refresh-btn" onclick="refresh()">🔄</button>
   </div>

3. 带自定义右侧按钮：
   <div class="page-header">
       <button class="back-btn" onclick="window.history.back()">‹</button>
       <div class="page-title">页面标题</div>
       <button class="header-action-btn" onclick="customAction()">操作</button>
   </div>

可用的按钮类：
- .back-btn: 返回按钮（24px 字体）
- .refresh-btn: 刷新按钮（18px 字体，hover 时旋转）
- .history-btn: 历史记录按钮（18px 字体）
- .header-action-btn: 通用操作按钮（18px 字体）
- .header-spacer: 占位元素，保持布局对称
*/

/* 页面标题区域 */
body .page-header,
.page-header {
    height: 70px !important;
    min-height: 70px !important;
    max-height: 70px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* 按钮样式调整 */
body .page-header .back-btn,
body .page-header .refresh-btn {
    width: 70px !important;
    height: 70px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

body .page-header .back-btn {
    font-size: 24px;
}

body .page-header .refresh-btn {
    font-size: 20px;
}

body .page-header .page-title {
    font-size: 17px;
    font-weight: 600;
    color: #1f2937;
    flex: 1;
    text-align: center;
    line-height: 70px !important;
}

/* 确保容器正确定位 */
.container {
    padding-top: 5px;
}

/* 响应式表格 */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.table th,
.table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

/* 徽章样式 */
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    text-align: center;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

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

/* 筛选器区域调整 */
.filter-section {
    margin-top: 0;
} 