/* TDK工具专用样式 */

.stats {
    display: flex;
    justify-content: center;
    gap: 10px;/*30px*/
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #fff;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 16px;
}

.main-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

.main-title .highlight {
    color: #1976d2;
}

.description {
    text-align: center;
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 40px;
}

.input-section {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.mode-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.mode-btn {
    padding: 8px 20px;
    border: 2px solid #1976d2;
    background: #fff;
    color: #1976d2;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.mode-btn:hover {
    background: #e3f2fd;
}

.mode-btn.active {
    background: #1976d2;
    color: #fff;
}

.input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.api-select,
.style-select {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    min-width: 140px;
}

.api-select {
    min-width: 120px;
    font-weight: 500;
    color: #1976d2;
}

.api-select:focus,
.style-select:focus {
    outline: none;
    border-color: #1976d2;
}

.url-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.url-input:focus {
    outline: none;
    border-color: #1976d2;
}

.submit-btn {
    padding: 12px 32px;
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #1565c0;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.result-section {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.result-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: #1976d2;
}

.tab-btn.active {
    color: #1976d2;
    border-bottom-color: #1976d2;
    font-weight: 500;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tdk-item {
    margin-bottom: 24px;
}

.tdk-item label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.tdk-value {
    padding: 12px 16px;
    background: #f5f5f5;
    border-radius: 8px;
    min-height: 44px;
    line-height: 1.6;
    color: #333;
    word-wrap: break-word;
}

.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1976d2;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 16px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #c62828;
}

.warning-message {
    background: #fff3e0;
    color: #e65100;
    border-left-color: #ff9800;
}

@media (max-width: 768px) {
    .main-title {
        font-size: 24px;
    }

    .input-group {
        flex-direction: column;
    }

    .api-select,
    .style-select,
    .url-input,
    .submit-btn {
        width: 100%;
    }

    .stats {
        /*flex-direction: column;*/
        align-items: center;
    }
}

