/* 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);
}

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

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

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

/* 在大屏幕设备上进一步调整按钮样式 */
@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) + 1rem);
    }
}

/* 导航语言选择器样式 */
.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: #343a40;
    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: #343a40;
    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: #007bff;
    margin-top: 0;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    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: #0069d9;
    border-color: #0062cc;
}

.footer {
    background-color: #343a40;
    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, #3a7bd5, #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, #3a7bd5, #00d2ff);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-gradient-primary:hover {
    background: linear-gradient(135deg, #2a6bc4, #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, #3a7bd5, #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: #4e54c8;
    position: absolute;
    left: 0;
    top: 3px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.card ul.list-unstyled li:hover:before {
    color: #667eea;
    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, #3a7bd5, #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, #3a7bd5, #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(58, 123, 213, 0.3);
}

/* AI Agent页面样式 */
.aiagent-container {
    min-height: 70vh !important;
}

.aiagent-container .row.g-3 {
    justify-content: center !important;
    min-height: 100%;
    height: 1px; /* 设置最小基准高度 */
    flex: 1;
}

.aiagent-container .card {
    height: calc(100% - 1rem) !important;
    min-height: calc(100% - 1rem) !important;
    display: flex;
    flex-direction: column;
}

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

.aiagent-container .aiagent-card.card-header {
    background-color: #495057 !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;
    }
}