* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 960px;
    padding: 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    .card {
        padding: 20px;
    }
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

h1 {
    font-size: 24px;
    margin-bottom: 8px;
    color: #333;
    text-align: center;
}

h3 {
    font-size: 16px;
    margin: 20px 0 12px;
    color: #555;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.subtitle {
    text-align: center;
    color: #999;
    margin-bottom: 24px;
    font-size: 14px;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

input, select, textarea {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
    border-color: #ff6b35;
}

button {
    padding: 12px 24px;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

button:hover {
    background: #e55a2b;
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-primary {
    background: #52c41a;
    font-size: 16px;
    padding: 14px 32px;
    width: 100%;
}

.btn-primary:hover {
    background: #45a014;
}

#message {
    margin-top: 12px;
    min-height: 24px;
}

.success { color: #52c41a; }
.error { color: #ff4d4f; }
.warning { color: #faad14; }
.running { color: #1890ff; }
.loading { color: #999; }

.tips {
    margin-top: 24px;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
}

.login-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.tab-btn {
    flex: 1;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.tab-btn.active {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
}

.tab-content {
    display: none;
}

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

#qrContainer {
    text-align: center;
    padding: 20px;
}

#qrImage {
    max-width: 200px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.status-box {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.status-box p {
    margin: 4px 0;
    font-size: 14px;
}

#loginInfo p {
    margin: 6px 0;
    font-size: 14px;
    color: #666;
}

#loginInfo span {
    color: #333;
    font-weight: 500;
}

.admin-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.table-wrap {
    overflow-x: auto;
    margin-top: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: fixed;
}

th, td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

th {
    background: #f9f9f9;
    font-weight: 600;
    color: #666;
    position: sticky;
    top: 0;
}

tr:hover td {
    background: #fafafa;
}

#genResult {
    margin-top: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    font-size: 13px;
}

#genResult p {
    font-family: monospace;
    margin: 4px 0;
    color: #333;
}

#taskResult {
    margin-top: 12px;
    min-height: 24px;
}

select {
    width: 100%;
    margin-bottom: 16px;
}

label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #555;
}

input[type="checkbox"] {
    width: auto;
}
