/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --bg-color: #fff;
    --border-color: #e0e0e0;
    --spacing: 1rem;
    --max-width: 1200px;

    /* 背景与质感（可按需微调） */
    --surface-bg: rgba(255, 255, 255, 0.92);
    --surface-border: rgba(44, 62, 80, 0.10);
    --surface-shadow: 0 18px 60px rgba(0, 0, 0, 0.10);
    --pattern-url: url("../images/pattern-culture-tech.svg");
    /* intro 配图：刻意与 banner 做差异化（浅色等距插画） */
    --intro-visual-url: url("../images/intro-isometric.svg");
    /* banner 右侧图：使用 SVG 插画 */
    --hero-visual-url: url("../images/hero-visual.svg");
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f6f8fb;
    /* 全站：浅渐变（保持干净），避免大面积重复纹理“花” */
    background-image:
        radial-gradient(900px 460px at 8% 4%, rgba(52, 152, 219, 0.18) 0%, rgba(52, 152, 219, 0.00) 60%),
        radial-gradient(760px 420px at 92% 10%, rgba(102, 126, 234, 0.18) 0%, rgba(102, 126, 234, 0.00) 62%);
    background-repeat: no-repeat, no-repeat;
    background-size: auto, auto;
    background-position: left top, right top;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* 头部样式 */
.site-header {
    background-color: var(--primary-color);
    background-image:
        linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(0,0,0,0.10) 100%),
        var(--pattern-url);
    background-repeat: no-repeat, repeat;
    background-size: cover, 520px 520px;
    background-position: center, left top;
    color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.main-nav a:hover {
    opacity: 0.8;
}

/* 主要内容区域 */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Hero区域 */
.hero-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 520px at 10% 20%, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.00) 62%),
        linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: -40px;
    background-image: var(--pattern-url);
    background-repeat: repeat;
    background-size: 520px 520px;
    opacity: 0.10;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 2.25rem;
    position: relative;
    z-index: 1;
    text-align: left;
}

.hero-copy {
    max-width: 720px;
}

.hero-visual {
    width: 100%;
    height: 260px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    /* 右侧面板：增强视觉冲击力 - 多层光晕 + 动态数据流 SVG */
    background-image:
        radial-gradient(ellipse 400px 200px at 20% 30%, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.00) 70%),
        radial-gradient(ellipse 350px 180px at 80% 70%, rgba(96,165,250,0.25) 0%, rgba(96,165,250,0.00) 70%),
        var(--hero-visual-url);
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-size: auto, auto, cover;
    background-position: left top, right bottom, center;
    box-shadow: 
        0 24px 80px rgba(0,0,0,0.30),
        0 0 0 1px rgba(255,255,255,0.10) inset,
        0 0 60px rgba(139,92,246,0.20);
    opacity: 0.98;
    position: relative;
    overflow: hidden;
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.00) 50%);
    pointer-events: none;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
}

/* 介绍区域 */
.intro-section {
    position: relative;
    overflow: hidden;
    padding: 3rem 0;
    text-align: center;
    background:
        radial-gradient(680px 360px at 15% 10%, rgba(245, 158, 11, 0.10) 0%, rgba(245, 158, 11, 0.00) 65%),
        radial-gradient(720px 380px at 85% 0%, rgba(20, 184, 166, 0.10) 0%, rgba(20, 184, 166, 0.00) 65%),
        rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(6px);
    border-top: 1px solid rgba(44, 62, 80, 0.06);
    border-bottom: 1px solid rgba(44, 62, 80, 0.06);
}

.intro-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--pattern-url);
    background-repeat: repeat;
    background-size: 620px 620px;
    opacity: 0.02;
    pointer-events: none;
}

.intro-section::after {
    content: "";
    position: absolute;
    inset: -120px;
    background:
        radial-gradient(520px 320px at 10% 55%, rgba(245, 158, 11, 0.16) 0%, rgba(245, 158, 11, 0.00) 70%),
        radial-gradient(560px 340px at 90% 45%, rgba(20, 184, 166, 0.16) 0%, rgba(20, 184, 166, 0.00) 72%);
    opacity: 0.9;
    pointer-events: none;
}

.intro-section .container {
    position: relative;
    z-index: 1;
}

