body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
}

.container {
    background-color: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    max-width: 100%;
    margin: 0;
    border: 1px solid #eaeaea;
}

h1 {
    color: #202124;
    margin-bottom: 24px;
    font-weight: 600;
}

.input-group {
    margin-bottom: 24px;
    display: flex;
    gap: 12px;
}

input[type="text"] {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
}

input[type="text"]:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
    outline: none;
}

button {
    padding: 12px 16px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    position: relative;
    transition: all 0.2s;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

button:hover {
    background-color: #1765cc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

button.loading {
    color: transparent;
}

button.loading:after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.remove-ip-btn {
    background-color: #ea4335;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.remove-ip-btn:hover {
    background-color: #d33426;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

th, td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

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

.status-ok {
    color: #137333;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-error {
    color: #c5221f;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

#kvStatus {
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.back-link:hover {
    color: #1765cc;
}

.hint {
    margin-top: 24px;
    padding: 0;
    background-color: white;
    border-radius: 8px;
}

.hint h3 {
    margin-top: 0;
    color: #333;
}

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

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.username {
    font-weight: 600;
    color: #333;
}

.auth-actions button {
    background-color: #f1f3f4;
    color: #3c4043;
    border: 1px solid #dadce0;
}

.auth-actions button:hover {
    background-color: #e8eaed;
    color: #202124;
}

#authMessage {
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 8px;
    background-color: #fce8e6;
    color: #c5221f;
    border-left: 4px solid #c5221f;
    display: none;
}

/* 按钮样式链接 */
.button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background-color: #1a73e8;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    font-weight: 500;
}

.button:hover {
    background-color: #1765cc;
    color: white;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* API管理部分样式 */
.api-key-management {
    background-color: white;
    border-radius: 8px;
    padding: 24px;
    margin-top: 24px;
    border: 1px solid #eaeaea;
}

.api-key-management h3 {
    margin-top: 0;
    color: #333;
    font-weight: 600;
    margin-bottom: 16px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding: 16px;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }
    
    .auth-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .auth-header h1 {
        margin-bottom: 0;
        font-size: 22px;
    }
    
    .user-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .input-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .input-group input[type="text"] {
        width: 100%;
    }
    
    .input-group button {
        width: 100%;
    }
    
    table, thead, tbody, th, td, tr {
        display: block;
    }
    
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    tr {
        margin-bottom: 16px;
        border: 1px solid #eaeaea;
        border-radius: 8px;
        overflow: hidden;
    }
    
    td {
        border: none;
        border-bottom: 1px solid #eaeaea;
        position: relative;
        padding-left: 50%;
        display: flex;
        align-items: center;
    }
    
    td:before {
        position: absolute;
        left: 12px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
        color: #333;
    }
    
    #blacklistTable td:nth-of-type(1):before { content: "IP地址"; }
    #blacklistTable td:nth-of-type(2):before { content: "操作"; }
    
    .hint {
        padding: 16px;
    }
    
    .hint ul {
        padding-left: 20px;
    }
} 