/*
Theme Name: AI Training Base
Theme URI: https://aijiuye.vip
Author: AI Training Base Team
Author URI: https://aijiuye.vip
Description: 北京 AI 实训就业基地官方主题 - 专为 AI 实训就业培训设计的现代化响应式 WordPress 主题
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ai-training
Tags: education, training, AI, employment, responsive, custom-menu

这个主题完全兼容 WordPress 6.9.4，适用于 AI 实训就业培训类网站。
*/

/* ========== 全局样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fafafa;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ========== CSS变量 ========== */
:root {
    --primary-blue: #1890FF;
    --primary-orange: #FA8C16;
    --primary-green: #52C41A;
    --primary-purple: #722ED1;
    --text-dark: #333333;
    --text-medium: #666666;
    --text-light: #999999;
    --bg-light: #F5F5F5;
    --white: #FFFFFF;
}

/* ========== 导航栏 ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 120px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-blue);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-medium);
    font-size: 16px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.nav-links a.active {
    color: var(--primary-blue);
    font-weight: bold;
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 4px;
}

.nav-cta {
    background: var(--primary-orange);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s;
}

.nav-cta:hover {
    background: #FFC53D;
}

/* ========== 移动端菜单按钮 ========== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========== 页脚 ========== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 48px 120px;
    text-align: center;
    margin-top: 80px;
}

.footer p {
    color: var(--text-light);
    margin: 8px 0;
    font-size: 14px;
}

.footer a {
    color: var(--primary-blue);
    transition: color 0.3s;
}

.footer a:hover {
    color: #40A9FF;
}

/* ========== 通用按钮 ========== */
.btn-primary {
    display: inline-block;
    background: var(--primary-orange);
    color: white;
    padding: 16px 40px;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary:hover {
    background: #FFC53D;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(250,140,22,0.3);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: white;
    padding: 16px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    border: 2px solid white;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-blue);
}

/* ========== 动画 ========== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 响应式 - 桌面端 ========== */
@media (max-width: 1200px) {
    .navbar,
    .footer {
        padding-left: 80px;
        padding-right: 80px;
    }
}

/* ========== 响应式 - 移动端 ========== */
@media (max-width: 768px) {
    /* 导航栏移动端 */
    .navbar {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        flex-direction: column;
        padding: 40px 20px;
        gap: 0;
        overflow-y: auto;
        animation: slideDown 0.3s ease;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 16px 0;
        border-bottom: 1px solid #f0f0f0;
        font-size: 18px;
    }

    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* 页脚移动端 */
    .footer {
        padding: 40px 20px;
    }
}

/* ========== 浏览器兼容性回退 ========== */
@supports not (width: fit-content) {
    .btn-primary,
    .featured-tag {
        width: auto;
        display: inline-block;
    }
}

@supports not (display: grid) {
    .courses,
    .employment-content,
    .mission-grid,
    .founder-section,
    .advantages-grid,
    .stats-grid,
    .model-grid,
    .market-stats,
    .direction-grid,
    .skills-grid,
    .features-grid,
    .contact-grid,
    .grid-2,
    .agent-types,
    .profile-grid,
    .news-grid,
    .news-list,
    .featured-news,
    .promise-grid {
        display: block;
    }

    .courses > *,
    .employment-content > *,
    .mission-grid > *,
    .founder-section > *,
    .advantages-grid > *,
    .stats-grid > *,
    .model-grid > *,
    .market-stats > *,
    .direction-grid > *,
    .skills-grid > *,
    .features-grid > *,
    .contact-grid > *,
    .grid-2 > *,
    .agent-types > *,
    .profile-grid > *,
    .news-grid > *,
    .news-list > *,
    .featured-news > *,
    .promise-grid > * {
        margin-bottom: 24px;
    }

    .courses > *:last-child,
    .employment-content > *:last-child,
    .mission-grid > *:last-child,
    .founder-section > *:last-child,
    .advantages-grid > *:last-child,
    .stats-grid > *:last-child,
    .model-grid > *:last-child,
    .market-stats > *:last-child,
    .direction-grid > *:last-child,
    .skills-grid > *:last-child,
    .features-grid > *:last-child,
    .contact-grid > *:last-child,
    .grid-2 > *:last-child,
    .agent-types > *:last-child,
    .profile-grid > *:last-child,
    .news-grid > *:last-child,
    .news-list > *:last-child,
    .featured-news > *:last-child,
    .promise-grid > *:last-child {
        margin-bottom: 0;
    }
}

@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
    .promise-item {
        background: rgba(255,255,255,0.2);
    }
}


.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 12px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

.sticky {
    position: relative;
}

.bypostauthor {
    font-size: inherit;
}

.gallery-caption {
    display: block;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
