/* AISEO主样式表 */

:root {
    --navbar-height: 56px;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    margin: 0;
    padding-top: var(--navbar-height);
}

/* 确保在移动端和非标准比例下body有足够的空间 */
@media (max-width: 768px) {
    body {
        padding-top: var(--navbar-height);
    }
}

/* 导航栏样式 */
.navbar {
    z-index: 1030;
    /* 确保导航栏在最上层 */
    background-color: #009e9f;
    /* 添加背景色 */
}

/* 英雄区域样式 */
.hero-section {
    padding-top: calc(var(--navbar-height) + 2rem);
    /* 导航栏高度+额外间距 */
    position: relative;
    z-index: 1020;
    margin-bottom: 2rem;
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    align-items: center;
}

/* 调整 Get Started 按钮的样式 */
.hero-section .cta-button {
    padding: 10px 20px;
    /* 调整按钮的内边距 */
    font-size: 16px;
    /* 调整按钮的字体大小 */
    max-width: 200px;
    /* 设置按钮的最大宽度 */
}

/* SVG 图标样式 */
.hero-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.feature-icon {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

/* SVG 动画效果 */
.hero-icon svg {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.hero-icon:hover svg {
    transform: scale(1.05);
}

/* 功能卡片悬停效果 */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 12px;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* 装饰性SVG样式 */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.decoration-svg {
    position: absolute;
    animation: float-decoration 6s ease-in-out infinite;
}

.decoration-1 {
    top: 5%;
    left: 2%;
    width: 300px;
    height: 300px;
    animation-delay: 0s;
}

.decoration-2 {
    top: 55%;
    right: 2%;
    width: 250px;
    height: 250px;
    animation-delay: 3s;
}

@keyframes float-decoration {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.3;
    }
    50% { 
        transform: translateY(-20px) rotate(5deg); 
        opacity: 0.6;
    }
}

/* 响应式装饰元素 */
@media (max-width: 768px) {
    .decoration-1 {
        width: 120px;
        height: 120px;
        top: 5%;
        left: 2%;
    }
    
    .decoration-2 {
        width: 100px;
        height: 100px;
        top: 70%;
        right: 2%;
    }
}

/* 在大屏幕设备上进一步调整按钮样式 */
@media (min-width: 768px) {
    .hero-section .cta-button {
        padding: 15px 30px;
        /* 调整按钮的内边距 */
        font-size: 18px;
        /* 调整按钮的字体大小 */
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: calc(var(--navbar-height) + 1.5rem);
        min-height: calc(100vh - var(--navbar-height));
    }
}

/* 针对更小屏幕和非标准比例的设备 */
@media (max-width: 576px) {
    .hero-section {
        padding-top: calc(var(--navbar-height) + 2rem);
        min-height: calc(100vh - var(--navbar-height));
    }
}

/* 针对超宽屏设备 */
@media (min-width: 1200px) {
    .hero-section {
        padding-top: calc(var(--navbar-height) + 3rem);
        min-height: calc(100vh - var(--navbar-height));
    }
}

/* 导航语言选择器样式 */
.navbar-nav .dropdown-toggle {
    color: rgba(255, 255, 255, 0.75);
    padding: 0.5rem 1rem;
}

.navbar-nav .dropdown-toggle:hover,
.navbar-nav .dropdown-toggle:focus {
    color: white;
}

.navbar-nav .dropdown-menu {
    background-color: #009e9f;
    border: none;
}

.navbar-nav .dropdown-item {
    color: rgba(255, 255, 255, 0.75);
    padding: 0.5rem 1.5rem;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

/* 移动端样式 */
@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        background-color: transparent;
        border: none;
        box-shadow: none;
    }

    .navbar-nav .dropdown-item {
        padding-left: 2rem;
    }
}

@media (max-width: 768px) {
    .language-selector {
        margin: 0.5rem 0;
        width: 100%;
        position: static;
    }

    .language-selector select {
        width: 100%;
    }

    .navbar-collapse {
        position: relative;
        z-index: 1040;
    }
}

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

.header {
    background-color: #009e9f;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    margin: 0;
    font-size: 2.5rem;
}

.header p {
    margin: 10px 0 0;
    font-size: 1.2rem;
    opacity: 0.8;
}

