/* 
 Theme Name:   SUNIRYS
 Theme URI:    http://www.sunirys.com
 Description:  SUNIRYS
 Author:       sunirys
 Author URI:   http://www.sunirys.com
 Template:     woostify
 Version:      1.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
*/

/* == Add your own styles below this line == */

/* ===============================
   事業内容（ページ）
   =============================== */
.sunirys-business {
  width: min(1100px, calc(100% - 44px));
  margin: 0 auto;
  padding: 64px 0 80px;
}

.sunirys-business-title {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.sunirys-business-intro {
  margin: 0 0 26px;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.9;
  color: rgba(17, 24, 39, 0.88);
}

.sunirys-business-items {
  display: grid;
  gap: 16px;
}

.sunirys-business-item {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px 18px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.sunirys-business-item-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.sunirys-business-item-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(17, 24, 39, 0.85);
}

/* --- 1. 强制解锁滚动（优先保证能上下滚动） --- */

/* 覆盖父主题可能在 html/body 上加的 100vh / overflow:hidden / no-scroll 等 */
html,
html.no-scroll,
html.overflow-hidden,
body,
body.no-scroll,
body.overflow-hidden {
  height: auto !important;
  min-height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* 首页再做一层保险，防止父主题对容器设置固定高度 */
.sunirys-landing #page,
.sunirys-landing .site,
.sunirys-landing .site-content,
.sunirys-landing .content-area,
.sunirys-landing .woostify-main-content {
  height: auto !important;
  min-height: 100% !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Front page: hero background + scrollable content */

body.sunirys-landing {
  margin: 0;
  background-color: #0b0f17;
  /*
    Hero 标题定位策略（推荐）：
    - 用"图片高度百分比"来对齐（例如 28% 表示在图片高度的 28% 处）
    - 用 clamp() 加一个"导航栏安全下限"，避免标题被 fixed header 遮挡
    这样既能按图片比例对齐，也不会因为浏览器窗口高度变化 / 手机地址栏伸缩而上下漂移。
  */
  --sunirys-header-height: clamp(48px, 6vw, 84px);      /* 与 .sunirys-header-inner 高度保持一致 */
  /* 标题在图片上的垂直"比例位置"（越大越靠下） */
  --sunirys-hero-text-y: 10%;
  /* 防止被导航栏遮挡的安全间距（可微调） */
  --sunirys-hero-text-safe-gap: 12px;
  /* 防止过低（例如短图时），给一个保底的底部留白（可微调） */
  --sunirys-hero-text-safe-bottom: 180px;

  /* Hero 主标题/副标题整体下移的可调参数（需要再下移就把数值加大；像素微调）
     数值更负 = 整体往上移，这里改为 -80px，明显往上提一大块，方便你观察变化 */
  --sunirys-hero-text-shift: -80px;
  /* 手机端单独控制：确保文字位置合适，不被导航栏遮挡 */
  --sunirys-hero-text-y-mobile: 18%;
  --sunirys-hero-text-shift-mobile: 20px;
}

/* Top hero area：用<img>本身来撑高页面，让整张图可以上下滚动看到 */
.sunirys-hero {
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative; /* 给文字层提供定位锚点 */
  /* 不再用 background 做满屏裁切，而是让下面的 img 以原始比例显示 */
}

.sunirys-hero-img {
  display: block; /* 显示整张图，让它撑高页面 */
  width: 100%;
  height: auto;
}

/* Hero text overlay (导航栏下方主标题/副标题) */
.sunirys-hero-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  /* 用图片高度的百分比 + 像素微调，保证文字永远固定在背景图上的某个“比例位置” */
  top: calc(var(--sunirys-hero-text-y, 18%) + var(--sunirys-hero-text-shift, 0px));
  width: min(1100px, calc(100% - 44px));
  padding: 0 0;
  text-align: center;
  color: #ffffff;
  z-index: 2;
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.55);
}

.sunirys-hero-kicker {
  margin: 0 0 clamp(10px, 1.6vw, 14px);
  font-size: clamp(12px, 1.2vw, 14px);
  line-height: 1.2;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.sunirys-hero-title {
  margin: 0;
  /* 跟浏览器尺寸等比例缩放：用 vmin 让宽度/高度综合影响字号 */
  font-size: clamp(30px, 4.6vmin, 64px);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffffff;
}

.sunirys-hero-lead {
  margin: clamp(14px, 2.1vw, 20px) auto 0;
  font-size: clamp(15px, 1.9vw, 22px);
  line-height: 1.7;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  max-width: 900px;
}

/* Hero 下方主按钮区域 */
.sunirys-hero-actions {
  margin-top: clamp(22px, 3vw, 30px);
  display: inline-flex;
  gap: clamp(14px, 2.4vw, 22px);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.sunirys-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  height: 52px;
  padding: 0 24px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  transition:
    background 0.18s ease-out,
    color 0.18s ease-out,
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out,
    border-color 0.18s ease-out;
}

.sunirys-hero-btn:hover,
.sunirys-hero-btn:focus-visible {
  background: #ffffff;
  color: #111827;
  border-color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.55);
  outline: none;
}

/* 次要按钮：视觉略轻一些 */
.sunirys-hero-btn-secondary {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(255, 255, 255, 0.55);
}

.sunirys-hero-btn-secondary:hover,
.sunirys-hero-btn-secondary:focus-visible {
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  border-color: #ffffff;
}

.sunirys-hero-desc {
  margin: clamp(14px, 2.2vw, 22px) auto 0;
  font-size: clamp(13px, 1.25vw, 16px);
  line-height: 1.9;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  max-width: 760px;
}

/* Hero 下部：三个业务图标卡片（Amazon / TikTok / 貿易） */
.sunirys-hero-badges {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  /* 用图片高度百分比来定位，让图标固定在背景图上的某个位置，而不是跟着浏览器高度(vh)变来变去 */
  top: 32%;
  /* 整个"三个图标区域"宽度随浏览器宽度等比例缩放（无上限：窗口越宽图标越大） */
  width: max(930px, 90vw);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  /* 加大三个图标之间的间距 */
  gap: clamp(100px, 8vw, 200px) !important;
  z-index: 3;
}

.sunirys-hero-badge {
  /* 去掉外面那一圈深色卡片和阴影，只保留图片本身 */
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  backdrop-filter: none;
}

.sunirys-hero-badge-img {
  display: block;
  /* 图标宽度跟随所在列宽度变化，从而整体随着浏览器宽度同比例变大/变小 */
  width: 100%;
  height: auto;
  margin-bottom: clamp(10px, 1.1vw, 14px);
}

.sunirys-hero-badge-title {
  /* 隐藏每个图标下方的文字 */
  display: none;
}

/* 手机端：卡片改为竖排，底部间距减小，避免压到 Our Brand 区域 */
@media (max-width: 768px) {
  .sunirys-hero-badges {
    /* 手机端改为靠底部排列，同时清掉上面的 top 值 */
    top: auto;
    grid-template-columns: 1fr;
    width: min(430px, calc(100% - 40px));
    bottom: clamp(40px, 7vh, 70px);
  }

  .sunirys-hero-badge-img {
    width: clamp(50px, 15vw, 80px) !important;
    max-width: 80px !important;
    height: auto !important;
  }
}

/* Content area below the hero (scrolls normally) */
.sunirys-content {
  color: rgba(255, 255, 255, 0.92);
  padding: 48px 22px 80px;
}

.sunirys-content .sunirys-content-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Global top navigation bar (参考设计的头部导航) */
.sunirys-global-header {
  /* 绝对定位在页面顶部：覆盖在首屏大图上方，但不会像 fixed 一样一直吸顶 */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999999;
  /* 去掉底色：让背景图透出来，只保留下方白线 */
  background: transparent;
  border-bottom: 1px solid #ffffff;
}

.sunirys-header-inner {
  /* 关键：不要用 max-width + auto 居中，否则在大屏/缩放时会"漂移" */
  width: 100%;
  max-width: none;
  margin: 0;
  /* 使用更合理的响应式高度：从48px（小屏）到84px（大屏） */
  height: clamp(48px, 6vw, 84px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: clamp(8px, 1.5vw, 32px);
  padding: 0 clamp(8px, 2.5vw, 32px);
  color: #ffffff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

.sunirys-header-logo {
  flex: 0 0 auto;
  /* 更接近截图的"左侧大标题"，使用更合理的响应式字号 */
  font-size: clamp(12px, 1.6vw, 28px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-decoration: none;
  line-height: 1;
}

.sunirys-header-logo:hover,
.sunirys-header-logo:focus-visible {
  color: #ffffff;
  text-decoration: none;
  outline: none;
}

.sunirys-header-nav {
  /* 让四个链接紧跟在 logo 右侧（右侧按钮再单独推到最右） */
  margin-left: clamp(8px, 1.5vw, 28px);
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: flex-start;
  overflow: hidden; /* 防止溢出 */
}

/* WordPress 菜单通常输出为 <ul><li><a>...；这里统一把 ul 做成水平导航 */
.sunirys-header-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: clamp(4px, 1.2vw, 28px);
  overflow: visible; /* 确保链接可见 */
}

.sunirys-header-menu a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  /* 使用更小的最小字号，确保在小屏幕上也能显示 */
  font-size: clamp(10px, 1vw, 16px);
  font-weight: 400; /* 细一点 */
  letter-spacing: 0.02em; /* 减小字间距，节省空间 */
  white-space: nowrap;
  position: relative;
  flex-shrink: 0; /* 防止链接被压缩 */
  padding: clamp(3px, 0.5vw, 8px) clamp(4px, 0.9vw, 12px);
  transition:
    color 0.2s ease-out,
    transform 0.2s ease-out;
}

.sunirys-header-menu a::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #60a5fa, #a855f7);
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition:
    transform 0.22s ease-out,
    opacity 0.22s ease-out;
}

.sunirys-header-menu a:hover,
.sunirys-header-menu a:focus-visible {
  color: #ffffff;
  outline: none;
  transform: translateY(-1px);
  font-weight: 700;
}

.sunirys-header-menu a:hover::after,
.sunirys-header-menu a:focus-visible::after {
  transform: scaleX(1);
  opacity: 1;
}

.sunirys-header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(6px, 1vw, 12px);
  margin-left: auto; /* 右侧按钮推到最右 */
}

