/* ============================================================
   首页美化样式 custom.css  ·  深色科技 + 紫蓝渐变
   说明：自定义样式，不修改系统 aoyun.css。
   布局参考 eweishop 官网：主标语视觉 + 产品分区 + 功能卡片。
   配色：深藏蓝背景 + 紫蓝渐变点缀。
   ============================================================ */

:root {
    --bg: #0d1226;           /* 主背景：深藏蓝 */
    --bg-soft: #111833;      /* 次背景 */
    --card: #182241;         /* 卡片 */
    --card-hover: #1f2b52;   /* 卡片悬浮 */
    --text: #eef1fb;         /* 主文字 */
    --text-weak: #9aa5c7;    /* 次要文字 */
    --violet: #6c5ce7;       /* 渐变·紫 */
    --blue: #3b82f6;         /* 渐变·蓝 */
    --grad: linear-gradient(135deg, #6c5ce7 0%, #3b82f6 100%);
    --line: rgba(255, 255, 255, .08);
}

html {
    scroll-behavior: smooth;
}

/* ================= 全局：导航深色 ================= */
.navbar.navbar-light {
    background: rgba(13, 18, 38, .92) !important;
    border-bottom: 1px solid var(--line);
}
.navbar-light .navbar-nav .nav-link {
    font-weight: 500;
    color: #c7d2df;
    transition: color .25s ease;
}
.navbar-light .navbar-nav .nav-link:hover {
    color: #8b7cf7;
}
.navbar-light .navbar-nav .nav-item.active .nav-link {
    color: #8b7cf7;
    font-weight: 600;
}
.navbar-light .navbar-text a,
.navbar-light .navbar-text .text-secondary {
    color: #c7d2df;
}
.navbar-light .navbar-text a:hover {
    color: #8b7cf7;
}
.navbar-toggler {
    border-color: rgba(255, 255, 255, .3);
}
.navbar-toggler-icon {
    filter: invert(1);
}
.head-sm-height {
    background: var(--bg);
}

/* ================= 全局：页脚深色 ================= */
.footer {
    background: #0a0f1f !important;
    color: var(--text-weak);
    border-color: var(--line);
}
.footer h5 {
    color: #fff;
    font-weight: 600;
}
.footer li,
.footer p,
.footer .copyright,
.footer .text-secondary,
.footer .text-secondary a,
.footer a {
    color: var(--text-weak);
}
.footer .copyright {
    border-color: var(--line);
    font-size: .85rem;
}
.fixed-bottom.bg-info {
    background: #0e1428 !important;
    border-top: 1px solid var(--line);
}

/* ================= 首页深色内容区 ================= */
.home-dark {
    background: var(--bg);
    color: var(--text);
}

/* --- 区块标题 --- */
.home-dark .section-head h2 {
    font-weight: 700;
    color: var(--text);
    letter-spacing: 2px;
}
.home-dark .section-line {
    display: block;
    width: 56px;
    height: 3px;
    border-radius: 2px;
    background: var(--grad);
    margin: 14px auto 0;
}
.home-dark .section-head p.text-secondary {
    color: var(--text-weak);
}
.home-dark .text-white-50 {
    color: rgba(255, 255, 255, .7) !important;
}

/* --- 主视觉幻灯片（主标语式） --- */
.home-dark .hero-slider .hero-slide-img {
    width: 100%;
    height: 560px;
    object-fit: cover;
}
@media (max-width: 1199px) and (min-width: 769px) {
    .home-dark .hero-slider .hero-slide-img { height: 400px; }
}
.home-dark .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 11, 25, .78), rgba(8, 11, 25, .32));
}
.home-dark .hero-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
}
.home-dark .hero-caption-inner {
    color: #fff;
}
.home-dark .hero-tag {
    display: inline-block;
    font-size: .8rem;
    letter-spacing: 3px;
    padding: .28rem .9rem;
    border-radius: 50rem;
    background: rgba(108, 92, 231, .28);
    border: 1px solid rgba(108, 92, 231, .55);
    color: #cfc7fb;
    margin-bottom: .8rem;
}
.home-dark .hero-caption-inner h1,
.home-dark .hero-caption-inner h2 {
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .5);
}
.home-dark .hero-caption-inner h4 {
    font-weight: 400;
    opacity: .9;
    letter-spacing: 1px;
}
.btn-hero {
    background: var(--grad);
    color: #fff !important;
    border: none;
    border-radius: 2px;
    padding: .55rem 1.9rem;
    transition: opacity .25s ease, transform .25s ease;
}
.btn-hero:hover {
    opacity: .9;
    transform: translateY(-2px);
}
.home-dark .heroSwiper .swiper-pagination {
    position: absolute;
    bottom: 18px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 20;
}
.home-dark .heroSwiper .swiper-pagination-bullet {
    background: #fff;
    opacity: .5;
    width: 10px;
    height: 3px;
    border-radius: 2px;
}
.home-dark .heroSwiper .swiper-pagination-bullet-active {
    opacity: 1;
    width: 26px;
    background: var(--grad);
}
.home-dark .hero-slider .swiper-container {
    position: relative;
    overflow: hidden;
}
.home-dark .heroSwiper .swiper-button-prev,
.home-dark .heroSwiper .swiper-button-next {
    position: absolute;
    top: 50%;
    margin-top: 0;
    transform: translateY(-50%);
    z-index: 20;
    color: #fff;
    opacity: .75;
    transition: opacity .3s ease;
}
.home-dark .heroSwiper .swiper-button-prev {
    left: 16px;
    right: auto;
}
.home-dark .heroSwiper .swiper-button-next {
    right: 16px;
    left: auto;
}
.home-dark .heroSwiper .swiper-button-prev:hover,
.home-dark .heroSwiper .swiper-button-next:hover {
    opacity: 1;
}

