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

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

/* ===== 容器布局 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-main {
    flex: 1;
    padding: 0 15px;
    min-width: 0;
}

.col-sidebar {
    width: 300px;
    padding: 0 15px;
}

/* ===== 头部样式 ===== */
#header {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(26,26,26,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #ebebeb;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.site-title a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.site-subtitle {
    color: #8590a6;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* ===== 导航样式 ===== */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-link {
    color: #1a1a1a;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover {
    color: #0084ff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #0084ff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== 移动端菜单 ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #1a1a1a;
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    background: #ffffff;
    border-top: 1px solid #ebebeb;
    padding: 1rem 0;
}

.mobile-nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    color: #1a1a1a;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ebebeb;
}

/* ===== 搜索框样式 ===== */
.search-box {
    display: flex;
    align-items: center;
    background: #f6f6f6;
    border-radius: 25px;
    padding: 0.5rem 1rem;
    margin-left: 2rem;
    border: 1px solid #ebebeb;
}

#search-input {
    border: none;
    background: none;
    outline: none;
    padding: 0.25rem;
    width: 200px;
    color: #1a1a1a;
}

#search-input::placeholder {
    color: #8590a6;
}

#search-btn {
    background: none;
    border: none;
    color: #8590a6;
    cursor: pointer;
    padding: 0.25rem;
}

#search-btn:hover {
    color: #0084ff;
}

/* ===== 主要内容区域 ===== */
#main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* ===== 英雄横幅样式 ===== */
.hero-banner {
    background: linear-gradient(135deg, #0084ff 0%, #0066cc 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: -2rem 0 3rem 0;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: #fff;
    color: #0084ff;
}

.btn-primary:hover {
    background: #f6f6f6;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #0084ff;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/hero-pattern.svg') center/cover;
    opacity: 0.1;
}

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

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .row {
        flex-direction: column;
    }

    .col-sidebar {
        width: 100%;
        order: -1;
    }

    .header-content {
        padding: 0.75rem 0;
    }

    .desktop-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .search-box {
        margin-left: 0;
        margin-top: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
} 