/* 超强SEO配置页面样式 */

/* 主容器样式 */
.seo-advanced-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Microsoft YaHei', sans-serif;
}

.seo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
}

.seo-header h1 {
    color: #333;
    font-size: 28px;
    margin: 0;
    display: flex;
    align-items: center;
}

.seo-header h1 i {
    color: #007bff;
    margin-right: 10px;
    font-size: 24px;
}

.seo-header .stats {
    display: flex;
    gap: 20px;
}

.stat-box {
    background: linear-gradient(135deg, #1e62c7 0%, #29b6f6 100%);
    border-radius: 8px;
    color: white;
    padding: 12px 20px;
    text-align: center;
    min-width: 150px;
    box-shadow: 0 3px 10px rgba(0, 123, 255, 0.2);
}

.stat-box .counter {
    font-size: 24px;
    font-weight: bold;
    margin: 5px 0;
}

.stat-box .label {
    font-size: 12px;
    opacity: 0.9;
}

/* 工具卡片样式 */
.seo-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.seo-tool-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 20px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    overflow: hidden;
}

.seo-tool-card.show {
    opacity: 1;
    transform: translateY(0);
}

.seo-tool-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 15px;
}

.tool-icon {
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-right: 15px;
}

.tool-icon.green {
    background: linear-gradient(135deg, #4caf50 0%, #009688 100%);
}

.tool-icon.purple {
    background: linear-gradient(135deg, #9c27b0 0%, #673ab7 100%);
}

.tool-icon.blue {
    background: linear-gradient(135deg, #2196f3 0%, #3f51b5 100%);
}

.tool-title {
    flex-grow: 1;
}

.tool-title h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.tool-title p {
    margin: 5px 0 0;
    font-size: 12px;
    color: #666;
}

.tool-content {
    margin-bottom: 15px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #555;
}

.input-group input, .input-group select, .input-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

.input-row {
    display: flex;
    gap: 10px;
}

.input-row .input-group {
    flex: 1;
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.action-button {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.primary-button {
    background-color: #007bff;
    color: white;
}

.primary-button:hover {
    background-color: #0069d9;
}

.secondary-button {
    background-color: #6c757d;
    color: white;
}

.secondary-button:hover {
    background-color: #5a6268;
}

.success-button {
    background-color: #28a745;
    color: white;
}

.success-button:hover {
    background-color: #218838;
}

.danger-button {
    background-color: #dc3545;
    color: white;
}

.danger-button:hover {
    background-color: #c82333;
}

.action-button i {
    margin-right: 5px;
}

.action-button.loading {
    opacity: 0.7;
    pointer-events: none;
}

.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 结果展示区域 */
.result-section {
    margin-top: 15px;
    border-top: 1px dashed #eee;
    padding-top: 15px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.result-title {
    font-size: 16px;
    color: #333;
    font-weight: bold;
}

.result-actions {
    display: flex;
    gap: 10px;
}

.result-actions button {
    background: none;
    border: none;
    font-size: 14px;
    color: #007bff;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.result-actions button i {
    margin-right: 5px;
}

.result-content {
    background-color: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 15px;
    font-size: 14px;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    color: #333;
}

.result-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #007bff;
    display: block;
}

.stat-label {
    font-size: 12px;
    color: #6c757d;
}

.result-message {
    font-size: 14px;
    color: #333;
    margin-top: 10px;
}

.result-message p {
    margin: 5px 0;
}

/* 图表区域 */
.charts-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.chart-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 20px;
}

.chart-header {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chart-title {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.chart-filters {
    display: flex;
    gap: 10px;
}

.chart-filters select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
}

.chart-body {
    height: 300px;
    position: relative;
}

/* 通知系统 */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 350px;
}

.notification {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    position: relative;
}

.notification-show {
    transform: translateX(0);
}

.notification-hiding {
    transform: translateX(120%);
}

.notification-icon {
    margin-right: 15px;
    font-size: 20px;
}

.notification-success .notification-icon {
    color: #28a745;
}

.notification-error .notification-icon {
    color: #dc3545;
}

.notification-info .notification-icon {
    color: #17a2b8;
}

.notification-message {
    flex-grow: 1;
    font-size: 14px;
    color: #333;
}

.notification-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    margin-left: 10px;
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .seo-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .charts-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .seo-tools-grid {
        grid-template-columns: 1fr;
    }
    
    .seo-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .seo-header .stats {
        width: 100%;
        margin-top: 20px;
        justify-content: space-between;
    }
    
    .stat-box {
        min-width: auto;
        flex: 1;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
} 