/* 雷澳化链 - 品牌色与公共样式（CDN 模式专用，勿使用 @plugin） */
:root {
    --brand: #1a66d6;
    --brand-dark: #0a3d8f;
    --accent: #ff7b00;
    --surface: #f4f7fb;
    --img-hero: url('images/hero.jpg');
    --img-refinery: url('images/refinery.jpg');
    --img-factory: url('images/factory.jpg');
    --img-port: url('images/port.jpg');
    --img-lab: url('images/lab.jpg');
    --img-chemical: url('images/chemical.jpg');
    --img-pellets: url('images/hdpe.jpg');
    --img-oil: url('images/oil.jpg');
    --img-warehouse: url('images/warehouse.jpg');
    --img-exhibition: url('images/exhibition.jpg');
    --img-ship: url('images/ship.jpg');
    --img-city-sh: url('images/city-sh.jpg');
    --img-city-nb: url('images/city-nb.jpg');
    --img-city-gd: url('images/city-gd.jpg');
    --img-city-fj: url('images/city-fj.jpg');
    --img-city-dl: url('images/city-dl.jpg');
    --img-city-hb: url('images/city-hb.jpg');
    --img-city-js: url('images/city-js.jpg');
    --img-news-1: url('images/news-1.jpg');
    --img-news-2: url('images/news-2.jpg');
    --img-news-3: url('images/news-3.jpg');
    --img-news-4: url('images/news-4.jpg');
    --img-news-5: url('images/news-5.jpg');
}

body {
    background-color: var(--surface);
}

/* 品牌色工具类 */
.bg-brand { background-color: var(--brand) !important; }
.bg-brand-dark { background-color: var(--brand-dark) !important; }
.bg-accent { background-color: var(--accent) !important; }
.text-brand { color: var(--brand) !important; }
.text-accent { color: var(--accent) !important; }
.border-brand { border-color: var(--brand) !important; }
.hover\:bg-brand:hover { background-color: var(--brand) !important; }
.hover\:bg-brand-dark:hover { background-color: var(--brand-dark) !important; }
.hover\:text-brand:hover { color: var(--brand) !important; }
.hover\:border-brand\/30:hover { border-color: rgb(26 102 214 / 0.3) !important; }
.border-brand\/30 { border-color: rgb(26 102 214 / 0.3) !important; }

.bg-gradient-to-r.from-brand.to-brand-dark,
.from-brand.to-brand-dark.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--brand), var(--brand-dark));
}
.bg-clip-text.text-transparent {
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 防止 SVG 图标在 Tailwind 未加载时撑满屏幕 */
svg.h-4 { width: 1rem; height: 1rem; }
svg.h-5 { width: 1.25rem; height: 1.25rem; }
svg.h-8 { width: 2rem; height: 2rem; }
.input svg, label.input svg { width: 1rem; height: 1rem; flex-shrink: 0; max-width: 1rem; max-height: 1rem; }

/* 行情 ticker 动画 */
@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ticker-track {
    animation: ticker 40s linear infinite;
}
.ticker-track:hover {
    animation-play-state: paused;
}

@keyframes deal-scroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}
.deal-scroll-list {
    animation: deal-scroll 30s linear infinite;
}

@keyframes deal-ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.deal-ticker-track {
    animation: deal-ticker 35s linear infinite;
}
.deal-ticker-track:hover {
    animation-play-state: paused;
}

/* ========== Hero 区域 ========== */
.hero-home {
    position: relative;
    isolation: isolate;
    min-height: 380px;
    background: none;
    overflow: hidden;
}
@media (min-width: 1024px) {
    .hero-home { min-height: 480px; }
}
.hero-home::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--img-hero) center/cover no-repeat;
    transform: scale(1.02);
}
.hero-home::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(10, 61, 143, 0.93) 0%, rgba(26, 102, 214, 0.82) 42%, rgba(26, 102, 214, 0.45) 72%, rgba(10, 61, 143, 0.25) 100%),
        radial-gradient(ellipse at 85% 50%, rgba(255, 123, 0, 0.18) 0%, transparent 55%);
}
.hero-home .hero-content {
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
}
.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.hero-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
}
.hero-stat-mini {
    text-align: center;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.hero-stat-mini strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.hero-stat-mini span {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.75);
}

