/* ==========================================================================
   海心创新科技 - 站点样式（参考 kansaas.cn 设计风格）
   包含：首页全部区块 + 内页（栏目/内容/搜索/标签/专题）通用样式
   ========================================================================== */

:root {
    --primary: #0a0a0a;
    --accent: #00f0ff;
    --accent2: #ff006e;
    --text: #e0e0e0;
    --text-dim: #888;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.05);
    --nav-height: 76px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

section[id],
div[id],
article[id] {
    scroll-margin-top: 92px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--primary);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    -webkit-tap-highlight-color: transparent;
}

img {
    border: 0;
}

/* 背景粒子动画画布 */
#canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ==========================================================================
   导航
   ========================================================================== */

.hx-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s;
}

.hx-nav.is-scrolled {
    background: rgba(10, 10, 10, 0.95);
}

.hx-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 5%;
    max-width: 1400px;
    margin: 0 auto;
    transition: padding 0.3s;
}

.hx-nav.is-scrolled .hx-nav-inner {
    padding-top: 12px;
    padding-bottom: 12px;
}

.hx-logo {
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    text-decoration: none;
    white-space: nowrap;
}

.hx-nav-links {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.4vw, 36px);
    list-style: none;
}

.hx-nav-links > li {
    position: relative;
}

.hx-nav-links > li > a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    position: relative;
    display: inline-block;
    padding: 6px 0;
    white-space: nowrap;
}

.hx-nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.hx-nav-links > li > a:hover {
    color: var(--accent);
}

.hx-nav-links > li > a:hover::after {
    width: 100%;
}

.hx-nav-links .hx-caret {
    font-size: 0.7rem;
    margin-left: 3px;
    display: inline-block;
    transform: translateY(-1px);
}

/* 下拉菜单 */
.hx-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 170px;
    background: rgba(16, 16, 16, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 10px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.hx-has-dropdown:hover .hx-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.hx-dropdown a {
    display: block;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: all 0.25s;
    white-space: nowrap;
}

.hx-dropdown a:hover {
    background: rgba(0, 240, 255, 0.08);
    color: var(--accent);
}

.hx-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hx-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--card-bg);
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    flex: 0 0 auto;
}

.hx-icon-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.hx-menu-btn {
    display: none;
}

/* 搜索层 */
.hx-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 2000;
    padding: 24px;
}

.hx-search-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.hx-search-form {
    display: flex;
    width: min(640px, 92vw);
    gap: 12px;
}

.hx-search-form input {
    flex: 1;
    padding: 16px 26px;
    border-radius: 999px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.hx-search-form input::placeholder {
    color: #666;
}

.hx-search-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15);
}

.hx-search-form button {
    padding: 0 36px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #000;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: filter 0.3s;
    font-family: inherit;
}

.hx-search-form button:hover {
    filter: brightness(1.15);
}

.hx-search-close {
    position: absolute;
    top: 28px;
    right: 32px;
    font-size: 1.6rem;
    color: var(--text-dim);
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    transition: color 0.3s;
    font-family: inherit;
}

.hx-search-close:hover {
    color: var(--accent);
}

.hx-search-hot {
    color: var(--text-dim);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: min(640px, 92vw);
}

.hx-search-hot a {
    color: var(--text-dim);
    text-decoration: none;
    padding: 4px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    transition: all 0.3s;
    font-size: 0.8rem;
}

.hx-search-hot a:hover {
    color: var(--accent);
    border-color: rgba(0, 240, 255, 0.4);
}

/* 移动端抽屉菜单 */
.hx-mobile {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 86vw);
    background: rgba(12, 12, 12, 0.99);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 1900;
    overflow-y: auto;
    padding: 90px 24px 40px;
}

.hx-mobile.is-open {
    transform: none;
}

.hx-mobile ul {
    list-style: none;
}

.hx-mobile a {
    display: block;
    padding: 14px 4px;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 1rem;
    transition: color 0.3s;
}

.hx-mobile a:hover {
    color: var(--accent);
}

.hx-mobile .hx-mobile-sub a {
    padding: 10px 4px 10px 22px;
    color: var(--text-dim);
    font-size: 0.88rem;
}

