:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --success-color: #4cc9f0;
    --warning-color: #f8961e;
    --danger-color: #f94144;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --text-color: #495057;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f7fb;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    padding: 8px 16px;
    background-color: white;
    font-size: 12px;
    color: #6c757d;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 100;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
    transition: var(--transition);
}

.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 24px 16px;
    text-align: center;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    margin-bottom: 24px;
    position: relative;
    box-shadow: var(--box-shadow);
}

.header h1 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.menu-btn, .more-btn {
    position: absolute;
    top: 24px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.menu-btn:hover, .more-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.menu-btn {
    left: 16px;
}

.more-btn {
    right: 16px;
}

.runtime {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.welcome {
    font-size: 14px;
    opacity: 0.9;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 16px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.stat-card .icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 18px;
}

.stat-card .content {
    flex: 1;
}

.stat-card .title {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 4px;
}

.stat-card .value {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
}

.user-card .icon {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
}

.auth-card .icon {
    background-color: rgba(76, 201, 240, 0.1);
    color: var(--success-color);
}

.today-card .icon {
    background-color: rgba(248, 150, 30, 0.1);
    color: var(--warning-color);
}

.yesterday-card .icon {
    background-color: rgba(249, 65, 68, 0.1);
    color: var(--danger-color);
}

.feature-notice {
    text-align: center;
    color: var(--primary-color);
    font-size: 13px;
    margin: 16px 0;
    padding: 8px;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: 20px;
}

.feature-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.feature-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 12px 8px;
    font-size: 13px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    cursor: pointer;
}

.feature-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.user-section {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 16px;
    box-shadow: var(--box-shadow);
}

.user-section-title {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.user-feature-list {
    list-style-type: none;
}

.user-feature-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.user-feature-item:last-child {
    border-bottom: none;
}

.user-feature-item .bullet {
    color: var(--primary-color);
    margin-right: 12px;
    font-weight: bold;
}

.user-feature-item .text {
    flex: 1;
    font-size: 14px;
}

.user-feature-item .action-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 12px;
    transition: var(--transition);
    cursor: pointer;
}

.user-feature-item .action-btn:hover {
    background-color: var(--secondary-color);
}

/* 侧边栏样式 */
.sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background-color: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
    padding-top: 40px;
}

.sidebar.active {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.sidebar-header {
    padding: 16px;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 16px;
}

.sidebar-title {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
}

.sidebar-menu {
    list-style-type: none;
}

.sidebar-item {
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-item:hover {
    background-color: rgba(67, 97, 238, 0.1);
}

.sidebar-item.active {
    background-color: rgba(67, 97, 238, 0.2);
    border-left: 3px solid var(--primary-color);
}

.sidebar-item i {
    margin-right: 10px;
    color: var(--primary-color);
}

.shift-right {
    transform: translateX(250px);
}

/* 功能页面样式 */
.page {
    display: none;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 16px;
    box-shadow: var(--box-shadow);
    margin-bottom: 24px;
}

.page.active {
    display: block;
}

.page-title {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.search-bar {
    display: flex;
    margin-bottom: 16px;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 14px;
    outline: none;
}

.search-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 0 15px;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background-color: var(--secondary-color);
}

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

.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.data-table tr:hover {
    background-color: rgba(67, 97, 238, 0.05);
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.pagination-btn {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    margin: 0 4px;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
}

.pagination-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

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

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.form-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.form-submit:hover {
    background-color: var(--secondary-color);
}

.alert {
    padding: 12px 16px;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
}

.alert-success {
    background-color: rgba(76, 201, 240, 0.2);
    color: #155724;
    border-left: 3px solid var(--success-color);
}

.alert-danger {
    background-color: rgba(249, 65, 68, 0.2);
    color: #721c24;
    border-left: 3px solid var(--danger-color);
}
