/* ===== 选矿车间门户网站 - 全局样式 ===== */

/* 基础变量 */
:root {
    --primary: #0066cc;
    --primary-light: #3399ff;
    --accent: #e67e22;
    --tech-blue: #2196F3;
    --text-dark: #333333;
    --text-muted: #6c757d;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
    --radius: 10px;
    --transition: all 0.3s ease;
}

/* 全局 */
body {
    font-family: "Microsoft YaHei", "PingFang SC", -apple-system, sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
}

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

a:hover {
    color: var(--primary-light);
}

/* 居中标题栏（替代原navbar） */
.site-header {
    background: linear-gradient(135deg, #002244 0%, #0066cc 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    padding: 14px 0;
    position: relative;
    z-index: 1000;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.site-header--minimal {
    padding: 10px 0;
    background: linear-gradient(135deg, #002244 0%, #0066cc 100%);
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
}

.site-header-text {
    text-align: center;
}

.site-header-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: 2px;
}

.site-header--minimal .site-header-title {
    font-size: 1.4rem;
    letter-spacing: 3px;
}

.site-header-subtitle {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.8);
    margin: 2px 0 0;
    letter-spacing: 1px;
}

.site-header-login {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.78rem;
    border-color: rgba(255,255,255,0.5);
    color: rgba(255,255,255,0.8);
    padding: 3px 12px;
}

.site-header-login:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* 面包屑导航 */
.menu-breadcrumb {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 10px 0;
}

.menu-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
}

.menu-breadcrumb .breadcrumb-item a {
    color: var(--primary);
    font-size: 0.88rem;
}

.menu-breadcrumb .breadcrumb-item a:hover {
    text-decoration: underline;
}

.menu-breadcrumb .breadcrumb-item.active {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.menu-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #ccc;
}

/* 子菜单页面标题 */
.menu-category-header {
    text-align: center;
    padding: 40px 15px 20px;
    background: linear-gradient(180deg, #f0f7ff 0%, var(--bg-light) 100%);
}

.menu-category-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.menu-category-header h1 i {
    opacity: 0.8;
}

.menu-category-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* 返回和首页按钮组 */
.menu-nav-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 16px;
}

.menu-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: var(--primary);
    border-radius: 50px;
    padding: 6px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid rgba(0,102,204,0.1);
}

.menu-nav-btn:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,102,204,0.2);
    transform: translateY(-1px);
    text-decoration: none;
}

.menu-nav-btn i {
    font-size: 0.9rem;
}

/* 首页底部按钮 */
.home-nav-buttons {
    display: flex;
    justify-content: center;
    padding: 20px 0 40px;
    background: var(--bg-light);
}

.menu-category-section {
    padding: 30px 0 60px;
    background: var(--bg-light);
}

/* 卡片子分类徽章 */
.menu-card-badge {
    display: inline-block;
    background: rgba(0,102,204,0.1);
    color: var(--primary);
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 12px;
    margin-top: 10px;
}

/* 页面主体 */
#mainContent {
    min-height: calc(100vh - 160px);
    padding-top: 0;
}

