/* 字体导入 */
@font-face {
    font-family: "ALKATIP Basma Tom";
    src: url('https://www.xjchangfu.com/ALKATIP%20Basma%20Tom.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 根元素字体大小设置 */
html {
    font-size: 16px;
    font-family: "ALKATIP Basma Tom", "思源黑体", "苹方", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 基础颜色变量 */
:root {
    --primary-color: #1E3A8A;
    --secondary-color: #F97316;
    --success-color: #10B981;
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
    --white: #FFFFFF;
    --light-gray: #F9FAFB;
    --medium-gray: #F3F4F6;
    --dark-gray: #374151;
    --border-color: #E5E7EB;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 6px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-sm: 4px;
}

/* 基础元素样式 */
body {
    background-color: var(--light-gray);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    font-family: "ALKATIP Basma Tom", "思源黑体", "苹方", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

/* 安全区域适配 */
@supports (padding: max(0px)) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* 登录页面样式 */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.login-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header .logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.login-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.login-header p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* 表单样式 */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.login-form .btn-primary {
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input,
.form-group select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    transform: translateY(-1px);
}

.form-group input:hover,
.form-group select:hover {
    border-color: var(--primary-color);
}

.form-group input.error,
.form-group select.error {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-secondary);
    pointer-events: none;
}

/* RTL support */
[dir="rtl"] .input-icon {
    left: auto;
    right: 1rem;
}

[dir="rtl"] .input-wrapper input {
    padding: 0.75rem 2.75rem 0.75rem 1rem;
}

.input-wrapper input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.captcha-wrapper {
    display: flex;
    gap: 0.5rem;
}

.captcha-image {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.refresh-captcha {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--text-secondary);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.checkbox-wrapper input[type="checkbox"] {
    cursor: pointer;
}

.forgot-password {
    font-size: 0.875rem;
    color: var(--primary-color);
    text-decoration: none;
}

/* 按钮样式 */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: "ALKATIP Basma Tom", "思源黑体", "苹方", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background-color: #1E40AF;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: "ALKATIP Basma Tom", "思源黑体", "苹方", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background-color: var(--light-gray);
    border-color: var(--dark-gray);
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-family: "ALKATIP Basma Tom", "思源黑体", "苹方", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-weight: normal;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.btn-text:hover {
    text-decoration: underline;
}

.btn-text.danger {
    color: var(--danger-color);
}

/* 后台布局样式 */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏样式 */
.sidebar {
    width: 200px;
    background-color: var(--primary-color);
    color: var(--white);
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 1000;
    transition: all 0.3s ease;
}

.sidebar.collapsed {
    width: 60px;
}

.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-text,
.sidebar.collapsed .submenu {
    display: none;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 0.75rem;
}

.sidebar.collapsed .nav-icon {
    margin-right: 0;
}

.sidebar-header {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-text {
    font-size: 0.875rem;
    font-weight: 600;
    font-family: "ALKATIP Basma Tom", "思源黑体", "苹方", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.sidebar-nav {
    padding: 1rem 0;
}

.nav-list {
    list-style: none;
}

.nav-item {
    margin-bottom: 0.25rem;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.nav-item.active > .nav-link {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.nav-icon {
    margin-right: 0.75rem;
}

.nav-text {
    flex: 1;
    font-family: "ALKATIP Basma Tom", "思源黑体", "苹方", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: normal;
}

.nav-arrow {
    transition: transform 0.3s ease;
}

.nav-item.active .nav-arrow {
    transform: rotate(90deg);
}

.submenu {
    list-style: none;
    background-color: rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-item.active .submenu {
    max-height: 500px;
}

.submenu li a {
    display: block;
    padding: 0.5rem 1rem 0.5rem 3.5rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    font-family: "ALKATIP Basma Tom", "思源黑体", "苹方", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-weight: normal;
    transition: all 0.3s ease;
}

.submenu li a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.submenu li.active a {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

/* 主内容区样式 */
.main-content {
    flex: 1;
    margin-left: 200px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.sidebar.collapsed ~ .main-content {
    margin-left: 60px;
}

/* 顶部导航栏样式 */
.top-nav {
    background-color: var(--white);
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    display: none;
    position: relative;
    z-index: 10;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-family: "ALKATIP Basma Tom", "思源黑体", "苹方", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-weight: normal;
}

.breadcrumb .separator {
    color: var(--border-color);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: var(--light-gray);
    border-radius: 20px;
    padding: 0.5rem 1rem;
}

.search-box svg {
    color: var(--text-secondary);
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    margin-left: 0.5rem;
    font-size: 0.875rem;
    font-family: "ALKATIP Basma Tom", "思源黑体", "苹方", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-weight: normal;
    color: var(--text-primary);
    width: 200px;
}

.notification {
    position: relative;
}

.notification-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    position: relative;
}

.badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--danger-color);
    color: var(--white);
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.user-menu {
    position: relative;
}

.user-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    text-align: left;
}

.user-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    font-family: "ALKATIP Basma Tom", "思源黑体", "苹方", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

.user-role {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: "ALKATIP Basma Tom", "思源黑体", "苹方", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-weight: normal;
}

.dropdown-arrow {
    color: var(--text-secondary);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.user-menu:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid var(--border-color);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu li.divider {
    border-bottom: none;
    border-top: 1px solid var(--border-color);
    margin: 0;
    height: 1px;
}

.dropdown-menu a {
    display: block;
    padding: 1.25rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-family: "ALKATIP Basma Tom", "思源黑体", "苹方", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-weight: normal;
    transition: all 0.3s ease;
    line-height: 1.4;
    height: 56px;
    display: flex;
    align-items: center;
}

.dropdown-menu a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
    padding-left: 1.75rem;
    border-left: 3px solid var(--primary-color);
}

/* 内容区域样式 */
.content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: "ALKATIP Basma Tom", "思源黑体", "苹方", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

.page-actions {
    display: flex;
    gap: 0.75rem;
}

/* 仪表盘样式 */
.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.stat-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-family: "ALKATIP Basma Tom", "思源黑体", "苹方", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-family: "ALKATIP Basma Tom", "思源黑体", "苹方", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-weight: normal;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-family: "ALKATIP Basma Tom", "思源黑体", "苹方", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-weight: normal;
}

.stat-change.positive {
    color: var(--success-color);
}

.stat-change.negative {
    color: var(--danger-color);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
}

.dashboard-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.detail-card .card-body {
    padding-top: 0.75rem;
}

.view-all {
    font-size: 0.875rem;
    color: var(--primary-color);
    text-decoration: none;
}

.time-filter {
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    background-color: var(--white);
    color: var(--text-primary);
}

.todo-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: var(--light-gray);
    border-radius: var(--radius-sm);
}

.todo-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.todo-content {
    flex: 1;
}

.todo-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-family: "ALKATIP Basma Tom", "思源黑体", "苹方", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

.todo-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: "ALKATIP Basma Tom", "思源黑体", "苹方", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-weight: normal;
}

.todo-action {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-family: "ALKATIP Basma Tom", "思源黑体", "苹方", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-weight: normal;
    cursor: pointer;
}

.chart-container {
    height: 300px;
}

.full-width {
    grid-column: 1 / -1;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    background-color: var(--light-gray);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-action:hover {
    background-color: var(--medium-gray);
    transform: translateY(-2px);
}

.quick-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-action span {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* 筛选栏样式 */
.filter-bar {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.filter-group label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.filter-group input,
.filter-group select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-family: "ALKATIP Basma Tom", "思源黑体", "苹方", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-weight: normal;
    min-width: 150px;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
}

/* 表格样式 */
.table-container {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow-x: auto;
}

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

.data-table thead {
    background-color: var(--light-gray);
}

.data-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.data-table tbody tr:nth-child(even) {
    background-color: var(--light-gray);
}

.data-table tbody tr:hover {
    background-color: var(--medium-gray);
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-cell img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-cell .user-name {
    font-weight: 500;
}

.user-cell .user-phone {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.pending {
    background-color: #FEF3C7;
    color: #D97706;
}

.status-badge.waiting {
    background-color: #DBEAFE;
    color: #1E40AF;
}

.status-badge.processing {
    background-color: #D1FAE5;
    color: #065F46;
}

.status-badge.completed {
    background-color: #E0E7FF;
    color: #4338CA;
}

.status-badge.cancelled {
    background-color: #FEE2E2;
    color: #DC2626;
}

.status-badge.status-success {
    background-color: #D1FAE5;
    color: #065F46;
}

.status-badge.status-warning {
    background-color: #FEF3C7;
    color: #D97706;
}

.status-badge.status-pending {
    background-color: #DBEAFE;
    color: #1E40AF;
}

/* 用户信息单元格 */
.user-info-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--medium-gray);
}

.user-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-details .user-name {
    font-weight: 500;
    color: var(--text-primary);
}

.user-details .user-id {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* 星级评分 */
.star-rating {
    display: flex;
    align-items: center;
    gap: 0.125rem;
}

.star-rating .star {
    color: #F59E0B;
    font-size: 0.875rem;
}

.star-rating .star.empty {
    color: #E5E7EB;
}

.star-rating .rating-text {
    margin-left: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 1rem;
}

.pagination-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.pagination-controls {
    display: flex;
    gap: 0.5rem;
}

.btn-page {
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--white);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-page:hover:not(:disabled) {
    background-color: var(--light-gray);
}

.btn-page.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-page:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 详情页样式 */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.detail-card {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-body {
    padding: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8125rem;
}

.info-row label {
    font-size: 0.75rem;
}

.info-row span {
    font-size: 0.75rem;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.info-row span {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
}

.info-row .price {
    color: var(--secondary-color);
    font-weight: 600;
}

/* 进度时间线样式 */
.progress-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progress-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.progress-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.progress-item.completed .progress-icon {
    background-color: #D1FAE5;
}

.progress-item.active .progress-icon {
    background-color: #FEF3C7;
}

.progress-item:not(.completed):not(.active) .progress-icon {
    background-color: var(--light-gray);
}

.progress-content {
    flex: 1;
}

.progress-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.progress-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* 日志列表样式 */
.log-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.log-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.75rem;
    background-color: var(--light-gray);
    border-radius: var(--radius-sm);
}

.log-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.log-content {
    flex: 1;
}

.log-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.log-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.log-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* 语言切换按钮样式 */
.language-switcher {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 0.5rem;
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    z-index: 1000;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--white);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.lang-btn:hover {
    background-color: var(--light-gray);
    border-color: var(--primary-color);
}

.lang-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* 响应式设计 */
@media screen and (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 1024px) {
    .sidebar {
        width: 60px;
    }
    
    .sidebar-header .logo-text,
    .nav-text,
    .nav-arrow {
        display: none;
    }
    
    .sidebar-header {
        justify-content: center;
    }
    
    .nav-link {
        justify-content: center;
        padding: 0.75rem;
    }
    
    .nav-icon {
        margin-right: 0;
    }
    
    .main-content {
        margin-left: 60px;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group input,
    .filter-group select {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .top-nav {
        padding: 0.75rem 1rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .sidebar-toggle {
        display: none;
    }
    
    .search-box input {
        width: 120px;
    }
    
    .user-info {
        display: none;
    }
    
    .content {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .page-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .data-table {
        font-size: 0.75rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

@media screen and (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .login-card {
        padding: 1.5rem;
    }
    
    .top-nav {
        padding: 0.5rem;
    }
    
    .search-box {
        display: none;
    }
    
    .notification {
        display: none;
    }
    
    .content {
        padding: 0.75rem;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .todo-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .todo-action {
        width: 100%;
    }
}

/* 横屏适配 */
@media screen and (orientation: landscape) and (max-height: 600px) {
    .sidebar {
        height: 100vh;
    }
    
    .main-content {
        height: 100vh;
    }
    
    .content {
        overflow-y: auto;
    }
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.loading::after {
    content: "";
    width: 2rem;
    height: 2rem;
    border: 2px solid var(--light-gray);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Toast提示 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    z-index: 10000;
    animation: fadeInOut 2s ease;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* 选项卡样式 */
.settings-tabs {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.tabs-header {
    display: flex;
    background-color: var(--light-gray);
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    position: relative;
}

.tab-btn:hover {
    color: var(--primary-color);
    background-color: rgba(30, 58, 138, 0.05);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: var(--white);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
}

.tabs-content {
    padding: 1.5rem;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

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

/* 表单部分样式 */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.upload-box {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--light-gray);
}

.upload-box:hover {
    border-color: var(--primary-color);
    background-color: rgba(30, 58, 138, 0.05);
}

/* 弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-content {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
}

.modal-body {
    padding: 1.25rem;
}

.modal-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* 图表时间选择按钮样式 */
.btn-chart {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--white);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.btn-chart:first-child {
    margin-left: 0;
}

.btn-chart:hover {
    background-color: var(--light-gray);
    border-color: var(--primary-color);
}

.btn-chart.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* 操作按钮样式 */
.action-btns {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.btn-icon:hover {
    background-color: var(--light-gray);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-icon:active {
    transform: translateY(0);
}

.btn-icon svg {
    transition: all 0.3s ease;
}

.btn-icon:hover svg {
    transform: scale(1.1);
}

/* 编辑按钮 */
.btn-icon.edit:hover {
    background-color: #DBEAFE;
    border-color: #1E3A8A;
}

.btn-icon.edit:hover svg path {
    stroke: #1E3A8A;
}

/* 删除按钮 */
.btn-icon.delete:hover {
    background-color: #FEE2E2;
    border-color: #EF4444;
}

.btn-icon.delete:hover svg path {
    stroke: #EF4444;
}

/* 查看按钮 */
.btn-icon.view:hover {
    background-color: #F3F4F6;
    border-color: #6B7280;
}

.btn-icon.view:hover svg path {
    stroke: #374151;
}

/* 审核通过按钮 */
.btn-icon.approve:hover {
    background-color: #D1FAE5;
    border-color: #10B981;
}

.btn-icon.approve:hover svg path {
    stroke: #10B981;
}

/* 拒绝按钮 */
.btn-icon.reject:hover {
    background-color: #FEE2E2;
    border-color: #EF4444;
}

.btn-icon.reject:hover svg path {
    stroke: #EF4444;
}

/* 性能优化 */
* {
    -webkit-tap-highlight-color: transparent;
}

button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-family: "ALKATIP Basma Tom", "思源黑体", "苹方", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-weight: normal;
}

input,
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* 交易列表样式 */
.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: var(--light-gray);
    border-radius: var(--radius-sm);
}

.transaction-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.transaction-icon.income {
    background-color: #D1FAE5;
}

.transaction-icon.expense {
    background-color: #FEE2E2;
}

.transaction-content {
    flex: 1;
}

.transaction-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.transaction-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.transaction-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.transaction-amount {
    font-size: 0.875rem;
    font-weight: 600;
}

.transaction-amount.income {
    color: var(--success-color);
}

.transaction-amount.expense {
    color: var(--danger-color);
}