﻿/* ==========================================================================
   BasicCMS - 科技企业风主题（tech）
   --------------------------------------------------------------------------
   深色玻璃拟态导航 + 蓝紫渐变 Hero + 卡片流微动效。
   依赖 base.css 的结构，负责配色 / 圆角 / 阴影 / 动效。
   ========================================================================== */

body.theme-tech {
    --color-primary: #4c6fff;
    --color-accent: #7c3aed;
    --color-text: #1f2937;
    --color-muted: #6b7280;
    --color-bg: #f5f7fb;
    --color-surface: #ffffff;
    --color-border: #e6e9f2;
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow: 0 6px 22px rgba(24, 39, 75, .06);
    --shadow-hover: 0 18px 40px rgba(24, 39, 75, .14);
    --font-heading: var(--font-body);
    --container: 1220px;
    --sidebar: 320px;
    --transition: .22s cubic-bezier(.2, .8, .2, 1);
    background: var(--color-bg);
}

.theme-tech a:hover { color: var(--color-primary); }

/* ------------------------------ 顶部信息条 ------------------------------ */
.tech-topbar {
    background: #0f172a;
    color: rgba(255, 255, 255, .72);
    font-size: 12.5px;
    line-height: 38px;
}

.tech-topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tech-topbar-date { display: inline-flex; align-items: center; gap: 8px; }

.tech-topbar-date .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .18);
}

.tech-topbar-links { display: flex; align-items: center; gap: 16px; }
.tech-topbar-links a { color: rgba(255, 255, 255, .72); }
.tech-topbar-links a:hover { color: #fff; }

/* ------------------------------ 玻璃拟态导航 ------------------------------ */
.tech-nav {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(15, 23, 42, .72);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    transition: background var(--transition), box-shadow var(--transition);
}

.tech-nav.is-solid {
    background: rgba(15, 23, 42, .92);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .28);
}

.tech-nav .container {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 66px;
}

.tech-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.tech-brand:hover { color: #fff; }
.tech-brand img { height: 34px; width: auto; }

.tech-brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg, #4c6fff, #7c3aed);
    box-shadow: 0 6px 16px rgba(76, 111, 255, .45);
    position: relative;
}

.tech-brand-mark::after {
    content: '';
    position: absolute;
    inset: 9px;
    border-radius: 4px;
    background: #fff;
    opacity: .92;
}

.tech-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.tech-menu a {
    position: relative;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 14.5px;
    color: rgba(255, 255, 255, .78);
    transition: color var(--transition), background var(--transition);
}

.tech-menu a:hover { color: #fff; background: rgba(255, 255, 255, .1); }

.theme-tech .tech-menu a.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(76, 111, 255, .95), rgba(124, 58, 237, .95));
    box-shadow: 0 8px 20px rgba(76, 111, 255, .35);
}

/* ------------------------------- Hero 区 ------------------------------- */
.tech-hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0 84px;
    background: linear-gradient(160deg, #101828 0%, #16255b 46%, #2b1b6b 100%);
    color: #fff;
}

.tech-hero-bg { position: absolute; inset: 0; overflow: hidden; }

.tech-hero-bg i {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .55;
    animation: techFloat 14s ease-in-out infinite;
}

.tech-hero-bg i:nth-child(1) { width: 380px; height: 380px; background: #4c6fff; top: -120px; left: -60px; }
.tech-hero-bg i:nth-child(2) { width: 320px; height: 320px; background: #7c3aed; bottom: -140px; left: 38%; animation-delay: -4s; }
.tech-hero-bg i:nth-child(3) { width: 260px; height: 260px; background: #22d3ee; top: -60px; right: -40px; animation-delay: -8s; opacity: .38; }

@keyframes techFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(24px, -28px, 0) scale(1.08); }
}

.tech-hero .container { position: relative; z-index: 2; }

.tech-hero-inner { max-width: 720px; }

.tech-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    color: #c7d2fe;
    background: rgba(76, 111, 255, .16);
    border: 1px solid rgba(147, 179, 255, .28);
}

.tech-hero-tag .pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, .22);
    animation: techPulse 1.8s infinite;
}

@keyframes techPulse {
    0% { box-shadow: 0 0 0 0 rgba(96, 165, 250, .5); }
    70% { box-shadow: 0 0 0 10px rgba(96, 165, 250, 0); }
    100% { box-shadow: 0 0 0 0 rgba(96, 165, 250, 0); }
}

.tech-hero h1 {
    margin: 18px 0 14px;
    font-size: 40px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -.5px;
    color: #fff;
    background: linear-gradient(120deg, #ffffff 20%, #a5b4fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tech-hero-desc {
    font-size: 16px;
    line-height: 1.9;
    color: rgba(226, 232, 240, .86);
    margin-bottom: 22px;
}

.tech-hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }

.tech-hero-chips a {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 999px;
    color: #e0e7ff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    transition: transform var(--transition), background var(--transition);
}

.tech-hero-chips a:hover {
    transform: translateY(-2px);
    color: #fff;
    background: rgba(76, 111, 255, .3);
}

.tech-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.tech-btn {
    display: inline-flex;
    align-items: center;
    padding: 11px 26px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 600;
    transition: transform var(--transition), box-shadow var(--transition);
}

.tech-btn.primary {
    color: #fff;
    background: linear-gradient(135deg, #4c6fff, #7c3aed);
    box-shadow: 0 12px 28px rgba(76, 111, 255, .38);
}

.tech-btn.ghost {
    color: #e0e7ff;
    border: 1px solid rgba(199, 210, 254, .35);
    background: rgba(255, 255, 255, .06);
}

.tech-btn:hover { transform: translateY(-2px); color: #fff; }
.tech-btn.ghost:hover { background: rgba(255, 255, 255, .12); }

.tech-hero-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 46px;
}

.tech-mini-card {
    position: relative;
    display: block;
    padding: 18px 20px;
    border-radius: 16px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
    overflow: hidden;
}

.tech-mini-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, #4c6fff, #a855f7);
}