/* 页面标题 */
.page-header {
    text-align: center;
    padding: 40px 15px 30px;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.page-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* 卡片通用样式 */
.card-hover {
    background: var(--bg-white);
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

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

.card-hover .card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-hover .card-body {
    padding: 1.25rem;
}

.card-hover .card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.card-hover .card-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* 标签 */
.badge-type {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-patent { background: #e3f2fd; color: #1565c0; }
.badge-award { background: #fff3e0; color: #e65100; }
.badge-paper { background: #e8f5e9; color: #2e7d32; }
.badge-project { background: #f3e5f5; color: #7b1fa2; }
.badge-other { background: #f5f5f5; color: #616161; }

/* 详情页 */
.detail-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 15px;
}

.detail-page h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.detail-page .meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.detail-page .content-body {
    line-height: 1.9;
    font-size: 1rem;
}

.detail-page .content-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 16px 0;
}

.detail-page .content-body h2,
.detail-page .content-body h3 {
    color: var(--primary);
    margin-top: 28px;
    margin-bottom: 12px;
}

/* 视频播放器 */
.video-container {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: var(--shadow);
}

.video-container video {
    width: 100%;
    display: block;
}

/* 工艺流程 */
.process-flow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 30px 0;
}

.process-step-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.process-step-item:hover {
    transform: scale(1.05);
}

.process-node {
    background: var(--bg-white);
    border: 2px solid var(--primary);
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
    white-space: nowrap;
}

.process-node.key-step {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.process-arrow {
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* 安全培训 */
.safety-notice-box {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 24px;
    margin: 20px 0;
}

.safety-notice-box h4 {
    color: var(--accent);
    margin-bottom: 12px;
}

/* 考试页面 */
.exam-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px 15px;
}

.exam-question {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.exam-question .q-number {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 10px;
}

.exam-question .q-text {
    font-weight: 500;
    margin-bottom: 12px;
}

.exam-option {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    margin: 6px 0;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: var(--transition);
}

.exam-option:hover {
    background: #f0f7ff;
    border-color: var(--tech-blue);
}

.exam-option.selected {
    background: #e3f2fd;
    border-color: var(--tech-blue);
}

.exam-option input {
    margin-right: 10px;
}

/* 人员卡片 */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.staff-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.staff-card .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 3px solid var(--bg-light);
}

.staff-card .name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.staff-card .position {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 设备展示 */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

/* 筛选栏 */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 10px 0 20px;
}

.filter-bar .btn {
    border-radius: 20px;
    font-size: 0.85rem;
    padding: 5px 16px;
}

/* 底部 */
.site-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.8);
}

.site-footer h5, .site-footer h6 {
    color: #fff;
    margin-bottom: 12px;
}

.site-footer a {
    color: rgba(255,255,255,0.7);
}

.site-footer a:hover {
    color: #fff;
}

/* 响应式 */
@media (max-width: 768px) {
    .site-header-title {
        font-size: 1.1rem;
    }
    .site-header-subtitle {
        font-size: 0.72rem;
    }
    .site-header-login {
        position: static;
        transform: none;
        margin-top: 8px;
    }
    .site-header .container-fluid {
        flex-direction: column;
        text-align: center;
    }
    .menu-category-header h1 {
        font-size: 1.4rem;
    }
    .page-header h1 {
        font-size: 1.5rem;
    }
    .process-flow {
        flex-direction: column;
    }
    .process-arrow {
        transform: rotate(90deg);
    }
    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .equipment-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== 首页新版样式 ===== */

/* Hero 区域 */
.home-hero {
    position: relative;
    height: 50vh;
    min-height: 340px;
    background: linear-gradient(135deg, #001a33 0%, #003366 30%, #0066cc 70%, #004499 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(0,102,204,0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(51,153,255,0.2) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 6px;
    margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 10px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 功能导航区 */
.home-nav-section {
    padding: 60px 0 80px;
    background: var(--bg-light);
    margin-top: -40px;
    position: relative;
    z-index: 2;
    border-radius: 40px 40px 0 0;
}

.home-nav-card {
    display: block;
    background: #fff;
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.04);
    height: 100%;
}

.home-nav-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,102,204,0.15);
    color: inherit;
}

.home-nav-card .card-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: var(--card-color, #0066cc);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.35s;
}

.home-nav-card:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 24px rgba(0,102,204,0.3);
}

.home-nav-card .card-icon i {
    font-size: 1.8rem;
    color: #fff;
}

.home-nav-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.home-nav-card p {
    font-size: 0.88rem;
    color: #888;
    margin: 0;
    line-height: 1.5;
}

/* 响应式 */
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; letter-spacing: 3px; }
    .hero-subtitle { font-size: 1.1rem; letter-spacing: 4px; }
    .home-hero { height: 35vh; min-height: 240px; }
    .home-nav-section { padding: 40px 0 50px; margin-top: -20px; border-radius: 20px 20px 0 0; }
    .home-nav-card { padding: 28px 16px; }
    .home-nav-card .card-icon { width: 56px; height: 56px; border-radius: 14px; }
    .home-nav-card .card-icon i { font-size: 1.4rem; }
}

/* ===== 修复hover按钮可见性 (改动4) ===== */
.home-nav-card:hover h3 {
    color: #fff;
}

.home-nav-card:hover p {
    color: rgba(255,255,255,0.85);
}

.home-nav-card:hover .card-icon {
    background: rgba(255,255,255,0.2) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* 保证卡片hover时背景色变化 */
.home-nav-card:hover {
    background: var(--card-color, #0066cc);
    color: #fff;
}

/* ===== 导览地图快捷入口 (改动5) ===== */
.tour-entry-section {
    padding: 0 0 60px;
    background: var(--bg-light);
}

.tour-entry-card {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0066cc 0%, #3399ff 50%, #0088cc 100%);
    border-radius: 16px;
    padding: 28px 36px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(0,102,204,0.25);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tour-entry-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.tour-entry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,102,204,0.35);
    color: #fff;
}

.tour-entry-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 24px;
    flex-shrink: 0;
}

.tour-entry-icon i {
    font-size: 1.6rem;
}

.tour-entry-text {
    flex: 1;
}

.tour-entry-text h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.tour-entry-text p {
    font-size: 0.9rem;
    opacity: 0.85;
    margin: 0;
}

.tour-entry-arrow {
    font-size: 1.2rem;
    opacity: 0.7;
    transition: transform 0.3s;
}

.tour-entry-card:hover .tour-entry-arrow {
    transform: translateX(6px);
    opacity: 1;
}

/* ===== UI美化 (改动9) ===== */

/* Hero区域渐变动画 */
.home-hero {
    background: linear-gradient(135deg, #001a33 0%, #003366 30%, #0066cc 70%, #004499 100%);
    background-size: 400% 400%;
    animation: heroGradient 15s ease infinite;
}

@keyframes heroGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 页面内容淡入动画 */
#mainContent {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 卡片hover效果增强 */
.card-hover {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}

/* 详情页排版优化 */
.detail-page .content-body {
    line-height: 2;
    font-size: 1.02rem;
}

.detail-page .content-body p {
    margin-bottom: 1.2em;
}

.detail-page .content-body img {
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    margin: 20px 0;
}

.detail-page .content-body h2 {
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(0,102,204,0.1);
}

/* 页脚美化 */
.site-footer {
    background: linear-gradient(135deg, #001a33 0%, #003366 100%);
    color: rgba(255,255,255,0.8);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
}

/* 考试选项按钮样式 */
.exam-option-btn {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    margin: 8px 0;
    border-radius: 12px;
    border: 2px solid #e8edf2;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #fff;
}

.exam-option-btn:hover {
    border-color: var(--primary, #0066cc);
    background: #f0f7ff;
    transform: translateX(4px);
}

.exam-option-btn.selected {
    border-color: var(--primary, #0066cc);
    background: #e3f2fd;
    box-shadow: 0 2px 8px rgba(0,102,204,0.15);
}

.exam-option-btn .option-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-light, #f5f7fa);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary, #0066cc);
    margin-right: 14px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.exam-option-btn.selected .option-label {
    background: var(--primary, #0066cc);
    color: #fff;
}

.exam-option-btn .option-text {
    font-size: 0.95rem;
    color: var(--text-dark, #333);
}

/* 考试倒计时闪烁 */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 响应式补充 */
@media (max-width: 768px) {
    .tour-entry-card {
        padding: 20px;
    }
    .tour-entry-icon {
        width: 48px;
        height: 48px;
        margin-right: 16px;
    }
    .tour-entry-icon i {
        font-size: 1.2rem;
    }
    .tour-entry-text h3 {
        font-size: 1rem;
    }
    .exam-option-btn {
        padding: 10px 14px;
    }
}

/* ===== v7.2 新增样式 ===== */

/* 全局导航按钮栏 */
.global-nav-bar {
    padding: 12px 0;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
}

.global-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--primary, #0066cc);
    border: 2px solid var(--primary, #0066cc);
    border-radius: 50px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,102,204,0.1);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.global-nav-btn:hover {
    background: var(--primary, #0066cc);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,102,204,0.3);
    transform: translateY(-2px);
    text-decoration: none;
}

.global-nav-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0,102,204,0.2);
}

.global-nav-btn i {
    font-size: 1.1rem;
}

/* 文章列表区域 */
.menu-articles-section {
    padding: 0 0 60px;
    background: var(--bg-light, #f5f7fa);
}

.menu-articles-heading {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary, #0066cc);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(0,102,204,0.15);
}

.menu-articles-heading i {
    opacity: 0.7;
}

.menu-articles-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 文章卡片 - 通用 */
.article-card {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.04);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,102,204,0.12);
    text-decoration: none;
    color: inherit;
}

/* 横向卡片（有封面图） */
.article-card--horizontal {
    flex-direction: row;
    align-items: stretch;
}

.article-card-image {
    width: 240px;
    min-height: 160px;
    flex-shrink: 0;
    overflow: hidden;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card--horizontal:hover .article-card-image img {
    transform: scale(1.05);
}

/* 简洁列表卡片（无封面图） */
.article-card--simple {
    flex-direction: row;
    align-items: center;
    padding: 16px 20px;
}

.article-card--simple .article-card-body {
    flex: 1;
}

.article-card-arrow {
    color: #ccc;
    font-size: 0.9rem;
    padding-left: 16px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.article-card--simple:hover .article-card-arrow {
    color: var(--primary, #0066cc);
    transform: translateX(4px);
}

/* 文章卡片内容 */
.article-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.article-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.article-card--simple .article-card-title {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.article-card:hover .article-card-title {
    color: var(--primary, #0066cc);
}

.article-card-summary {
    font-size: 0.88rem;
    color: #888;
    line-height: 1.6;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
    color: #aaa;
}

.article-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 置顶徽章 */
.article-top-badge {
    display: inline-flex;
    align-items: center;
    background: #fff3e0;
    color: #e65100;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 6px;
    vertical-align: middle;
}

/* 响应式 - 文章卡片 */
@media (max-width: 768px) {
    .global-nav-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .article-card--horizontal {
        flex-direction: column;
    }

    .article-card-image {
        width: 100%;
        min-height: 180px;
        max-height: 200px;
    }

    .article-card-body {
        padding: 16px;
    }

    .article-card-title {
        font-size: 1rem;
    }

    .article-card--simple {
        padding: 12px 16px;
    }

    .menu-articles-heading {
        font-size: 1.1rem;
    }
}