.intro-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.intro-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0;
    padding: 2.25rem 1.75rem;
    min-height: 240px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(44, 62, 80, 0.10);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.10);
    background: rgba(255, 255, 255, 0.70);
}

.intro-media {
    /* 把原“左侧图片”改为整块背景 */
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    background-image:
        linear-gradient(135deg, rgba(255,255,255,0.62) 0%, rgba(255,255,255,0.16) 55%, rgba(255,255,255,0.00) 100%),
        var(--intro-visual-url);
    background-repeat: no-repeat, no-repeat;
    background-size: cover, cover;
    background-position: center, center;
    opacity: 1;
}

/* 叠层卡片：让 intro 配图更“设计感”，且与 banner 的玻璃卡不同 */
.intro-media::before,
.intro-media::after {
    content: none;
}

.intro-media::before {
    content: none;
}

.intro-media::after {
    content: none;
}

.intro-copy {
    max-width: 720px;
    justify-self: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.intro-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.6rem;
    line-height: 1.15;
}

.intro-title__sep {
    opacity: 0.55;
    font-weight: 600;
}

.intro-highlights {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.75rem;
}

.intro-highlight {
    text-align: left;
    background: rgba(255, 255, 255, 0.70);
    border: 1px solid rgba(44, 62, 80, 0.10);
    border-radius: 16px;
    padding: 1.05rem 1.05rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.intro-highlight::before {
    content: "";
    position: absolute;
    inset: -40px;
    background-image: var(--pattern-url);
    background-repeat: repeat;
    background-size: 860px 860px;
    opacity: 0.025;
    pointer-events: none;
}

.intro-highlight__title,
.intro-highlight__desc {
    position: relative;
    z-index: 1;
}

.intro-highlight__title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.35rem;
}

.intro-highlight__desc {
    color: rgba(51, 51, 51, 0.78);
    line-height: 1.65;
    font-size: 0.98rem;
}

.intro-section h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.intro-section h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.2rem;
    color: var(--text-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    background: rgba(52, 152, 219, 0.10);
    border: 1px solid rgba(52, 152, 219, 0.22);
    transition: background-color 0.2s, transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.cta-text:hover {
    background: rgba(52, 152, 219, 0.14);
    border-color: rgba(52, 152, 219, 0.30);
    transform: translateY(-1px);
}

/* Intro 背景图上：让“联系我们”更醒目 */
.intro-section .cta-text {
    color: #fff;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.95) 0%, rgba(102, 126, 234, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        0 14px 34px rgba(52, 152, 219, 0.25),
        0 0 0 1px rgba(0,0,0,0.04) inset;
}

.intro-section .cta-text:hover {
    transform: translateY(-2px);
    box-shadow:
        0 18px 42px rgba(52, 152, 219, 0.30),
        0 0 0 1px rgba(0,0,0,0.04) inset;
}

.intro-section .cta-text:focus-visible {
    outline: 3px solid rgba(52, 152, 219, 0.35);
    outline-offset: 3px;
}

/* 产品区域 */
.products-section {
    position: relative;
    padding: 4rem 0;
}

.products-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(900px 520px at 0% 10%, rgba(118, 75, 162, 0.10) 0%, rgba(118, 75, 162, 0.00) 60%),
        var(--pattern-url);
    background-repeat: no-repeat, repeat;
    background-size: auto, 680px 680px;
    opacity: 0.06;
    pointer-events: none;
}

.products-section .container {
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

.products-grid {
    display: grid;
    /* 默认：移动端 1 列，避免拥挤 */
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* 中等屏：2列 */
@media (min-width: 780px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* 两列时：统一卡片高度，让上下两行更整齐 */
    .product-card {
        min-height: 420px;
    }
}

/* 桌面端保持 2 列，避免 4 列拥挤；如需更多列可再调断点 */

.product-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: "";
    position: absolute;
    inset: -40px;
    background-image: var(--pattern-url);
    background-repeat: repeat;
    background-size: 760px 760px;
    opacity: 0.04;
    pointer-events: none;
}

.product-card > * {
    position: relative;
    z-index: 1;
}

.product-card__icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
}

.product-card__icon img {
    display: block;
}

.product-card--link {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    position: relative;
}

.product-card--link:focus-visible {
    outline: 3px solid rgba(52, 152, 219, 0.35);
    outline-offset: 3px;
}

