/* HYKSOS AI 导航站 - 浅色玻璃质感专业设计 */

/* 变量定义 */
:root {
    /* 浅色主色调 */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    
    /* 浅色背景 */
    --bg-main: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: rgba(255, 255, 255, 0.9);
    --bg-gradient: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f8fafc 100%);
    
    /* 文字颜色 */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    /* 玻璃效果 */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.08);
    
    /* 边框 */
    --border: rgba(226, 232, 240, 0.8);
    --border-hover: rgba(37, 99, 235, 0.3);
    
    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 40px rgba(37, 99, 235, 0.1);
    --shadow-hover: 0 20px 40px rgba(37, 99, 235, 0.15);
    
    /* 圆角 */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    /* 过渡 */
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* 精致背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 100% 80% at 0% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 100% 100%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at 0% 100%, rgba(37, 99, 235, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 顶部导航 - 玻璃效果 ===== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.navbar {
    padding: 14px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 30px;
}

.logo-text strong {
    color: var(--primary);
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    position: relative;
    padding: 10px 18px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* 移动端菜单 */
.mobile-menu-btn {
    display: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        border-top: 1px solid var(--glass-border);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
    }
}

/* 语言切换 */
.lang-switch {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px 16px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.lang-switch:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* ===== Hero 区域 ===== */
.hero-section {
    padding: 180px 0 100px;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 60px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto;
    font-weight: 450;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 150px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 38px;
    }
    
    .hero-content p {
        font-size: 17px;
    }
}

/* ===== 通用区块 ===== */
.section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

/* ===== 玻璃卡片容器 ===== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow);
}

/* ===== 工具卡片 ===== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.tool-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
}

.tool-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-icon {
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.tool-card h3 {
    font-size: 20px;
    font-weight: 650;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.tool-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.65;
}

.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.tag {
    padding: 5px 14px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 20px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
}

.tag.free {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.tag.hot {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.tool-btn {
    display: inline-block;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-align: center;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}

.tool-btn:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
    transform: translateY(-2px);
}

/* ===== 页面头部 ===== */
.page-header {
    padding: 160px 0 70px;
    text-align: center;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.04) 0%, transparent 100%);
}

.page-header h1 {
    font-size: 48px;
    font-weight: 750;
    margin-bottom: 14px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.page-header p {
    font-size: 19px;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .page-header {
        padding: 140px 0 50px;
    }
    
    .page-header h1 {
        font-size: 34px;
    }
}

/* ===== 教程卡片 ===== */
.tutorial-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 40px;
    margin-bottom: 40px;
}

.tutorial-nav h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.tutorial-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    transition: var(--transition);
}

.tutorial-card:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.tutorial-card h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.tutorial-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.tutorial-card a {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

.tutorial-card a:hover {
    color: var(--secondary);
}

.level-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.level-beginner {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.level-intermediate {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.level-advanced {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
}

/* ===== 新闻卡片 ===== */
.news-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.news-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.news-category {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 20px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 14px;
}

.news-card h3 {
    font-size: 21px;
    font-weight: 650;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.news-card h3 a:hover {
    color: var(--primary);
}

.news-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.news-excerpt {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

.read-more:hover {
    color: var(--secondary);
}

/* ===== GitHub 卡片 ===== */
.github-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 22px;
    margin-bottom: 16px;
    transition: var(--transition);
}

.github-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.github-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.github-card h4 a {
    color: var(--primary);
}

.github-card h4 a:hover {
    color: var(--secondary);
}

.github-stars {
    color: #f59e0b;
    font-size: 13px;
    margin-left: 10px;
}

.github-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ===== 技能卡片 ===== */
.skill-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(139, 92, 246, 0.08));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    margin-bottom: 16px;
    transition: var(--transition);
}

.skill-card:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(139, 92, 246, 0.12));
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.skill-card h4 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.skill-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.skill-level {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 20px;
    font-size: 12px;
    color: #7c3aed;
    font-weight: 600;
    margin-right: 10px;
}

.skill-card a {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

/* ===== 分类标签 ===== */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 34px;
}

.category-tab {
    padding: 12px 26px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.category-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.category-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 44px 0;
    flex-wrap: wrap;
}

.page-btn {
    padding: 12px 22px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* ===== 区块标题 ===== */
.section-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 55px 0 26px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--border);
}

/* ===== 关于页面 ===== */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 0;
}

.about-content h2 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 22px;
    color: var(--text-primary);
}

.about-content p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 22px;
    line-height: 1.8;
}

.contact-info {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-top: 34px;
}

/* ===== 页脚 ===== */
.main-footer {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 44px 0;
    margin-top: 100px;
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.footer-bottom a {
    color: var(--text-secondary);
}

.footer-bottom a:hover {
    color: var(--primary);
}

/* ===== 工具组件 ===== */
.tools-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin: 44px 0;
}

.widget-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    transition: var(--transition);
}

.widget-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.widget-card .icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.widget-card .value {
    font-size: 36px;
    font-weight: 750;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.widget-card .label {
    font-size: 14px;
    color: var(--text-muted);
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary), var(--secondary));
    border-radius: 4px;
}

/* ===== 动画 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-content,
.section-header,
.tool-card,
.tutorial-card,
.news-card {
    animation: fadeInUp 0.6s ease-out;
}

.tool-card:nth-child(2) { animation-delay: 0.08s; }
.tool-card:nth-child(3) { animation-delay: 0.16s; }
.tool-card:nth-child(4) { animation-delay: 0.24s; }
.tool-card:nth-child(5) { animation-delay: 0.32s; }
.tool-card:nth-child(6) { animation-delay: 0.4s; }
