/* ============================================
   桔小鱼官网 - 共用样式
   主色: #ff7d00 (橙色)
   背景: #f6f9fc (浅灰)
   文字: #0d253d (主文字)
   ============================================ */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f6f9fc;
    color: #0d253d;
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

input, select, textarea {
    font-family: inherit;
    outline: none;
}

/* ============================================
   布局容器
   ============================================ */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-wrapper {
    min-height: calc(100vh - 56px - 60px);
    padding: 40px 0;
}

/* ============================================
   顶部导航栏
   ============================================ */
.navbar {
    height: 56px;
    background-color: #ffffff;
    border-bottom: 1px solid #e3e8ee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    font-size: 18px;
    font-weight: 700;
    color: #0d253d;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ff7d00, #ff9c33);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.navbar-nav a {
    font-size: 14px;
    color: #666;
    transition: color 0.2s;
    position: relative;
    padding: 4px 0;
}

.navbar-nav a:hover {
    color: #ff7d00;
}

.navbar-nav a.active {
    color: #ff7d00;
    font-weight: 500;
}

.navbar-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #ff7d00;
    border-radius: 1px;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* 用户信息 */
.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.user-info:hover {
    background-color: #f6f9fc;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff7d00, #ff9c33);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    padding: 0;
}
.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.user-name {
    font-size: 14px;
    color: #0d253d;
}

.user-dropdown-arrow {
    font-size: 10px;
    color: #999;
}

/* ============================================
   按钮样式
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-primary {
    background-color: #ff7d00;
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 125, 0, 0.2);
}

.btn-primary:hover {
    background-color: #ff6a00;
    box-shadow: 0 4px 12px rgba(255, 125, 0, 0.3);
}

.btn-outline {
    background-color: #fff;
    color: #ff7d00;
    border: 1px solid #ff7d00;
}

.btn-outline:hover {
    background-color: #fff8f0;
}

.btn-secondary {
    background-color: #f0f2f5;
    color: #666;
}

.btn-secondary:hover {
    background-color: #e8eaed;
}

.btn-pill {
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
    height: 44px;
}

.btn-lg {
    height: 44px;
    padding: 0 24px;
    font-size: 15px;
}

.btn-md {
    height: 36px;
    padding: 0 16px;
    font-size: 14px;
}

.btn-sm {
    height: 30px;
    padding: 0 12px;
    font-size: 13px;
}

.btn-disabled,
.btn:disabled {
    background-color: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
}

/* ============================================
   卡片样式
   ============================================ */
.card {
    background-color: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #0d253d;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title-right {
    font-size: 13px;
    color: #999;
    font-weight: 400;
}

/* ============================================
   页面标题
   ============================================ */
.page-header {
    text-align: center;
    margin-bottom: 32px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #0d253d;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 15px;
    color: #666;
}

/* ============================================
   表格样式
   ============================================ */
.table-wrapper {
    overflow-x: auto;
}

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

thead th {
    background-color: #fafbfc;
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    border-bottom: 1px solid #e3e8ee;
}

tbody td {
    padding: 14px 16px;
    font-size: 14px;
    color: #0d253d;
    border-bottom: 1px solid #f0f2f5;
}

tbody tr:hover {
    background-color: #fafbfc;
}

tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   标签样式
   ============================================ */
.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
}

.tag-success {
    background-color: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.tag-warning {
    background-color: #fffbe6;
    color: #faad14;
    border: 1px solid #ffe58f;
}

.tag-danger {
    background-color: #fff1f0;
    color: #f5222d;
    border: 1px solid #ffa39e;
}

.tag-default {
    background-color: #f5f5f5;
    color: #999;
    border: 1px solid #d9d9d9;
}

.tag-primary {
    background-color: #fff8f0;
    color: #ff7d00;
    border: 1px solid #ffd591;
}

.tag-info {
    background-color: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
}

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

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

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 14px;
    color: #0d253d;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #ff7d00;
    box-shadow: 0 0 0 3px rgba(255, 125, 0, 0.1);
}

.form-textarea {
    height: auto;
    padding: 10px 12px;
    resize: vertical;
    min-height: 80px;
}

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

.form-row .form-group {
    flex: 1;
}

.form-hint {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

/* 单选/复选 */
.radio-group,
.checkbox-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.radio-item,
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #0d253d;
}

.radio-item input,
.checkbox-item input {
    width: 16px;
    height: 16px;
    accent-color: #ff7d00;
}

/* ============================================
   数据概览块
   ============================================ */
.stats-row {
    display: flex;
    gap: 0;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: #e3e8ee;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #ff7d00;
    line-height: 1.2;
}

.stat-value.success {
    color: #52c41a;
}

.stat-value.warning {
    color: #faad14;
}

.stat-value.default {
    color: #999;
}

.stat-label {
    font-size: 13px;
    color: #999;
    margin-top: 4px;
}

/* ============================================
   Tab 切换
   ============================================ */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e3e8ee;
    margin-bottom: 20px;
}

.tab-item {
    padding: 10px 20px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.tab-item:hover {
    color: #ff7d00;
}

.tab-item.active {
    color: #ff7d00;
    font-weight: 600;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #ff7d00;
}

/* ============================================
   筛选栏
   ============================================ */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-bar .form-select,
.filter-bar .form-input {
    width: auto;
    min-width: 140px;
    height: 36px;
}

.filter-bar-right {
    margin-left: auto;
}

/* ============================================
   分页
   ============================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.pagination button {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #d9d9d9;
    background-color: #fff;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
    transition: all 0.2s;
}

.pagination button:hover {
    border-color: #ff7d00;
    color: #ff7d00;
}

.pagination button.active {
    background-color: #ff7d00;
    border-color: #ff7d00;
    color: #fff;
}

/* ============================================
   页脚
   ============================================ */
.footer {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #bbb;
    border-top: 1px solid #eef0f3;
    background-color: #fff;
}

/* ============================================
   工具类
   ============================================ */
.text-primary { color: #ff7d00; }
.text-success { color: #52c41a; }
.text-warning { color: #faad14; }
.text-danger { color: #f5222d; }
.text-muted { color: #999; }
.text-bold { font-weight: 600; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-1 { flex: 1; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* ============================================
   响应式
   ============================================ */
@media (max-width: 768px) {
    .navbar-nav {
        display: none;
    }
    
    .page-wrapper {
        padding: 24px 0;
    }
    
    .page-title {
        font-size: 22px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .stats-row {
        flex-wrap: wrap;
    }
    
    .stat-item {
        flex: 0 0 50%;
        margin-bottom: 16px;
    }
    
    .stat-item:not(:last-child)::after {
        display: none;
    }
}