/* 子页面 Hero */
.page-hero {
    position: relative;
    isolation: isolate;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
    min-height: 160px;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: center/cover no-repeat;
    transform: scale(1.03);
}
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 61, 143, 0.9) 0%, rgba(26, 102, 214, 0.75) 60%, rgba(26, 102, 214, 0.4) 100%);
}
.page-hero-inner {
    position: relative;
    z-index: 1;
    padding: 2rem 2rem;
    color: #fff;
}
.page-hero-supply::before { background-image: var(--img-port); }
.page-hero-mall::before { background-image: var(--img-warehouse); }
.page-hero-auction::before { background-image: var(--img-refinery); }
.page-hero-market::before { background-image: var(--img-ship); }
.page-hero-news::before { background-image: var(--img-lab); }
.page-hero-factory::before { background-image: var(--img-factory); }
.page-hero-chain::before { background-image: var(--img-refinery); }

.hero-grid {
    background-image: linear-gradient(rgba(10, 61, 143, 0.85), rgba(26, 102, 214, 0.75)),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-mall {
    background-image: linear-gradient(135deg, rgba(10, 61, 143, 0.92), rgba(26, 102, 214, 0.82)),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ========== 图片组件 ========== */
.product-figure {
    position: relative;
    overflow: hidden;
    margin: 0;
    background: linear-gradient(135deg, #e8eef8, #d4e2f5);
}
.product-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.card:hover .product-figure img {
    transform: scale(1.06);
}
.product-figure .badge {
    z-index: 2;
}

.news-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    background: #e8eef5;
    flex-shrink: 0;
}
.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.group:hover .news-thumb img {
    transform: scale(1.05);
}

.zone-card {
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.zone-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(26, 102, 214, 0.12);
}
.zone-card-img {
    height: 7rem;
    background: center/cover no-repeat;
    position: relative;
}
.zone-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 61, 143, 0.5), transparent);
}
.zone-img-sh { background-image: var(--img-city-sh); }
.zone-img-nb { background-image: var(--img-city-nb); }
.zone-img-gd { background-image: var(--img-city-gd); }
.zone-img-fj { background-image: var(--img-city-fj); }
.zone-img-dl { background-image: var(--img-city-dl); }
.zone-img-hb { background-image: var(--img-city-hb); }
.zone-img-js { background-image: var(--img-city-js); }

.service-tile {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    padding: 1.25rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(26, 102, 214, 0.12);
    background: #fff;
}
.service-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: center/cover no-repeat;
    opacity: 0.12;
    transition: opacity 0.25s ease;
}
.service-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(26, 102, 214, 0.15);
}
.service-tile:hover::before {
    opacity: 0.22;
}
.service-tile > * { position: relative; z-index: 1; }
.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 0.75rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(26, 102, 214, 0.3);
}
.service-tile-1::before { background-image: var(--img-chemical); }
.service-tile-2::before { background-image: var(--img-warehouse); }
.service-tile-3::before { background-image: var(--img-ship); }
.service-tile-4::before { background-image: var(--img-factory); }
.service-tile-5::before { background-image: var(--img-lab); }

.expo-banner {
    position: relative;
    overflow: hidden;
    border: none;
    background: none;
}
.expo-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--img-exhibition) center/cover no-repeat;
}
.expo-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 123, 0, 0.92) 0%, rgba(255, 123, 0, 0.75) 50%, rgba(255, 123, 0, 0.35) 100%);
}
.expo-banner .card-body {
    position: relative;
    z-index: 1;
    color: #fff;
}
.expo-banner h3 { color: #fff !important; }
.expo-banner p { color: rgba(255, 255, 255, 0.9) !important; }

.factory-card {
    position: relative;
    overflow: hidden;
}
.factory-card-img {
    height: 6.5rem;
    background: center/cover no-repeat;
}
.factory-img-1 { background-image: var(--img-factory); }
.factory-img-2 { background-image: var(--img-lab); }
.factory-img-3 { background-image: var(--img-warehouse); }
.factory-img-4 { background-image: var(--img-refinery); }

.hero-digital {
    position: relative;
    isolation: isolate;
    background: none;
    min-height: 360px;
}
.hero-digital::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--img-factory) center/cover no-repeat;
}
.hero-digital::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(105deg, rgba(10, 61, 143, 0.93) 0%, rgba(26, 102, 214, 0.85) 50%, rgba(26, 102, 214, 0.55) 100%);
}
.hero-digital .hero-content {
    position: relative;
    z-index: 2;
}