/* 右侧只保留语言切换：如有“联系/咨询”按钮则隐藏（不改变站点内容，仅改显示） */
.sunirys-header-contact {
  display: none;
}


.sunirys-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: clamp(4px, 0.5vw, 6px);
  padding: clamp(3px, 0.7vw, 6px) clamp(6px, 1.1vw, 12px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(9px, 1vw, 12px);
  font-weight: 500;
  cursor: pointer;
}

.sunirys-lang-switch:hover,
.sunirys-lang-switch:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.sunirys-lang-flag {
  width: clamp(14px, 1.8vw, 18px);
  height: clamp(14px, 1.8vw, 18px); /* 方形 */
  border-radius: 0;
  background: #ffffff; /* 日本国旗底色 */
  border: 1px solid rgba(255, 255, 255, 0.35);
  position: relative;
  box-sizing: border-box;
  overflow: hidden; /* 防止蓝色区域溢出 */
}

/* 日本国旗红日 - 只在日语时显示 */
.sunirys-lang-flag[data-lang="ja"]::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: #bc002d;
  z-index: 1;
}

/* 英语时隐藏红圆 */
.sunirys-lang-flag[data-lang="en"]::after {
  display: none;
}

.sunirys-lang-caret {
  font-size: 10px;
}

/* Language dropdown */
.sunirys-lang-switcher-wrapper {
  position: relative;
}