/* --- 核心业务 --- */
.home-dark .business-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 4px solid var(--violet);
    border-radius: 12px;
    transition: box-shadow .3s ease, transform .3s ease, background .3s ease;
}
.home-dark .business-card i {
    font-size: 2.6rem;
    color: #8b7cf7;
    line-height: 1;
}
.home-dark .business-card h3 {
    color: var(--text);
    font-weight: 700;
}
.home-dark .business-card .badge-tag {
    display: inline-block;
    margin-top: .55rem;
    font-size: .8rem;
    color: #c6bdfa;
    background: rgba(108, 92, 231, .16);
    border-radius: 4px;
    padding: .22rem .6rem;
    letter-spacing: 1px;
}
.home-dark .business-card .text-secondary {
    color: var(--text-weak);
}
.home-dark .business-card:hover {
    background: var(--card-hover);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .4);
    transform: translateY(-4px);
}

/* --- 功能亮点 --- */
.home-dark .bg-white {
    background: var(--bg) !important;
}
.home-dark .bg-light {
    background: var(--bg-soft) !important;
}
.home-dark .feature-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.2rem;
    transition: box-shadow .3s ease, transform .3s ease, background .3s ease;
}
.home-dark .feature-item i {
    font-size: 1.8rem;
    color: #fff;
    width: 56px;
    height: 56px;
    line-height: 56px;
    text-align: center;
    border-radius: 12px;
    background: var(--grad);
    margin-right: 1rem;
    box-shadow: 0 6px 16px rgba(108, 92, 231, .35);
}
.home-dark .feature-item h5 {
    color: var(--text);
    font-weight: 600;
    margin-bottom: .4rem;
}
.home-dark .feature-item .text-secondary {
    color: var(--text-weak);
}
.home-dark .feature-item:hover {
    background: var(--card-hover);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .4);
    transform: translateY(-4px);
}

/* --- 产品推荐 --- */
.home-dark .product-card {
    background: var(--card);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .3s ease, transform .3s ease, background .3s ease;
}
.home-dark .product-card:hover {
    background: var(--card-hover);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .4);
    transform: translateY(-5px);
}
.home-dark .product-card .card-img-150 {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 78%;
    overflow: hidden;
}
.home-dark .product-card .card-img-150 img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.home-dark .product-card:hover .card-img-150 img {
    transform: scale(1.06);
}
.home-dark .product-card .card-title a {
    color: var(--text);
    font-weight: 600;
    transition: color .25s ease;
}
.home-dark .product-card .card-title a:hover {
    color: #8b7cf7;
}
.home-dark .product-card .card-text.text-secondary {
    color: var(--text-weak);
}
.btn-accent {
    background: var(--grad);
    color: #fff !important;
    border: none;
    border-radius: 2px;
    transition: opacity .25s ease, transform .25s ease;
}
.btn-accent:hover {
    opacity: .9;
    transform: translateY(-1px);
    color: #fff !important;
}

/* --- 关于我们 --- */
.home-dark .about-section {
    background: linear-gradient(120deg, #0a0f1f 0%, #141c38 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.home-dark .about-section .section-head h2.text-light {
    color: #fff !important;
}
.home-dark .about-text {
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.25rem 1.6rem;
    color: var(--text) !important;
}
.home-dark .btn-outline-light {
    border-radius: 2px;
    color: #fff !important;
    transition: background .25s ease, color .25s ease;
}
.home-dark .btn-outline-light:hover {
    background: var(--grad);
    border-color: transparent;
    color: #fff !important;
}

/* --- 新闻动态 --- */
.home-dark .news-item {
    display: flex;
    padding: 1.05rem 1.15rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    height: 100%;
    transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}
.home-dark .news-item:hover {
    border-color: rgba(108, 92, 231, .45);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
    transform: translateY(-4px);
}
.home-dark .news-item:hover .news-body h5 {
    color: #8b7cf7;
}
.home-dark .news-date {
    min-width: 64px;
    color: #fff;
    background: var(--grad);
    border-radius: 6px;
    padding: .45rem .55rem;
    line-height: 1.15;
    text-align: center;
}
.home-dark .news-date b {
    display: block;
    font-size: 1.05rem;
}
.home-dark .news-date i {
    display: block;
    font-style: normal;
    font-size: .82rem;
    opacity: .8;
}
.home-dark .news-body h5 {
    color: var(--text);
    font-weight: 600;
    transition: color .25s ease;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.home-dark .news-body p.text-secondary {
    color: var(--text-weak);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* --- 联系我们 CTA --- */
.home-dark .cta-section {
    background: var(--bg);
}
.home-dark .cta-box {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
}
.home-dark .cta-box h3 {
    color: var(--text);
    font-weight: 700;
    letter-spacing: 1px;
}
.home-dark .cta-box .text-secondary {
    color: var(--text-weak);
}

/* ---------- 首页区块间距（py-6/py-md-8 在本环境不生效，改为显式控制） ---------- */
.home-dark section:not(.hero-slider) {
    padding-top: 4rem;
    padding-bottom: 4rem;
}
@media (min-width: 768px) {
    .home-dark section:not(.hero-slider) {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

/* 页脚紧贴内容底部，消除顶部白色空隙 */
.footer {
    margin-top: 0 !important;
}

/* ================= 移动端适配 ================= */
@media (max-width: 768px) {
    .home-dark .hero-slider .hero-slide-img { height: 240px; }
    .home-dark .hero-caption-inner h1 { letter-spacing: 0; }
}
