/* =====================================================================
   LoongCMS 企业展示站 · 科技感主题
   ===================================================================== */
:root {
    --bg: #05070f;
    --bg-2: #0a101f;
    --panel: rgba(255, 255, 255, .035);
    --panel-2: rgba(255, 255, 255, .06);
    --line: rgba(148, 178, 255, .14);
    --accent: #22d3ee;
    --accent-2: #6366f1;
    --accent-3: #38bdf8;
    --text: #e8eefc;
    --muted: #93a1b8;
    --radius: 14px;
}

* {margin: 0; padding: 0; box-sizing: border-box;}
html {scroll-behavior: smooth;}
body {
    background: var(--bg);
    color: var(--text);
    font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(60% 40% at 85% -10%, rgba(34, 211, 238, .14), transparent 60%),
        radial-gradient(50% 45% at -10% 40%, rgba(99, 102, 241, .12), transparent 60%),
        radial-gradient(45% 40% at 60% 110%, rgba(56, 189, 248, .08), transparent 60%),
        var(--bg);
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(148, 178, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 178, 255, .04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.7), rgba(0,0,0,.15) 60%, rgba(0,0,0,.4));
    pointer-events: none;
}
a {color: inherit; text-decoration: none; transition: color .25s;}
img {max-width: 100%; display: block;}
ul {list-style: none;}

.container {max-width: 1200px; margin: 0 auto; padding: 0 24px;}