.sunirys-lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 1000;
}

.sunirys-lang-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sunirys-lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sunirys-lang-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.sunirys-lang-dropdown-item.active {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.sunirys-lang-dropdown-flag {
  width: 18px;
  height: 18px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-sizing: border-box;
  flex-shrink: 0;
  display: inline-block;
  position: relative;
}

.sunirys-flag-ja {
  background: #ffffff;
}

.sunirys-flag-ja::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: #bc002d;
}

.sunirys-flag-en {
  background: linear-gradient(to bottom, 
    #B22234 0%, #B22234 7.69%,
    #ffffff 7.69%, #ffffff 15.38%,
    #B22234 15.38%, #B22234 23.07%,
    #ffffff 23.07%, #ffffff 30.76%,
    #B22234 30.76%, #B22234 38.45%,
    #ffffff 38.45%, #ffffff 46.14%,
    #B22234 46.14%, #B22234 53.83%,
    #ffffff 53.83%, #ffffff 61.52%,
    #B22234 61.52%, #B22234 69.21%,
    #ffffff 69.21%, #ffffff 76.9%,
    #B22234 76.9%, #B22234 84.59%,
    #ffffff 84.59%, #ffffff 92.28%,
    #B22234 92.28%, #B22234 100%);
  position: relative;
  overflow: hidden; /* 防止蓝色区域溢出 */
}

.sunirys-flag-en::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 40%;
  height: 53.85%;
  background: #3C3B6E;
  border-radius: 0;
  z-index: 1;
}

