/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a90e2;
    --primary-dark: #357abd;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-color: #dee2e6;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px;
}

/* 头部样式 */
.header {
    text-align: center;
    padding: 20px 15px;
    color: white;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 5px;
}

.logo i {
    font-size: 1.8rem;
    color: #fff;
}

.logo h1 {
    font-size: 1.6rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
}

.admin-link {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.header {
    position: relative;
}

/* 主内容区 */
.main-content {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* 输入区域 */
.input-section {
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
}

/* 标签页 */
.input-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 24px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    background: var(--primary-color);
    color: white;
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
}

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

/* 表单样式 */
.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--primary-color);
}

.hint {
    font-weight: normal;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.95rem;
    resize: vertical;
    transition: var(--transition);
    font-family: inherit;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

select {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
    transition: var(--transition);
}

select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.input-stats {
    text-align: right;
    margin-top: 8px;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* 选项区域 */
.options-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

/* 按钮样式 */
.action-buttons {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-info {
    background: var(--info-color);
    color: white;
}

.btn-info:hover:not(:disabled) {
    background: #138496;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* 进度区域 */
.progress-section {
    padding: 15px 20px;
    background: white;
    border-bottom: 1px solid var(--border-color);
}

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

.progress-header h3 {
    color: var(--dark-color);
    font-size: 1rem;
}

#progress-text {
    font-weight: 600;
    color: var(--primary-color);
}

.progress-bar {
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #667eea);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.progress-status {
    color: var(--secondary-color);
    font-size: 0.95rem;
}

/* 结果区域 */
.results-section {
    padding: 15px 20px;
    background: white;
}

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

.results-header h3 {
    color: var(--dark-color);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-filters {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 5px 12px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.filter-btn:hover {
    background: #f8f9fa;
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 表格样式 */
.results-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.results-table th,
.results-table td {
    padding: 5px 8px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.results-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.75rem;
    white-space: nowrap;
}

.results-table tbody tr:hover {
    background: #f8f9fa;
}

.results-table tbody tr:last-child td {
    border-bottom: none;
}

/* 排名样式 */
.rank {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.8rem;
}

.rank-1 {
    background: #ffd700;
    color: #856404;
}

.rank-2 {
    background: #c0c0c0;
    color: #555;
}

.rank-3 {
    background: #cd7f32;
    color: white;
}

.rank-top10 {
    background: #d4edda;
    color: #155724;
}

.rank-top50 {
    background: #fff3cd;
    color: #856404;
}

.rank-none {
    background: #f8d7da;
    color: #721c24;
}

/* 状态样式 */
.status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 500;
}

.status-pending {
    background: #e2e3e5;
    color: #383d41;
}

.status-searching {
    background: #cce5ff;
    color: #004085;
}

.status-found {
    background: #d4edda;
    color: #155724;
}

.status-notfound {
    background: #f8d7da;
    color: #721c24;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
}

/* 空状态 */
.empty-row td {
    padding: 30px 20px;
    text-align: center;
}

.empty-state {
    color: var(--secondary-color);
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: 8px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.9rem;
}

/* 加载遮罩 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.loading-spinner i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.loading-spinner p {
    font-size: 1.1rem;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 15px;
    color: white;
    opacity: 0.9;
    font-size: 0.9rem;
}

/* 弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.modal-large {
    max-width: 750px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 1.2rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.cookie-hint {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.cookie-instructions {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--radius);
    padding: 15px;
    margin-bottom: 15px;
}

.cookie-instructions h4 {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    color: var(--primary-color);
}

.cookie-instructions h4 i {
    margin-right: 8px;
}

.cookie-instructions ol {
    margin: 0;
    padding-left: 20px;
    color: #555;
    font-size: 0.85rem;
    line-height: 1.8;
}

.cookie-instructions a {
    color: var(--primary-color);
    text-decoration: none;
}

.cookie-instructions a:hover {
    text-decoration: underline;
}

.cookie-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.cookie-tab {
    padding: 10px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.cookie-tab:hover {
    background: #e9ecef;
}

.cookie-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.cookie-tab i {
    margin-right: 8px;
}

.cookie-tab-content {
    display: none;
}

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

.cookie-method-steps {
    background: #f8f9fa;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #dee2e6;
}

.step:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.step-number {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.step-hint {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

.bookmarklet-container {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: var(--radius);
    margin: 15px 0;
}

.bookmarklet-btn {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #4a90d9, #357abd);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: move;
    box-shadow: 0 4px 15px rgba(74, 144, 217, 0.3);
    transition: all 0.3s ease;
}

.bookmarklet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 217, 0.4);
}

.bookmarklet-btn i {
    margin-right: 10px;
}

.cookie-check-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.cookie-check-list li {
    padding: 5px 0;
    font-size: 0.9rem;
}

.cookie-check-list .required {
    color: #dc3545;
    font-size: 0.8rem;
    margin-left: 5px;
}

.cookie-input-section {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 15px;
}

.auto-cookie-section {
    padding: 10px 0;
}

.auto-cookie-steps {
    margin-bottom: 25px;
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e9ecef;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    transition: var(--transition);
}

.step-num.active {
    background: var(--primary-color);
    color: white;
}

.step-num.completed {
    background: #28a745;
    color: white;
}

.step-line {
    width: 60px;
    height: 3px;
    background: #e9ecef;
    margin: 0 5px;
}

.step-titles {
    display: flex;
    justify-content: space-around;
    font-size: 0.85rem;
    color: #666;
}

.step-title.active {
    color: var(--primary-color);
    font-weight: bold;
}

.auto-step-content {
    display: none;
}

.auto-step-content.active {
    display: block;
}

.step-desc {
    text-align: center;
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.baidu-frame-container {
    width: 100%;
    height: 400px;
    border: 2px solid #e9ecef;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 15px;
}

#baidu-login-frame {
    width: 100%;
    height: 100%;
    border: none;
}

.step-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.login-actions {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.login-actions .btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.login-hint {
    margin-top: 15px;
    color: #666;
    font-size: 0.9rem;
}

.manual-guide {
    background: #f8f9fa;
    border-radius: var(--radius);
    padding: 15px;
    margin-bottom: 15px;
}

.guide-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #dee2e6;
}

.guide-item:last-child {
    border-bottom: none;
}

.guide-num {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
}

.guide-item kbd {
    background: #333;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

#auto-cookie-input {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-family: monospace;
    font-size: 0.9rem;
    resize: vertical;
}

.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-message i {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
}

.success-message h4 {
    color: #28a745;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.success-message p {
    color: #666;
}

.cookie-method-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.method-tab {
    flex: 1;
    padding: 10px 15px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.method-tab:hover {
    background: #e9ecef;
}

.method-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.method-tab i {
    margin-right: 8px;
}

.cookie-method-content {
    display: none;
}

.cookie-method-content.active {
    display: block;
}

.bookmark-guide {
    background: #f8f9fa;
    border-radius: var(--radius);
    padding: 15px;
}

.bookmarklet-box {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: var(--radius);
    margin: 15px 0;
    border: 2px dashed #4a90d9;
}

.bookmarklet-btn {
    display: inline-block;
    padding: 15px 25px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: move;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
}

.bookmarklet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.bookmarklet-btn i {
    margin-right: 8px;
}

.cookie-input-section label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.cookie-input-section label i {
    margin-right: 8px;
    color: var(--primary-color);
}

.cookie-validation {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.validation-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.validation-item .validation-icon {
    margin-right: 8px;
    font-weight: bold;
    font-size: 1rem;
}

.validation-item .validation-text {
    font-weight: 500;
}

.validation-item.valid {
    background: #d4edda;
    color: #155724;
}

.validation-item.invalid {
    background: #f8d7da;
    color: #721c24;
}

.validation-item.valid .validation-icon {
    color: #28a745;
}

.validation-item.invalid .validation-icon {
    color: #dc3545;
}

#cookie-input {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-family: monospace;
    font-size: 0.9rem;
    resize: vertical;
    transition: var(--transition);
}

#cookie-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.cookie-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.status-success {
    color: var(--success-color);
    background: #d4edda;
}

.status-error {
    color: var(--danger-color);
    background: #f8d7da;
}

.status-warning {
    color: #856404;
    background: #fff3cd;
}

.status-info {
    color: var(--info-color);
    background: #d1ecf1;
}

.modal-footer {
    display: flex;
    gap: 10px;
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
    background: #f8f9fa;
    flex-shrink: 0;
}

.modal-footer .btn {
    flex: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .header {
        padding: 25px 15px;
    }

    .logo h1 {
        font-size: 1.6rem;
    }

    .input-section {
        padding: 20px;
    }

    .input-tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
        justify-content: center;
    }

    .options-section {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .results-filters {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .results-table {
        font-size: 0.85rem;
    }

    .results-table th,
    .results-table td {
        padding: 10px 12px;
    }
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-table tbody tr {
    animation: fadeIn 0.3s ease;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

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

/* 验证码弹窗样式 */
.captcha-instructions {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: var(--radius);
}

.captcha-instructions h4 {
    color: var(--primary-color);
    margin: 0 0 10px 0;
    font-size: 1rem;
}

.captcha-instructions ol {
    margin: 0;
    padding-left: 20px;
}

.captcha-instructions li {
    margin-bottom: 8px;
    color: var(--text-color);
}

.captcha-browser-wrapper {
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 60vh;
    min-height: 400px;
}

#captcha-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

/* 调试弹窗样式 */
.modal-large {
    max-width: 1000px;
    width: 95%;
}

.debug-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.debug-log-container {
    max-height: 60vh;
    overflow-y: auto;
    background: #1e1e1e;
    border-radius: var(--radius);
    padding: 15px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
}

.debug-log-entry {
    display: flex;
    align-items: flex-start;
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 4px;
    border-left: 3px solid transparent;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.debug-log-entry.info {
    background: rgba(23, 162, 234, 0.1);
    border-left-color: var(--info-color);
    color: #17a2b8;
}

.debug-log-entry.success {
    background: rgba(40, 167, 69, 0.1);
    border-left-color: var(--success-color);
    color: #28a745;
}

.debug-log-entry.warning {
    background: rgba(255, 193, 7, 0.1);
    border-left-color: var(--warning-color);
    color: #ffc107;
}

.debug-log-entry.error {
    background: rgba(220, 53, 69, 0.1);
    border-left-color: var(--danger-color);
    color: #dc3545;
}

.debug-log-entry.request {
    background: rgba(75, 123, 236, 0.1);
    border-left-color: #4a90e2;
    color: #667eea;
}

.debug-log-entry.response {
    background: rgba(118, 75, 162, 0.1);
    border-left-color: #764ba2;
    color: #764ba2;
}

.debug-time {
    color: #999;
    margin-right: 15px;
    white-space: nowrap;
    font-size: 0.75rem;
    padding-top: 2px;
}

.debug-message {
    flex: 1;
    word-break: break-word;
}

.debug-message strong {
    font-weight: 600;
}

.debug-message code {
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', monospace;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.cookie-simple-guide {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: var(--radius);
}

.cookie-simple-guide .guide-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.cookie-simple-guide .guide-title i {
    margin-right: 8px;
}

.cookie-simple-guide .guide-steps {
    margin: 0;
    padding-left: 20px;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.8;
}

.cookie-simple-guide .guide-steps li {
    margin-bottom: 5px;
}

.cookie-simple-guide .guide-steps a {
    color: var(--primary-color);
    text-decoration: none;
}

.cookie-simple-guide .guide-steps a:hover {
    text-decoration: underline;
}

.cookie-simple-guide .guide-steps kbd {
    background: #333;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}
