/* ============================================
   Zibll主题自定义样式
   融合百度、CSDN、现代科技风、商务专业风
   ============================================ */

/* ============================================
   CSS变量系统 - 统一管理配色和样式
   ============================================ */
:root {
    /* 主色调 - 现代科技风 */
    --primary-color: #667eea;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-color: #f093fb;

    /* 百度风格 - 简洁导航 */
    --baidu-black: #333333;
    --baidu-blue: #4e6ef2;
    --baidu-gray: #f5f5f5;

    /* CSDN风格 - 信息丰富 */
    --csdn-orange: #ff6a00;
    --csdn-red: #ee1d52;
    --csdn-bg: #f8f9fa;

    /* 商务专业风 - 高端质感 */
    --business-blue: #1a3a5f;
    --business-gold: #c9a961;
    --business-dark: #2c3e50;

    /* 间距系统 */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* 圆角系统 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;

    /* 阴影系统 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ============================================
   百度风格 - 顶部导航栏
   ============================================ */

/* 黑色顶栏 */
header .top-bar {
    background: var(--baidu-black);
    color: #ffffff;
    padding: 8px 0;
    font-size: 13px;
}

.top-bar a {
    color: #ffffff !important;
    opacity: 0.85;
    transition: opacity 0.3s;
}

.top-bar a:hover {
    opacity: 1;
}

/* 主导航 */
header .main-navigation {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 0;
}

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

.main-navigation .menu-item a {
    color: #333333 !important;
    font-size: 15px;
    font-weight: 500;
    padding: 18px 20px;
    transition: all 0.3s;
}

.main-navigation .menu-item a:hover {
    color: var(--baidu-blue) !important;
    background: var(--baidu-gray);
}

/* Logo区域 */
header .logo {
    max-height: 50px;
}

/* 搜索框 */
header .search-box {
    background: var(--baidu-gray);
    border-radius: 20px;
    padding: 8px 16px;
    transition: all 0.3s;
}

header .search-box:focus-within {
    box-shadow: 0 0 0 3px rgba(78, 110, 242, 0.2);
}

/* ============================================
   现代科技风 - Hero区域
   ============================================ */

.hero-section {
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
    padding: 80px 20px;
    text-align: center;
    color: white;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-section h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-section p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.hero-search-box input {
    width: 100%;
    padding: 18px 30px;
    border-radius: 50px;
    border: none;
    font-size: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-search-box button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.hero-search-box button:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 分类导航卡片 */
.hero-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 40px auto 0;
}

.category-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.category-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.category-card h3 {
    font-size: 14px;
    margin: 10px 0 0;
}

.category-card .icon {
    font-size: 28px;
}

/* 热门标签滚动条 */
.hero-tags {
    max-width: 1000px;
    margin: 30px auto 0;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
}

.hero-tags::-webkit-scrollbar {
    display: none;
}

.tag-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.3s;
    cursor: pointer;
}

.tag-item:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* ============================================
   CSDN风格 - 信息丰富卡片
   ============================================ */

.card {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border: 1px solid #e8e8e8;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card .card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.card .card-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    gap: 10px;
}

.card .card-stats {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.card .stat-item {
    font-size: 12px;
    color: #666;
}

/* 徽章样式 */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.badge-new {
    background: var(--csdn-orange);
    color: white;
}

.badge-hot {
    background: var(--csdn-red);
    color: white;
}

.badge-premium {
    background: var(--business-gold);
    color: white;
}

/* ============================================
   商务专业风 - 高端布局
   ============================================ */

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--business-blue);
}

.section-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--business-blue);
}

.section-header .more-link {
    color: var(--business-blue);
    font-weight: 500;
    text-decoration: none;
}

.section-header .more-link:hover {
    text-decoration: underline;
}

/* 专业按钮 */
.btn-business {
    background: var(--business-blue);
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-business:hover {
    background: var(--business-dark);
    box-shadow: 0 5px 15px rgba(26, 58, 95, 0.3);
}

/* ============================================
   AI功能样式
   ============================================ */

.ai-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.ai-chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s;
}

.ai-chat-button:hover {
    transform: scale(1.1);
}

.ai-chat-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.ai-chat-panel.active {
    display: flex;
}

.ai-chat-header {
    background: var(--primary-gradient);
    color: white;
    padding: 15px;
    font-weight: 600;
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.ai-message {
    margin-bottom: 10px;
    padding: 10px 15px;
    border-radius: 10px;
    max-width: 80%;
}

.ai-message.user {
    background: var(--primary-gradient);
    color: white;
    margin-left: auto;
}

.ai-message.ai {
    background: #f5f5f5;
    color: #333;
}

.ai-chat-input {
    padding: 15px;
    border-top: 1px solid #e8e8e8;
    display: flex;
    gap: 10px;
}

.ai-chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
}

.ai-chat-input button {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
}

/* ============================================
   响应式设计
   ============================================ */

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 32px;
    }

    .hero-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-navigation .nav-menu {
        padding: 0 15px;
    }

    .ai-chat-panel {
        width: 300px;
        height: 400px;
        right: -10px;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 24px;
    }

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

    .hero-categories {
        grid-template-columns: 1fr;
    }
}