/* 主按钮上的美国国旗蓝色区域 */
.sunirys-lang-flag[data-lang="en"] .flag-canton {
  position: absolute;
  left: 0;
  top: 0;
  width: 40%;
  height: 53.85%;
  background: #3C3B6E;
  border-radius: 0;
  z-index: 2;
}

.sunirys-lang-dropdown-label {
  flex: 1;
}

/* 中等屏幕尺寸：让导航栏按比例缩小，确保所有元素可见 */
@media (max-width: 1200px) and (min-width: 769px) {
  .sunirys-header-inner {
    height: clamp(52px, 5.5vw, 80px);
    gap: clamp(6px, 1.2vw, 24px);
    padding: 0 clamp(8px, 2vw, 28px);
  }

  .sunirys-header-logo {
    font-size: clamp(13px, 1.8vw, 28px);
  }

  .sunirys-header-nav {
    margin-left: clamp(6px, 1.2vw, 24px);
    flex: 1 1 auto;
  }

  .sunirys-header-menu {
    gap: clamp(8px, 1.5vw, 32px);
  }

  .sunirys-header-menu a {
    font-size: clamp(11px, 1.2vw, 16px);
  }

  .sunirys-lang-switch {
    padding: clamp(3px, 0.5vw, 6px) clamp(6px, 0.9vw, 12px);
    font-size: clamp(9px, 1vw, 12px);
  }
}

/* 小屏幕（平板）：进一步缩小，但保持所有元素可见 */
@media (max-width: 1024px) and (min-width: 769px) {
  .sunirys-header-inner {
    height: clamp(50px, 5vw, 70px);
    gap: clamp(5px, 1vw, 20px);
    padding: 0 clamp(6px, 1.8vw, 24px);
  }

  .sunirys-header-logo {
    font-size: clamp(12px, 1.6vw, 24px);
  }

  .sunirys-header-menu {
    gap: clamp(6px, 1.2vw, 28px);
  }

  .sunirys-header-menu a {
    font-size: clamp(10px, 1.1vw, 15px);
  }
}

