/* 河北坤软科技有限公司官网样式 */

:root {
    --brand-blue: #0b5ed7;
    --brand-blue-light: #e6f0ff;
    --brand-blue-dark: #06316c;
    --text-primary: #0f172a;
    --text-secondary: #4b5563;
    --bg-light: #f5f7fb;
    --border-color: #d6e2f5;
    --shadow-soft: 0 18px 40px rgba(9, 48, 116, 0.12);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    font-size: 16px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "PingFang SC", "Microsoft Yahei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-primary);
    background: #fff;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

main {
    overflow: hidden;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 4vw;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(11, 94, 215, 0.08);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(11, 94, 215, 0.1);
    padding: 0.75rem 4vw;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.brand-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.brand-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    gap: 1rem;
    font-size: 0.95rem;
    transition: max-height 0.3s ease;
}

.site-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--brand-blue);
    background: var(--brand-blue-light);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    padding: 0.25rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: center;
    gap: 3rem;
    padding: 5rem 4vw 4rem;
    background: linear-gradient(135deg, rgba(11, 94, 215, 0.06), rgba(11, 94, 215, 0.02));
}

.hero-text .eyebrow {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: var(--brand-blue);
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.2;
    margin: 0 0 1rem;
}

.hero-desc {
    color: var(--text-secondary);
    max-width: 40rem;
}

.cta-buttons {
    margin: 2rem 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(120deg, #0a66ff, #0b5ed7);
    box-shadow: 0 20px 40px rgba(11, 94, 215, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    color: var(--brand-blue);
    border-color: rgba(11, 94, 215, 0.4);
    background: transparent;
}

.hero-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
}

.hero-tags li {
    padding: 0.4rem 0.9rem;
    background: #fff;
    border-radius: 999px;
    border: 1px solid rgba(11, 94, 215, 0.2);
    font-size: 0.9rem;
}

.hero-visual {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.hero-visual p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.product-showcase-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1.5rem;
    text-align: center;
}

.product-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.9rem;
    max-height: 420px;
    overflow-y: auto;
    padding: 0.5rem;
}

.product-showcase::-webkit-scrollbar {
    width: 6px;
}

.product-showcase::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
}

.product-showcase::-webkit-scrollbar-thumb {
    background: var(--brand-blue);
    border-radius: 10px;
}

.product-showcase::-webkit-scrollbar-thumb:hover {
    background: var(--brand-blue-dark);
}

.product-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(11, 94, 215, 0.05), rgba(11, 94, 215, 0.02));
    border: 1px solid rgba(11, 94, 215, 0.15);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    text-align: left;
}

.product-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 94, 215, 0.15);
    border-color: var(--brand-blue);
    background: linear-gradient(135deg, rgba(11, 94, 215, 0.1), rgba(11, 94, 215, 0.05));
}

.product-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    line-height: 1;
}

.product-name {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.4;
    flex: 1;
}

.section {
    padding: 4rem 4vw;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 0.6rem;
}

.section-header p {
    color: var(--text-secondary);
}

.about {
    background: var(--bg-light);
}

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

.about-grid article {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(11, 94, 215, 0.08);
}

.services {
    background: #fff;
}

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

.service-card {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 1.75rem;
    background: #fff;
}

.service-card .icon {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.service-card ul {
    padding-left: 1.1rem;
    color: var(--text-secondary);
}

.service-note {
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    background: var(--brand-blue-light);
    border-radius: var(--radius-md);
    color: var(--brand-blue);
    font-size: 0.95rem;
}

.cases {
    background: var(--bg-light);
}

.product-suite {
    background: #fff;
}

.ai {
    background: var(--bg-light);
}

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

.ai-card {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid rgba(11, 94, 215, 0.15);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    box-shadow: 0 10px 25px rgba(6, 49, 108, 0.08);
}

.ai-card h3 {
    margin: 0;
}

.ai-card ul {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--text-secondary);
    display: grid;
    gap: 0.35rem;
}

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

