/**
 * 全站字体层级 — 基于 16px 根字号，rem + clamp 响应式
 */
:root {
  --fs-xs: 0.8125rem;   /* 13px */
  --fs-sm: 0.875rem;    /* 14px */
  --fs-base: 1rem;      /* 16px */
  --fs-md: 1.0625rem;   /* 17px */
  --fs-lg: 1.125rem;    /* 18px */
  --fs-xl: 1.25rem;     /* 20px */
  --fs-2xl: 1.375rem;   /* 22px */
  --fs-3xl: 1.625rem;   /* 26px */
  --fs-4xl: 2rem;       /* 32px */
  --fs-hero: clamp(1.875rem, 3.5vw + 0.75rem, 2.75rem);
  --fs-hero-sub: clamp(1rem, 1.5vw + 0.5rem, 1.2rem);
  --lh-tight: 1.25;
  --lh-snug: 1.4;
  --lh-normal: 1.65;
  --lh-relaxed: 1.75;
  --lh-loose: 1.85;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
}

/* 标题层级 */
h1 { font-size: var(--fs-4xl); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-3xl); line-height: var(--lh-tight); }
h3 { font-size: var(--fs-2xl); line-height: var(--lh-snug); }
h4 { font-size: var(--fs-xl); line-height: var(--lh-snug); }
h5 { font-size: var(--fs-lg); line-height: var(--lh-snug); }
h6 { font-size: var(--fs-base); line-height: var(--lh-snug); }

/* 顶栏导航 */
.top-navbar .navbar-light .navbar-nav > .nav-item:not(.nav-item-lang) > .nav-link {
  font-size: var(--fs-base);
}

/* 首页 Yamifood 模板区块 */
.heading-title h2 {
  font-size: var(--fs-3xl);
  line-height: var(--lh-tight);
}
.heading-title p {
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
}

.cover-slides h1 {
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
}
.cover-slides p {
  font-size: var(--fs-hero-sub);
  line-height: var(--lh-relaxed);
}

body.page-home-yami .cover-slides h1 {
  font-size: clamp(2rem, 4vw + 0.5rem, 2.75rem);
}
body.page-home-yami .cover-slides p.m-b-40 {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
}

.inner-column h1 {
  font-size: var(--fs-3xl);
}

/* 页脚：四栏正文统一字号（覆盖 style.css 中 p / p.lead / p a 三套尺寸） */
.footer-area h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: var(--lh-snug);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
}
.footer-area p,
.footer-area p.lead,
.footer-area p a,
.footer-area p.lead a {
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: var(--lh-relaxed);
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 0.5rem;
  padding-bottom: 0;
}
.footer-area p:last-child,
.footer-area p.lead:last-child {
  margin-bottom: 0;
}
.footer-area p a:hover,
.footer-area p.lead a:hover {
  color: var(--brand-light, #e8f6fc);
}
.footer-area .footer-copyright,
.copyright-bar {
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  color: rgba(255, 255, 255, 0.65);
}

/* 按钮与表单 */
.btn {
  font-size: var(--fs-base);
}
.form-control {
  font-size: var(--fs-base);
}

/* 内页通用 Hero */
.page-hero h1 {
  font-size: var(--fs-hero);
}

/* enterprise.css 内页区块 */
.products-hero__eyebrow {
  font-size: var(--fs-sm);
}
.products-hero__title {
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
}
.products-hero__subtitle {
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
}
.products-hero__tags li {
  font-size: var(--fs-sm);
}

.about-block__title,
.software-item__title {
  font-size: var(--fs-2xl);
}
.about-intro__content,
.solutions-intro__text,
.software-intro__text,
.solution-detail-article__content {
  font-size: var(--fs-md);
  line-height: var(--lh-loose);
}
.about-contact__lead,
.software-foot {
  font-size: var(--fs-base);
}
.about-contact-card__label {
  font-size: var(--fs-sm);
}
.about-contact-card__value {
  font-size: var(--fs-base);
}
.about-contact-card__icon {
  font-size: var(--fs-xl);
}

.solution-list-card__title {
  font-size: var(--fs-xl);
}
.solution-list-card__summary {
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
}
.solution-list-card__more,
.site-breadcrumb-wrap {
  font-size: var(--fs-sm);
}

.solution-detail-article__content h3 {
  font-size: var(--fs-xl);
}
.software-item__desc {
  font-size: var(--fs-base);
  line-height: var(--lh-loose);
}

.products-count {
  font-size: var(--fs-base);
}
.product-list-card__title {
  font-size: var(--fs-lg);
}
.product-list-card__summary {
  font-size: var(--fs-sm);
}
.product-list-card__price {
  font-size: var(--fs-base);
}

.section-title h2 {
  font-size: var(--fs-3xl);
}

/* 首页产品卡片 */
body.page-home-yami #home-products .gallery-single .why-text h4 {
  font-size: var(--fs-2xl);
}
body.page-home-yami #home-products .gallery-single .why-text p {
  font-size: var(--fs-base);
}
body.page-home-yami #home-products .gallery-single .why-text h5 {
  font-size: var(--fs-3xl);
}

body.page-products #product-list .gallery-single .why-text h4,
body.page-product-detail #related-products .gallery-single .why-text h4 {
  font-size: var(--fs-xl);
}
body.page-products #product-list .gallery-single .why-text p,
body.page-product-detail #related-products .gallery-single .why-text p {
  font-size: var(--fs-base);
}
body.page-products #product-list .gallery-single .why-text h5,
body.page-product-detail #related-products .gallery-single .why-text h5 {
  font-size: var(--fs-2xl);
}

body.page-product-detail .product-detail-body {
  font-size: var(--fs-base);
  line-height: var(--lh-loose);
}

body.page-contact .contact-lead {
  font-size: var(--fs-md);
}
body.page-contact .contact-form-card__title {
  font-size: var(--fs-2xl);
}
body.page-contact .contact-form-card__desc,
body.page-contact .contact-work-hours {
  font-size: var(--fs-base);
}
body.page-contact .contact-hours-panel__title {
  font-size: var(--fs-lg);
}

/* 客户评价轮播 */
#client .carousel-item h5 strong {
  font-size: var(--fs-lg);
}
#client .carousel-item h6 {
  font-size: var(--fs-base);
}
#client .carousel-item p {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
}

/* 筛选按钮 */
.home-product-filters button,
.product-filters.home-product-filters button {
  font-size: var(--fs-sm);
}

/* 搜索与面包屑 */
.site-breadcrumb .breadcrumb {
  font-size: var(--fs-sm);
}
.search-result-item {
  font-size: var(--fs-base);
}

/* 移动端微调 */
@media (max-width: 767px) {
  h1 { font-size: var(--fs-3xl); }
  h2 { font-size: var(--fs-2xl); }
  .heading-title h2 {
    font-size: var(--fs-2xl);
  }
  .heading-title p {
    font-size: var(--fs-base);
  }
  body.page-home-yami .cover-slides h1 {
    font-size: var(--fs-3xl);
  }
  .products-hero__title {
    font-size: var(--fs-3xl);
  }
  .products-hero__subtitle {
    font-size: var(--fs-base);
  }
  body.page-software .software-item__title {
    font-size: var(--fs-xl);
  }
  body.page-home-yami #home-products .gallery-single .why-text h4 {
    font-size: var(--fs-xl);
  }
  body.page-home-yami #home-products .gallery-single .why-text h5 {
    font-size: var(--fs-2xl);
  }
}

@media (max-width: 991px) {
  .cover-slides h1 {
    font-size: var(--fs-3xl);
  }
}