.hx-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s;
    z-index: 1800;
}

.hx-mask.is-open {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   首页 Hero
   ========================================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 5%;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 50%, var(--accent2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: hxGlow 3s ease-in-out infinite;
}

@keyframes hxGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.hero-content .subtitle {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 5px;
}

/* ==========================================================================
   通用区块
   ========================================================================== */

.section {
    position: relative;
    z-index: 1;
    padding: 100px 5%;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 2px;
}

/* 服务 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(255, 0, 110, 0.1));
    opacity: 0;
    transition: opacity 0.4s;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 240, 255, 0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    position: relative;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #fff;
    position: relative;
}

.service-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.8;
    position: relative;
}

/* 案例 */
.cases-container {
    max-width: 1200px;
    margin: 0 auto;
}

.case-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
    padding: 40px;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--card-border);
}

.case-item:last-child {
    margin-bottom: 0;
}

.case-item:nth-child(even) {
    direction: rtl;
}

.case-item:nth-child(even) > * {
    direction: ltr;
}

.case-visual {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(255, 0, 110, 0.1));
    border-radius: 15px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.case-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #fff;
}

.case-info p {
    color: var(--text-dim);
    margin-bottom: 20px;
    line-height: 1.8;
}

.case-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    padding: 5px 15px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--accent);
}

/* 流程 */
.process-steps {
    display: flex;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    opacity: 0.3;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #000;
    margin: 0 auto 20px;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
}

.step h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #fff;
}

.step p {
    font-size: 0.85rem;
    color: var(--text-dim);
    padding: 0 10px;
}

/* 技术栈 */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.tech-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
}

.tech-item:hover {
    border-color: var(--accent);
    transform: scale(1.05);
}

.tech-item span {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.tech-item p {
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* 关于我们 */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-dim);
    line-height: 2;
    margin-bottom: 20px;
}

.company-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.info-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 30px;
    text-align: left;
}

.info-card h4 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1rem;
}

.info-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* 首页新闻资讯 */
.hx-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 26px;
    max-width: 1200px;
    margin: 0 auto;
}

.hx-news-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s;
    position: relative;
}

.hx-news-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 240, 255, 0.08);
}

.hx-news-img {
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(255, 0, 110, 0.12));
    display: block;
}

.hx-news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.hx-news-card:hover .hx-news-img img {
    transform: scale(1.06);
}

.hx-news-img--empty span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--accent);
    font-weight: 800;
    letter-spacing: 4px;
    font-size: 1.1rem;
}

.hx-news-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hx-news-meta {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.hx-news-title {
    font-size: 1.05rem;
    color: #fff;
    line-height: 1.55;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hx-news-card:hover .hx-news-title {
    color: var(--accent);
}

.hx-news-summary {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hx-news-more {
    text-align: center;
    margin-top: 48px;
}

.hx-btn {
    display: inline-block;
    padding: 13px 42px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #000;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.hx-btn:hover {
    filter: brightness(1.15);
    box-shadow: 0 12px 40px rgba(0, 240, 255, 0.25);
}

.hx-btn--ghost {
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(0, 240, 255, 0.4);
}

.hx-btn--ghost:hover {
    background: rgba(0, 240, 255, 0.08);
    box-shadow: none;
}

/* 联系 */
.contact-section {
    background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.02));
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s;
}

.contact-card:hover {
    border-color: var(--accent);
}

.contact-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.contact-card h4 {
    margin-bottom: 10px;
    color: #fff;
}

.contact-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.hx-footer {
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 5% 30px;
    position: relative;
    z-index: 1;
}

.hx-footer-content {
    max-width: 1200px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.hx-footer-brand h3 {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.hx-footer-brand p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.8;
}

.hx-footer-links h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1rem;
}

.hx-footer-links ul {
    list-style: none;
}

.hx-footer-links li {
    margin-bottom: 10px;
}

.hx-footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.hx-footer-links a:hover {
    color: var(--accent);
}

.hx-footer-links li.hx-footer-text {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.8;
}

.hx-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hx-footer-bottom p {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.hx-beian {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.hx-beian:hover {
    color: var(--accent);
}

.hx-beian-icon {
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    flex: 0 0 auto;
}

.hx-beian-icon::after {
    content: '备';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8px;
    color: #000;
    font-weight: bold;
}

/* 返回顶部 */
.hx-back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 1200;
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.25);
    border: none;
}

.hx-back-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.hx-back-top svg {
    display: block;
}

/* ==========================================================================
   内页通用
   ========================================================================== */

.hx-main {
    position: relative;
    z-index: 1;
    padding: 20px 5% 100px;
}

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

.hx-page-hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: calc(var(--nav-height) + 70px) 5% 30px;
}