.product-card__cta {
    margin-top: auto;
    padding-top: 1.25rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.product-card ul {
    list-style-position: inside;
    margin-top: 1rem;
}

.product-card li {
    margin-bottom: 0.5rem;
}

/* 文章列表（如果未来需要在某页展示） */
.category {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

/* 公司介绍区域 */
.company-section {
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
    text-align: center;
}

.company-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(820px 460px at 100% 0%, rgba(52, 152, 219, 0.12) 0%, rgba(52, 152, 219, 0.00) 62%),
        var(--pattern-url);
    background-repeat: no-repeat, repeat;
    background-size: auto, 720px 720px;
    opacity: 0.08;
    pointer-events: none;
}

.company-section .container {
    position: relative;
    z-index: 1;
}

.company-description {
    font-size: 1.2rem;
    color: #666;
    margin: 1rem 0;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--secondary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

/* 页面内容 */
.page-content, .article-content {
    padding: 3rem 0;
}

.page-content .container,
.article-content .container {
    background: var(--surface-bg);
    border: 1px solid var(--surface-border);
    border-radius: 18px;
    padding: 2.25rem 1.75rem;
    box-shadow: var(--surface-shadow);
    backdrop-filter: blur(8px);
}

.page-header, .article-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.page-header h1, .article-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.page-body, .article-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* 产品与服务单页：与首页一致的卡片网格、等高、带图标 */
.page-content--products .page-header {
    margin-bottom: 2.5rem;
}

.page-content--products .products-section--page {
    padding: 0;
    margin-top: 0;
}

.page-content--products .products-section--page::before {
    display: none;
}

.page-content--products .products-grid {
    margin-top: 0;
}

/* 产品页图片：大气展示 */
.product-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    margin: 0.25rem 0 1.25rem;
}

.product-brand img {
    width: 140px;
    max-width: 45vw;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(11, 75, 120, 0.10);
    background: #fff;
}

.product-hero {
    margin: 1.25rem 0 1.5rem;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(11, 75, 120, 0.12);
    box-shadow: 0 18px 50px rgba(11, 75, 120, 0.12);
    background: #fff;
}

.product-hero img {
    display: block;
    max-width: 100%;
    max-height: 1080px;
    width: auto;
    height: auto;
    margin: 0 auto;
}

.media-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}

.media-grid img {
    display: block;
    border-radius: 16px;
    border: 1px solid rgba(11, 75, 120, 0.10);
    box-shadow: 0 12px 34px rgba(11, 75, 120, 0.10);
}

.page-body h2, .article-body h2 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.page-body h3, .article-body h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.page-body ul, .article-body ul,
.page-body ol, .article-body ol {
    margin-left: 2rem;
    margin-top: 1rem;
}

.page-body li, .article-body li {
    margin-bottom: 0.5rem;
}

.article-nav {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.btn-back {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-back:hover {
    background-color: #1a252f;
}

.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background-color: #ecf0f1;
    color: var(--text-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* 页脚 */
.site-footer {
    background-color: var(--primary-color);
    background-image:
        linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(0,0,0,0.12) 100%);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

.footer-content p {
    margin: 0.5rem 0;
}

/* 公安备案（页脚） */
.mps-beian a {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    opacity: 0.92;
}

.mps-beian a:hover {
    opacity: 1;
    text-decoration: underline;
}

.mps-beian img {
    width: 16px;
    height: 16px;
    display: inline-block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        height: 190px;
        border-radius: 18px;
        opacity: 0.9;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .intro-highlights {
        grid-template-columns: 1fr;
    }

    .intro-top {
        min-height: 200px;
        padding: 1.75rem 1.15rem;
    }

    .intro-title {
        justify-content: center;
    }

    .intro-media {
        border-radius: 0;
    }

    .page-content .container,
    .article-content .container {
        padding: 1.5rem 1.1rem;
        border-radius: 14px;
        box-shadow: 0 14px 48px rgba(0, 0, 0, 0.10);
    }
}

@media (max-width: 980px) and (min-width: 769px) {
    .intro-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .intro-top {
        min-height: 220px;
    }

    .intro-title {
        justify-content: center;
    }

    .intro-media {
        border-radius: 0;
    }
}

/* 超小屏：降低背景纹理密度 */
@media (max-width: 520px) {
    body {
        background-size: auto, auto, 720px 720px;
    }
}

