/*
Theme Name: AE System Theme
Theme URI: https://example.com/ae-system
Description: 注意力测评系统主题 - 简洁现代的主题，用于展示注意力测评管理系统和学员管理系统
Version: 1.0.0
Author: AE System
Author URI: https://example.com
Text Domain: ae-system
Tags: accessibility-ready, custom-header, custom-menu, featured-images, threaded-comments
*/

/* 全局样式变量 */
:root {
    --primary-color: #4A90E2;
    --primary-dark: #357ABD;
    --primary-light: #69B3E7;
    --background-light: #F5F7FA;
    --background-white: #FFFFFF;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: #E8E8E8;
    --success: #52C41A;
    --error: #FF4D4F;
    --warning: #FAAD14;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-light);
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* 页眉样式 */
.ae-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background-color: var(--background-white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.logo-title-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.logo-title-link:hover {
    opacity: 0.8;
}

.logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.site-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
}

.header-right {
    display: flex;
    align-items: center;
}

/* 用户菜单容器 */
.user-menu-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-center-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--background-light);
    border-radius: 20px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.user-center-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.user-center-btn svg {
    width: 20px;
    height: 20px;
}

.user-center-btn span {
    font-size: 14px;
}

/* 退出登录按钮 */
.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #fff1f0;
    border-radius: 20px;
    color: #ff4d4f;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background-color: #ff4d4f;
    color: white;
}

.logout-btn svg {
    width: 20px;
    height: 20px;
}

.logout-btn span {
    font-size: 14px;
}

/* 主内容区样式 */
.ae-main {
    min-height: calc(100vh - 64px - 60px);
    padding-top: 64px;
    padding-bottom: 60px;
}

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

/* 首页样式 */
.welcome-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 60px 40px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.welcome-section h1 {
    font-size: 32px;
    margin-bottom: 16px;
}

.welcome-section p {
    font-size: 16px;
    opacity: 0.95;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    background: var(--background-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-secondary);
}

.feature-card.download-feature {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, var(--background-white) 0%, #f0f7ff 100%);
}

.feature-download-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.feature-download-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.cta-buttons {
    display: flex;
    gap: 16px;
    margin-top: 30px;
}

.cta-btn {
    padding: 12px 32px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-btn.primary {
    background-color: var(--background-white);
    color: var(--primary-color);
}

.cta-btn.primary:hover {
    background-color: var(--background-light);
}

.cta-btn.secondary {
    background-color: transparent;
    color: var(--background-white);
    border: 2px solid var(--background-white);
}

.cta-btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 页脚样式 */
.ae-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: var(--background-white);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
}

.footer-nav {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 20px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary-color);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    width: 24px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.nav-item svg {
    width: 24px;
    height: 24px;
}

.nav-item span {
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .evaluation-projects-grid {
        grid-template-columns: 1fr !important;
    }
    .trust-stats-grid {
        grid-template-columns: 1fr !important;
    }

    .ae-header {
        height: 56px;
    }

    .header-container {
        padding: 0 16px;
    }

    .logo {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .site-title {
        font-size: 15px;
        max-width: 150px;
    }

    .user-menu-container {
        gap: 4px;
    }

    .user-center-btn {
        padding: 6px 12px;
    }

    .user-center-btn span {
        font-size: 13px;
    }

    .logout-btn {
        padding: 6px 12px;
    }

    .logout-btn span {
        font-size: 13px;
    }

    .ae-main {
        padding-top: 56px;
    }

    .main-content {
        padding: 16px;
    }

    .welcome-section {
        padding: 40px 20px;
    }

    .welcome-section h1 {
        font-size: 24px;
    }

    .welcome-section p {
        font-size: 14px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 20px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-btn {
        width: 100%;
        text-align: center;
    }

    .nav-item {
        padding: 6px 12px;
    }

    .nav-item svg {
        width: 20px;
        height: 20px;
    }

    .nav-item span {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 14px;
        max-width: 180px;
    }

    .header-left {
        gap: 6px;
    }

    .logo-title-link {
        gap: 6px;
    }

    .user-center-btn span,
    .logout-btn span {
        display: none;
    }

    .user-center-btn svg,
    .logout-btn svg {
        width: 24px;
        height: 24px;
    }

    .footer-nav {
        padding: 0 8px;
    }

    .nav-item {
        padding: 6px 8px;
    }
}

/* 登录/注册弹出菜单 */
.user-dropdown {
    position: absolute;
    top: 70px;
    right: 20px;
    background-color: var(--background-white);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    min-width: 180px;
    overflow: hidden;
    display: none;
}

.user-dropdown.show {
    display: block;
}

.user-dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-primary);
    transition: background-color 0.3s ease;
}

.user-dropdown-item:hover {
    background-color: var(--background-light);
    color: var(--primary-color);
}

.user-dropdown-item svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
}

/* WordPress 内容样式 */
.ae-main .entry-content {
    background: var(--background-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.ae-main .entry-content h1,
.ae-main .entry-content h2,
.ae-main .entry-content h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
}

.ae-main .entry-content h1 {
    font-size: 28px;
}

.ae-main .entry-content h2 {
    font-size: 24px;
}

.ae-main .entry-content h3 {
    font-size: 20px;
}

.ae-main .entry-content p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}