.hx-page-hero h1 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 60%, var(--accent2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.hx-page-hero .hx-page-desc {
    color: var(--text-dim);
    font-size: 0.95rem;
    max-width: 720px;
    margin: 0 auto;
}

.hx-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.hx-breadcrumb a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s;
}

.hx-breadcrumb a:hover {
    color: var(--accent);
}

.hx-breadcrumb span.hx-sep {
    color: #444;
}

.hx-breadcrumb .hx-current {
    color: var(--accent);
}

/* 文章列表（栏目/搜索/标签/专题） */
.hx-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.hx-article-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s;
    display: flex;
    flex-direction: column;
}

.hx-article-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 240, 255, 0.08);
}

.hx-article-thumb {
    display: block;
    height: 190px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(255, 0, 110, 0.12));
}

.hx-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.hx-article-card:hover .hx-article-thumb img {
    transform: scale(1.06);
}

.hx-article-body {
    padding: 24px 26px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hx-article-title {
    font-size: 1.15rem;
    line-height: 1.5;
    margin-bottom: 12px;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hx-article-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.hx-article-title a:hover {
    color: var(--accent);
}

.hx-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    color: var(--text-dim);
    font-size: 0.82rem;
    margin-bottom: 12px;
}

.hx-article-meta a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s;
}

.hx-article-meta a:hover {
    color: var(--accent);
}

.hx-article-summary {
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hx-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.hx-article-tags a {
    padding: 4px 14px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s;
}

.hx-article-tags a:hover {
    background: rgba(0, 240, 255, 0.15);
}

/* 无结果 / 加载提示 */
.hx-alert {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.95rem;
}

.hx-alert strong {
    color: var(--accent);
}

/* 分页 */
.hx-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 56px;
}

.hx-pagination:empty {
    display: none;
    margin-top: 0;
}

.hx-pagination a,
.hx-pagination span {
    min-width: 42px;
    height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--card-bg);
    color: var(--text-dim);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
    box-sizing: border-box;
}

.hx-pagination a:hover {
    color: var(--accent);
    border-color: rgba(0, 240, 255, 0.4);
}

.hx-pagination .is-current {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #000;
    font-weight: 700;
    border: none;
}

.hx-pagination .is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ==========================================================================
   文章详情
   ========================================================================== */

.hx-detail-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: clamp(24px, 4vw, 56px);
    max-width: 920px;
    margin: 0 auto;
}

.hx-detail-title {
    font-size: clamp(1.5rem, 3.2vw, 2.2rem);
    line-height: 1.45;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 800;
}

.hx-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: var(--text-dim);
    font-size: 0.85rem;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 32px;
}

.hx-detail-meta a {
    color: var(--accent);
    text-decoration: none;
}

.hx-detail-content {
    font-size: 1rem;
    line-height: 2;
    color: #c9c9c9;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hx-detail-content p {
    margin-bottom: 18px;
}

.hx-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 22px auto;
}

.hx-detail-content h1,
.hx-detail-content h2,
.hx-detail-content h3,
.hx-detail-content h4,
.hx-detail-content h5,
.hx-detail-content h6 {
    color: #fff;
    margin: 30px 0 16px;
    line-height: 1.5;
}

.hx-detail-content a {
    color: var(--accent);
    text-decoration: none;
}

.hx-detail-content a:hover {
    text-decoration: underline;
}

.hx-detail-content ul,
.hx-detail-content ol {
    margin: 0 0 18px 24px;
}

