/* 全站基础：仅在这里定义品牌色与公共尺寸。 */
:root {
    --brand-blue: #46aef7;
    --brand-cyan: #1dd5e6;
    --nav-active: #43b1f6;
    --text-body: #6e6e6e;
    --text-muted: #9e9e9e;
    --surface-muted: #f5f5f5;
    --border-light: #e4ecf3;
    --page-inset: 5%;
    --section-space: 80px;
}

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

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    color: #222;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

/* 公共标题：版块只负责各自的标题间距。 */
.section-heading {
    padding-left: 20px;
    border-left: 6px solid var(--brand-blue);
    font-size: 30px;
    font-weight: 800;
}

.section-heading span {
    display: block;
    color: var(--text-muted);
}

.section-heading--about {
    margin-bottom: 70px;
    line-height: 40px;
}

.section-heading--advantages,
.section-heading--honors {
    margin-bottom: 40px;
}

.section-heading--founder {
    margin-bottom: 20px;
}

/* 导航：透明与实色状态由脚本切换。 */
.site-nav {
    position: fixed;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 30px;
    transition: background-color 0.3s;
}

.site-nav__brand {
    height: 50px;
}

.site-nav__logo {
    width: auto;
    height: 100%;
}

.site-nav__links a {
    margin: 0 50px;
    text-decoration: none;
    transition: color 0.3s;
}

.site-nav__links {
    display: flex;
    align-items: center;
    list-style: none;
}

.site-nav__toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.site-nav__toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.25s, opacity 0.25s;
}

.site-nav.is-transparent {
    border-bottom: 1px solid var(--border-light);
    background-color: transparent;
    color: white;
}

.is-transparent .site-nav__links a {
    color: white;
    text-shadow: 1px 1px 2px rgb(0 0 0 / 30%);
}

.site-nav.is-solid {
    background-color: white;
    box-shadow: 0 2px 5px rgb(0 0 0 / 10%);
    color: #333;
}

.is-solid .site-nav__links a {
    color: #333;
    text-shadow: none;
}

.is-transparent .site-nav__logo--light,
.is-solid .site-nav__logo--dark {
    display: block;
}

.is-transparent .site-nav__logo--dark,
.is-solid .site-nav__logo--light {
    display: none;
}

.site-nav__links a.is-current {
    color: var(--nav-active);
}

.site-nav--always-solid .current-menu-item > a,
.site-nav--always-solid .current_page_item > a {
    color: var(--nav-active);
}

.site-nav__links a:focus-visible,
.hero__link:focus-visible,
.site-footer a:focus-visible,
.site-nav__toggle:focus-visible {
    outline: 3px solid var(--nav-active);
    outline-offset: 4px;
}

/* 首屏：背景、遮罩与内容分层。 */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: url('https://xinyueshangya.oss-cn-chengdu.aliyuncs.com//images/20260918/3314/17896966958453.png') center / cover no-repeat;
}

.hero::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgb(0 0 0 / 50%);
    content: '';
}

.hero__content {
    position: relative;
    z-index: 2;
    margin-top: 300px;
    width: min(90%, 1800px);
    color: white;
}

.hero h1 {
    font-size: 100px;
    font-weight: 400;
}

.hero__translation {
    margin-top: 10px;
    font-size: 48px;
    line-height: 50px;
}

