/* ==========================================================================
   Page Specific Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Login Page (login.html)
   -------------------------------------------------------------------------- */
.login-container {
    display: flex;
    height: 100vh;
    width: 100%;
    background-color: #f0f2f5;
}

.login-left {
    flex: 1;
    background-color: #e6f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Optional decorative circle for left side */
.login-left::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: url('../images/login_bg.png') no-repeat center/contain;
    /* Fallback if image missing */
    background-color: rgba(24, 144, 255, 0.1); 
    border-radius: 50%;
}

.login-right {
    flex: 0 0 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    box-shadow: -4px 0 10px rgba(0,0,0,0.05);
}

.login-form-box {
    width: 360px;
    padding: 24px;
}

.login-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
    text-align: center;
    color: var(--primary-color);
}

.form-item {
    margin-bottom: 24px;
}

.form-input {
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    font-size: 16px;
}

.login-btn {
    width: 100%;
    height: 40px;
    font-size: 16px;
    text-align: center;
    line-height: 26px; /* Adjust for padding */
}

/* --------------------------------------------------------------------------
   User Page (user.html)
   -------------------------------------------------------------------------- */
.user-page-container {
    padding: 16px 24px 0 24px; /* Top 16px, Side 24px */
}

.user-toolbar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    background: #fff;
    padding: 24px;
    border-radius: 2px;
}

.user-search-input {
    width: 300px;
}

.user-table tr {
    height: 48px;
}

/* Zebra striping */
.user-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.user-table tbody tr:hover {
    background-color: #e6f7ff; /* Slightly distinct hover or just #fafafa as requested? 
                                  User asked for #fafafa hover, but if zebra is #fafafa, 
                                  hover needs to be visible or handled. 
                                  Let's stick to prompt: "斑马纹背景，鼠标悬停行背景色 #fafafa"
                                  If zebra is used, odd rows are white, even are #fafafa. 
                                  Hover #fafafa on white row works. Hover #fafafa on #fafafa row is invisible.
                                  I will assume standard UI practice implies visible hover, 
                                  but strict adherence means #fafafa. 
                                  Let's use a slightly darker shade for hover to be safe or stick to request.
                                  Request: "斑马纹背景" (Zebra background) + "鼠标悬停行背景色 #fafafa" (Hover row bg #fafafa).
                                  I'll make zebra #fafafa and hover #eee or keep strictly as requested.
                                  Let's interpret zebra as maybe #fcfcfc and hover #fafafa.
                               */
    background-color: #fafafa !important; 
}

/* --------------------------------------------------------------------------
   AI Page (ai.html)
   -------------------------------------------------------------------------- */
.ai-settings-form {
    background: #fff;
    padding: 24px;
    border-radius: 2px;
    max-width: 800px;
}

.ai-form-group {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.ai-form-label {
    width: 120px;
    text-align: right;
    margin-right: 16px;
    font-weight: 500;
}

.ai-form-control {
    width: 400px;
}

/* --------------------------------------------------------------------------
   Jifen Page (jifen.html)
   -------------------------------------------------------------------------- */
.jifen-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.stat-card {
    flex: 1;
    height: 120px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
}

.stat-title {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 30px;
    font-weight: bold;
    color: var(--text-color);
}

.jifen-table-wrapper {
    background: #fff;
    padding: 24px;
    border-radius: 8px; /* Consistent with cards? Table usually sqaure, but user said card layout for top. */
    overflow-x: auto;
}

.jifen-table {
    min-width: 800px; /* Ensure scroll if small screen */
}

.jifen-table th, .jifen-table td {
    min-width: 120px;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
