/* ============================================
   YTC 官网 全局样式
   技术路线：纯 HTML/CSS/JS（参考 erp）
   ============================================ */

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

/* ---- 导航栏 ---- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 64px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    transition: background 0.3s;
}
.navbar.sticky { background: rgba(255,255,255,0.98); }

.nav-logo { display: flex; align-items: center; }
.nav-logo a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 36px; width: auto; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: 15px; color: #555; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: #1a56db; }
/* 移动端专用「用户管理」入口：桌面端由右上角登录按钮承担，故桌面隐藏 */
.nav-user-mgmt { display: none; }
.nav-consult {
    padding: 8px 20px;
    background: #1a56db;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.nav-consult:hover { background: #1648b8; }
.nav-right { display: flex; gap: 10px; align-items: center; }
.nav-login {
    padding: 8px 18px;
    background: #fff;
    color: #1a56db;
    border: 1px solid #1a56db;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav-login:hover { background: #1a56db; color: #fff; }

/* ---- 移动端菜单按钮（文字"首页" + 下拉箭头） ---- */
.nav-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    height: 44px;
    padding: 0 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
    color: #1a56db;
    z-index: 1001;
}
.nav-toggle .nav-toggle-caret {
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    transition: transform .3s;
}
.nav-toggle.open .nav-toggle-caret { transform: rotate(180deg); }

/* ---- 全屏滚动容器 ---- */
.fullpage-wrapper { position: relative; }
.section {
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.section-inner {
    width: 100%;
    max-width: 80vw;
    height: 100%;
    max-height: 90vh;
    margin: 0 auto;
    padding: 48px 40px;
    text-align: center;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
/* 栏目内容区：内容超高时在 section 内滚动，
   配合 index.html 的 js-inner-scroll 滚动优先逻辑（先滚内容，滚完再切屏） */
.section-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

/* ---- 第 1 屏：首屏 ---- */
.section-hero {
    background: linear-gradient(135deg, #0f1d3d 0%, #1a3a6b 50%, #1a56db 100%);
    color: #fff;
}
.section-hero .hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 2px;
}
.section-hero .hero-subtitle {
    font-size: 20px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
}
.section-hero .hero-scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* ---- 第 2 屏：公司简介 ---- */
.section-intro { background: #f8fafc; }
.section-intro .intro-title { font-size: 36px; font-weight: bold; margin-bottom: 20px; color: #1a56db; }
.section-intro .intro-text { font-size: 18px; color: #666; max-width: 800px; margin: 0 auto 40px; line-height: 2; }
.section-intro .intro-image {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.section-intro .intro-image img { width: 100%; }

/* ---- 第 3 屏：核心业务 ---- */
.section-business { background: #fff; }
.section-business .business-title { font-size: 36px; font-weight: bold; margin-bottom: 50px; color: #1a56db; }
.business-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}
.business-card {
    padding: 40px 30px;
    background: #f8fafc;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}
.business-card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.business-card .card-icon { font-size: 48px; margin-bottom: 16px; }
.business-card .card-title { font-size: 20px; font-weight: bold; margin-bottom: 12px; color: #1a56db; }
.business-card .card-desc { font-size: 14px; color: #777; line-height: 1.8; }

/* ---- 第 4 屏：数据亮点 ---- */
.section-stats { background: linear-gradient(135deg, #1a56db 0%, #1e40af 100%); color: #fff; }
.section-stats .stats-title { font-size: 36px; font-weight: bold; margin-bottom: 50px; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}
.stat-item { text-align: center; }
.stat-item .stat-number { font-size: 48px; font-weight: bold; margin-bottom: 8px; }
.stat-item .stat-label { font-size: 16px; color: rgba(255,255,255,0.8); }

/* ---- 页脚 ---- */
.footer {
    background: #0f1d3d;
    color: rgba(255,255,255,0.7);
    padding: 40px;
    text-align: center;
    font-size: 14px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-links a:hover { color: #fff; }

/* ---- 右侧页码指示器 ---- */
.page-indicator {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.page-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.3s;
}
.page-dot.active { background: #1a56db; border-color: #1a56db; transform: scale(1.3); }
.page-dot.page-dot-dark { background: rgba(0,0,0,0.2); border-color: rgba(0,0,0,0.4); }
.page-dot-dark.active { background: #1a56db; border-color: #1a56db; }

/* ---- 通用子页面容器 ---- */
.page-container {
    padding-top: 64px;
    min-height: 100vh;
    background: #f8fafc;
}
.page-header {
    background: #fff;
    padding: 60px 40px 30px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}
.page-header h1 { font-size: 32px; color: #1a56db; margin-bottom: 10px; }
.page-header p { font-size: 16px; color: #999; }
.page-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
}

/* ---- 卡片网格（产品/新闻列表） ---- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 6px 24px rgba(0,0,0,0.1); }
.card-image { height: 200px; overflow: hidden; background: #e5e7eb; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px; }
.card-body h3 { font-size: 18px; font-weight: bold; margin-bottom: 8px; color: #333; }
.card-body p { font-size: 14px; color: #777; line-height: 1.6; }

/* ---- 表单 ---- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; color: #555; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
    outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: #1a56db; }
.form-group textarea { height: 120px; resize: vertical; }
.btn-submit {
    padding: 12px 32px;
    background: #1a56db;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-submit:hover { background: #1648b8; }

/* ---- 时间轴 ---- */
.timeline {
    position: relative;
    padding: 20px 0;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 2px;
    background: #d1d5db;
    transform: translateX(-50%);
}
.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}
.timeline-item:nth-child(odd) { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-content {
    width: 45%;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.timeline-year {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: #1a56db;
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

/* ---- 文章详情 ---- */
.article-container { max-width: 800px; margin: 0 auto; }
.article-cover { margin-bottom: 30px; border-radius: 12px; overflow: hidden; }
.article-cover img { width: 100%; }
.article-meta { color: #999; font-size: 14px; margin-bottom: 20px; }
.article-content { font-size: 16px; line-height: 2; color: #333; }
.article-content p { margin-bottom: 16px; }

/* ---- 产品详情画廊 ---- */
.prod-detail { max-width: 1080px; margin: 0 auto; }
.prod-desc {
    background: #f5f8ff;
    border-left: 4px solid #1a56db;
    padding: 16px 20px;
    border-radius: 0 10px 10px 0;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 28px;
}
.prod-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
}
.prod-gallery-item {
    border: 1px solid #eef1f5;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    box-shadow: 0 6px 18px rgba(13, 58, 110, 0.07);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.prod-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ---- 响应式 ---- */
@media (max-width: 768px) {
    .navbar { padding: 0 20px; }
    .nav-toggle {
        display: flex;
        position: absolute;
        top: 50%;
        left: 75%;
        transform: translate(-50%, -50%);
    }
    /* 抬头栏隐藏「登录/我的账户」按钮，改为下拉菜单里的「用户管理」入口 */
    .nav-login { display: none; }
    .nav-consult { display: none; }
    .nav-user-mgmt { display: block; }
    .nav-links {
        display: none;
        position: fixed;
        top: 64px;
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        box-shadow: 0 8px 16px rgba(0,0,0,0.12);
        padding: 8px 20px 16px;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        z-index: 999;
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        padding: 14px 0;
        font-size: 16px;
        border-bottom: 1px solid #eef2ff;
    }
    .section-hero .hero-title { font-size: 32px; }
    .business-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .card-grid { grid-template-columns: 1fr; }
    .timeline::before { left: 20px; }
    .timeline-item { flex-direction: column !important; padding-left: 50px; }
    .timeline-content { width: 100%; }
    .timeline-year { left: 20px; transform: translateX(-50%); }
    .page-indicator { display: none; }
    /* 移动端：取消整页固定（100vh 快照切换），改回普通文档流 + 平滑滚动 */
    .section { height: auto; min-height: 0; overflow: visible; }
    .section-hero { height: 100vh; min-height: 100vh; }
    /* 栏目内容占满整屏宽（原 80vw 居中），改为上下堆叠后自然撑开 */
    .section-inner { max-width: 100%; height: auto; max-height: none; padding: 40px 20px; display: block; }
    .section-content { overflow: visible; }
}

/* ---- 平板/笔记本：内容宽度 80vw → 90vw（含 1080×1920 平板横屏 1920px） ---- */
@media (min-width: 769px) and (max-width: 1920px) {
    .section-inner { max-width: 90vw; }
}

/* ---- 空状态 / 占位 ---- */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}
.empty-state .empty-icon { font-size: 64px; margin-bottom: 16px; }
.empty-state p { font-size: 16px; }

/* ---- 加载中 ---- */
.loading { text-align: center; padding: 40px; color: #999; }
.loading::after { content: '加载中...'; }

/* ---- 提示信息 ---- */
.alert { padding: 12px 16px; border-radius: 6px; font-size: 14px; margin-bottom: 16px; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ============================================================
   首页轮播图（hero 首屏）
============================================================ */
.hero-carousel {
    position: absolute; inset: 0;
    overflow: hidden;
}
.carousel-inner { position: absolute; inset: 0; }
.carousel-slide {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity .8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.carousel-slide.active { opacity: 1; }
/* 无封面图、用正文内容生成的一屏 */
.carousel-slide.carousel-slide-rich {
    display: block;
    background: linear-gradient(135deg, #0f1d3d 0%, #1a3a6b 50%, #1a56db 100%);
    color: #fff;
}
.carousel-slide-rich .carousel-richbody {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
}
.carousel-richbody img { max-width: 100%; height: auto; }
.carousel-mask {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(26,86,219,0.55) 0%, rgba(17,41,97,0.65) 100%);
}
.carousel-loading {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 16px;
    background: linear-gradient(135deg, #1a56db 0%, #112961 100%);
}
.hero-btn {
    display: inline-block;
    padding: 12px 32px;
    background: rgba(255,255,255,0.92);
    color: #1a56db;
    border-radius: 32px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 24px;
    transition: all .25s;
}
.hero-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: 0;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background .2s;
    z-index: 10;
}
.carousel-arrow:hover { background: rgba(255,255,255,0.5); }
.carousel-prev { left: 32px; }
.carousel-next { right: 32px; }
.carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.carousel-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 0;
    cursor: pointer;
    transition: all .2s;
}
.carousel-dot.active {
    background: #fff;
    width: 28px;
    border-radius: 5px;
}

/* ============================================================
   产品中心页（左分类 + 右产品）
============================================================ */
.products-page {
    min-height: 100vh;
    background: #f8fafc;
    padding-bottom: 40px;
}
.products-header {
    background: linear-gradient(135deg, #1a56db 0%, #0f408a 100%);
    color: #fff;
    padding: 68px 40px 14px;
    margin: 0;
    border-radius: 0;
    text-align: center;
}
.products-header h1 { font-size: 34px; margin: 0 0 8px; }
.products-header p { opacity: 0.85; margin: 0; }
.products-layout {
    display: flex;
    gap: 24px;
    max-width: 1280px;
    margin: 40px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 2;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.products-layout.revealed {
    opacity: 1;
    transform: translateY(0);
}
.products-side {
    width: 0;
    flex-shrink: 0;
    opacity: 0;
    overflow: hidden;
    background: transparent;
    border-radius: 12px;
    padding: 0;
    box-shadow: none;
    position: sticky;
    top: 24px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s ease 0.3s,
                padding 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.8s ease;
}
.products-layout.revealed .products-side {
    width: 240px;
    opacity: 1;
    background: #fff;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.side-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eef2ff;
}
.cat-list {
    list-style: none;
    padding: 0; margin: 0;
}
.cat-node { list-style: none; }
.cat-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 4px;
    transition: all .15s;
}
/* 分类树：每级缩进 0.5em（半个字符），以此类推 */
.cat-children {
    list-style: none;
    margin: 0;
    padding-left: 0.5em;
}
.cat-arrow {
    flex-shrink: 0;
    width: 14px;
    font-size: 10px;
    color: #9aa4b2;
    text-align: center;
    transition: transform .15s;
}
.cat-arrow-empty {
    width: 14px;
}
.cat-link:hover {
    background: #eef2ff;
    color: #1a56db;
}
.cat-link.active {
    background: linear-gradient(135deg, #1a56db, #0f408a);
    color: #fff;
    font-weight: 600;
}
.products-main {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.products-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}
.products-toolbar > span:first-child {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}
.count-badge {
    background: #eef2ff;
    color: #1a56db;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}
.product-card .card-action {
    text-align: center;
    padding: 12px 0;
    color: #1a56db;
    font-size: 13px;
    font-weight: 600;
    border-top: 1px solid #f0f0f0;
}
.product-card:hover .card-action {
    background: #eef2ff;
}
.side-loading { padding: 16px; color: #999; font-size: 13px; }

/* 小屏或竖屏：分类区横向排列、占满整行 */
@media (max-width: 900px), (orientation: portrait) {
    .products-layout { flex-direction: column; padding: 0 16px; }
    .products-layout.revealed .products-side,
    .products-side {
        width: 100%;
        position: static;
    }
    .cat-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .cat-link { margin-bottom: 0; }
}

/* ============================================================
   登录页（独立布局）
============================================================ */
.login-body {
    margin: 0;
    min-height: 100vh;
    overflow: hidden;
}
.login-wrapper {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
.login-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 40px;
}
.login-left h1 { font-size: 36px; margin-bottom: 12px; letter-spacing: 2px; }
.login-left p {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    max-width: 360px;
    text-align: center;
    line-height: 1.6;
}
.login-right {
    width: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
}
.login-card { width: 340px; padding: 40px 0; }
.login-card h2 { font-size: 22px; color: #333; margin-bottom: 4px; }
.login-card .subtitle { color: #999; font-size: 13px; margin-bottom: 28px; }
.login-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    cursor: pointer;
    font-size: 14px;
    color: #999;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}
.login-tab.active { color: #1890ff; border-bottom-color: #1890ff; }
.login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid #f0f0f0;
}
.btn-login {
    width: 100%;
    height: 42px;
    background: #1890ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 4px;
}
.btn-login:hover { background: #40a9ff; }
.btn-login:disabled { background: #b3d8ff; cursor: not-allowed; }
.error-msg {
    color: #ff4d4f;
    font-size: 13px;
    text-align: center;
    margin-bottom: 12px;
    min-height: 20px;
}
.login-hint {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #bbb;
}
.login-hint span { display: block; margin-top: 4px; }
.reserved-actions {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}
.reserved-actions a {
    font-size: 13px;
    color: #999;
    text-decoration: none;
    display: inline-block;
    margin: 0 10px;
}

/* ============================================================
   联系我们页（独立：双栏布局）
============================================================ */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}
.contact-info h2,
.contact-form h2 {
    font-size: 22px;
    color: #1a56db;
    margin-bottom: 20px;
}
.contact-info-list {
    font-size: 16px;
    color: #555;
    line-height: 2.5;
}
.contact-info-list > div { display: flex; align-items: center; }
.contact-info-list > div::before {
    display: inline-block;
    width: 28px;
    margin-right: 8px;
}
textarea.form-control {
    width: 100%;
    min-height: 120px;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    resize: vertical;
}
textarea.form-control:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24,144,255,0.2);
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .login-left { display: none; }
    .login-right { width: 100%; }
}

/* ============================================================
   内部页面展示优化（列表 / 详情 / 联系 / 账户 通用）
   —— 统一页面 Hero 横幅、面包屑、卡片、正文排版
   ============================================================ */

/* ---- 页面外壳（替代 .page-container 的顶部留白，Hero 自己负责避开导航） ---- */
.page-shell {
    min-height: 100vh;
    background: #f8fafc;
}

/* ---- 页面 Hero 横幅 ---- */
.page-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0e3a86 0%, #1a56db 52%, #2f74e8 100%);
    color: #fff;
    text-align: center;
}
.page-hero::before,
.page-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}
.page-hero::before { width: 520px; height: 520px; top: -260px; right: -140px; }
.page-hero::after  { width: 340px; height: 340px; bottom: -190px; left: -100px; }
.page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 94px 24px 48px;
}
.page-hero h1 {
    margin: 8px 0 10px;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
}
.page-hero .hero-sub {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,0.86);
}
/* 栏目型内容页：抬头极简，只留标题（无面包屑） */
.page-hero.hero-min .page-hero-inner { padding: 40px 24px 34px; }
.page-hero.hero-min h1 { font-size: 28px; }

/* ---- 面包屑（亮/暗两种背景自适应） ---- */
.breadcrumb {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #9aa4b2;
}
.breadcrumb a { color: #1a56db; transition: color .2s; }
.breadcrumb a:hover { color: #0e3a86; }
.breadcrumb .sep { color: #cbd5e1; }
.breadcrumb .cur { color: #64748b; }
.page-hero .breadcrumb { color: rgba(255,255,255,0.85); }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.85); }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb .sep { color: rgba(255,255,255,0.45); }
.page-hero .breadcrumb .cur { color: #fff; }

/* ---- 卡片网格：自适应列宽，产品/新闻/关于通用 ---- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

/* ---- 卡片：统一图片比例 + 文字截断 + 入场动效 ---- */
.card {
    display: flex;
    flex-direction: column;
}
.card-image {
    height: auto;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eef1f5;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.card:hover .card-image img { transform: scale(1.06); }
/* 无图占位：品牌色渐变 + 图标 */
.card-image-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8effc 0%, #dbe6fb 100%);
}
.card-image-ph .ph-icon {
    font-size: 46px;
    opacity: .65;
}
.card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
}
.card-body h3 {
    font-size: 17px;
    line-height: 1.45;
    margin-bottom: 8px;
    color: #1f2937;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-body p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    font-size: 12px;
    color: #9aa4b2;
    border-top: 1px solid #f0f2f5;
}
.card-meta .dot { color: #cbd5e1; }

/* 卡片入场：轻微上浮淡入 */
.products-layout.revealed .card-grid .card {
    animation: cardIn .5s ease backwards;
}
.products-layout.revealed .card-grid .card:nth-child(1) { animation-delay: .03s; }
.products-layout.revealed .card-grid .card:nth-child(2) { animation-delay: .08s; }
.products-layout.revealed .card-grid .card:nth-child(3) { animation-delay: .13s; }
.products-layout.revealed .card-grid .card:nth-child(4) { animation-delay: .18s; }
.products-layout.revealed .card-grid .card:nth-child(5) { animation-delay: .23s; }
.products-layout.revealed .card-grid .card:nth-child(6) { animation-delay: .28s; }
.products-layout.revealed .card-grid .card:nth-child(7) { animation-delay: .33s; }
.products-layout.revealed .card-grid .card:nth-child(8) { animation-delay: .38s; }
@keyframes cardIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- 详情页正文排版（:where 降权，避免覆盖栏目内容自带样式） ---- */
.article-container { max-width: 860px; margin: 0 auto; }
.article-container.prod { max-width: 1120px; }
/* 栏目型内容（单页/解决方案/页面）：整宽渲染，让 <section> 背景铺满视口 */
.article-sections { max-width: none; }
.page-body-fluid { max-width: none; padding: 0; }

.article-content {
    font-size: 16px;
    line-height: 1.95;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.article-content :where(h1, h2, h3, h4) { margin: 1.4em 0 .6em; color: #1f2937; line-height: 1.4; }
.article-content :where(h1) { font-size: 24px; }
.article-content :where(h2) { font-size: 21px; }
.article-content :where(h3) { font-size: 18px; }
.article-content :where(h4) { font-size: 16px; }
.article-content :where(p) { margin-bottom: 16px; }
.article-content :where(img) {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 18px auto;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(13, 58, 110, 0.08);
}
.article-content :where(ul, ol) { margin: 0 0 16px; padding-left: 1.6em; list-style: revert; }
.article-content :where(li) { margin-bottom: 6px; }
.article-content :where(a) { color: #1a56db; text-decoration: underline; text-underline-offset: 3px; }
.article-content :where(blockquote) {
    margin: 16px 0;
    padding: 12px 18px;
    border-left: 4px solid #1a56db;
    background: #f5f8ff;
    color: #4b5563;
    border-radius: 0 8px 8px 0;
}
.article-content :where(table) { width: 100%; margin: 16px 0; border-collapse: collapse; font-size: 14px; }
.article-content :where(table) :where(th, td) { border: 1px solid #e5e7eb; padding: 10px 12px; text-align: left; }
.article-content :where(table) :where(th) { background: #f5f8ff; color: #1f2937; font-weight: 600; }

/* 产品画廊项：hover 轻微放大 */
.prod-gallery-item { transition: transform .3s ease, box-shadow .3s ease; }
.prod-gallery-item:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(13,58,110,0.14); }

/* 返回按钮（详情页底部） */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #1a56db;
    transition: color .2s;
}
.back-link:hover { color: #0e3a86; }

/* ---- Hero 响应式 ---- */
@media (max-width: 768px) {
    .page-hero-inner { padding: 78px 20px 34px; }
    .page-hero h1 { font-size: 28px; }
    .page-hero .hero-sub { font-size: 14px; }
}
/* ---- 产品网格：平板/手机保持 3 列（.grid-tight 仅产品列表使用） ---- */
@media (max-width: 1024px) {
    .card-grid.grid-tight { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (max-width: 480px) {
    .card-grid.grid-tight { gap: 8px; }
    .card-grid.grid-tight .card-body { padding: 10px; }
    .card-grid.grid-tight .card-body h3 { font-size: 13px; }
    .card-grid.grid-tight .card-body p { display: none; }
    .card-grid.grid-tight .card-meta { display: none; }
}
/* 非产品网格：手机单列（保持可读性） */
@media (max-width: 640px) {
    .card-grid { grid-template-columns: 1fr; }
}

/* ---- 移动端分类胶囊（手风琴 + 横向子菜单） ---- */
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: 20px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all .15s;
}
.cat-chip:hover { background: #eef2ff; color: #1a56db; }
.cat-chip.active { background: linear-gradient(135deg, #1a56db, #0f408a); color: #fff; font-weight: 600; }
.cat-chip-arrow { font-size: 10px; opacity: .7; margin-left: 2px; }
.cat-subchips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e5e7eb;
}
.cat-chip-sub { background: #eef2ff; color: #1a56db; padding: 6px 12px; font-size: 13px; }
.cat-chip-sub:hover { background: #dbe6fb; }

/* ---- 滚动入场动画（详情页栏目内容） ---- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.rv-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .rv { opacity: 1; transform: none; transition: none; }
}
