/* 
 * 洛斯奇网络科技有限公司 - 全局样式
 * 儿童启蒙风 | 浅绿 + 浅黄 + 浅蓝
 */

/* ========== CSS 变量定义 ========== */
:root {
    --color-primary: #7CB9E8;      /* 浅蓝 */
    --color-secondary: #A8D5BA;    /* 浅绿 */
    --color-accent: #F9E79F;       /* 浅黄 */
    --color-dark: #2C3E50;
    --color-light: #ECF0F1;
    --color-white: #FFFFFF;
    --color-text: #34495E;
    --color-text-light: #7F8C8D;
    
    --font-main: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    --font-heading: 'Comic Sans MS', 'Chalkboard', cursive, sans-serif;
    
    --shadow-soft: 0 4px 15px rgba(124, 185, 232, 0.2);
    --shadow-hover: 0 8px 25px rgba(124, 185, 232, 0.3);
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ========== 基础重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f4f8 100%);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========== 右侧固定导航 ========== */
.sidebar-nav {
    position: fixed;
    right: 0;
    top: 0;
    width: 80px;
    height: 100vh;
    background: linear-gradient(180deg, var(--color-primary) 0%, #5DADE2 100%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: -3px 0 15px rgba(0,0,0,0.1);
}

.nav-logo {
    width: 50px;
    height: 50px;
    background: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    font-weight: bold;
    color: var(--color-primary);
    font-size: 20px;
    box-shadow: var(--shadow-soft);
}

.nav-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-item {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 11px;
    transition: var(--transition-bounce);
    cursor: pointer;
    background: rgba(255,255,255,0.1);
}

.nav-item:hover,
.nav-item.active {
    background: var(--color-accent);
    color: var(--color-dark);
    transform: scale(1.1);
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 3px;
}

.hamburger {
    display: none;
    position: fixed;
    top: 20px;
    right: 100px;
    z-index: 999;
    background: var(--color-primary);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--color-white);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* ========== 主内容区域 ========== */
.main-content {
    margin-right: 80px;
    min-height: 100vh;
}

/* ========== 通用组件 ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-dark);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition-bounce);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #5DADE2);
    color: var(--color-white);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--color-secondary), #82E0AA);
    color: var(--color-white);
    box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* ========== 卡片样式 ========== */
.card {
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-bounce);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 25px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.card-text {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========== 页脚 ========== */
.footer {
    background: linear-gradient(135deg, var(--color-dark) 0%, #34495E 100%);
    color: var(--color-white);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--color-accent);
}

.footer-section p,
.footer-section a {
    color: #BDC3C7;
    line-height: 2;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #95A5A6;
    font-size: 0.9rem;
}

/* ========== 动画效果 ========== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .sidebar-nav {
        transform: translateX(100%);
        transition: var(--transition-smooth);
    }
    
    .sidebar-nav.active {
        transform: translateX(0);
    }
    
    .hamburger {
        display: flex;
    }
    
    .main-content {
        margin-right: 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ========== 滚动条美化 ========== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5DADE2;
}