.tech-mini-card:hover {
    transform: translateY(-4px);
    color: #fff;
    background: rgba(255, 255, 255, .14);
    box-shadow: 0 18px 36px rgba(2, 6, 23, .35);
}

.tech-mini-index {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: rgba(199, 210, 254, .55);
    letter-spacing: 1px;
}

.tech-mini-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 6px 0 10px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
}

.tech-mini-meta { font-size: 12px; color: rgba(226, 232, 240, .6); }

/* ------------------------------- 主体内容 ------------------------------- */
.tech-main { padding: 34px 0 46px; }

.theme-tech .card,
.theme-tech .sidebar-section,
.theme-tech .top-news {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.theme-tech .top-news:hover,
.theme-tech .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.theme-tech .card-header {
    background: linear-gradient(180deg, #fbfcff, #ffffff);
    border-bottom: 1px solid var(--color-border);
    padding: 15px 20px;
}

.theme-tech .card-header h3 { font-size: 16.5px; }

.theme-tech .card-header h3::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 15px;
    margin-right: 8px;
    border-radius: 2px;
    vertical-align: -2px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
}

.theme-tech .sidebar-section .section-header {
    padding: 14px 18px;
    color: #fff;
    border-bottom: 0;
    background: linear-gradient(135deg, #4c6fff, #7c3aed);
    font-size: 15px;
}

.theme-tech .sidebar-section .section-body { padding: 15px 18px; }

.theme-tech .news-list li { padding: 12px 0; }

/* 头条容器内的列表与头条标题区（24px）对齐 */
.theme-tech .top-news .news-list { padding: 2px 24px 12px; }

.theme-tech .news-list li > a:hover { color: var(--color-primary); }

.theme-tech .news-list .category-tag {
    background: linear-gradient(135deg, rgba(76, 111, 255, .14), rgba(124, 58, 237, .14));
    color: var(--color-primary);
    border-radius: 999px;
    font-weight: 600;
}

.theme-tech .news-list .bullet { background: linear-gradient(135deg, #4c6fff, #7c3aed); }

.theme-tech .top-news-item { padding: 24px 24px 18px; }

.theme-tech .top-news-item h3 { font-size: 21px; }
.theme-tech .top-news-item h3 a:hover { color: var(--color-primary); }

.theme-tech .scroll-notice {
    border-radius: var(--radius);
    border-left: 4px solid var(--color-primary);
    box-shadow: var(--shadow);
}

.theme-tech .scroll-notice .notice-icon { background: linear-gradient(135deg, #4c6fff, #7c3aed); }

.theme-tech .breadcrumb-nav {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
}

.theme-tech .article-detail { border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; }
.theme-tech .article-title { font-size: 27px; letter-spacing: -.2px; }
.theme-tech .article-subtitle { border-radius: 0 10px 10px 0; }

.theme-tech .article-subtitle,
.theme-tech .article-body blockquote { border-left: 3px solid var(--color-primary); }

.theme-tech .link-list a { border-radius: 999px; }

.theme-tech .link-list a:hover {
    background: linear-gradient(135deg, #4c6fff, #7c3aed);
    border-color: transparent;
}

.theme-tech .btn-print { background: linear-gradient(135deg, #4c6fff, #7c3aed); border-radius: 999px; }
.theme-tech .btn-close { border-radius: 999px; }

.theme-tech .hot-rank li.rank-top .rank { background: linear-gradient(135deg, #4c6fff, #7c3aed); }
.theme-tech .hot-rank .rank { border-radius: 6px; }

.theme-tech .empty-state { border-radius: var(--radius); }

/* ------------------------------- 页脚 ------------------------------- */
.tech-footer {
    margin-top: 40px;
    padding: 54px 0 26px;
    color: rgba(255, 255, 255, .66);
    background: linear-gradient(180deg, #0f172a 0%, #111c3a 100%);
    position: relative;
    overflow: hidden;
}

.tech-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4c6fff, #a855f7, #22d3ee);
}

.tech-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 32px;
}

.tech-footer h5 { color: #fff; font-size: 18px; margin-bottom: 10px; }
.tech-footer h6 { color: #fff; font-size: 14px; margin-bottom: 14px; letter-spacing: .5px; }
.tech-footer ul { display: grid; gap: 9px; }
.tech-footer a { color: rgba(255, 255, 255, .66); font-size: 13.5px; }
.tech-footer a:hover { color: #fff; }
.tech-footer p { font-size: 13.5px; line-height: 1.9; }

.tech-footer-bottom {
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12.5px;
}

/* ------------------------------ 响应式 ------------------------------ */
@media (max-width: 992px) {
    .tech-nav .container { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; }
    .tech-menu {
        width: 100%;
        margin-left: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding-top: 8px;
    }
    .tech-menu a { border-radius: 10px; }
    .tech-hero { padding: 52px 0 56px; }
    .tech-hero h1 { font-size: 30px; }
    .tech-hero-cards { grid-template-columns: 1fr; }
    .tech-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .tech-nav .container { gap: 12px; }
    .tech-hero h1 { font-size: 26px; }
    .tech-hero-desc { font-size: 14.5px; }
    .tech-footer-grid { grid-template-columns: 1fr; gap: 22px; }
    .tech-footer-bottom { flex-direction: column; }
}
