/* ============================================
   晋特信息科技有限公司 - 全新渐变科技视觉样式
   技术栈：HTML5 + CSS3 + 原生JavaScript
   ============================================ */

/* ============================================
   1. 设计系统变量
   ============================================ */
:root {
    --color-primary: #6366F1;
    --color-primary-dark: #4F46E5;
    --color-secondary: #3B82F6;
    --color-gradient-start: #8B5CF6;
    --color-gradient-end: #3B82F6;
    --color-accent: #10B981;
    --color-surface: #FFFFFF;
    --color-surface-alt: #F9FAFB;
    --color-line: #E5E7EB;
    --color-text: #111827;
    --color-text-muted: #6B7280;
    --color-heading: #0F172A;
    --color-shadow: rgba(15, 23, 42, 0.08);
    --gradient-primary: linear-gradient(120deg, var(--color-gradient-start), var(--color-gradient-end));
    --gradient-dark: linear-gradient(135deg, #1F2937, #111827);

    --font-heading: "Inter", "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-mono: "Fira Code", "JetBrains Mono", monospace;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --shadow-sm: 0 8px 20px rgba(37, 46, 89, 0.08);
    --shadow-md: 0 20px 45px rgba(99, 102, 241, 0.15);
    --shadow-lg: 0 35px 80px rgba(17, 24, 39, 0.3);

    --transition-fast: 0.2s ease;
    --transition-normal: 0.35s ease;
    --transition-slow: 0.6s ease;
}

/* ============================================
   2. 全局基础
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-surface);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-secondary);
}

ul, ol {
    list-style: none;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

section {
    padding: 4rem 0;
    position: relative;
}

.section-gray {
    background: var(--color-surface-alt);
}

.section-gradient {
    background: var(--gradient-primary);
    color: #fff;
}

.sub-hero {
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.35), transparent), var(--gradient-primary);
    color: #fff;
    padding: 4.5rem 0;
}

.sub-hero h1 {
    color: #fff;
}

.sub-hero p {
    color: rgba(255, 255, 255, 0.85);
}

.sub-hero .breadcrumb a,
.sub-hero .breadcrumb span {
    color: rgba(255, 255, 255, 0.85);
}

.page-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: start;
}

.feature-panel {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(99, 102, 241, 0.08);
}

.subpage-rich {
    padding: 3rem 0;
}

.subpage-rich.alt {
    background: var(--color-surface-alt);
}

.rich-note {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    background: rgba(99, 102, 241, 0.08);
    color: var(--color-heading);
    font-weight: 600;
}

.rich-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.rich-card .list-check {
    margin-top: 0.5rem;
}

.subpage-rich__cta {
    margin-top: 2.5rem;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

.subpage-rich__cta p {
    margin-bottom: 0;
    color: var(--color-heading);
    font-weight: 600;
}

.subpage-rich__cta .btn {
    min-width: 180px;
}

@media (max-width: 640px) {
    .subpage-rich__cta {
        flex-direction: column;
        text-align: center;
    }
}

.list-check {
    display: grid;
    gap: 0.6rem;
}

.list-check li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.list-check li::before {
    content: '✔';
    color: var(--color-accent);
    font-weight: 700;
    margin-top: 0.2rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
}

.metric-card {
    padding: 1.2rem;
    border-radius: var(--radius-lg);
    background: var(--color-surface-alt);
    border: 1px solid rgba(99, 102, 241, 0.08);
}

.quote-block {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: #0F172A;
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.container {
    width: min(1200px, 90vw);
    margin: 0 auto;
}

.container-wide {
    width: min(1320px, 92vw);
    margin: 0 auto;
}

/* ============================================
   3. 按钮与标签
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    padding: 0.85rem 1.8rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    border-color: rgba(99, 102, 241, 0.4);
    color: var(--color-primary);
    background: transparent;
}

.btn-outline:hover {
    border-color: transparent;
    background: rgba(99, 102, 241, 0.08);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(99, 102, 241, 0.1);
}

.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.1rem 0.5rem;
    border-radius: var(--radius-pill);
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-accent);
}

/* ============================================
   4. 导航与页脚
   ============================================ */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

header.scrolled {
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-weight: 600;
    color: var(--color-heading);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link span {
    font-size: 0.75rem;
}

.dropdown-menu {
    position: absolute;
    top: 150%;
    left: 0;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-normal);
    min-width: 220px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    top: 110%;
}

.dropdown-item {
    display: block;
    padding: 0.4rem 0.2rem;
    color: var(--color-text);
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.dropdown-item:hover {
    color: var(--color-primary);
    background: rgba(99, 102, 241, 0.08);
}

.nav-actions .btn-contact {
    padding: 0.6rem 1.6rem;
    border-radius: var(--radius-pill);
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle svg {
    color: var(--color-heading);
}

footer {
    background: #0F172A;
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-section h4 {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-section a,
.footer-section li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.4rem;
    display: block;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   5. 英雄区与信任背书
   ============================================ */
.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    align-items: center;
    padding: 5rem 0;
}

.hero-content .tag {
    margin-bottom: 1rem;
}

.hero-content h1 {
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2rem;
}

.section-header p {
    max-width: 640px;
    margin: 0.5rem auto 0;
}

.hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-card {
    padding: 1.2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.hero-visual {
    position: relative;
}

.hero-visual img {
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
}

.hero-visual::after {
    content: "";
    position: absolute;
    inset: 10%;
    border-radius: 32px;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.4), transparent);
    filter: blur(30px);
    z-index: -1;
}

.logo-ticker {
    margin-top: 3rem;
    overflow: hidden;
    width: 100%;
}

.logo-track {
    display: flex;
    gap: 3rem;
    animation: ticker 30s linear infinite;
}

.logo-item {
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 0.15em;
}

@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ============================================
   6. 卡片与网格
   ============================================ */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px) {
    .grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .grid, .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: 1fr; }
}

.card {
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(99, 102, 241, 0.08);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.card-body {
    padding: 2rem;
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* ============================================
   7. 解决方案与流程
   ============================================ */
.solution-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
}

.solution-card {
    min-width: 320px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    color: #fff;
    scroll-snap-align: start;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.process-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    counter-reset: steps;
}

.process-step {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    border: 1px solid rgba(99, 102, 241, 0.15);
    position: relative;
}

.process-step::before {
    counter-increment: steps;
    content: counter(steps);
    position: absolute;
    top: -16px;
    left: 1.5rem;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

/* ============================================
   8. 新闻、案例与文章
   ============================================ */
.news-grid, .case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.news-card {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(99, 102, 241, 0.1);
    background: #fff;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.article-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.article-header img {
    border-radius: var(--radius-lg);
    margin: 1.5rem auto;
    max-height: 420px;
    object-fit: cover;
}

.article-body {
    display: grid;
    gap: 1.25rem;
}

.article-body p {
    color: var(--color-text);
}

.article-share {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.article-share button {
    border: none;
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-primary);
}

/* ============================================
   9. 时间轴与团队
   ============================================ */
.timeline {
    border-left: 2px solid rgba(99, 102, 241, 0.2);
    padding-left: 2rem;
    display: grid;
    gap: 2rem;
}

.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -2.4rem;
    top: 0.4rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.15);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.team-card {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    background: #fff;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.team-card img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
    border: 4px solid rgba(99, 102, 241, 0.25);
}

/* ============================================
   10. 表格与代码区块
   ============================================ */
.table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table thead {
    background: var(--color-surface-alt);
}

.table th {
    text-align: left;
    padding: 1rem;
    font-size: 0.95rem;
    color: var(--color-text);
}

.table td {
    padding: 1rem;
    border-top: 1px solid var(--color-line);
    color: var(--color-text-muted);
}

.code-block {
    font-family: var(--font-mono);
    padding: 1rem;
    border-radius: var(--radius-md);
    background: #0F172A;
    color: #F9FAFB;
}

/* ============================================
   11. 联系与表单
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.contact-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid rgba(99, 102, 241, 0.1);
    box-shadow: var(--shadow-sm);
}

form {
    display: grid;
    gap: 1rem;
}

input, textarea, select {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-line);
    font-family: inherit;
    transition: border var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

textarea {
    min-height: 160px;
    resize: vertical;
}

/* ============================================
   12. 职业与合作
   ============================================ */
.career-list {
    display: grid;
    gap: 1.5rem;
}

.career-card {
    padding: 1.8rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(99, 102, 241, 0.15);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.career-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.partner-card {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* ============================================
   13. 动画与交互
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: var(--transition-slow);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   14. 辅助样式
   ============================================ */
.breadcrumb {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.breadcrumb a {
    color: var(--color-text-muted);
}

.alt {
    background: var(--color-surface-alt);
}

.shadow {
    box-shadow: var(--shadow-sm);
}

.img-rounded {
    border-radius: var(--radius-lg);
}

.stat-box {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid rgba(99, 102, 241, 0.1);
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    color: var(--color-text-muted);
}

/* ============================================
   15. 响应式
   ============================================ */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 80vw);
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 6rem 2rem;
        transform: translateX(110%);
        transition: var(--transition-normal);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height var(--transition-normal);
    }

    .dropdown.active .dropdown-menu {
        max-height: 400px;
        padding: 0.5rem 0;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-actions { display: none; }
}

@media (max-width: 640px) {
    .hero-actions { flex-direction: column; }
    .process-flow { grid-template-columns: 1fr; }
    .stat-card { text-align: center; }
    section { padding: 3rem 0; }
}
