/* 基础变量 */
:root {--brand:#1C3563;--brand-dark:#1245a8;--bg:#ffffff;--text:#1a1a1a;--muted:#6b7280;--border:#e5e7eb;--surface:#f8fafc;--radius:10px;--shadow:0 8px 20px rgba(16,24,40,.08);} 

/* Direct override for about page styling - Authentic Japanese industrial blue color */
.text-blue-600 {
  color: #1C3563 !important;
  font-weight: bold !important;
}

/* 全局与布局 */

/* 全局与布局 */

/* 全局与布局 */

/* 全局与布局 */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans JP", sans-serif; }
.container { max-width: 1280px; margin: 0 auto; padding:0 20px 20px 20px; }

.site { min-height: 100vh; display: flex; flex-direction: column; }
.site__header { border-bottom: 1px solid var(--border); background: var(--bg); position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 50; backdrop-filter: saturate(140%) blur(6px); }
.site__main { flex: 1; }
.site__footer { background: var(--surface); border-top: 1px solid var(--border); padding: 24px 0; }

/* 头部导航 */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.site-header__brand { font-weight: 700; text-decoration: none; color: var(--text); font-size: 24px; font-style: italic; }
.site-header__nav { display: flex; gap: 16px; }
.nav__link { color: var(--muted); text-decoration: none; padding: 6px 8px; border-radius: 6px; }
.nav__link:hover { background: var(--surface); color: var(--text); }
.site-header__tools { display: flex; align-items: center; gap: 12px; }
.tool__link { color: var(--muted); text-decoration: none; }
.site-header__tools .btn { margin-left: 4px; }

/* 按钮 */
.btn { display: inline-block; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; border: 1px solid var(--border); transition: all .2s ease; }
.btn--primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn--primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn--secondary { color: var(--text); background: #fff; }
.btn--secondary:hover { background: var(--surface); }

/* Hero */
.hero { position: relative; padding: 72px 0 48px; border-bottom: 1px solid var(--border); overflow: hidden; }
.hero--dark { background: #0a1a2f; }
.hero__overlay { position: absolute; inset: 0; pointer-events: none; background-image: url('/img/hero-bg.svg'); background-position: center; background-size: cover; background-repeat: no-repeat; opacity: .25; }
.hero__title { font-size: 32px; margin: 0 0 10px; }
.hero__desc { color: var(--muted); margin: 0 0 16px; max-width: 800px; }
.hero__actions { display: flex; gap: 12px; }

/* 搜索栏 */
.hero-search { display: flex; gap: 8px; margin: 16px 0 8px; }
.hero-search__input { flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; background: rgba(255,255,255,.96); }
.hero-search__btn { padding: 12px 18px; }

/* 分区标题 */
.section__title { font-size: 22px; margin: 32px 0 16px; }

/* 卡片与栅格 */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.features__grid, .categories__grid, .trust__grid { display: grid; gap: 16px; }
.features__grid { grid-template-columns: repeat(4, 1fr); }
.categories__grid { grid-template-columns: repeat(4, 1fr); }
.trust__grid { grid-template-columns: repeat(4, 1fr); background: var(--surface); border-radius: var(--radius); padding: 16px; margin-bottom: 24px;}

.feature__title { margin: 0 0 6px; font-size: 18px; }
.feature__desc { margin: 0; color: var(--muted); }

.category { text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 4px; }
.category:hover { border-color: var(--brand); box-shadow: 0 8px 24px rgba(8,79,192,.12); }
.category__name { font-weight: 600; }
.category__hint { color: var(--muted); }

.trust__item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; }
.trust__item strong { font-size: 22px; color: var(--brand-dark); }
.trust__item span { color: var(--muted); }

/* CTA */
.cta, .cta__container { margin: 24px 0; }
.cta__box { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: #fff; display: flex; flex-direction: column; gap: 8px; align-items: center; width: 100%; margin: 0 auto; }
.cta__title { margin: 0; font-size: 20px; text-align: center; }
.cta__desc { margin: 0; color: var(--muted); text-align: center; }
.cta__actions { display: flex; gap: 12px; justify-content: center; }

/* 页脚 */
/* 新页脚样式 */
.footer { background: #f8fafc; color: var(--text); padding: 28px 0 24px; }
.footer__contact-card { background: transparent; border-radius: 0; box-shadow: none; padding: 0; border: none; }
.footer__title { margin: 0 0 10px; font-weight: 700; text-align: left; color: #1C3563; }
.footer__subtitle { font-size: .95rem; font-weight: 600; color: #6b7280; margin-left: 8px; }
.footer__contacts { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; gap: 16px; }
.footer__contact { display: flex; flex-direction: column; gap: 4px; }
.footer__label { color: #4b5563; font-weight: 600; }
.footer__value { color: #1C3563; font-weight: 700; font-size: 1.2rem; }
.footer__cta { margin-left: 0; justify-self: end; }
.footer__meta { margin-top: 6px; text-align: left; color: #6b7280; }

.footer__grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin-top: 24px; font-size: 0.9rem; }
.footer__col { color: #1f2937; }
.footer__brand { font-weight: 700; font-style: italic; opacity: .95; margin-bottom: 8px; }
.footer__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer__list li { line-height: 1.6; opacity: .95; }
.footer__slogan { font-weight: 700; line-height: 1.5; margin-bottom: 8px; }
.footer__subbrand { font-style: italic; font-weight: 700; margin-bottom: 8px; }
.footer__links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.footer__links a { color: #1C3563; text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
.footer__rights { margin-top: 8px; opacity: .85; }

.footer__bottom { border-top: 1px solid #e5e7eb; margin-top: 24px; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.footer__legal-link { color: #6b7280; text-decoration: none; }
.footer__legal-link:hover { text-decoration: underline; }
.footer__sep { color: #d1d5db; padding: 0 6px; }
.footer__copy { color: #6b7280; }

@media (max-width: 960px) {
  .footer__contacts { grid-template-columns: 1fr; }
  .footer__cta { width: 100%; text-align: center; margin-top: 16px; justify-self: start; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; border-top-color: #e5e7eb; }
}

/* 响应式 */
@media (max-width: 960px) {
  .features__grid, .categories__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__title { font-size: 28px; }
  .site-header { padding: 10px 0; }
}
@media (max-width: 640px) {
  .features__grid, .categories__grid, .trust__grid { grid-template-columns: 1fr; }
  .site-header { flex-wrap: wrap; }
}
.floating { position: fixed; right: 16px; bottom: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 100; }
.floating__btn { width: 44px; height: 44px; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); border-radius: 50%; box-shadow: var(--shadow); color: var(--text); text-decoration: none; }
.floating__btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(16,24,40,.12); }

/* 组件扩展与工具类 */
/* 按钮尺寸变体 */
.btn--sm { padding: 8px 12px; font-size: 0.9rem; }
.btn--md { padding: 10px 16px; font-size: 1rem; }
.btn--lg { padding: 12px 18px; font-size: 1.1rem; }

/* 卡片元素 */
.card__title { font-weight: 700; font-size: 1.05rem; color: var(--text); }
.card__desc { margin-top: 4px; color: var(--muted); }

/* Badge */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; border: 1px solid var(--border); }
.badge--info { background: var(--surface); color: var(--text); }
.badge--success { background: #e7f5e9; color: #0a6847; border-color: #c9e9cf; }
.badge--warn { background: #fff4d6; color: #8a5a00; border-color: #ffe7a6; }

/* Pager */
.pager { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 16px; }
.pager__link { padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; text-decoration: none; color: var(--text); background: #fff; }
.pager__link:hover { background: var(--surface); }
.pager__link.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* 表格 */
.table-wrap { width: 100%; overflow-x: auto; }
.table-card { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; }
.table thead th { background: var(--surface); font-weight: 700; }
.table tbody tr:hover { background: rgba(8,79,192,.04); }
.table__link { color: var(--brand); text-decoration: none; }
.table__link:hover { text-decoration: underline; }

/* 面包屑（Breadcrumb） */
.breadcrumb { background: var(--surface); border-bottom: 1px solid var(--border); }
.breadcrumb .container { display: flex; align-items: center; gap: 8px; padding: 8px 0; color: var(--muted); }
.breadcrumb__link { color: var(--muted); text-decoration: none; }
.breadcrumb__link:hover { color: var(--text); }
.breadcrumb__sep { color: var(--border); }
.breadcrumb__current { color: var(--text); }

/* 日式主题覆盖 */
.theme--jp { --radius: 6px; --shadow: 0 6px 18px rgba(16,24,40,.06); --muted: #5f6b7a; }
.theme--jp .site-header { gap: 12px; padding: 10px 0; }
.theme--jp .nav__link { padding: 6px 10px; border-radius: 6px; }
.theme--jp .hero { padding: 64px 0 0; }
.theme--jp .hero__title { font-size: 30px; }
.theme--jp .hero__desc { color: var(--muted); }
.theme--jp .btn { border-radius: 6px; }
.theme--jp .table th, .theme--jp .table td { padding: 10px 12px; }
.table--striped tbody tr:nth-child(odd) { background: #fbfdff; }

/* 首页：顶部搜索条 */
.home-search { background: #fcfcfc; border-bottom: 1px solid #d9e6ff; }
.home-search__bar { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.home-search__form { flex: 1; display: flex; align-items: center; gap: 8px; }
.home-search__input { flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; background: #fff; }
.home-search__btn { width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; }

/* 首页：三大信息块 */
.pillars { padding: 20px 20px; }
.pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar { background: var(--surface); border: none; border-radius: 10px; padding: 14px; box-shadow: none; }
.pillar__title { font-weight: 700; margin-bottom: 6px; }
.pillar__desc { color: var(--muted); }

/* 首页：服务卡片 */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card { background: var(--surface); border: none; border-radius: var(--radius); box-shadow: none; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.service-card__icon { width: 48px; height: 48px; display: grid; place-items: center; background: #eef5ff; border-radius: 12px; }
.service-card__title { font-weight: 700; }
.service-card__desc { color: var(--muted); }
.service-card--dark { background: #1C3563; color: #ffffff; border-radius: 16px; transition: background-color .2s ease; }
.service-card--dark:hover { background: #1245a8; }
.service-card--dark .service-card__title { color: #ffffff; }
.service-card--dark .service-card__desc { color: #e5edf9; }
.service-card--dark .service-card__icon { background: rgba(255,255,255,0.1); }
.service-card--dark a { color: #ffffff; font-weight: 600; }
.service-card--dark a:hover { color: #e5edf9; }
.network__image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.network__image > img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 960px) {
  .pillars__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
}

/* Home services layout: main card spans 2x2, side cards stack */
.services__grid { grid-template-rows: repeat(2, auto); grid-auto-flow: row; }
.services__grid > .service-card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.services__grid > .service-card:nth-child(2) { grid-column: 3; grid-row: 1; }
.services__grid > .service-card:nth-child(3) { grid-column: 3; grid-row: 2; }
@media (max-width: 960px) {
  .services__grid { grid-template-rows: none; }
  .services__grid > .service-card:nth-child(1),
  .services__grid > .service-card:nth-child(2),
  .services__grid > .service-card:nth-child(3) {
    grid-column: auto; grid-row: auto;
  }
}

/* Utilities */
.u-flex { display: flex; }
.u-items-center { align-items: center; }
.u-justify-between { justify-content: space-between; }
.u-justify-center { justify-content: center; }
.u-gap-sm { gap: 8px; }
.u-gap-md { gap: 12px; }
.u-gap-lg { gap: 16px; }

/* 公司页：介绍与时间轴 */
.about { padding: 24px 20px; }
.about__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.about__card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.timeline { display: flex; flex-direction: column; gap: 10px; }
.timeline__item { display: flex; align-items: center; gap: 12px; }
.timeline__year { min-width: 64px; font-weight: 700; color: var(--brand-dark); }
.timeline__text { flex: 1; position: relative; }
.timeline__text::before { content: ""; position: absolute; left: -12px; right: 0; top: 50%; height: 6px; background: #e9f2ff; border-radius: 999px; transform: translateY(-50%); }
.timeline__text { padding: 8px 12px; background: #fff; border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow); }

/* Modal 弹窗 */
.modal { position: fixed; inset: 0; background: rgba(16,24,40,.35); display: none; align-items: center; justify-content: center; z-index: 100; }
.modal.is-open { display: flex; }
.modal__dialog { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); width: 560px; max-width: 92vw; padding: 16px; }
.modal__header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.modal__title { margin: 0; font-size: 18px; font-weight: 700; }
.modal__close { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; }
.modal__close:hover { background: var(--surface); }
.modal__actions { margin-top: 10px; }

/* Modal 表单样式（独立作用域） */
.modal-form { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.modal-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; color: var(--text); width: 100%; }
.modal-form input, .modal-form textarea { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; background: #fff; width: 100%; }
.modal-form input[readonly] { background: var(--surface); color: var(--muted); }
.modal-form input:focus, .modal-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(8,79,192,.12); }
.modal-form textarea { resize: vertical; }

@media (max-width: 640px) {
  .modal__dialog { width: 96vw; padding: 14px; }
}

/* 公司页：简洁历史列表 */
.list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.list__item { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; background: #fff; display: flex; gap: 10px; align-items: center; }
.list__meta { min-width: 64px; font-weight: 700; color: var(--brand-dark); opacity: .9; }

@media (max-width: 960px) {
  .about__grid { grid-template-columns: 1fr; }
}

/* 新闻页 */
.news { padding: 24px 20px; }
.news__grid { display: grid; grid-template-columns: 3fr 1fr; gap: 20px; }
.news-list .news-item { align-items: center; }
.news-item__date { min-width: 110px; color: var(--muted); }
.news-item__link { color: var(--text); text-decoration: none; }
.news-item__link:hover { color: var(--brand); text-decoration: underline; }
.news__side .card { position: sticky; top: 84px; }
.news-cat { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 8px; }
.news-cat__link { display: flex; align-items: center; justify-content: space-between; text-decoration: none; color: var(--text); padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.news-cat__link:hover { background: var(--surface); }
.news-cat__chev { color: var(--muted); }
@media (max-width: 960px) {
  .news__grid { grid-template-columns: 1fr; }
}
.site__main { padding-top: 64px; }

/* 联系表单（作用域到 .form 容器） */
.form { margin-top: 12px; }
.form .form__grid { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.form .form__group { width: 80%; }
.form .form__group--wide { }
.form .form__input, .form .form__textarea { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; background: #fff; box-shadow: var(--shadow); font-size: 1rem; }
.form .form__input::placeholder, .form .form__textarea::placeholder { color: var(--muted); }
.form .form__textarea { resize: vertical; }

@media (max-width: 640px) {
  .form .form__input, .form .form__textarea { padding: 12px 14px; }
}