.hx-detail-content li {
    margin-bottom: 8px;
}

.hx-detail-content blockquote {
    margin: 22px 0;
    padding: 16px 24px;
    border-left: 3px solid var(--accent);
    background: rgba(0, 240, 255, 0.05);
    border-radius: 0 12px 12px 0;
    color: var(--text-dim);
}

.hx-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 22px 0;
    font-size: 0.9rem;
}

.hx-detail-content th,
.hx-detail-content td {
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 14px;
    color: var(--text-dim);
}

.hx-detail-content th {
    background: rgba(0, 240, 255, 0.06);
    color: #fff;
}

.hx-detail-content pre {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px;
    overflow-x: auto;
    margin: 22px 0;
    font-size: 0.88rem;
    line-height: 1.7;
}

.hx-detail-content code {
    font-family: Consolas, Monaco, 'Courier New', monospace;
    color: var(--accent);
}

.hx-detail-content hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 30px 0;
}

.hx-detail-content video,
.hx-detail-content iframe {
    max-width: 100%;
    border-radius: 12px;
}

.hx-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid var(--card-border);
}

.hx-detail-tags a {
    padding: 4px 14px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 999px;
    font-size: 0.78rem;
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s;
}

.hx-detail-tags a:hover {
    background: rgba(0, 240, 255, 0.15);
}

/* 相关文章 */
.hx-related {
    max-width: 920px;
    margin: 60px auto 0;
}

.hx-related h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 24px;
    position: relative;
    padding-left: 16px;
}

.hx-related h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--accent), var(--accent2));
}

.hx-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hx-related-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.35s;
    display: block;
}

.hx-related-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.3);
}

.hx-related-thumb {
    height: 140px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(255, 0, 110, 0.12));
}

.hx-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hx-related-title {
    padding: 16px 18px;
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hx-related-card:hover .hx-related-title {
    color: var(--accent);
}

/* ==========================================================================
   滚动动画 & 滚动条
   ========================================================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width: 1200px) {
    .hx-nav-links {
        gap: 16px;
    }
}

@media (max-width: 991px) {
    .hx-nav-links {
        display: none;
    }

    .hx-menu-btn {
        display: flex;
    }

    .hx-list {
        grid-template-columns: 1fr;
    }

    .hx-related-grid {
        grid-template-columns: 1fr;
    }

    .case-item {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .case-item:nth-child(even) {
        direction: ltr;
    }

    .process-steps {
        flex-direction: column;
        gap: 40px;
    }

    .process-steps::before {
        display: none;
    }

    .hx-footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }

    .section {
        padding: 70px 5%;
    }

    .section-title {
        font-size: 1.9rem;
    }

    .case-item {
        padding: 24px;
        margin-bottom: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hx-news-grid {
        grid-template-columns: 1fr;
    }

    .hx-page-hero {
        padding-top: calc(var(--nav-height) + 50px);
    }

    .hx-back-top {
        right: 16px;
        bottom: 16px;
        width: 42px;
        height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==========================================================================
   专题页
   ========================================================================== */

.hx-subnav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.hx-subnav a {
    padding: 8px 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.3s;
}

.hx-subnav a:hover {
    color: var(--accent);
    border-color: rgba(0, 240, 255, 0.4);
    background: rgba(0, 240, 255, 0.06);
}

.hx-timeline {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    padding-left: 30px;
}

.hx-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), var(--accent2));
    opacity: 0.35;
}

.hx-timeline-item {
    position: relative;
    margin-bottom: 26px;
}

.hx-timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 12px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.5);
}

.hx-timeline-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px 28px;
    transition: all 0.35s;
}

.hx-timeline-card:hover {
    border-color: rgba(0, 240, 255, 0.3);
    transform: translateX(6px);
}

.hx-timeline-time {
    color: var(--accent);
    font-size: 0.82rem;
    margin-bottom: 8px;
    display: block;
}

.hx-timeline-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.hx-timeline-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.hx-timeline-title a:hover {
    color: var(--accent);
}

.hx-timeline-summary {
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.8;
}
