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

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

.container {
    width: 100%;
    max-width: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.header {
    background: #fff;
    color: #333;
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.header h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #333;
}

.content {
    padding: 24px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.platform-options {
    display: flex;
    gap: 12px;
}

.platform-option {
    flex: 1;
    position: relative;
}

.platform-option input {
    display: none;
}

.platform-option label {
    display: block;
    padding: 14px 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 15px;
}

.platform-option input:checked + label {
    background: #f8f9fa;
    color: #333;
    border-color: #4a90e2;
    box-shadow: 0 0 0 1px #4a90e2;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.captcha-question {
    padding: 12px 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-weight: 600;
    color: #4a90e2;
    min-width: 100px;
    text-align: center;
    font-size: 15px;
}

.captcha-input {
    width: 100px;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
}

.captcha-input:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.quantity-label {
    margin-right: 12px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.quantity-control {
    display: flex;
    align-items: center;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    background: #fff;
    color: #4a90e2;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #f8f9fa;
    border-color: #4a90e2;
}

.quantity-btn:active {
    transform: translateY(1px);
}

.quantity-btn:disabled {
    background: #f5f5f5;
    color: #ccc;
    border-color: #eee;
    cursor: not-allowed;
}

.quantity-input {
    width: 60px;
    height: 36px;
    margin: 0 8px;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.quantity-input:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.password-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
}

.password-input:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.balance-display {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-top: 10px;
}

.balance-display label {
    font-weight: 600;
    color: #333;
    width: 50px;
    font-size: 15px;
}

.balance-display span {
    font-weight: 600;
    color: #4a90e2;
    flex-grow: 1;
    font-size: 15px;
}

.btn-generate {
    display: block;
    width: 100%;
    padding: 16px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

.btn-generate:hover {
    background: #3a7bc8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.2);
}

.btn-generate:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-generate:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-history {
    display: block;
    width: 100%;
    padding: 16px;
    background: #fff;
    color: #4a90e2;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-history:hover {
    background: #f8f9fa;
    border-color: #4a90e2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.1);
}

.btn-history:active {
    transform: translateY(0);
    box-shadow: none;
}

.logs-container {
    margin-top: 24px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.logs-header h3 {
    font-size: 15px;
    color: #333;
    font-weight: 600;
}

.btn-clear {
    padding: 6px 12px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-clear:hover {
    background: #ff5252;
}

.logs-content {
    height: 200px;
    overflow-y: auto;
    padding: 16px;
    background: #fff;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
}

.log-entry {
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 3px solid transparent;
}

.log-success {
    color: #28a745;
    border-left-color: #28a745;
}

.log-error {
    color: #dc3545;
    border-left-color: #dc3545;
}

.log-info {
    color: #4a90e2;
    border-left-color: #4a90e2;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 400px;
    overflow: hidden;
}

.modal-header {
    background: #fff;
    color: #333;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.modal-content {
    padding: 24px;
    text-align: center;
}

.account-info {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
    text-align: left;
}

.account-field {
    margin: 12px 0;
    display: flex;
}

.account-field label {
    font-weight: 600;
    min-width: 60px;
    color: #333;
    font-size: 15px;
}

.account-field span {
    color: #4a90e2;
    word-break: break-all;
    font-size: 15px;
}

.btn-close {
    display: block;
    width: 100%;
    padding: 14px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 16px;
}

.btn-close:hover {
    background: #3a7bc8;
}

.btn-copy {
    display: block;
    width: 100%;
    padding: 14px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 12px;
}

.btn-copy:hover {
    background: #218838;
}

.progress-bar {
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    margin-top: 16px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: #4a90e2;
    width: 0%;
    transition: width 0.3s;
}

.hidden {
    display: none;
}

.cooldown-info {
    margin-top: 16px;
    padding: 12px;
    background: #fff8e1;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: #ff8f00;
    font-size: 15px;
}

.cooldown-timer {
    font-size: 16px;
    color: #ff5722;
    margin-top: 6px;
    font-weight: 600;
}

.logs-content::-webkit-scrollbar {
    width: 6px;
}

.logs-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.logs-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.logs-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.btn-generate:active,
.btn-history:active,
.quantity-btn:active,
.btn-clear:active,
.btn-close:active,
.btn-copy:active {
    transform: translateY(1px);
}

.captcha-input:focus,
.password-input:focus,
.quantity-input:focus {
    transform: translateY(-1px);
}