* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;
}
.task-list td[title], .selectable-text, .form-input {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}
input, textarea, select {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}
img {
    -webkit-user-drag: none !important;
    -moz-user-drag: none !important;
    user-drag: none !important;
    pointer-events: none !important;
}
script, link[rel="stylesheet"] {
    display: none !important;
}
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    height: 100vh;
    overflow: hidden;
}
.title-bar {
    background: linear-gradient(to bottom, #4a90e2, #357abd);
    color: white;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    border-bottom: 1px solid #2c5aa0;
}
.title-left {
    display: flex;
    align-items: center;
}
.logo {
    width: 24px;
    height: 16px;
    background: #ffd700;
    border-radius: 2px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #333;
    font-size: 9px;
}
.window-controls {
    display: flex;
    gap: 2px;
}
.control-btn {
    width: 16px;
    height: 16px;
    background: #5a9fd4;
    border: 1px solid #4a8bc2;
    color: white;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.control-btn:hover {
    background: #6bb6ff;
}
.toolbar {
    background: linear-gradient(to bottom, #f0f0f0, #d9d9d9);
    border-bottom: 1px solid #bbb;
    padding: 8px 15px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.main-container {
    display: flex;
    height: calc(100vh - 120px);
    background: #f8f9fa;
}
.left-panel {
    width: 70%;
    border-right: 2px solid #ddd;
    background: white;
    display: flex;
    flex-direction: column;
}
.right-panel {
    width: 30%;
    background: white;
    display: flex;
    flex-direction: column;
}
.panel-header {
    background: linear-gradient(to bottom, #e8e8e8, #d0d0d0);
    border-bottom: 1px solid #bbb;
    padding: 8px 15px;
    font-weight: bold;
    font-size: 12px;
    color: #333;
}
.controls-section {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}
.control-group {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.control-group:last-child {
    margin-bottom: 0;
}
.btn {
    padding: 6px 12px;
    border: 1px solid #ccc;
    background: linear-gradient(to bottom, #f8f8f8, #e8e8e8);
    color: #333;
    font-size: 12px;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn:hover {
    background: linear-gradient(to bottom, #e8e8e8, #d8d8d8);
    border-color: #999;
}
.btn:active {
    background: linear-gradient(to bottom, #d8d8d8, #c8c8c8);
}
.btn:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    border-color: #ddd;
}
.btn-primary {
    background: linear-gradient(to bottom, #4a90e2, #357abd);
    color: white;
    border-color: #2c5aa0;
}
.btn-primary:hover {
    background: linear-gradient(to bottom, #5ba0f2, #4a8acd);
}
.btn-rank {
    background: linear-gradient(to bottom, #1890ff, #096dd9);
    color: white;
    border-color: #0050b3;
    font-weight: bold;
}
.btn-rank:hover {
    background: linear-gradient(to bottom, #40a9ff, #1890ff);
    border-color: #003a8c;
}
.btn-rank:active {
    background: linear-gradient(to bottom, #096dd9, #0050b3);
}
.btn-success {
    background: linear-gradient(to bottom, #28a745, #218838);
    color: white;
    border-color: #1e7e34;
    font-weight: bold;
}
.btn-success:hover {
    background: linear-gradient(to bottom, #34ce57, #28a745);
    border-color: #155724;
    cursor: pointer;
}
.btn-success:active {
    background: linear-gradient(to bottom, #218838, #1e7e34);
}
.btn-danger {
    background: linear-gradient(to bottom, #e74c3c, #c0392b);
    color: white;
    border-color: #a93226;
}
.btn-danger:hover {
    background: linear-gradient(to bottom, #f75c4c, #d0493b);
}
.select-box {
    padding: 4px 8px;
    border: 1px solid #ccc;
    font-size: 12px;
    background: white;
    border-radius: 2px;
}
.input-box {
    padding: 4px 8px;
    border: 1px solid #ccc;
    font-size: 12px;
    border-radius: 2px;
}
.task-list {
    flex: 1;
    overflow: auto;
    border: 1px solid #ddd;
    margin: 0 15px 15px 15px;
}
.task-list table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 12px;
    min-width: 1200px;
}
.task-list .col-checkbox {
    width: 35px;
}
.task-list .col-id {
    width: 100px;
}
.task-list .col-keyword {
    width: 120px;
}
.task-list .col-domain {
    width: 130px;
}
.task-list .col-url {
    width: 170px;
}
.task-list .col-page {
    width: 70px;
}
.task-list .col-snapshot {
    width: 90px;
}
.task-list .col-success {
    width: 70px;
}
.task-list .col-max-success {
    width: 100px;
}
.task-list .col-actions {
    width: 115px;
}
.task-list th {
    background: linear-gradient(to bottom, #f0f0f0, #e0e0e0);
    border: 1px solid #ccc;
    padding: 6px 8px;
    text-align: left;
    font-weight: bold;
    position: sticky;
    top: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.task-list td {
    border: 1px solid #ddd;
    padding: 4px 8px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.task-list tr:nth-child(even) {
    background: #f9f9f9;
}
.task-list tr:hover {
    background: #e6f3ff;
}
.checkbox {
    width: 14px;
    height: 14px;
}
.sortable:hover {
    background: linear-gradient(to bottom, #e0e0e0, #d0d0d0) !important;
}
.sort-icon {
    font-size: 10px;
    color: #999;
    margin-left: 3px;
}
.sort-icon.asc {
    color: #4a90e2;
}
.sort-icon.desc {
    color: #4a90e2;
}
.snapshot-btn {
    background: linear-gradient(to bottom, #17a2b8, #138496);
    color: white;
    border: 1px solid #117a8b;
    border-radius: 2px;
    padding: 2px 8px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.snapshot-btn:hover {
    background: linear-gradient(to bottom, #1fc8d8, #17a2b8);
    border-color: #0e7a85;
}
.snapshot-btn:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    border-color: #ddd;
}
.snapshot-modal-content {
    max-width: 90vw;
    width: auto;
    max-height: 90vh;
    padding: 15px;
}
.snapshot-container {
    text-align: center;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    margin: 0;
}
.snapshot-image {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    user-select: text;
    pointer-events: auto;
    display: block;
}
.snapshot-loading {
    color: #666;
    font-size: 14px;
}
.snapshot-error {
    color: #e74c3c;
    text-align: center;
}
.snapshot-error-detail {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    font-family: monospace;
}
.rank-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.rank-modal-header {
    background: linear-gradient(to right, #1890ff, #096dd9);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #0050b3;
}
.rank-modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}
.rank-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}
.rank-close-btn:hover {
    background: rgba(255,255,255,0.2);
}
.rank-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}
.rank-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.rank-time-selector {
    display: flex;
    gap: 10px;
}
.rank-time-btn {
    padding: 8px 16px;
    border: 2px solid #1890ff;
    background: white;
    color: #1890ff;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.2s;
}
.rank-time-btn:hover {
    background: #e6f7ff;
}
.rank-time-btn.active {
    background: #1890ff;
    color: white;
}
.rank-chart-container {
    width: 100%;
    height: 400px;
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    background: #fafafa;
}
.rank-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.rank-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}
.rank-legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #ddd;
}
.rank-legend-text {
    font-weight: bold;
    color: #333;
}
.rank-stats {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}
.rank-stats h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
}
.rank-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
    max-width: 100%;
}
.rank-stats-item {
    text-align: center;
    padding: 6px 4px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    min-width: 0;
}
.rank-stats-value {
    font-size: 14px;
    font-weight: bold;
    color: #1890ff;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rank-stats-label {
    font-size: 10px;
    color: #666;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stats-section {
    padding: 8px 12px;
    flex: 1;
    min-height: 60px;
    display: flex;
    flex-direction: column;
}
.stats-section:first-of-type {
    flex: 0.15;
    min-height: 85px;
    padding: 8px 12px;
}
#deviceStatsSection {
    flex: 4.5;
    min-height: 400px;
    padding: 12px 15px;
}
.stats-box {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    background: #fafafa;
    flex: 1;
    overflow: visible;
    min-height: 60px;
    display: flex;
    flex-direction: column;
}
.stats-section:first-of-type .stats-box {
    padding: 6px 8px;
    min-height: 55px;
    font-size: 11px;
    line-height: 1.3;
    overflow: visible;
}
#deviceStatsSection .stats-box {
    padding: 12px 15px;
    min-height: 350px;
    font-size: 12px;
}
.stats-title {
    font-weight: bold;
    margin-bottom: 6px;
    color: #333;
    font-size: 12px;
    flex-shrink: 0;
}
.stats-section:first-of-type .stats-title {
    margin-bottom: 4px;
    font-size: 11px;
}
.stats-content {
    font-size: 11px;
    line-height: 1.3;
    color: #666;
    flex: 1;
    overflow: visible;
}
.stats-section:first-of-type .stats-content {
    font-size: 11px;
    line-height: 1.25;
    overflow: visible;
    flex: 1;
}
.status-bar {
    background: linear-gradient(to bottom, #f0f0f0, #d9d9d9);
    border-top: 1px solid #bbb;
    padding: 4px 15px;
    font-size: 11px;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.loading {
    display: none;
    color: #4a90e2;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}
.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: 2px solid #999;
    border-radius: 4px;
    padding: 20px;
    min-width: 400px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
}
.task-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: 2px solid #999;
    border-radius: 8px;
    padding: 30px;
    min-width: 650px;
    max-width: 650px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.modal-header {
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    color: #333;
}
.modal-body {
    margin-bottom: 20px;
}
.modal-footer {
    text-align: right;
    padding-top: 12px;
    border-top: 1px solid #eee;
}
.form-group {
    margin-bottom: 16px;
}
.form-label {
    display: inline-block;
    width: 90px;
    font-size: 14px;
    color: #333;
    font-weight: bold;
    line-height: 1.6;
}
.form-input {
    width: 250px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    font-size: 14px;
    border-radius: 4px;
    line-height: 1.5;
    transition: border-color 0.2s;
}
.form-input:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 4px rgba(74, 144, 226, 0.3);
}
.separator {
    border-left: 1px solid #ccc;
    height: 20px;
    margin: 0 10px;
}
.progress-bar {
    width: 100%;
    height: 2px;
    background: #ddd;
    margin-bottom: 10px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: #4a90e2;
    width: 0%;
    transition: width 0.3s;
}
.task-tips {
    background: linear-gradient(135deg, #e8f4ff 0%, #f0f8ff 100%);
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.task-tips-header {
    background: linear-gradient(to right, #4a90e2, #357abd);
    color: white;
    padding: 15px 20px;
    font-weight: bold;
    font-size: 19px;
    border-bottom: 1px solid #2c5aa0;
}
.task-tips-content {
    padding: 20px;
}
.task-tip-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    line-height: 1.6;
}
.task-tip-item:last-child {
    margin-bottom: 0;
}
.tip-number {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    margin-right: 15px;
    margin-top: 2px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.tip-text {
    font-size: 17px;
    color: #333;
    flex: 1;
    line-height: 1.6;
}
.import-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    min-width: 650px;
    max-width: 650px;
    width: 95%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.import-container {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}
.import-container::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}
.import-container {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.import-header {
    text-align: center;
    margin-bottom: 30px;
}
.import-header h2 {
    color: #333;
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: bold;
}
.import-header p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}
.import-info {
    background: #e7f3ff;
    padding: 18px;
    border-left: 4px solid #1890ff;
    margin-bottom: 25px;
    border-radius: 0 6px 6px 0;
    line-height: 1.6;
    font-size: 17px;
}
.import-info strong {
    color: #096dd9;
    font-size: 19px;
}
.import-form-group {
    margin-bottom: 22px;
}
.import-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}
.import-file-input {
    width: 100%;
    padding: 12px;
    border: 2px dashed #ddd;
    border-radius: 6px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}
.import-file-input:hover {
    border-color: #1890ff;
    background: #f0f8ff;
}
.import-submit-btn {
    background: #1890ff;
    color: white;
    padding: 12px 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s;
}
.import-submit-btn:hover:not(:disabled) {
    background: #096dd9;
}
.import-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.import-example {
    background: #f9f9f9;
    padding: 18px;
    border-radius: 6px;
    margin-top: 20px;
}
.import-example strong {
    color: #333;
    margin-bottom: 12px;
    display: block;
    font-size: 15px;
}
.import-example table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 13px;
}
.import-example th,
.import-example td {
    border: 1px solid #ddd;
    padding: 10px 8px;
    text-align: left;
    line-height: 1.5;
}
.import-example th {
    background: #f2f2f2;
    font-weight: bold;
}
.import-example p {
    margin-top: 10px;
    line-height: 1.6;
}
.import-footer-buttons {
    text-align: right;
    margin-top: 25px;
}
.import-cancel-btn {
    background: #f8f8f8;
    color: #333;
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 12px;
    font-size: 14px;
}
.import-cancel-btn:hover {
    background: #e8e8e8;
}
.import-progress {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    margin: 18px 0;
    overflow: hidden;
    display: none;
}
.import-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1890ff, #4a90e2);
    width: 0%;
    transition: width 0.3s ease;
}
.import-footer-text {
    margin-top: 20px;
    text-align: center;
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}
.import-footer-text a {
    color: #1890ff;
    text-decoration: none;
}
.import-footer-text a:hover {
    text-decoration: underline;
}
.server-status {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}
.server-status.connected {
    background: #4caf50;
}
.server-status.disconnected {
    background: #f44336;
}
.server-status.connecting {
    background: #ff9800;
    animation: pulse 1s infinite;
}
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}
.save-key-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    margin-left: 8px;
    margin-right: 8px;
}
.save-key-checkbox {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    cursor: pointer;
}
.save-key-text {
    font-size: 12px;
    color: #333;
    white-space: nowrap;
}
.contact-info {
    font-size: 11px;
    color: #666;
    margin-left: 15px;
    white-space: nowrap;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 3px;
    border: 1px solid #e0e0e0;
}
.btn-help {
    background: linear-gradient(to bottom, #17a2b8, #138496);
    color: white;
    border-color: #117a8b;
    margin-left: 8px;
    font-size: 12px;
    padding: 6px 12px;
}
.btn-help:hover {
    background: linear-gradient(to bottom, #1fc8d8, #17a2b8);
    border-color: #0e7a85;
}
.device-list {
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: white;
    margin-bottom: 10px;
}
.device-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
    transition: background-color 0.2s;
}
.device-item:last-child {
    border-bottom: none;
}
.device-item:hover {
    background-color: #f8f9fa;
}
.device-info {
    flex: 1;
    line-height: 1.4;
}
.btn-delete-device {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.btn-delete-device:hover {
    background: #c82333;
    transform: scale(1.1);
}
.device-delete-btn {
    background: linear-gradient(to bottom, #e74c3c, #c0392b);
    color: white;
    border: 1px solid #a93226;
    border-radius: 2px;
    padding: 2px 8px;
    font-size: 11px;
    cursor: pointer;
    margin-left: 8px;
    transition: all 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
}
.device-delete-btn:hover {
    background: linear-gradient(to bottom, #f75c4c, #d0493b);
    border-color: #922b21;
}
.device-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid #e0e0e0;
    font-size: 11px;
    margin-top: auto;
}
.device-page-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}
.device-page-size {
    padding: 2px 4px;
    border: 1px solid #ccc;
    font-size: 11px;
    background: white;
    border-radius: 2px;
}
.device-page-controls {
    display: flex;
    gap: 4px;
}
.btn-mini {
    padding: 4px 8px;
    border: 1px solid #ccc;
    background: linear-gradient(to bottom, #f8f8f8, #e8e8e8);
    color: #333;
    font-size: 11px;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-mini:hover:not(:disabled) {
    background: linear-gradient(to bottom, #e8e8e8, #d8d8d8);
    border-color: #999;
}
.btn-mini:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    border-color: #ddd;
}
.device-count {
    font-weight: normal;
    font-size: 11px;
}
.btn-success {
    position: relative;
    overflow: hidden;
}
.btn-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}
.btn-success:hover::before {
    left: 100%;
}
.server-status.connecting {
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.5; 
        transform: scale(1.1);
    }
}
.quota-info {
    font-size: 14px;
    color: #333;
    font-weight: bold;
}
.quota-info > div {
    margin-bottom: 5px;
}
.quota-info > div:last-child {
    margin-bottom: 0;
}
.quota-engine {
    margin-bottom: 8px;
}
.quota-engine-name {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}
.quota-details {
    font-size: 13px;
}
.quota-usage {
    color: #666;
    margin-bottom: 2px;
}
.expire-healthy {
    color: #52c41a;
    font-weight: bold;
    font-size: 14px;
}
.expire-notice1 {
    color: #7cb342;
    font-weight: bold;
    font-size: 14px;
}
.expire-notice2 {
    color: #ffc107;
    font-weight: bold;
    font-size: 14px;
}
.expire-warning1 {
    color: #ff7043;
    font-weight: bold;
    font-size: 14px;
}
.expire-warning2 {
    color: #f44336;
    font-weight: bold;
    font-size: 14px;
}
.expire-expired {
    color: #d32f2f;
    font-weight: bold;
    font-size: 14px;
}
@media (max-width: 1200px) {
    .left-panel {
        width: 65%;
    }
    .right-panel {
        width: 35%;
    }
    .rank-modal-content {
        width: 95%;
        max-width: 900px;
    }
    .rank-legend {
        gap: 15px;
    }
    .rank-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }
    .rank-stats-item {
        padding: 5px 3px;
    }
    .rank-stats-value {
        font-size: 13px;
    }
    .rank-stats-label {
        font-size: 9px;
    }
}
@media (max-width: 900px) {
    .main-container {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 120px);
    }
    .left-panel,
    .right-panel {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #ddd;
    }
    .control-group {
        flex-direction: column;
        align-items: flex-start;
    }
    .modal-content {
        min-width: 300px;
        margin: 20px;
    }
    .import-modal-content {
        width: 95%;
        max-width: 500px;
    }
    .rank-modal-content {
        width: 95%;
        height: 90vh;
    }
    .rank-controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    .rank-time-selector {
        justify-content: center;
    }
    .rank-legend {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    .stats-section:first-of-type {
        flex: 0.12;
        min-height: 80px;
    }
    #deviceStatsSection {
        flex: 5.0;
        min-height: 450px;
    }
    .rank-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
}
@media (max-width: 768px) {
    .task-list table {
        font-size: 11px;
    }
    .task-list th,
    .task-list td {
        padding: 3px 5px;
    }
    .rank-chart-container {
        height: 300px;
        padding: 10px;
    }
    .rank-time-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    .rank-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .stats-section:first-of-type {
        flex: 0.1;
        min-height: 75px;
    }
    #deviceStatsSection {
        flex: 5.5;
        min-height: 500px;
    }
    .import-modal-content {
        width: 95%;
        min-width: 416px;
        max-width: 416px;
    }
    .task-modal-content {
        min-width: 416px;
        max-width: 416px;
        padding: 20px;
    }
    .import-container {
        padding: 20px;
    }
}