:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --background-color: #ffffff;
    --text-color: #333333;
    --hover-color: #0056b3;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* 防止被固定导航栏遮挡 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--background-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 24px;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, #007bff, #00bfff);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.2em;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

/* 小型CTA按钮 - 保持原有风格但尺寸缩小 */
.small-cta-button {
    display: inline-block;
    padding: 5px 15px; /* 比原来的15px 40px缩小 */
    background: linear-gradient(45deg, #007bff, #00bfff);
    color: white;
    text-decoration: none;
    border-radius: 25px; /* 比原来的30px稍小 */
    font-weight: bold;
    font-size: 1em; /* 比原来的1.2em缩小 */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3); /* 阴影比原来稍弱 */
    border: none;
    cursor: pointer;
}

.small-cta-button:hover {
    transform: translateY(-2px) scale(1.02); /* 悬停效果比原来幅度小 */
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* 如果需要更小的版本 */
.mini-cta-button {
    padding: 8px 20px;
    font-size: 0.9em;
    border-radius: 20px;
    box-shadow: 0 3px 12px rgba(0, 123, 255, 0.3);
}

.mini-cta-button:hover {
    transform: translateY(-1px) scale(1.01);
}

.ai-categories {
    max-width: 1200px;
    margin: 0 auto 30px;
}

.category-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0,123,255,0.2);
    padding-bottom: 10px;
}

.category-item {
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #2c3e50;
}

.category-item:hover {
    background-color: rgba(0,123,255,0.1);
    color: var(--primary-color);
}

.category-item.active {
    background-color: var(--primary-color);
    color: white;
}

.ai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ai-card {
    position: relative;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    text-decoration: none;
    display: block;
    background: #eaecee;
}

.ai-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.ai-card .ai-cover {
    position: relative;
    overflow: hidden;
}

.ai-card .ai-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ai-card:hover .ai-icon img {
    transform: scale(1.05);
}

.ai-card .ai-content {
    padding: 25px;
    position: relative;
    z-index: 1;
}

.ai-card .ai-name {
    font-size: 1.3em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}

.ai-card .ai-description {
    font-size: 0.95em;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.ai-card .ai-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ai-card .ai-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0,123,255,0.08);
    color: #007bff;
    border-radius: 15px;
    font-size: 0.85em;
    transition: all 0.3s ease;
}

.showcase-title {
    font-size: 2.2em; /* 设置字体大小 */
    color: #2c3e50;    /* 设置字体颜色 */
    text-align: center; /* 设置居中对齐 */
    margin-bottom: 20px; /* 设置底部间距 */
    font-weight: bold; /* 设置加粗 */
}

/* 添加以下媒体查询和样式 */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--background-color);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }
    
    #cta-button .free-tag {
        display: none;
    }

    .ai-grid {
        grid-template-columns: 1fr;
        padding: 10px;
    }
    
    .ai-card {
        margin-bottom: 15px;
    }
    
    .ai-card .ai-content {
        padding: 15px;
    }
    
    .ai-card .ai-name {
        font-size: 1.1em;
    }
    
    .ai-card .ai-description {
        font-size: 0.85em;
    }
}

#ai-assistants:target {
    animation: highlight 1s ease;
  }
  
  @keyframes highlight {
    0% { background-color: rgba(0, 123, 255, 0.1); }
    100% { background-color: transparent; }
  }


/* 添加在linghai_style.css文件末尾 */
footer {
    background-color: #f8f9fa;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    color: #666;
    border-top: 1px solid #e9ecef;
    margin-top: 50px;
}

footer p {
    margin: 0;
    line-height: 1.5;
}

footer a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.features {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.features h2 {
    text-align: center;
    margin-bottom: 40px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-header {
    position: relative;
    padding-bottom: 5px;
    margin-bottom: 30px;
}

.feature-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 3px;
    background: linear-gradient(90deg, rgba(0,123,255,0), rgba(0,123,255,0.5), rgba(0,123,255,0));
}



.cta-badge {
    display: inline-block;
    background-color: #ff4444;
    color: white;
    font-size: 0.8em;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 8px;
    animation: pulse 2s infinite;
}

/* 教程弹窗样式 */
.tutorial-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.tutorial-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin: auto;
    position: relative;
    animation: modalFadeIn 0.3s ease;
    /* 新增居中保障 */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.tutorial-content h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.4em;
    width: 100%; /* 确保标题宽度与内容一致 */
}

