/* 全站公共样式 - 原生手写 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #222;
    line-height: 1.7;
}

body {
    min-height: 100vh;
    background: #f7f9fc;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 1180px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* ===== Header / 导航 ===== */
.site-header {
    background: #0e141b;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-logo {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-logo .logo-dot {
    width: 10px;
    height: 10px;
    background: #ff4d6d;
    border-radius: 50%;
}

.site-nav ul {
    display: flex;
    gap: 2rem;
}

.site-nav a {
    font-size: 0.95rem;
    color: #cfd6df;
    transition: color 0.2s;
    padding: 4px 2px;
    position: relative;
}

.site-nav a:hover,
.site-nav a.current {
    color: #ff4d6d;
}

.site-nav a.current::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: #ff4d6d;
    border-radius: 2px;
}

.header-action .btn-primary {
    background: linear-gradient(135deg, #ff4d6d, #ff8fa3);
    color: #fff;
    padding: 8px 18px;
    border-radius: 22px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.header-action .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 77, 109, 0.35);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
}

/* ===== Hero / 首屏 ===== */
.hero {
    background: linear-gradient(120deg, #0b1020 0%, #1c1330 55%, #0e141b 100%);
    color: #fff;
    padding: 90px 0 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 77, 109, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.hero-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero h1 {
    font-size: 2.6rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hero h1 em {
    font-style: normal;
    color: #ff8fa3;
}

.hero .lead {
    font-size: 1.05rem;
    color: #c9d3e3;
    margin-bottom: 1.8rem;
    max-width: 560px;
}

.hero-btns {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-ghost {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 26px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #ff4d6d, #ff8fa3);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 77, 109, 0.4);
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
}

.hero-visual {
    position: relative;
}

.hero-visual img {
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    aspect-ratio: 16 / 10;
    object-fit: cover;
    width: 100%;
}

.hero-visual .badge {
    position: absolute;
    bottom: -18px;
    left: 20px;
    background: #fff;
    color: #0e141b;
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    font-weight: 600;
    font-size: 0.9rem;
}

.hero-visual .badge strong {
    color: #ff4d6d;
    font-size: 1.15rem;
}

/* ===== 通用 Section ===== */
.section {
    padding: 70px 0;
}

.section-alt {
    background: #ffffff;
}

.section-dark {
    background: #0e141b;
    color: #e8edf5;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
    color: #0e141b;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.section-dark .section-title h2 {
    color: #fff;
}

.section-title p {
    color: #66758a;
    font-size: 0.98rem;
}

.section-dark .section-title p {
    color: #a1a9b8;
}

.section-title .underline {
    width: 50px;
    height: 3px;
    background: #ff4d6d;
    margin: 14px auto 0;
    border-radius: 2px;
}

/* ===== 特性/卡片网格 ===== */
.grid-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    background: #fff;
    border-radius: 14px;
    padding: 1.8rem;
    box-shadow: 0 6px 20px rgba(16, 24, 40, 0.06);
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid #eef1f6;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(16, 24, 40, 0.12);
}

.card .icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #ff4d6d, #ff8fa3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    color: #0e141b;
}

.card p {
    color: #60708a;
    font-size: 0.94rem;
    line-height: 1.7;
}

/* ===== 统计区 ===== */
.stats-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: center;
    padding: 3rem 0;
}

.stats-wrap .num {
    font-size: 2.6rem;
    font-weight: 700;
    color: #ff4d6d;
    display: block;
    margin-bottom: 0.3rem;
}

.stats-wrap .label {
    color: #b0b9c9;
    font-size: 0.95rem;
}

/* ===== Footer ===== */
.site-footer {
    background: #0b1020;
    color: #b7c0d0;
    padding: 60px 0 28px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-col h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-col p {
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a:hover {
    color: #ff8fa3;
}

.footer-col .socials {
    display: flex;
    gap: 10px;
    margin-top: 0.5rem;
}

.footer-col .socials a {
    width: 34px;
    height: 34px;
    background: #1c2537;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
}

.footer-col .socials a:hover {
    background: #ff4d6d;
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #1c2537;
    padding-top: 1.2rem;
    text-align: center;
    font-size: 0.82rem;
    color: #7a8495;
}

/* ===== 通用：页面内 Hero ===== */
.page-hero {
    background: linear-gradient(120deg, #0b1020, #1c1330);
    color: #fff;
    padding: 80px 0 50px;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.page-hero .crumbs {
    color: #a1a9b8;
    font-size: 0.9rem;
}

.page-hero .crumbs a:hover {
    color: #ff8fa3;
}

/* ===== 内容段落 ===== */
.article-box {
    background: #fff;
    padding: 2.2rem;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(16, 24, 40, 0.05);
}

.article-box h2,
.article-box h3 {
    color: #0e141b;
    margin: 1.6rem 0 0.6rem;
}

.article-box h2:first-child,
.article-box h3:first-child {
    margin-top: 0;
}

.article-box p {
    color: #4a5770;
    margin-bottom: 0.9rem;
    line-height: 1.85;
}

.article-box ul {
    list-style: disc;
    padding-left: 1.4rem;
    margin-bottom: 0.9rem;
}

.article-box ul li {
    color: #4a5770;
    margin-bottom: 0.3rem;
}

.article-box figure img {
    border-radius: 10px;
    margin: 1rem 0 0.3rem;
}

.article-box figure figcaption {
    color: #7a8495;
    font-size: 0.85rem;
    text-align: center;
}

/* ===== 产品/服务列表 ===== */
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(16, 24, 40, 0.08);
    border: 1px solid #eef1f6;
    transition: transform 0.25s, box-shadow 0.25s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.14);
}

.service-card .cover {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef1f6;
}

.service-card .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .cover img {
    transform: scale(1.06);
}

.service-card .body {
    padding: 1.4rem;
}

.service-card .tag {
    display: inline-block;
    background: #ffe4ea;
    color: #ff4d6d;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: #0e141b;
}

.service-card p {
    color: #60708a;
    font-size: 0.93rem;
    line-height: 1.75;
    margin-bottom: 0.8rem;
}

.service-card .more {
    color: #ff4d6d;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ===== 新闻列表 ===== */
.news-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.news-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(16, 24, 40, 0.06);
    border: 1px solid #eef1f6;
}

.news-card .cover {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef1f6;
}

.news-card .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card .body {
    padding: 1.2rem 1.4rem 1.4rem;
}

.news-card .meta {
    color: #7a8495;
    font-size: 0.82rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.news-card h3 {
    font-size: 1.08rem;
    margin-bottom: 0.5rem;
    color: #0e141b;
    line-height: 1.45;
}

.news-card p {
    color: #5a6882;
    font-size: 0.9rem;
    line-height: 1.7;
}

.news-hero-card {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.news-hero-card .cover {
    aspect-ratio: auto;
    min-height: 300px;
}

.news-hero-card .body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ===== 联系我们 ===== */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(16, 24, 40, 0.06);
}

.contact-form .field {
    margin-bottom: 1rem;
}

.contact-form label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #2b3448;
    margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #dfe4ef;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fafbfd;
    color: #222;
    transition: border-color 0.2s, background 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: #ff4d6d;
    background: #fff;
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form .actions {
    display: flex;
    justify-content: flex-end;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-info .info-card {
    background: #fff;
    padding: 1.4rem 1.6rem;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(16, 24, 40, 0.06);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-info .info-card .icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #ffe4ea;
    color: #ff4d6d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.contact-info .info-card h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: #0e141b;
}

.contact-info .info-card p {
    color: #5a6882;
    font-size: 0.9rem;
}

/* ===== 响应式 ===== */
@media (max-width: 960px) {
    .hero-wrap {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero {
        padding: 60px 0 40px;
    }
    .news-hero-card {
        grid-template-columns: 1fr;
    }
    .news-list {
        grid-template-columns: 1fr;
    }
    .contact-wrap {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .site-nav ul {
        gap: 1rem;
    }
}

@media (max-width: 720px) {
    .site-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #0e141b;
        padding: 1rem 1.2rem;
        border-top: 1px solid #1c2537;
    }
    .site-nav.open {
        display: block;
    }
    .site-nav ul {
        flex-direction: column;
        gap: 0.8rem;
    }
    .menu-toggle {
        display: inline-block;
    }
    .header-action {
        display: none;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .section {
        padding: 50px 0;
    }
    .section-title h2 {
        font-size: 1.55rem;
    }
    .article-box {
        padding: 1.4rem;
    }
    .page-hero {
        padding: 55px 0 35px;
    }
}
