/* style.css - Amazing All 主样式表 | 最后更新：2024/02/20 */

/***** 基础重置 *****/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f8f9fa;
    line-height: 1.6;
    color: #333;
}

/***** 导航样式 *****/
.main-nav {
    background: #2c3e50;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-brand {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-link:hover {
    color: #3498db;
    background: rgba(255,255,255,0.1);
}

/***** 轮播图系统 *****/
.carousel {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 2rem auto;
    max-width: 1400px;
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item.active {
    opacity: 1;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: brightness(0.9) saturate(1.1);
}

/***** 功能卡片 *****/
.feature-section {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.feature-card h3 {
    color: #3498db;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
}

/***** 留言板样式 *****/
.message-board {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.message-form {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    border-color: #3498db;
    outline: none;
}

.submit-btn {
    background: #3498db;
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
}

.submit-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/***** AI工具集合页面样式 *****/
.ai-tools-page {
    padding: 2rem;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
}

.ai-tools-page h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.ai-tools-page p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
}

.ai-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.ai-tool-button {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    width: 200px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.ai-tool-button:hover {
    transform: translateY(-5px);
}

.ai-logo {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.ai-title {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.ai-provider {
    font-size: 0.8rem;
    color: #666;
}

.ai-link {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.ai-link:hover {
    background: #0056b3;
}

/***** 响应式设计 *****/
@media (max-width: 1200px) {
    .carousel {
        height: 360px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .carousel {
        height: 300px;
        border-radius: 8px;
        margin: 1rem;
    }

    .feature-section {
        padding: 3rem 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .carousel {
        height: 200px;
    }

    .nav-brand {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .message-form {
        padding: 1.5rem;
    }
}

/* 隐藏状态 */
.hidden {
    display: none !important;
}

/* AI触发按钮 */
.ai-action-trigger {
    cursor: pointer;
    transition: transform 0.3s ease;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white !important;
}

.ai-action-trigger h3 {
    color: white !important;
}

.ai-action-trigger:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

/* 调整模态框层级 */
.ai-modal {
    z-index: 9999;
}






/* 新增编程平台页面样式 */
.code-platforms-page {
    padding: 2rem;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
}

.code-platforms-page h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.code-platforms-page p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.platform-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.platform-card h3 {
    color: #3498db;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.platform-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.platform-link:hover {
    background: #0056b3;
}

/* 新增按钮样式（与AI工具页面保持一致） */
.code-action-trigger {
    cursor: pointer;
    transition: transform 0.3s ease;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white !important;
}

.code-action-trigger h3 {
    color: white !important;
}

.code-action-trigger:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.3);
}









/* 工具集页面样式 */
.tools-section {
    padding: 2rem;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.tool-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    text-align: left;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.tool-card h3 {
    color: #3498db;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.tool-subtools {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

.tool-item {
    width: 180px;
    padding: 1rem;
    border-radius: 8px;
    background: #f8f9fa;
    text-align: center;
    transition: transform 0.3s ease;
}

.tool-item:hover {
    transform: scale(1.03);
    background: #e9ecef;
}

.tool-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.tool-link {
    text-decoration: none;
    color: inherit;
}

/* 工具图标存放路径 */
/* 将图标文件（如 tool.lu.png、unitconverters.png 等）放在 assets/images/tools/ 目录 */