/* 窄桌面/横屏平板（接近手机但未进入 768 断点）：让整条导航持续缩小，避免溢出 */
@media (max-width: 900px) and (min-width: 769px) {
  .sunirys-header-inner {
    height: clamp(48px, 6vw, 60px);
    padding: 0 clamp(8px, 1.6vw, 18px);
    gap: clamp(4px, 0.8vw, 10px);
  }

  .sunirys-header-logo {
    font-size: clamp(12px, 2vw, 18px);
    letter-spacing: 0.02em;
    max-width: 38%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sunirys-header-nav {
    justify-content: flex-end;
    overflow: hidden;
  }

  .sunirys-header-menu {
    gap: clamp(6px, 1vw, 10px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 2px;
  }

  .sunirys-header-menu::-webkit-scrollbar {
    display: none;
  }

  .sunirys-header-menu a {
    font-size: clamp(10px, 1.5vw, 12px);
    padding: 4px 6px;
    letter-spacing: 0.01em;
  }

  .sunirys-lang-switch {
    padding: 3px 8px;
    font-size: 10px;
  }
}

/* Mobile: 优化手机端显示，确保所有元素合理布局 */
@media (max-width: 768px) {
  body.sunirys-landing {
    min-height: auto;
    --sunirys-header-height: clamp(50px, 7vw, 64px);
    /* 手机端：标题在图片上的比例位置，确保不被导航栏遮挡 */
    --sunirys-hero-text-y: var(--sunirys-hero-text-y-mobile, 18%);
    --sunirys-hero-text-shift: var(--sunirys-hero-text-shift-mobile, 20px);
  }

  .sunirys-hero {
    min-height: auto;
  }

  .sunirys-hero-text {
    width: calc(100% - 32px);
    padding: 0 16px;
    box-sizing: border-box;
  }

  .sunirys-hero-kicker {
    font-size: clamp(11px, 2.5vw, 13px);
    letter-spacing: 0.15em;
    margin-bottom: clamp(8px, 2vw, 12px);
  }

  .sunirys-hero-title {
    font-size: clamp(20px, 7vw, 32px);
    line-height: 1.25;
    margin-bottom: clamp(8px, 2vw, 12px);
  }

  .sunirys-hero-lead {
    font-size: clamp(14px, 4vw, 18px);
    line-height: 1.7;
    margin-top: clamp(10px, 2.5vw, 16px);
    padding: 0 4px;
  }

  .sunirys-hero-desc {
    font-size: clamp(13px, 3.8vw, 16px);
    line-height: 1.75;
    margin-top: clamp(12px, 3vw, 18px);
    padding: 0 4px;
  }

  .sunirys-header-inner {
    height: clamp(50px, 7vw, 64px);
    padding: 0 clamp(10px, 3vw, 16px);
    gap: clamp(6px, 1.5vw, 12px);
  }

  .sunirys-header-logo {
    font-size: clamp(13px, 3.2vw, 18px);
    letter-spacing: 0.02em;
    flex-shrink: 0;
    max-width: 40%; /* 限制logo最大宽度，避免挤压其他元素 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sunirys-header-nav {
    display: flex;
    margin-left: clamp(4px, 1vw, 8px);
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    justify-content: flex-end; /* 右对齐，节省空间 */
  }

  .sunirys-header-menu {
    gap: clamp(6px, 1.5vw, 12px);
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 4px;
  }

  .sunirys-header-menu::-webkit-scrollbar {
    display: none;
  }

  .sunirys-header-menu a {
    font-size: clamp(10px, 2.2vw, 13px);
    letter-spacing: 0.01em;
    flex-shrink: 0;
    padding: 4px 6px;
    white-space: nowrap;
  }

  .sunirys-header-actions {
    gap: clamp(6px, 1.5vw, 10px);
    flex-shrink: 0;
    margin-left: clamp(4px, 1vw, 8px);
  }

  .sunirys-header-contact {
    display: none; /* 在手机上隐藏联系按钮，节省空间 */
  }

  .sunirys-lang-switch {
    padding: clamp(4px, 1vw, 6px) clamp(6px, 1.5vw, 10px);
    font-size: clamp(10px, 2vw, 12px);
    min-width: auto;
  }

  .sunirys-lang-dropdown {
    min-width: 110px;
    right: 0;
  }

  .sunirys-lang-dropdown-item {
    padding: 8px 12px;
    font-size: 13px;
  }

  /* 手机端按钮：优化大小和间距 */
  .sunirys-hero-actions {
    margin-top: clamp(20px, 5vw, 28px);
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    width: 100%;
  }

  .sunirys-hero-btn {
    min-width: calc(50% - 6px);
    max-width: 200px;
    height: 48px;
    padding: 0 16px;
    font-size: clamp(13px, 3.2vw, 15px);
    letter-spacing: 0.06em;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    flex: 1 1 auto;
  }

  /* 确保按钮在小屏幕上也能正常显示 */
  @media (max-width: 360px) {
    .sunirys-hero-btn {
      min-width: 100%;
      max-width: 100%;
    }

    .sunirys-header-logo {
      font-size: clamp(11px, 2.8vw, 16px);
      max-width: 35%;
    }

    .sunirys-header-menu a {
      font-size: clamp(9px, 2vw, 12px);
      padding: 4px 4px;
    }
  }

  /* 优化超小屏幕的导航栏 */
  @media (max-width: 320px) {
    .sunirys-header-inner {
      padding: 0 8px;
      gap: 4px;
    }

    .sunirys-header-logo {
      font-size: 11px;
      max-width: 30%;
    }

    .sunirys-header-menu {
      gap: 4px;
    }

    .sunirys-header-menu a {
      font-size: 9px;
      padding: 3px 4px;
    }

    .sunirys-lang-switch {
      padding: 3px 6px;
      font-size: 9px;
    }
  }
}

/* ===============================
   Mobile landscape（手机横屏专用优化）
   说明：横屏时“高度很矮”，需要把首屏文字/按钮/导航压缩，避免拥挤和遮挡
   覆盖范围：常见手机横屏（宽度不大于 932px 且高度不大于 480px）
   =============================== */
@media (max-width: 932px) and (max-height: 480px) and (orientation: landscape) {
  body.sunirys-landing {
    /* 横屏时把文字整体稍微上移一点，同时降低被导航遮挡风险 */
    --sunirys-header-height: 44px;
    --sunirys-hero-text-y: 14%;
    --sunirys-hero-text-shift: -10px;
  }

  .sunirys-header-inner {
    height: 44px;
    padding: 0 10px;
    gap: 8px;
  }

  .sunirys-header-logo {
    font-size: 13px;
    max-width: 34%;
  }

  .sunirys-header-menu {
    gap: 6px;
    padding: 0 2px;
  }

  .sunirys-header-menu a {
    font-size: 11px;
    padding: 3px 5px;
  }

  .sunirys-lang-switch {
    padding: 3px 8px;
    font-size: 10px;
  }

  .sunirys-hero-text {
    width: min(980px, calc(100% - 24px));
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
  }

  .sunirys-hero-title {
    font-size: clamp(18px, 3.6vw, 28px);
    line-height: 1.18;
  }

  .sunirys-hero-lead {
    font-size: clamp(12px, 2.2vw, 15px);
    line-height: 1.55;
    margin-top: 10px;
    max-width: 920px;
  }

  .sunirys-hero-actions {
    margin-top: 14px;
    gap: 10px;
    flex-wrap: nowrap; /* 横屏尽量一行放下两个按钮 */
  }

  .sunirys-hero-btn {
    min-width: 150px;
    height: 40px;
    padding: 0 14px;
    font-size: 13px;
    letter-spacing: 0.04em;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  }
}

/* 旧的 .sunirys-toplinks 样式已不再使用，导航由 .sunirys-global-header 承担 */

/* ===============================
   お問い合わせフォーム（Sunirys）
   =============================== */
/* 联系页：如果父主题/插件把 footer 做成 fixed，main 结束后会露出 body 的白底。
   这里把联系页模板的 body 底色设为深色，避免出现“大白块”。 */
body.page-template-page-sunirys-contact,
body.page-template-page-sunirys-contact-php,
body.page-template-page-contact,
body.page-template-page-contact-php {
  background: #020617;
}

.sunirys-contact-main {
  padding: 104px 4vw 96px;
  min-height: 100vh;             /* 至少铺满一屏，避免 main 结束后出现空白 */
  box-sizing: border-box;
  display: flex;                  /* 垂直居中表单卡片 */
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.18), transparent 55%),
    #020617;
}