.main-content {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.feature-box {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 5px;
    background-color: #f8f9fa;
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-box h3 {
    color: #009e9f;
    margin-top: 0;
}

.btn-primary {
    background-color: #009e9f;
    border-color: #009e9f;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 4px;
    text-decoration: none;
    color: white;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #007d7e;
    border-color: #007d7e;
}

.footer {
    background-color: #009e9f;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
}

.footer p {
    margin: 0;
}

.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
}

.language-selector select {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* 搜索表单区域样式 */
.search-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.search-form .form-control {
    flex: 1;
}

.search-form .btn {
    width: 100%;
}

@media (min-width: 768px) {
    .search-form {
        flex-direction: row;
        align-items: center;
    }

    .search-form .btn {
        width: auto;
        min-width: 120px;
        white-space: nowrap;
    }
}

/* Pricing 页面样式 */
.price {
    font-weight: 700;
    margin: 1rem 0;
}

.text-gradient {
    background: linear-gradient(135deg, #009e9f, #00d2ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.card {
    transition: all 0.3s ease;
    border-radius: 12px;
}

.card.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.features li {
    display: flex;
    align-items: center;
    text-align: left;
}

.btn-gradient-primary {
    background: linear-gradient(135deg, #009e9f, #00d2ff);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-gradient-primary:hover {
    background: linear-gradient(135deg, #009e9f, #00c2ef);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 推荐标记样式 */
.ribbon {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #009e9f, #00d2ff);
    color: white;
    padding: 5px 20px;
    font-size: 14px;
    font-weight: bold;
    transform: translate(15%, -50%) rotate(15deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 3px;
}

/* 价格卡片列表样式 */
.card ul.list-unstyled {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.card ul.list-unstyled li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 15px;
    color: #4a5568;
    transition: all 0.3s ease;
}

.card ul.list-unstyled li:hover {
    transform: translateX(5px);
    color: #2d3748;
}

.card ul.list-unstyled li:before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #009e9f;
    position: absolute;
    left: 0;
    top: 3px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.card ul.list-unstyled li:hover:before {
    color: #009e9f;
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .header p {
        font-size: 1rem;
    }

    .feature-box {
        padding: 15px;
    }

    .card {
        margin-bottom: 1.5rem;
    }
}

/* Features 卡片专用样式 */
.features-card {
    border: none;
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    height: 500px; /* 固定高度 */
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-areas: 
        "icon"
        "content"
        "button";
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.features-card .icon-lg {
    grid-area: icon;
    width: 80px;
    height: 80px;
    margin: 2rem auto 1.5rem;
    background: linear-gradient(135deg, #009e9f, #00d2ff);
    color: white;
    font-size: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.features-card .card-body {
    grid-area: content;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
}

.features-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
}

.features-card p {
    display: -webkit-box;
    -webkit-line-clamp: 5; /* 限制5行文本 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #4a5568;
    min-height: 8em; /* 保持最小高度 */
}

.features-card .btn-container {
    grid-area: button;
    padding: 0 2rem 2rem;
}

.features-card .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #009e9f, #00d2ff);
    color: white;
    border: none;
    transition: all 0.3s ease;
    width: 80%;
    margin: 0 auto;
    display: block;
}

.features-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.features-card:hover .icon-lg {
    transform: scale(1.1) rotate(10deg);
}

.features-card:hover .btn {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 158, 159, 0.3);
}

/* 统一卡片高度 */
.card-height-80 {
    height: 80vh;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.card-height-80 .card-body {
    flex: 1;
    overflow-y: auto;
}

/* AI Agent页面样式 */
.aiagent-container {
    min-height: calc(100vh - var(--navbar-height) - 2rem) !important;
    display: flex;
    flex-direction: column;
}

.aiagent-container .row.g-3 {
    justify-content: center !important;
    min-height: 100%;
    flex: 1;
}

.aiagent-container .card {
    height: 100% !important;
    min-height: 0 !important;
    display: flex;
    flex-direction: column;
}

.aiagent-container .card-body {
    flex: 1;
    overflow-y: auto;
}

.aiagent-container .aiagent-card.card-header {
    background-color: #009e9f !important;
    border-bottom: 1px solid #343a40 !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .features-card {
        height: 450px;
    }
    
    .features-card .icon-lg {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .features-card p {
        -webkit-line-clamp: 4;
    }
}

/* 首页功能卡片样式 */
.card.feature-card {
    height: 380px;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card.feature-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.card.feature-card i {
    margin-bottom: 1.5rem;
}

.card.feature-card h3 {
    margin-bottom: 1.5rem;
}

.card.feature-card p {
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .card.feature-card {
        height: 350px;
    }
    
    .card.feature-card p {
        -webkit-line-clamp: 3;
    }
}

/* Result页面样式 */
.result-container {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.score-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.score-value {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #ffc107;
}

.score-label {
    font-size: 1rem;
    color: #6c757d;
}

.website-info {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.seo-item-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.seo-item {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seo-item:hover {
    background-color: #f8f9fa;
}

.seo-item.active {
    background-color: #e9ecef;
    font-weight: bold;
}

.seo-item-score {
    display: inline-block;
    width: 2.5rem;
    height: 2.5rem;
    line-height: 2.5rem;
    text-align: center;
    border-radius: 50%;
    font-weight: bold;
    color: #fff;
}

.score-high {
    background-color: #28a745;
}

.score-medium {
    background-color: #ffc107;
}

.score-low {
    background-color: #dc3545;
}

.result-detail-card {
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.result-detail-header {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.result-detail-body {
    padding: 1.5rem;
    min-height: 400px;
}

.region-score-card {
    text-align: center;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.region-score-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.region-name {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.region-score {
    font-size: 2rem;
    font-weight: bold;
    color: #ffc107;
}

.optimization-item {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 5px;
    background-color: #f8f9fa;
}

.optimization-item h5 {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.optimization-item h5 i {
    margin-right: 0.5rem;
}

.status-good {
    color: #28a745;
}

.status-warning {
    color: #ffc107;
}

.status-bad {
    color: #dc3545;
}

@media (max-width: 768px) {
    .score-value {
        font-size: 2.5rem;
    }
    
    .region-score {
        font-size: 1.5rem;
    }
}