/* 数化厂 - 标准化接入流程 */
.factory-process {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    position: relative;
    padding-top: 0.5rem;
}
@media (max-width: 1023px) {
    .factory-process {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 639px) {
    .factory-process {
        grid-template-columns: 1fr;
    }
}
.factory-process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    position: relative;
}
.factory-process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 1.125rem;
    left: calc(50% + 1.125rem);
    width: calc(100% - 2.25rem + 0.75rem);
    height: 2px;
    background: linear-gradient(90deg, #93c5fd, #fcd34d);
    z-index: 0;
}
@media (max-width: 1023px) {
    .factory-process-step::after {
        display: none;
    }
}
.factory-process-box {
    width: 100%;
    padding: 0.875rem;
    border-radius: 0.625rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(10, 61, 143, 0.06);
    margin-bottom: 0.75rem;
    min-height: 7.5rem;
}
.factory-process-box-active {
    border-color: rgba(255, 123, 0, 0.35);
    background: rgba(255, 123, 0, 0.04);
}
.factory-process-dot {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.factory-process-dot-primary {
    background: #eff6ff;
    color: var(--brand);
    border-color: #bfdbfe;
}
.factory-process-dot-warning {
    background: #fff7ed;
    color: var(--accent);
    border-color: #fed7aa;
}
.factory-process-dot-success {
    background: #ecfdf5;
    color: #059669;
    border-color: #a7f3d0;
}

/* 竞拍流程 - 横向铺满 */
.auction-flow {
    display: flex;
    width: 100%;
    align-items: flex-start;
}
.auction-flow-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    min-width: 0;
    padding: 0 0.25rem;
}
.auction-flow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 2.35rem;
    left: calc(50% + 1.25rem);
    width: calc(100% - 2.5rem);
    height: 2px;
    background: #dbe3ef;
    z-index: 0;
}
.auction-flow-label {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.45);
    margin-bottom: 0.5rem;
}
.auction-flow-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: #eff6ff;
    border: 2px solid #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}
.auction-flow-icon-active {
    background: #fff7ed;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 123, 0, 0.15);
}
.auction-flow-box {
    margin-top: 0.75rem;
    padding: 0.5rem 0.625rem;
    font-size: 0.75rem;
    line-height: 1.4;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    width: 100%;
    max-width: 7.5rem;
}
.auction-flow-box-active {
    background: rgba(255, 123, 0, 0.08);
    border-color: rgba(255, 123, 0, 0.35);
    color: #c2410c;
    font-weight: 500;
}

.auction-thumb {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
    flex-shrink: 0;
    background: #e8eef5;
}
.auction-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 数据看板增强 */
.stats-panel {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(10, 61, 143, 0.12);
    border: 1px solid rgba(26, 102, 214, 0.1);
}
.stats-panel .stat {
    padding: 1.25rem 1rem;
}
.stats-panel .stat-value {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 导航高亮 */
.nav-active { border-radius: 0; }
.menu a.nav-active,
.dropdown-content a.nav-active {
    background-color: rgb(26 102 214 / 0.08);
    color: var(--brand) !important;
    font-weight: 600;
}

/* 卡片与表格优化 */
.card {
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.card-elevated {
    box-shadow: 0 4px 20px rgba(10, 61, 143, 0.08);
    border: 1px solid rgba(26, 102, 214, 0.08);
}
.table th { white-space: nowrap; font-weight: 600; }
.stat-value { font-variant-numeric: tabular-nums; }

/* 悬浮栏不遮挡内容 */
@media (min-width: 1024px) {
    body { padding-right: 0; }
}

/* 面包屑 */
.breadcrumbs ul { flex-wrap: wrap; }

/* 移动端主内容间距 */
main { min-height: 50vh; }

/* 章节标题 - 左侧蓝色竖线 */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}
.section-title h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a2b45;
    position: relative;
    padding-left: 0.75rem;
}
.section-title h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1.125rem;
    background: var(--brand);
    border-radius: 2px;
}
.section-title a {
    font-size: 0.8125rem;
    color: #666;
    transition: color 0.2s;
}
.section-title a:hover {
    color: var(--brand);
}

/* 问小e浮动动画 */
@keyframes aiFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.sidebar-ai-float {
    animation: aiFloat 2.5s ease-in-out infinite;
}
