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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0f172a;
    min-height: 100vh;
    color: #e2e8f0;
}

.page {
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

/* 登录页面 */
.auth-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 60px 20px;
}

.logo {
    text-align: center;
    margin-bottom: 40px;
}

.logo h1 {
    font-size: 28px;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo p {
    color: #64748b;
    font-size: 14px;
}

.auth-form {
    background: rgba(30, 41, 59, 0.8);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: #64748b;
    font-size: 14px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #94a3b8;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.8);
    color: #e2e8f0;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* 主页面布局 */
#main-page {
    display: flex;
}

.sidebar {
    width: 260px;
    background: rgba(30, 41, 59, 0.95);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255,255,255,0.1);
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h2 {
    font-size: 18px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 14px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s;
    margin-bottom: 4px;
    text-align: left;
}

.nav-item:hover {
    background: rgba(255,255,255,0.05);
    color: #e2e8f0;
}

.nav-item.active {
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    color: #3b82f6;
}

.nav-icon {
    font-size: 18px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-name {
    color: #e2e8f0;
    font-weight: 600;
}

.btn-logout {
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    background: transparent;
    color: #94a3b8;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: rgba(255,255,255,0.1);
    color: #e2e8f0;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 32px;
    min-height: 100vh;
}

.content-page h2 {
    margin-bottom: 8px;
    font-size: 24px;
}

.page-header {
    margin-bottom: 24px;
}

.page-header p {
    color: #64748b;
    font-size: 14px;
}

/* 订单相关样式 */
.orders-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.order-card {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.order-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.order-id {
    font-size: 13px;
    color: #64748b;
}

.order-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.status-accepted {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.status-completed {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.status-cancelled {
    background: rgba(107, 114, 128, 0.2);
    color: #6b7280;
}

.order-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 16px 0;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 12px;
    color: #64748b;
}

.info-value {
    font-size: 14px;
    color: #e2e8f0;
}

.order-price {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.order-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.btn-small {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-view {
    background: rgba(255,255,255,0.1);
    color: #e2e8f0;
}

.btn-view:hover {
    background: rgba(255,255,255,0.2);
}

.btn-accept {
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    color: #fff;
}

.btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-delete {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.3);
}

/* 处罚相关样式 */
.punishments-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.punishment-card {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s;
}

.punishment-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.punishment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.punishment-type {
    font-size: 16px;
    font-weight: 600;
}

.punishment-status {
    font-size: 13px;
    font-weight: 600;
}

.punishment-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 16px 0;
}

/* 公告相关样式 */
.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.announcement-card {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s;
}

.announcement-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.announcement-header h4 {
    font-size: 18px;
}

.announcement-time {
    font-size: 13px;
    color: #64748b;
}

.announcement-content {
    color: #94a3b8;
    line-height: 1.6;
}

/* 弹窗 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: #1e293b;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

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

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.btn-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #94a3b8;
    font-size: 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-close:hover {
    background: rgba(255,255,255,0.2);
    color: #e2e8f0;
}

.modal-body {
    padding: 20px 24px;
    max-height: 400px;
    overflow-y: auto;
}

/* 详情行 */
.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.detail-label {
    color: #64748b;
    font-size: 14px;
}

.detail-value {
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 500;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 16px;
    border: 1px dashed rgba(255,255,255,0.1);
}

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

.empty-state-text {
    font-size: 14px;
}

/* 响应式 */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        min-height: auto;
    }
    
    #main-page {
        flex-direction: column;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .orders-grid {
        grid-template-columns: 1fr;
    }
    
    .punishments-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}