.sunirys-contact-container {
  width: min(1120px, 100%);       /* 更宽，并随窗口宽度变化 */
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 14px 45px rgba(15, 23, 42, 0.08);
  padding: 52px clamp(40px, 4vw, 64px) 42px;
}

.sunirys-contact-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.sunirys-contact-intro {
  text-align: center;
  color: #6b7280;
  font-size: clamp(15px, 1.15vw, 18px);
  margin-bottom: 36px;
}

.sunirys-contact-notice {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 24px;
}

.sunirys-contact-notice-success {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.sunirys-contact-notice-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.sunirys-contact-notice ul {
  margin: 0;
  padding-left: 18px;
}

.sunirys-contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sunirys-contact-field label {
  display: block;
  font-size: clamp(15px, 1.1vw, 18px);
  font-weight: 600;
  margin-bottom: 6px;
}

.sunirys-contact-field .required {
  color: #ef4444;
  font-size: 12px;
}

.sunirys-contact-field input,
.sunirys-contact-field textarea {
  width: 100%;
  padding: clamp(14px, 1.2vw, 20px) 1em; /* 随窗口大小略微缩放 */
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: clamp(15px, 1.2vw, 18px);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.sunirys-contact-field input:focus,
.sunirys-contact-field textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35);
  background-color: #f9fafb;
}