.hero__link {
    display: inline-block;
    margin-top: 40px;
    padding: 5px 30px;
    background: linear-gradient(to right, var(--brand-blue), var(--brand-cyan));
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.hero__link:hover {
    background: linear-gradient(to right, var(--brand-cyan), var(--brand-blue));
}

.hero__services {
    display: flex;
    justify-content: flex-end;
    margin-top: 200px;
}

.hero__services span {
    margin: 0 50px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
    font-size: 20px;
}

/* 企业介绍与经营数据。 */
.about {
    display: flex;
    gap: 40px;
    padding: 120px var(--page-inset);
}

.about__content,
.about__image {
    flex: 1;
}

.about__content > p {
    color: var(--text-body);
    font-size: 24px;
    font-weight: 500;
    line-height: 60px;
}

.about__image img {
    width: 80%;
    height: auto;
}

.statistics {
    display: flex;
    justify-content: space-between;
    margin-top: 100px;
}

.statistics__item {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.statistics__value {
    order: -1;
    color: #c0a251;
    font-size: 90px;
    font-weight: 800;
}

.statistics__unit {
    font-size: 18px;
}

.statistics__label {
    margin-left: 10px;
    color: #000;
    font-size: 22px;
    font-weight: 500;
}

/* 四项企业优势。 */
.advantages {
    padding: var(--section-space) var(--page-inset);
    background: var(--surface-muted);
}

.advantages__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    padding: 80px;
    background: white;
    text-align: left;
}

.advantage img {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
}

.advantage h3 {
    margin-bottom: 5px;
    font-size: 20px;
}

.advantage__translation {
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 16px;
}

.advantage__description {
    color: var(--text-body);
    font-size: 14px;
}

.advantages__summary {
    counter-reset: summary;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 50px 0 0;
    padding: 36px 0 4px;
    border-top: 1px solid #d8e1e7;
    color: #17394f;
    list-style: none;
}

.advantages__summary li {
    position: relative;
    counter-increment: summary;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-align: center;
}

.advantages__summary li::before {
    display: block;
    margin-bottom: 5px;
    color: var(--brand-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    content: '0' counter(summary);
}

.advantages__summary li:not(:last-child)::after {
    position: absolute;
    top: 50%;
    right: 0;
    width: 1px;
    height: 32px;
    background: #d8e1e7;
    content: '';
    transform: translateY(-50%);
}

/* 创始人：人物主视觉、身份信息与品牌时间轴。 */
.founder {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: var(--section-space) var(--page-inset);
    background: white;
}

.founder__body {
    display: grid;
    grid-template-columns: minmax(340px, 34%) minmax(0, 1fr);
    gap: clamp(48px, 5vw, 88px);
    align-items: stretch;
    width: 100%;
}

.founder__portrait {
    position: relative;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

.founder__portrait img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.founder__portrait figcaption {
    position: absolute;
    bottom: 24px;
    left: 24px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    color: white;
}

.founder__portrait figcaption span {
    margin-bottom: 4px;
    color: #6bc4ff;
    font-size: 12px;
    letter-spacing: 0.24em;
}

.founder__portrait figcaption strong {
    font-size: 19px;
    font-weight: 500;
}

.founder__profile {
    padding: 12px 0 0 16px;
}

.founder__identity {
    padding-bottom: 28px;
    border-bottom: 1px solid #e5edf2;
}

.founder__identity > p {
    margin-bottom: 8px;
    color: var(--brand-blue);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.22em;
}

.founder__profile h3 {
    display: flex;
    align-items: baseline;
    gap: 20px;
    font-size: clamp(52px, 4vw, 70px);
    line-height: 1.2;
}

.founder__profile h3 span {
    margin-left: 0;
    font-size: clamp(20px, 1.5vw, 26px);
}

.founder__credentials {
    counter-reset: credential;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 42px;
    margin: 34px 0 54px;
    list-style: none;
}

.founder__credentials li {
    position: relative;
    counter-increment: credential;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid #dce7ed;
    font-size: 18px;
    line-height: 1.5;
}

.founder__credentials li::before {
    color: var(--brand-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 2.25;
    content: '0' counter(credential);
}

.founder__history h4 {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 28px;
    font-size: 28px;
}

.founder__history h4 span {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 400;
}

.founder__timeline {
    position: relative;
    list-style: none;
}

.founder__timeline::before {
    position: absolute;
    top: 10px;
    bottom: 12px;
    left: 84px;
    width: 1px;
    background: #d5e5ef;
    content: '';
}

.founder__timeline li {
    position: relative;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 32px;
    padding-bottom: 24px;
}

.founder__timeline li:last-child {
    padding-bottom: 0;
}

.founder__timeline li::before {
    position: absolute;
    top: 6px;
    left: 78px;
    z-index: 1;
    width: 13px;
    height: 13px;
    border: 3px solid white;
    border-radius: 50%;
    background: var(--brand-blue);
    content: '';
}

.founder__timeline time {
    color: #153c58;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.founder__timeline p {
    color: var(--text-body);
    font-size: 17px;
    line-height: 1.9;
}

/* 品牌荣誉：十五张图片，桌面每行五张。 */
.honors {
    padding: var(--section-space) var(--page-inset);
    background: var(--surface-muted);
}

.honors__gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    width: 100%;
    margin: 0 auto;
    list-style: none;
}

.honors__gallery li {
    display: grid;
    place-items: center;
    min-height: 170px;
    padding: 26px 22px;
    transition: transform 0.25s;
}

.honors__gallery li:hover {
    transform: translateY(-4px);
}

.honors__gallery img {
    width: 100%;
    height: auto;
}

/* 页脚：品牌信息、站内导航和二维码。 */
.site-footer {
    position: relative;
    overflow: hidden;
    padding: 0 var(--page-inset);
    background:
        radial-gradient(circle at 92% 10%, rgb(70 174 247 / 18%), transparent 26%),
        linear-gradient(135deg, #071523, #102c40);
    color: white;
}

.site-footer::before {
    position: absolute;
    top: -150px;
    left: 42%;
    width: 320px;
    height: 320px;
    border: 1px solid rgb(255 255 255 / 7%);
    border-radius: 50%;
    content: '';
}

.site-footer__main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: clamp(40px, 6vw, 110px);
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 76px 0 64px;
}

.site-footer__logo {
    width: 238px;
    height: auto;
}

.site-footer__brand p {
    margin-top: 24px;
    font-size: 22px;
    letter-spacing: 0.06em;
}

.site-footer__brand > span {
    display: block;
    margin-top: 10px;
    color: rgb(255 255 255 / 55%);
    font-size: 14px;
    letter-spacing: 0.08em;
}

.site-footer__navigation h2 {
    margin-bottom: 20px;
    font-size: 17px;
    font-weight: 600;
}

.site-footer__navigation div,
.site-footer__navigation ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 26px;
    list-style: none;
}

.site-footer__navigation a {
    color: rgb(255 255 255 / 65%);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer__navigation a:hover {
    color: white;
}

.site-footer__follow {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-footer__qr {
    width: 112px;
    height: 112px;
    padding: 7px;
    border-radius: 8px;
    background: white;
}

.site-footer__follow div {
    display: flex;
    flex-direction: column;
}

.site-footer__follow strong {
    font-size: 17px;
}

.site-footer__follow span {
    margin-top: 6px;
    color: rgb(255 255 255 / 55%);
    font-size: 13px;
}

.site-footer__bottom {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    max-width: 1600px;
    margin: 0 auto;
    padding: 22px 0 28px;
    border-top: 1px solid rgb(255 255 255 / 10%);
    color: rgb(255 255 255 / 42%);
    font-size: 13px;
}

.site-footer__bottom a {
    color: inherit;
    text-decoration: none;
}

.site-footer__bottom a:hover {
    color: rgb(255 255 255 / 75%);
}

/* 中等桌面与平板横屏：压缩超大字号和横向间距。 */
@media (max-width: 1440px) {
    .site-nav__links a {
        margin: 0 24px;
    }

    .hero__content {
        margin-top: 180px;
    }

    .hero h1 {
        font-size: clamp(54px, 6vw, 80px);
    }

    .hero__translation {
        font-size: clamp(30px, 3.2vw, 42px);
        line-height: 1.15;
    }

    .hero__services {
        margin-top: 120px;
    }

    .hero__services span {
        margin: 0 28px;
    }

    .about__content > p {
        font-size: 20px;
        line-height: 2.2;
    }

    .statistics__value {
        font-size: 58px;
    }

    .statistics__label {
        font-size: 18px;
    }

    .advantage {
        padding: 42px;
    }

    .founder__credentials li {
        font-size: 17px;
    }

    .honors__gallery {
        gap: 24px;
    }
}

/* 平板竖屏：主要内容改为单列，卡片与荣誉保留多列。 */
@media (max-width: 1024px) {
    :root {
        --page-inset: 6%;
        --section-space: 70px;
    }

    .site-nav__links a {
        margin: 0 14px;
    }

    .hero__content {
        margin-top: 120px;
    }

    .hero__services {
        margin-top: 90px;
    }

    .hero__services span {
        margin: 0 16px;
        font-size: 17px;
    }

    .about {
        flex-direction: column;
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .about__image img {
        width: min(100%, 620px);
        margin: 0 auto;
    }

    .statistics {
        margin-top: 64px;
    }

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

    .advantage {
        min-height: 340px;
        aspect-ratio: auto;
    }

    .founder__body {
        grid-template-columns: minmax(270px, 34%) minmax(0, 1fr);
        align-items: stretch;
    }

    .founder__profile {
        padding: 8px 0 0 8px;
    }

    .founder__credentials {
        grid-template-columns: 1fr;
    }

    .site-footer__main {
        grid-template-columns: 1.2fr 0.8fr;
    }

    .site-footer__follow {
        grid-column: 1 / -1;
        padding-top: 28px;
        border-top: 1px solid rgb(255 255 255 / 10%);
    }

    .honors__gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 32px;
    }
}

/* 手机：折叠导航，所有主要模块适配窄屏阅读。 */
@media (max-width: 768px) {
    :root {
        --page-inset: 20px;
        --section-space: 56px;
    }

    .site-nav {
        padding: 12px 20px;
    }

    .site-nav__brand {
        height: 40px;
    }

    .site-nav__toggle {
        position: relative;
        z-index: 2;
        display: block;
    }

    .site-nav__links {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 8px 20px 18px;
        background: white;
        box-shadow: 0 8px 20px rgb(0 0 0 / 12%);
    }

    .site-nav__links a,
    .is-transparent .site-nav__links a,
    .is-solid .site-nav__links a {
        margin: 0;
        padding: 12px 4px;
        border-bottom: 1px solid #eee;
        color: #333;
        text-shadow: none;
    }

    .site-nav__links a:last-child {
        border-bottom: 0;
    }

    .site-nav__links li {
        width: 100%;
    }

    .site-nav__links a.is-current {
        color: var(--nav-active);
    }

    .site-nav.is-menu-open {
        background: white;
        color: #333;
        box-shadow: 0 2px 5px rgb(0 0 0 / 10%);
    }

    .site-nav.is-menu-open .site-nav__links {
        display: flex;
    }

    .site-nav.is-menu-open .site-nav__logo--light {
        display: none;
    }

    .site-nav.is-menu-open .site-nav__logo--dark {
        display: block;
    }

    .site-nav.is-menu-open .site-nav__toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-nav.is-menu-open .site-nav__toggle span:nth-child(2) {
        opacity: 0;
    }

    .site-nav.is-menu-open .site-nav__toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .section-heading {
        padding-left: 14px;
        border-left-width: 4px;
        font-size: 26px;
        line-height: 1.35;
    }

    .section-heading--about,
    .section-heading--advantages,
    .section-heading--founder,
    .section-heading--honors {
        margin-bottom: 32px;
    }

    .hero {
        min-height: 640px;
        height: 100svh;
        padding: 88px 20px 36px;
    }

    .hero__content {
        width: 100%;
        margin-top: 70px;
    }

    .hero h1 {
        max-width: 12em;
        font-size: clamp(34px, 10vw, 48px);
        line-height: 1.25;
    }

    .hero__translation {
        font-size: clamp(16px, 4.5vw, 22px);
        line-height: 1.45;
    }

    .hero__link {
        margin-top: 28px;
        padding: 8px 26px;
    }

    .hero__services {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 18px;
        margin-top: 64px;
    }

    .hero__services span {
        margin: 0;
        font-size: 16px;
    }

    .about {
        gap: 40px;
        padding-top: var(--section-space);
        padding-bottom: var(--section-space);
    }

    .about__content > p {
        font-size: 16px;
        line-height: 2;
    }

    .statistics {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 16px;
        margin-top: 44px;
    }

    .statistics__value {
        font-size: 46px;
    }

    .statistics__label {
        margin-left: 0;
        font-size: 15px;
    }

    .advantages__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .advantage {
        min-height: 0;
        padding: 36px 26px;
    }

    .advantage img {
        width: 76px;
    }

    .advantage__description {
        max-width: 34em;
        line-height: 1.8;
    }

    .advantages__summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin: 34px 0 0;
        padding: 16px;
    }

    .advantages__summary li {
        padding: 13px 8px;
        border-radius: 8px;
        background: rgb(255 255 255 / 8%);
        font-size: 17px;
        letter-spacing: 0.08em;
    }

    .advantages__summary li:not(:last-child)::after {
        display: none;
    }

    .advantages__summary li:last-child {
        grid-column: 1 / -1;
    }

    .founder__body {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .founder__portrait {
        position: relative;
        width: min(100%, 420px);
        height: auto;
        margin: 0 auto;
    }

    .founder__portrait img {
        position: static;
        height: auto;
    }

    .founder__profile {
        padding: 0;
    }

    .founder__profile h3 {
        gap: 14px;
        font-size: 36px;
    }

    .founder__profile h3 span {
        font-size: 18px;
    }

    .founder__credentials {
        grid-template-columns: 1fr;
        margin: 32px 0;
    }

    .founder__credentials li {
        font-size: 17px;
    }

    .founder__timeline p {
        font-size: 16px;
        line-height: 2;
    }

    .founder__timeline::before {
        left: 64px;
    }

    .founder__timeline li {
        grid-template-columns: 50px minmax(0, 1fr);
        gap: 28px;
    }

    .founder__timeline li::before {
        left: 58px;
    }

    .founder__timeline time {
        font-size: 16px;
    }

    .honors__gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .honors__gallery li {
        min-height: 130px;
        padding: 18px 12px;
    }

    .site-footer {
        padding: 0 20px;
    }

    .site-footer__main {
        grid-template-columns: 1fr;
        gap: 38px;
        padding: 56px 0 42px;
    }

    .site-footer__logo {
        width: min(48vw, 190px);
    }

    .site-footer__brand p {
        margin-top: 20px;
        font-size: 19px;
    }

    .site-footer__navigation div,
    .site-footer__navigation ul {
        max-width: 320px;
    }

    .site-footer__follow {
        grid-column: auto;
        padding-top: 30px;
    }

    .site-footer__qr {
        width: 96px;
        height: 96px;
    }

    .site-footer__bottom {
        flex-direction: column;
        gap: 8px;
        padding: 20px 0 26px;
    }
}

@media (max-width: 390px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero__services {
        gap: 18px 12px;
    }

    .hero__services span {
        font-size: 14px;
    }

    .statistics__value {
        font-size: 40px;
    }

    .founder__profile h3 span {
        display: block;
        margin: 4px 0 0;
    }

    .founder__profile h3 {
        flex-direction: column;
        gap: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
