/**
 * 公共样式文件 - 统一全站导航和主题色
 */

/* ========================================
   主题色变量
   ======================================== */
:root {
    --theme-primary: #3399ff;
    --theme-primary-light: #66b3ff;
    --theme-primary-dark: #2980e6;
    --theme-bg-light: #EFF6FF;
    --theme-text: #333;
    --theme-text-secondary: #666;
}

/* ========================================
   导航栏样式统一
   ======================================== */

/* 导航链接悬停和激活状态 */
body .menu-header .nav > li > a:hover,
body .menu-header .nav > li > a.active,
body .menu-header .nav > li.active > a,
body .menu-header .nav > li > a.active:hover,
body .menu-header .nav > li.active > a:hover {
    color: var(--theme-primary) !important;
}

/* Header 6 主题导航 - 默认状态 */
body.header-6 .menu-header:not(.scroll-header) .navbar-default .navbar-nav > li > a:not(.btn) {
    color: #fff !important;
}

body.header-6 .menu-header:not(.scroll-header) .navbar-default .navbar-nav > li > a:not(.btn).active {
    color: var(--theme-primary) !important;
}

body.header-6 .menu-header:not(.scroll-header) .navbar-default .navbar-nav > li > a:not(.btn).active:after {
    border-color: var(--theme-primary);
}

/* 滚动后导航栏样式 */
body.header-6 .menu-header.scroll-header .navbar-default .navbar-nav > li > a:not(.btn):hover,
body.header-6 .menu-header.scroll-header .navbar-default .navbar-nav > li > a:not(.btn).active {
    color: var(--theme-primary);
}

/* ========================================
   页面标题栏统一样式
   ======================================== */
.page-title-section {
    padding: 40px 0;
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-light) 100%);
    margin-top: 80px;
}

.page-title-section h1 {
    color: #fff;
    font-size: 32px;
    margin: 0;
    font-weight: 500;
}

.page-title-section p {
    color: rgba(255, 255, 255, 0.8);
    margin: 10px 0 0;
    font-size: 16px;
}

/* ========================================
   按钮统一样式
   ======================================== */
.btn-theme {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-light) 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-theme:hover {
    background: linear-gradient(135deg, var(--theme-primary-dark) 0%, var(--theme-primary) 100%);
    box-shadow: 0 4px 15px rgba(51, 153, 255, 0.4);
    color: #fff;
    text-decoration: none;
}

/* ========================================
   分隔线统一样式
   ======================================== */
.section-separator {
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--theme-primary) 0%, var(--theme-primary-light) 100%);
    margin: 20px auto;
    border-radius: 2px;
}

/* ========================================
   卡片统一样式
   ======================================== */
.card-theme {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(51, 153, 255, 0.1);
    transition: all 0.3s ease;
}

.card-theme:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(51, 153, 255, 0.2);
}

/* ========================================
   Tab 标签统一样式
   ======================================== */
.tab-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-nav .tab-item {
    padding: 12px 30px;
    background: #fff;
    border-radius: 25px;
    color: var(--theme-text-secondary);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(51, 153, 255, 0.1);
    border: none;
}

.tab-nav .tab-item:hover {
    color: var(--theme-primary);
    box-shadow: 0 4px 15px rgba(51, 153, 255, 0.2);
}

.tab-nav .tab-item.active {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-light) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(51, 153, 255, 0.4);
}

/* ========================================
   动画效果统一
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.4s ease;
}

/* ========================================
   内容区域统一背景
   ======================================== */
.section-bg-light {
    background: var(--theme-bg-light);
}