.sunirys-contact-field textarea {
  resize: vertical;
  min-height: 160px;
}

.sunirys-contact-actions {
  margin-top: 8px;
  text-align: right;
}

.sunirys-contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #ffffff;
  font-size: clamp(15px, 1.1vw, 18px);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.sunirys-contact-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.45);
}

.sunirys-contact-submit:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

@media (max-width: 640px) {
  .sunirys-contact-main {
    padding: 80px 14px 64px;
    align-items: flex-start;  /* 手机上不强制垂直居中，防止顶部空太多 */
  }

  .sunirys-contact-container {
    padding: 28px 18px 22px;
  }

  .sunirys-contact-title {
    font-size: 22px;
  }
}

/* ===============================
   通用页面样式（会社概要、企業理念、事業内容）
   =============================== */
.sunirys-page-main {
  min-height: auto;
  background: #ffffff;
}

/* Hero区域：顶部标题区域 */
.sunirys-page-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: clamp(80px, 12vw, 140px) 22px clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}

.sunirys-page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.15), transparent 50%);
  pointer-events: none;
}

.sunirys-page-hero-content {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.sunirys-page-title {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sunirys-page-subtitle {
  margin: 0;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

/* 内容区域 */
.sunirys-page-content {
  padding: clamp(60px, 8vw, 100px) 22px;
  background: #ffffff;
}

.sunirys-page-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* ===============================
   会社概要页面样式
   =============================== */
.sunirys-company-info {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.sunirys-company-section {
  background: #ffffff;
  border-radius: 16px;
  padding: clamp(32px, 4vw, 48px);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  border: 1px solid #e5e7eb;
}

.sunirys-company-section-title {
  margin: 0 0 28px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #111827;
  padding-bottom: 16px;
  border-bottom: 2px solid #3b82f6;
}

.sunirys-company-details {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sunirys-company-detail-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #f3f4f6;
}

.sunirys-company-detail-item:last-child {
  border-bottom: none;
}

.sunirys-company-detail-item dt {
  font-weight: 600;
  font-size: 16px;
  color: #374151;
  margin: 0;
}

.sunirys-company-detail-item dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: #111827;
}

.sunirys-company-detail-item ul {
  margin: 0;
  padding-left: 20px;
  list-style-type: disc;
}

.sunirys-company-detail-item li {
  margin-bottom: 8px;
  line-height: 1.8;
}

.sunirys-company-detail-item li:last-child {
  margin-bottom: 0;
}

.sunirys-company-contact-text {
  margin: 0;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.9;
  color: #374151;
  text-align: center;
}

.sunirys-company-contact-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.sunirys-company-contact-link:hover {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.sunirys-company-overview {
  margin: 0;
}

.sunirys-company-overview p {
  margin: 0 0 1.5em 0;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.9;
  color: #374151;
}

.sunirys-company-overview p:last-child {
  margin-bottom: 0;
}

.sunirys-company-policy-list {
  margin: 0;
  padding-left: 20px;
  list-style-type: disc;
}

.sunirys-company-policy-list li {
  margin-bottom: 12px;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.9;
  color: #374151;
}

.sunirys-company-policy-list li:last-child {
  margin-bottom: 0;
}

/* ===============================
   企業理念页面样式
   =============================== */
.sunirys-philosophy-main {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 60px) clamp(20px, 3vw, 40px);
}

.sunirys-philosophy-main-title {
  margin: 0 0 32px;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #111827;
  line-height: 1.4;
}

.sunirys-philosophy-main-text {
  margin: 0;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 2;
  color: #374151;
  text-align: center;
}

.sunirys-philosophy-main-text p {
  margin: 0 0 1.5em 0;
}

.sunirys-philosophy-main-text p:last-child {
  margin-bottom: 0;
}

.sunirys-philosophy-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: clamp(40px, 6vw, 80px);
  margin-bottom: 60px;
}

.sunirys-philosophy-card {
  background: #ffffff;
  border-radius: 20px;
  padding: clamp(32px, 4vw, 48px);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.1);
  border: 1px solid #e5e7eb;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.sunirys-philosophy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15);
}

.sunirys-philosophy-icon {
  font-size: clamp(48px, 6vw, 64px);
  margin-bottom: 20px;
  display: block;
}

.sunirys-philosophy-title {
  margin: 0 0 16px;
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #111827;
}

.sunirys-philosophy-text {
  margin: 0;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.9;
  color: #374151;
}

.sunirys-philosophy-commitment {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 20px;
  padding: clamp(40px, 5vw, 60px);
  border: 1px solid #e2e8f0;
  text-align: center;
}

.sunirys-commitment-title {
  margin: 0 0 20px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #111827;
}

.sunirys-commitment-text {
  margin: 0;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.9;
  color: #475569;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* ===============================
   事業内容页面样式（使用page-business.php模板）
   =============================== */
.sunirys-business-page .sunirys-business-intro {
  margin: 0 0 48px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.9;
  color: #374151;
  text-align: center;
  padding: 0 clamp(20px, 3vw, 40px);
}

.sunirys-business-page .sunirys-business-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.sunirys-business-page .sunirys-business-item {
  background: #ffffff;
  border-radius: 16px;
  padding: clamp(28px, 3.5vw, 40px);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid #e5e7eb;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sunirys-business-page .sunirys-business-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.12);
}

.sunirys-business-page .sunirys-business-item-title {
  margin: 0 0 16px;
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #111827;
  line-height: 1.4;
}

.sunirys-business-page .sunirys-business-item-text {
  margin: 0;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.9;
  color: #475569;
}

/* ===============================
   响应式设计
   =============================== */
@media (max-width: 768px) {
  .sunirys-page-hero {
    padding: 80px 18px 60px;
  }

  .sunirys-page-content {
    padding: 50px 18px;
  }

  .sunirys-company-section {
    padding: 28px 20px;
  }

  .sunirys-company-detail-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .sunirys-company-detail-item dt {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
  }

  .sunirys-philosophy-section {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
  }

  .sunirys-philosophy-card {
    padding: 32px 24px;
  }

  .sunirys-philosophy-commitment {
    padding: 32px 20px;
  }

  .sunirys-business-page .sunirys-business-items {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sunirys-business-page .sunirys-business-item {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .sunirys-page-hero {
    padding: 70px 14px 50px;
  }

  .sunirys-page-content {
    padding: 40px 14px;
  }

  .sunirys-company-section {
    padding: 24px 16px;
  }

  .sunirys-philosophy-card {
    padding: 28px 20px;
  }

  .sunirys-philosophy-commitment {
    padding: 28px 16px;
  }
}

/* =========================================================
   竖屏提示层（全设备：手机/平板/桌面）
   说明：Web 无法“禁止用户把浏览器拉成竖屏”，但可在竖屏时遮罩并提示横向浏览
   ========================================================= */
.sunirys-orientation-guard {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000000;
  background: rgba(6, 10, 18, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #ffffff;
  text-align: center;
}

.sunirys-orientation-guard__panel {
  width: min(520px, 92vw);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  padding: 18px 16px;
}

.sunirys-orientation-guard__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.sunirys-orientation-guard__desc {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}

/* 竖屏时显示（手机/平板/桌面均生效） */
@media (orientation: portrait) {
  .sunirys-orientation-guard {
    display: flex;
  }

  /* 避免用户在遮罩下滚动页面造成错觉 */
  body {
    overflow: hidden;
  }
}
