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

body {
    background-color: #f8fafc;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #334155;
}

.container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    position: relative;
}

.header {
    background: #f1f5f9;
    color: #1e293b;
    padding: 28px 20px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.header h1 {
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #0f172a;
}

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

.content {
    padding: 28px;
}

.message {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
}

.success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #dcfce7;
}

.error {
    background-color: #fff1f2;
    color: #be123c;
    border: 1px solid #ffe4e6;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 25px;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    cursor: pointer;
    font-weight: 500;
    color: #64748b;
    transition: all 0.2s ease;
    position: relative;
    font-size: 15px;
}

.tab:hover {
    color: #475569;
}

.tab.active {
    color: #2563eb;
    font-weight: 600;
}

.tab.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #2563eb;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #475569;
    font-size: 14px;
}

select, input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    background-color: white;
}

select:focus, input:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.code-group {
    display: flex;
    gap: 10px;
}

.code-group input {
    flex: 1;
}

.code-group button {
    flex-shrink: 0;
    width: 120px;
    font-size: 14px;
    padding: 12px 10px;
}

button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    display: block;
}

button:hover {
    background: #1d4ed8;
}

.user-info {
    text-align: center;
    padding: 28px;
}

.user-info h2 {
    color: #2563eb;
    margin-bottom: 20px;
    font-size: 22px;
}

.user-detail {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    text-align: left;
    border: 1px solid #e2e8f0;
}

.user-detail p {
    margin: 10px 0;
    font-size: 15px;
    color: #475569;
}

.user-detail strong {
    color: #1e293b;
    min-width: 80px;
    display: inline-block;
}

.logout-btn {
    margin-top: 20px;
    background: #ef4444;
}

.logout-btn:hover {
    background: #dc2626;
}

.login-time {
    color: #64748b;
    font-size: 13px;
    margin-top: 5px;
}

.footer {
    text-align: center;
    padding: 20px;
    color: #94a3b8;
    font-size: 13px;
    border-top: 1px solid #e2e8f0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.qq-info {
    background: #f8fafc;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.qq-info-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.qq-avatar {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.qq-basic-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qq-nickname {
    font-weight: 600;
    color: #1e293b;
    font-size: 18px;
}

.qq-number {
    color: #64748b;
    font-size: 14px;
}

.qq-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.qq-detail-item {
    display: flex;
    flex-direction: column;
}

.qq-detail-label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

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

.weather-info {
    background: #f8fafc;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #e2e8f0;
}

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

.weather-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 16px;
}

.weather-location {
    color: #64748b;
    font-size: 14px;
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.weather-item {
    display: flex;
    flex-direction: column;
}

.weather-label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

.weather-value {
    font-size: 14px;
    color: #1e293b;
    font-weight: 500;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.action-buttons a {
    flex: 1;
    text-align: center;
    padding: 12px 20px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.action-buttons a:hover {
    background: #1d4ed8;
}

.login-type-group {
    margin-bottom: 15px;
}