/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #333;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 登录框样式 */
.login-box {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 40px;
    width: 100%;
}

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

.header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* 登录选项样式 */
.login-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.option-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    width: 280px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.option-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
}

.user-icon {
    background-color: #e3f2fd;
    color: #1976d2;
}

.admin-icon {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.option-card h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.option-card p {
    color: #7f8c8d;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #1976d2;
    color: white;
}

.btn-primary:hover {
    background-color: #1565c0;
    box-shadow: 0 5px 15px rgba(25, 118, 210, 0.3);
}

.btn-secondary {
    background-color: #7b1fa2;
    color: white;
}

.btn-secondary:hover {
    background-color: #6a1b9a;
    box-shadow: 0 5px 15px rgba(123, 31, 162, 0.3);
}

.btn-success {
    background-color: #388e3c;
    color: white;
}

.btn-success:hover {
    background-color: #2e7d32;
}

.btn-danger {
    background-color: #d32f2f;
    color: white;
}

.btn-danger:hover {
    background-color: #c62828;
}

.btn-warning {
    background-color: #f57c00;
    color: white;
}

.btn-warning:hover {
    background-color: #ef6c00;
}

/* 信息框样式 */
.info-box {
    background-color: #f1f8e9;
    border-left: 5px solid #7cb342;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.info-box h3 {
    color: #33691e;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-box ul {
    padding-left: 20px;
    color: #555;
}

.info-box li {
    margin-bottom: 8px;
}

/* 页脚样式 */
.footer {
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border 0.3s;
}

.form-control:focus {
    border-color: #1976d2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
}

/* 面板样式 */
.panel {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.panel-header {
    background: linear-gradient(135deg, #2c3e50 0%, #4a6491 100%);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h1 {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info {
    font-size: 1rem;
    opacity: 0.9;
}

.panel-body {
    padding: 30px;
}

/* 卡片样式 */
.card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.card h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 余额显示 */
.balance-display {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #1976d2 0%, #64b5f6 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 30px;
}

.balance-amount {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 10px 0;
}

.balance-label {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 利息计算器 */
.interest-calculator {
    background-color: #e8f5e9;
    border-left: 5px solid #4caf50;
}

.interest-result {
    font-size: 2rem;
    color: #2e7d32;
    font-weight: 700;
    text-align: center;
    margin: 15px 0;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

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

th {
    background-color: #f1f5f9;
    font-weight: 600;
    color: #2c3e50;
}

tr:hover {
    background-color: #f9f9f9;
}

.status-pending {
    color: #f57c00;
    font-weight: 600;
}

.status-approved {
    color: #388e3c;
    font-weight: 600;
}

.status-rejected {
    color: #d32f2f;
    font-weight: 600;
}

/* 消息样式 */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 5px solid #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 5px solid #dc3545;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 5px solid #ffc107;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 5px solid #17a2b8;
}

/* 导航样式 */
.nav-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 25px;
}

.nav-tab {
    padding: 12px 25px;
    text-decoration: none;
    color: #555;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.nav-tab:hover {
    color: #1976d2;
    background-color: #f8f9fa;
}

.nav-tab.active {
    color: #1976d2;
    border-bottom: 3px solid #1976d2;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-options {
        flex-direction: column;
        align-items: center;
    }
    
    .option-card {
        width: 100%;
        max-width: 350px;
    }
    
    .panel-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .balance-amount {
        font-size: 2.5rem;
    }
}