/* ---------------- 顶部导航 ---------------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(6, 10, 22, .72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}
.site-header .bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .5px;
}
.logo .mark {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: flex; align-items: center; justify-content: center;
    font-size: 17px;
    color: #fff;
    box-shadow: 0 0 18px rgba(34, 211, 238, .45);
    font-style: italic;
}
.logo em {font-style: normal; background: linear-gradient(90deg, #7dd3fc, #22d3ee 45%, #818cf8); -webkit-background-clip: text; background-clip: text; color: transparent;}
.site-nav {display: flex; align-items: center; gap: 6px;}
.site-nav a {
    position: relative;
    display: block;
    padding: 8px 16px;
    font-size: 15px;
    color: var(--muted);
    border-radius: 8px;
}
.site-nav a:hover, .site-nav a.on {color: #fff; background: var(--panel-2);}
.site-nav a.on::after {
    content: "";
    position: absolute;
    left: 16px; right: 16px; bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 8px var(--accent);
}
.nav-toggle {display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 6px 12px; font-size: 18px; cursor: pointer;}

/* ---------------- Hero 轮播 ---------------- */
.hero {
    position: relative;
    margin-top: 68px;
    height: 620px;
    overflow: hidden;
}
.hero-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}
.hero-item.active {opacity: 1; z-index: 1;}
.hero-item::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(4, 7, 16, .88) 22%, rgba(4, 7, 16, .35) 65%, rgba(4, 7, 16, .2));
}
.hero-item::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 160px;
    background: linear-gradient(180deg, transparent, var(--bg));
}
.hero-inner {position: relative; z-index: 2; max-width: 760px;}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-bottom: 22px;
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--accent);
    border: 1px solid rgba(34, 211, 238, .4);
    border-radius: 999px;
    background: rgba(34, 211, 238, .08);
}
.hero-tag::before {content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 1.6s infinite;}
.hero-item h2 {
    font-size: 52px;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 18px;
    background: linear-gradient(92deg, #ffffff 30%, #7dd3fc 70%, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-item p {font-size: 18px; color: var(--muted); max-width: 560px; margin-bottom: 34px;}
.hero-cta {display: flex; gap: 16px;}
.hero-dots {
    position: absolute;
    left: 0; right: 0; bottom: 34px;
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.hero-dots span {
    width: 34px; height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .18);
    cursor: pointer;
    transition: all .3s;
}
.hero-dots span.active {background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 10px rgba(34, 211, 238, .8);}

/* ---------------- 按钮 ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: all .3s;
}
.btn-primary {
    color: #04121a;
    font-weight: 700;
    background: linear-gradient(135deg, #67e8f9, #22d3ee 50%, #818cf8);
    box-shadow: 0 8px 26px rgba(34, 211, 238, .35);
}
.btn-primary:hover {transform: translateY(-2px); box-shadow: 0 12px 34px rgba(34, 211, 238, .5); color: #04121a;}
.btn-ghost {
    color: var(--text);
    border: 1px solid var(--line);
    background: var(--panel);
}
.btn-ghost:hover {border-color: var(--accent); color: var(--accent); box-shadow: 0 0 18px rgba(34, 211, 238, .18);}

/* ---------------- 区块 ---------------- */
.section {padding: 90px 0;}
.section-head {text-align: center; margin-bottom: 54px;}
.section-head .en {
    font-size: 13px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}
.section-head h3 {
    font-size: 34px;
    font-weight: 800;
    background: linear-gradient(90deg, #fff, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.section-head .line {
    width: 64px; height: 3px;
    margin: 18px auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 12px rgba(34, 211, 238, .7);
}
.section-head p {margin-top: 16px; color: var(--muted);}

/* ---------------- 卡片 ---------------- */
.grid {display: grid; gap: 24px;}
.grid-3 {grid-template-columns: repeat(3, 1fr);}
.grid-4 {grid-template-columns: repeat(4, 1fr);}
.grid-2 {grid-template-columns: repeat(2, 1fr);}
.card {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .35s, border-color .35s, box-shadow .35s;
}
.card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, .55);
    box-shadow: 0 18px 40px rgba(2, 8, 20, .6), 0 0 24px rgba(34, 211, 238, .12);
}
.card-img {position: relative; aspect-ratio: 4 / 3; overflow: hidden;}
.card-img img {width: 100%; height: 100%; object-fit: cover; transition: transform .6s;}
.card:hover .card-img img {transform: scale(1.06);}
.card-img::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(5, 7, 15, .82));
}
.card-body {padding: 20px 22px 24px;}
.card-body h4 {font-size: 17px; margin-bottom: 8px; color: #fff;}
.card-body h4 a:hover {color: var(--accent);}
.card-body p {font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;}
.card-meta {display: flex; align-items: center; gap: 14px; margin-top: 12px; font-size: 12.5px; color: #64748b;}
.card-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 13.5px;
    color: var(--accent);
}
.card-more::after {content: "→"; transition: transform .3s;}
.card:hover .card-more::after {transform: translateX(5px);}

/* ---------------- 关于我们区块 ---------------- */
.about {display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;}
.about-txt h3 {font-size: 30px; font-weight: 800; margin-bottom: 20px;}
.about-txt h3 span {color: var(--accent);}
.about-txt .desc {color: var(--muted); margin-bottom: 18px; text-align: justify;}
.about-txt .desc p {margin-bottom: 12px;}
.about-features {display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 30px;}
.about-features li {
    padding: 12px 14px;
    font-size: 13.5px;
    color: var(--text);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
}
.about-features li b {display: block; color: var(--accent); font-size: 15px; margin-bottom: 2px;}
.about-img {position: relative;}
.about-img img {border-radius: var(--radius); border: 1px solid var(--line);}
.about-img::before {
    content: "";
    position: absolute;
    inset: -22px 22px 22px -22px;
    border: 1px solid rgba(34, 211, 238, .3);
    border-radius: var(--radius);
    z-index: -1;
}

/* ---------------- 统计条 ---------------- */
.stats {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, rgba(34, 211, 238, .05), rgba(99, 102, 241, .08));
}
.stats .grid {padding: 44px 0;}
.stat {text-align: center;}
.stat b {
    display: inline-block;
    font-size: 44px;
    font-weight: 800;
    background: linear-gradient(180deg, #fff, #67e8f9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat b + span {font-size: 18px; color: var(--accent); font-weight: 700; margin-left: 2px;}
.stat p {color: var(--muted); font-size: 14px; margin-top: 4px;}

/* ---------------- 新闻行 ---------------- */
.news-row {
    display: flex;
    gap: 26px;
    padding: 24px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: all .3s;
    margin-bottom: 20px;
}
.news-row:hover {border-color: rgba(34, 211, 238, .5); transform: translateX(6px);}
.news-row .thumb {flex: 0 0 220px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden;}
.news-row .thumb img {width: 100%; height: 100%; object-fit: cover;}
.news-row .info h4 {font-size: 18px; margin-bottom: 8px;}
.news-row .info h4 a:hover {color: var(--accent);}
.news-row .info p {color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;}
.news-row .date {
    flex: 0 0 76px;
    text-align: center;
    padding: 10px 0;
    border-right: 1px solid var(--line);
}
.news-row .date b {display: block; font-size: 26px; color: var(--accent);}
.news-row .date span {font-size: 12px; color: #64748b;}

/* ---------------- 列表/详情页横幅 ---------------- */
.page-banner {
    margin-top: 68px;
    padding: 92px 0 66px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(50% 90% at 50% -20%, rgba(34, 211, 238, .16), transparent 65%);
}
.page-banner h2 {font-size: 36px; font-weight: 800;}
.page-banner .en {letter-spacing: 4px; color: var(--accent); font-size: 13px; text-transform: uppercase; margin-top: 8px;}
.breadcrumb {margin-top: 14px; font-size: 13px; color: var(--muted);}
.breadcrumb a {color: var(--muted);}
.breadcrumb a:hover {color: var(--accent);}
.crumbs {
    margin-top: 88px;
    padding: 18px 0 0;
    font-size: 13px;
    color: var(--muted);
}
.crumbs a:hover {color: var(--accent);}

/* ---------------- 单页/详情正文 ---------------- */
.article-wrap {max-width: 900px; margin: 0 auto;}
.rich {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 42px 48px;
    color: #c7d2e5;
}
.rich h3 {color: #fff; margin: 26px 0 12px; padding-left: 12px; border-left: 3px solid var(--accent);}
.rich p {margin-bottom: 14px;}
.rich ul {margin: 0 0 16px 4px;}
.rich li {position: relative; padding-left: 20px; margin-bottom: 8px;}
.rich li::before {content: ""; position: absolute; left: 0; top: 11px; width: 7px; height: 7px; border-radius: 2px; background: linear-gradient(135deg, var(--accent), var(--accent-2));}
.rich a {color: var(--accent); text-decoration: underline;}
.detail-meta {display: flex; gap: 22px; margin: 8px 0 26px; font-size: 13.5px; color: #64748b;}
.detail-title {font-size: 30px; font-weight: 800; line-height: 1.4;}
.detail-cover {border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 28px;}
.back-line {text-align: center; margin: 40px 0 0;}

/* ---------------- 联系我们 ---------------- */
.contact-cards {display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 46px;}
.contact-card {
    text-align: center;
    padding: 38px 24px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: all .3s;
}
.contact-card:hover {border-color: rgba(34, 211, 238, .55); transform: translateY(-5px);}
.contact-card .ico {
    width: 58px; height: 58px;
    margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    border-radius: 50%;
    color: var(--accent);
    background: rgba(34, 211, 238, .1);
    border: 1px solid rgba(34, 211, 238, .35);
}
.contact-card h4 {font-size: 16px; margin-bottom: 6px; color: #fff;}
.contact-card p {color: var(--muted); font-size: 14.5px;}

/* ---------------- 留言表单 ---------------- */
.msg-form {
    max-width: 760px;
    margin: 0 auto;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 42px 46px;
}
.msg-form .row {display: grid; grid-template-columns: 1fr 1fr; gap: 22px;}
.form-item {margin-bottom: 22px;}
.form-item label {display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px;}
.form-item label i {color: #f87171; font-style: normal; margin-right: 3px;}
.form-item input, .form-item textarea {
    width: 100%;
    padding: 13px 16px;
    font-size: 14.5px;
    color: var(--text);
    background: rgba(4, 8, 18, .6);
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: none;
    transition: all .25s;
    font-family: inherit;
    resize: vertical;
}
.form-item input:focus, .form-item textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, .12);
}
.form-item textarea {min-height: 130px;}
.hp {position: absolute; left: -9999px;}

/* ---------------- Toast ---------------- */
.toast {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 999;
    padding: 13px 26px;
    border-radius: 10px;
    font-size: 14.5px;
    opacity: 0;
    pointer-events: none;
    transition: all .35s;
}
.toast.show {opacity: 1; transform: translateX(-50%) translateY(0);}
.toast.ok {color: #052e1c; background: linear-gradient(135deg, #6ee7b7, #34d399); box-shadow: 0 10px 30px rgba(52, 211, 153, .4);}
.toast.err {color: #2b0703; background: linear-gradient(135deg, #fda4af, #fb7185); box-shadow: 0 10px 30px rgba(251, 113, 133, .4);}

/* ---------------- CTA ---------------- */
.cta {
    position: relative;
    text-align: center;
    padding: 74px 30px;
    border-top: 1px solid var(--line);
    background:
        radial-gradient(45% 120% at 50% 120%, rgba(99, 102, 241, .18), transparent 70%),
        radial-gradient(45% 120% at 50% -30%, rgba(34, 211, 238, .14), transparent 70%);
}
.cta h3 {font-size: 32px; font-weight: 800; margin-bottom: 12px;}
.cta p {color: var(--muted); margin-bottom: 30px;}

/* ---------------- 页脚 ---------------- */
.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(3, 5, 12, .85);
    padding: 64px 0 0;
}
.footer-grid {display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px;}
.footer-grid h5 {font-size: 15px; color: #fff; margin-bottom: 18px;}
.footer-grid p, .footer-grid li {font-size: 13.5px; color: var(--muted); margin-bottom: 10px;}
.footer-grid li a:hover {color: var(--accent);}
.footer-grid .about-logo {font-size: 20px; font-weight: 800; margin-bottom: 14px;}
.copyright {
    border-top: 1px solid var(--line);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

/* ---------------- 分页 ---------------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0 10px;
    list-style: none;
}
.pagination li a, .pagination li span {
    display: block;
    min-width: 40px;
    padding: 9px 14px;
    text-align: center;
    font-size: 14px;
    color: var(--muted);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}
.pagination li a:hover {color: var(--accent); border-color: var(--accent);}
.pagination li.active span {
    color: #04121a;
    font-weight: 700;
    background: linear-gradient(135deg, #67e8f9, #818cf8);
    border-color: transparent;
}
.pagination li.disabled span {opacity: .4;}

/* ---------------- 动画 ---------------- */
@keyframes pulse {
    0%, 100% {opacity: 1;}
    50% {opacity: .35;}
}
@keyframes floatY {
    0%, 100% {transform: translateY(0);}
    50% {transform: translateY(-14px);}
}
.reveal {opacity: 0; transform: translateY(28px); transition: all .8s cubic-bezier(.2, .7, .3, 1);}
.reveal.in {opacity: 1; transform: none;}

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
    .grid-4 {grid-template-columns: repeat(2, 1fr);}
    .grid-3 {grid-template-columns: repeat(2, 1fr);}
    .about {grid-template-columns: 1fr;}
    .footer-grid {grid-template-columns: 1fr 1fr;}
    .hero-item h2 {font-size: 36px;}
    .nav-toggle {display: block;}
    .site-nav {
        display: none;
        position: absolute;
        top: 68px; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        background: rgba(6, 10, 22, .97);
        border-bottom: 1px solid var(--line);
        padding: 10px 16px 16px;
    }
    .site-nav.open {display: flex;}
    .news-row {flex-direction: column;}
    .news-row .date {border-right: none; text-align: left; flex: none;}
}
@media (max-width: 620px) {
    .grid-3, .grid-4, .grid-2, .msg-form .row, .contact-cards {grid-template-columns: 1fr;}
    .hero {height: 520px;}
    .section {padding: 60px 0;}
    .rich {padding: 26px 20px;}
    .msg-form {padding: 26px 20px;}
    .footer-grid {grid-template-columns: 1fr;}
}

/* 文章页关联工具入口 */
.tool-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 16px 0 4px; padding: 14px 18px; background: #f2f7ff; border: 1px solid #d8e6ff; border-radius: 8px; }
.tool-cta-label { font-size: 13px; color: #7a828e; }
.tool-cta a { color: var(--primary, #2f6fed); text-decoration: none; font-size: 16px; }
.tool-cta a:hover { text-decoration: underline; }
.tool-cta-desc { color: #7a828e; font-size: 13px; flex: 1 1 200px; }
.tool-cta-btn { margin-left: auto; }