.suite-card {
    padding: 1.75rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(11, 94, 215, 0.15);
    background: linear-gradient(145deg, #fff, rgba(11, 94, 215, 0.02));
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.suite-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.suite-card ul {
    padding-left: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
    display: grid;
    gap: 0.35rem;
}

.suite-tag {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: var(--brand-blue-light);
    color: var(--brand-blue);
    border: 1px solid rgba(11, 94, 215, 0.2);
}

.suite-note {
    margin-top: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.product-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.6rem;
    height: 100%;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.product-list::-webkit-scrollbar {
    width: 6px;
}

.product-list::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
}

.product-list::-webkit-scrollbar-thumb {
    background: var(--brand-blue);
    border-radius: 10px;
}

.product-list::-webkit-scrollbar-thumb:hover {
    background: var(--brand-blue-dark);
}

.product-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(11, 94, 215, 0.05), rgba(11, 94, 215, 0.02));
    border: 1px solid rgba(11, 94, 215, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-list li:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 16px rgba(11, 94, 215, 0.15);
    border-color: var(--brand-blue);
    background: linear-gradient(135deg, rgba(11, 94, 215, 0.1), rgba(11, 94, 215, 0.05));
}

.product-list-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.product-list-name {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.3;
    flex: 1;
}

/* 产品弹窗样式 */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.product-modal.is-open {
    display: flex;
}

.product-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.product-modal-content {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
    z-index: 1001;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.product-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

.product-modal-close:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

.product-modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(11, 94, 215, 0.1);
}

.product-modal-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.product-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.product-modal-body {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

.product-modal-body p {
    margin: 0;
}

.case-visual {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid rgba(11, 94, 215, 0.12);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.case-visual img {
    max-height: 100%;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.case-visual p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0.5rem 0 0;
}

.certificates {
    background: #fff;
}

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

.cert-grid figure {
    margin: 0;
    border: 1px solid rgba(11, 94, 215, 0.15);
    border-radius: var(--radius-sm);
    padding: 1rem;
    background: #fff;
    text-align: center;
}

.cert-grid figcaption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cert-note {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.process {
    background: var(--bg-light);
}

.process-steps {
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
}

.process-steps li {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid rgba(11, 94, 215, 0.12);
}

.values .value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.value-grid article {
    border-radius: var(--radius-md);
    border: 1px solid rgba(11, 94, 215, 0.12);
    padding: 1.5rem;
}

.contact {
    background: #fff;
}

.contact-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    border: 1px solid rgba(11, 94, 215, 0.18);
    border-radius: var(--radius-lg);
    padding: 2rem;
    background: linear-gradient(135deg, rgba(11, 94, 215, 0.05), #fff);
    box-shadow: var(--shadow-soft);
}

.contact-card ul {
    padding-left: 1.1rem;
    color: var(--text-secondary);
}

.disclaimer {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

.site-footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 2rem 6vw 5rem;
    border-top: 1px solid rgba(11, 94, 215, 0.12);
    background: #fff;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.site-footer p {
    margin: 0;
    line-height: 1.5;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    text-decoration: none;
    color: #fff;
    background: var(--brand-blue);
    font-size: 1.2rem;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    border: none;
    box-shadow: 0 4px 12px rgba(11, 94, 215, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 30;
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--brand-blue-dark);
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(11, 94, 215, 0.4);
}

.beian {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.beian img {
    border-radius: 50%;
}

@media (max-width: 960px) {
    .site-header {
        padding: 0.7rem 4vw;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #fff;
        border-bottom: 1px solid rgba(11, 94, 215, 0.12);
        padding: 0.5rem 4vw 1rem;
        max-height: 0;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .site-nav.is-open {
        max-height: 400px;
    }

    .site-nav a {
        padding: 0.8rem 1rem;
        display: block;
    }

    .nav-toggle {
        display: flex;
    }
}

@media (max-width: 720px) {
    .site-header {
        padding: 0.6rem 4vw;
    }

    .brand img {
        width: 36px;
        height: 36px;
    }

    .brand {
        gap: 0.6rem;
    }

    .brand-title {
        font-size: 0.95rem;
    }

    .brand-subtitle {
        font-size: 0.75rem;
    }

    .site-nav {
        top: 100%;
        padding: 0.5rem 4vw 1rem;
    }

    .site-nav a {
        padding: 0.75rem 1rem;
    }

    .site-footer {
        flex-direction: column;
        gap: 0.6rem;
        text-align: left;
        align-items: flex-start;
    }

    .hero {
        padding-top: 3rem;
    }

    .product-showcase {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.7rem;
        max-height: 360px;
    }

    .product-item {
        padding: 0.6rem 0.8rem;
        flex-direction: column;
        text-align: center;
        gap: 0.4rem;
    }

    .product-icon {
        font-size: 1.5rem;
    }

    .product-name {
        font-size: 0.85rem;
    }

    .product-showcase-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .product-modal {
        padding: 1rem;
    }

    .product-modal-content {
        padding: 1.5rem;
        max-width: 100%;
    }

    .product-modal-header h3 {
        font-size: 1.2rem;
    }

    .product-modal-icon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 0.5rem 3vw;
    }

    .brand img {
        width: 32px;
        height: 32px;
    }

    .brand-title {
        font-size: 0.85rem;
    }

    .brand-subtitle {
        font-size: 0.7rem;
    }

    .site-nav {
        top: 100%;
        padding: 0.4rem 3vw 0.8rem;
    }

    .site-nav a {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }

    .hero {
        padding-top: 2.5rem;
    }
}

