/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 页头样式 */
header {
    background-color: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2c3e50;
}

.logo-icon {
    font-size: 24px;
    margin-right: 10px;
    color: #165DFF;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

/* 导航样式 */
nav {
    background-color: #165DFF;
    height: 60px; /* 增加导航栏高度 */
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-inner {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-end; /* 导航按钮靠右 */
    width: 100%;
}

.nav-item {
    margin-left: 10px;
    margin-right: 10px;
}

.nav-item a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: inline-block;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-weight: 500;
}

.nav-item a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-item.active a {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

/* 主内容区样式 */
main {
    padding: 30px 0;
}

.page-title {
    font-size: 24px;
    margin-bottom: 30px;
    color: #2c3e50;
    font-weight: 600;
}

/* 工具优势卡片样式 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
    margin-top: 30px;
}

.feature-card {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-top: 3px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-top-color: #165DFF;
}

.feature-icon {
    font-size: 32px;
    color: #165DFF;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: 600;
}

.feature-desc {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
}

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
}

.card-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

/* 表单样式 */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    border-color: #165DFF;
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-hint {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: #165DFF;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.btn:hover {
    background-color: #0e42c3;
}

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

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

.btn-outline {
    background-color: transparent;
    color: #165DFF;
    border: 1px solid #165DFF;
}

.btn-outline:hover {
    background-color: rgba(22, 93, 255, 0.05);
}

/* 结果区域样式 */
.results-section {
    margin-top: 30px;
    display: none;
}

.results-section.visible {
    display: block;
}

.result-card {
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

.result-card-header {
    background-color: #f8f9fa;
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
}

.result-card-title {
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.result-card-title i {
    margin-right: 8px;
    color: #165DFF;
}

.result-card-body {
    padding: 20px;
}

/* 表格样式 */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.comparison-table th,
.comparison-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.comparison-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.comparison-table tr:hover {
    background-color: #f8f9fa;
}

.metric-label {
    font-weight: 500;
}

/* 提示样式 */
.optimization-tips {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}

.tips-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.tips-title i {
    margin-right: 8px;
    color: #165DFF;
}

.tips-list {
    padding-left: 20px;
}

.tips-list li {
    margin-bottom: 8px;
    color: #343a40;
}

.tips-list li:last-child {
    margin-bottom: 0;
}

/* 关键词标签样式 */
.keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.keyword-tag {
    background-color: rgba(22, 93, 255, 0.1);
    color: #165DFF;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
}

/* 徽章样式 */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.badge-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.badge-error {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* 警告提示样式 */
.alert {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.alert-error {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.alert i {
    margin-right: 8px;
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #f8f9fa;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #ced4da;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: #adb5bd;
}

/* 工具切换器样式已移除，因为需求中要直接展示三个卡片和核心区域 */