.tutorial-content ol {
    margin: 0 auto 25px; /* 上下外边距，左右自动居中 */
    padding-left: 20px;
    line-height: 1.8;
    text-align: left; /* 列表内容左对齐 */
    width: 100%; /* 确保宽度与父容器一致 */
    max-width: 400px; /* 限制最大宽度，避免在小屏幕上过宽 */
}

.tutorial-content li {
    margin-bottom: 10px;
    font-size: 1em;
}

.tutorial-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%; /* 确保按钮容器宽度与内容一致 */
    max-width: 400px; /* 限制最大宽度 */
}

.tutorial-buttons button {
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
    min-width: 120px;
}

.tutorial-continue {
    background-color: var(--primary-color); /* 使用主题蓝色 */
    color: white;
}

.tutorial-continue:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
}

.tutorial-never {
    background-color: #f1f1f1;
    color: #666;
}

.tutorial-never:hover {
    background-color: #e1e1e1;
    transform: translateY(-2px);
}

/* 响应式调整 */
@media (max-width: 480px) {
    .tutorial-content {
        padding: 25px 20px;
    }
    
    .tutorial-content h3 {
        font-size: 1.3em;
    }
    
    .tutorial-content ol {
        padding-left: 15px;
        max-width: 100%; /* 小屏幕上使用全部可用宽度 */
    }
    
    .tutorial-buttons {
        flex-direction: column;
        gap: 10px;
        max-width: 100%;
    }
    
    .tutorial-buttons button {
        width: 100%;
    }
}


.free-tag {
    display: inline-block;
    font-size: 12px;
    background-color: #ff4444;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
    vertical-align: middle;
    font-weight: bold;
}


.hero-taglines {
    margin: 30px 0;
}

.tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    font-size: 1.3em;
    color: #2c3e50;
    transform: translateX(-20px);
    opacity: 0;
    animation: slideIn 0.5s ease forwards;
}

.tagline-icon {
    background: linear-gradient(45deg, #007bff, #00bfff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.4em;
    margin-right: 15px;
}

.tagline-text {
    position: relative;
    padding: 8px 15px;
    background: rgba(0, 123, 255, 0.05);
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.tagline:hover .tagline-text {
    transform: translateX(5px);
}

.tagline-highlight {
    color: #007bff;
    font-weight: 600;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.tagline:nth-child(1) {
    animation-delay: 0.2s;
}

.tagline:nth-child(2) {
    animation-delay: 0.4s;
}

.tagline:nth-child(3) {
    animation-delay: 0.6s;
}

/* 标题容器样式 */
.title-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.showcase-header {
    margin-bottom: 20px;
}

.version-switch-container {
    margin-top: 10px;
    display: flex;
    justify-content: flex-start;
}

.title-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.showcase-title {
    margin: 0;
    line-height: 1.2;
}

.version-switch {
    display: flex;
    gap: 10px;
    margin-left: 30px;
}

.version-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #ff4757;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 12px;
    line-height: 1;
}

.version-btn {
    position: relative;
    padding: 8px 16px;
    border-width: 1px;
    border-color: #ffffff;
    border-radius: 15px;
}

.version-btn.active {
    background: #4a6cf7;
    color: white;
}

.version-btn:hover:not(.active) {
    background: rgba(74, 108, 247, 0.1);
    color: #4a6cf7;
}

.showcase-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* 新增：视频讲解区域样式 */
.video-explainer {
    padding: 60px 20px;
    text-align: center;
    background-color: #ffffff; /* 使用白色背景，保持页面清爽 */
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 宽高比，这是最常见的视频比例 */
    height: 0;
    overflow: hidden;
    max-width: 880px; /* 限制最大宽度，在大屏幕上更好看 */
    margin: 30px auto 0;
    border-radius: 16px; /* 更圆润的边角，符合苹果设计风格 */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.05);
    background: #000;
}

/* 将原来的 iframe 样式更新为针对 Plyr 播放器的样式 */
.video-wrapper .plyr,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-caption {
    margin-top: 25px;
    font-size: 1rem;
    color: #555; /* 比纯黑更柔和的字体颜色 */
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}