* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    max-width: 600px;
    width: 100%;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
}

.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

button {
    padding: 12px 30px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

#generateBtn, #refreshBtn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

#generateBtn:hover, #refreshBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.info-panel {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    font-weight: bold;
    color: #666;
}

.info-item span {
    color: #333;
    word-break: break-all;
    text-align: right;
    max-width: 60%;
}

.login-info {
    background: #e8f5e9;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    border: 2px solid #4caf50;
}

.login-info h3 {
    margin-bottom: 15px;
    color: #2e7d32;
    font-size: 18px;
}

.login-info .full-width {
    flex-direction: column;
    align-items: flex-start;
}

.cookie-textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    resize: vertical;
    margin-top: 5px;
    word-break: break-all;
}

.qr-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    background: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
}

#qrImageWrapper {
    position: relative;
    text-align: center;
}

#qrImage {
    max-width: 100%;
    height: auto;
    border: 5px solid white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#loading {
    font-size: 18px;
    color: #666;
}

#error {
    color: #e74c3c;
    font-size: 16px;
    padding: 20px;
}

#getGroupListBtn {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
}

#getGroupListBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

#getGroupListBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.group-list-container {
    background: #fff3e0;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    border: 2px solid #ff9800;
    max-height: 600px;
    overflow-y: auto;
}

.group-list-container h3 {
    margin-bottom: 15px;
    color: #e65100;
    font-size: 18px;
}

.group-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px;
    background: #fff;
    border-radius: 5px;
    font-size: 14px;
}

.group-stats div {
    padding: 5px 10px;
    background: #ff9800;
    color: white;
    border-radius: 5px;
    font-weight: bold;
}

.group-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.group-item {
    display: grid;
    grid-template-columns: 40px 100px 150px 1fr;
    gap: 10px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #ff9800;
    align-items: center;
    transition: all 0.3s;
}

.group-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.group-index {
    font-weight: bold;
    color: #666;
    text-align: center;
}

.group-type {
    font-size: 12px;
    color: #ff9800;
    font-weight: bold;
}

.group-qq {
    font-family: 'Courier New', monospace;
    color: #333;
    font-weight: bold;
}

.group-name {
    color: #333;
    word-break: break-word;
}

.loading, .no-groups, .error {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 16px;
}

.error {
    color: #e74c3c;
}

.remove-member-container {
    background: #fff3e0;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    border: 2px solid #ff9800;
}

.remove-member-container h3 {
    margin-bottom: 15px;
    color: #e65100;
    font-size: 18px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input[type="checkbox"] {
    margin-right: 5px;
}

.success {
    padding: 10px;
    background: #4caf50;
    color: white;
    border-radius: 5px;
    font-weight: bold;
}
