/* =========================================================
   智能材料选型 · 枢纽页专属样式
   仅承载 5 张材料分类卡与说明条；其余全局样式（导航 / 页眉 /
   页脚 / 按钮 / 背景）全部由主页 index.css 统一提供，确保与
   全站视觉一致。卡片外观对齐 index.css 的玻璃卡片体系。
   ========================================================= */

/* 1. 分类卡网格 */
.mat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.8rem;
}

/* 2. 单张分类卡（对齐主页 .info-card / .product-card 玻璃质感） */
.mat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-stroke, rgba(51, 128, 200, 0.18));
    border-radius: var(--border-radius, 16px);
    padding: 2.2rem 2rem 1.8rem;
    text-decoration: none;
    color: var(--text-main, #1a202c);
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

/* 顶部品牌渐变条，呼应主页科技蓝→成功绿 */
.mat-card::before {
    content: "";
    position: absolute;
    left: 0; top: 0;
    height: 4px; width: 100%;
    background: linear-gradient(90deg, var(--primary-color, #3380C8), var(--accent-color, #00c853));
    opacity: 0.85;
}

.mat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(51, 128, 200, 0.45);
    background: rgba(255, 255, 255, 0.9);
}

/* 3. 图标徽标 */
.mc-icon {
    width: 58px; height: 58px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-light, #e6f0fa);
    color: var(--primary-color, #3380C8);
    font-size: 1.7rem;
    margin-bottom: 1.1rem;
    border: 1px solid rgba(51, 128, 200, 0.12);
    transition: all 0.3s ease;
}
.mat-card:hover .mc-icon {
    background: var(--primary-color, #3380C8);
    color: #fff;
    transform: rotate(-5deg) scale(1.05);
}

/* 4. 文字 */
.mat-card h3 { font-size: 1.3rem; margin: 0 0 0.6rem; color: var(--text-main, #1a202c); }
.mat-card p {
    color: var(--text-sub, #4a5568);
    font-size: 0.95rem; line-height: 1.7;
    margin: 0 0 1.2rem;
    flex-grow: 1;
}

/* 5. 元信息标签 */
.mc-meta { display: flex; gap: 0.6rem; margin-bottom: 1rem; flex-wrap: wrap; }
.mc-meta span {
    font-size: 0.78rem; font-weight: 600;
    color: var(--primary-dark, #25629c);
    background: rgba(51, 128, 200, 0.08);
    padding: 4px 10px; border-radius: 50px;
}

/* 6. 进入指示 */
.mc-go {
    display: inline-flex; align-items: center; gap: 6px;
    font-weight: 600; color: var(--primary-color, #3380C8);
    font-size: 0.95rem;
}
.mat-card:hover .mc-go { gap: 10px; }
.mc-go i { transition: transform 0.3s ease; }
.mat-card:hover .mc-go i { transform: translateX(4px); }

/* 7. 说明条（对齐主页 .info-note 信息卡风格） */
.info-note {
    max-width: 900px;
    margin: 1.8rem auto 0;
    padding: 1rem 1.4rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--glass-stroke, #e2e8f0);
    border-left: 4px solid var(--primary-color, #3380C8);
    border-radius: 12px;
    color: var(--text-sub, #4a5568);
    font-size: 0.95rem; line-height: 1.7;
}
.info-note b.stock { color: var(--primary-dark, #25629c); }
.info-note b.ref { color: var(--accent-color, #00c853); }

/* 8. 页眉小标签 */
.zh-eyebrow {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--primary-color, #3380C8);
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* 9. 移动端微调 */
@media (max-width: 768px) {
    .mat-grid { grid-template-columns: 1fr; gap: 1.2rem; }
    .mat-card { padding: 1.8rem 1.4rem 1.5rem; }
}

/* ==JA-TYPOGRAPHY-LOCALIZED== */

/* ==========================================================
   日本語ローカライズ：組版（タイポグラフィ）最適化
   日本語ネイティブフォント・禁則処理・約物詰め・行送り
   ========================================================== */
:root{
  /* 日本語フォントスタック（日本語ネイティブフォントを最優先） */
  --ja-sans: "Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic","Yu Gothic UI",
             "Meiryo","Noto Sans JP","Hiragino Sans",sans-serif;
  --ja-mincho: "Hiragino Mincho ProN","Yu Mincho","Yu Mincho Demibold","MS PMincho",serif;
  /* 日本語組版パラメータ */
  --ja-lh-body: 1.9;      /* 本文の行送り（日本語は欧文より広めが読みやすい） */
  --ja-lh-head: 1.55;     /* 見出しの行送り */
  --ja-ls-body: 0.04em;   /* 本文の字間（日本語はわずかに空けると読みやすい） */
  --ja-ls-head: 0.02em;   /* 見出しの字間 */
  --ja-ls-btn: 0.06em;    /* ボタンの字間 */
}

/* --- 基本組版 --- */
html[lang="ja"] body,
body{
  font-family: var(--ja-sans);
  font-size: 15px;                    /* 日本語サイトは本文やや小さめが標準 */
  line-height: var(--ja-lh-body);
  letter-spacing: var(--ja-ls-body);
  /* 禁則処理：行頭・行末の禁則文字（句読点・括弧など）を厳格に守る */
  line-break: strict;
  word-break: normal;                 /* 日本語は単語区切り不要、禁則に任せる */
  overflow-wrap: break-word;
  /* 約物詰め：句読点や括弧のアキを詰めて美しい日本語組版に */
  font-feature-settings: "palt" 1;
  -webkit-font-feature-settings: "palt" 1;
  /* 日本語ではイタリック（斜体）は使わない */
  font-style: normal;
  text-align: left;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

/* 欧文・数字が混在する箇所は欧文フォントを前面に */
[class*="num"],[class*="Number"],[class*="val"],[class*="Val"],
code,kbd,samp,.mono,.lang-text,input[type="number"],output{
  font-family: "Inter","Helvetica Neue",Arial,var(--ja-sans);
  font-variant-numeric: tabular-nums;   /* 数字の桁を揃える */
  font-feature-settings: "palt" 0,"tnum" 1;
  letter-spacing: 0;
}

/* --- 見出し：情報階層を明確に --- */
h1,h2,h3,h4,h5,h6{
  font-family: var(--ja-sans);
  line-height: var(--ja-lh-head);
  letter-spacing: var(--ja-ls-head);
  font-weight: 600;              /* 日本語ゴシックは極太だと潰れるので 600 まで */
  font-style: normal;
  word-break: normal;
  line-break: strict;
  overflow-wrap: break-word;
}
h1{font-size:1.9rem;letter-spacing:.01em}
h2{font-size:1.55rem}
h3{font-size:1.25rem}
h4,h5,h6{font-size:1.05rem}

/* --- 余白（日本語サイトはゆとりある余白を重視） --- */
p{ line-height: var(--ja-lh-body); margin-bottom: 1.25em; }
li{ line-height: var(--ja-lh-body); }
section{ padding-top: 4.5rem; padding-bottom: 4.5rem; }
.container,.wrap,[class*="container"]{ padding-left: 20px; padding-right: 20px; }

/* --- ボタン：日本語は文字数が増えるため横方向の余白を広めに --- */
.btn,button,.button,[class*="btn"],[role="button"],
a[class*="btn"]{
  font-family: var(--ja-sans);
  letter-spacing: var(--ja-ls-btn);
  padding: .72em 1.7em;
  line-height: 1.6;
  white-space: nowrap;
  font-style: normal;
}
/* 狭い画面では折り返しを許可（日本語は長くなりがち） */
@media (max-width:640px){
  .btn,button,.button,[class*="btn"]{
    white-space: normal;
    padding: .7em 1.2em;
  }
}

/* --- テーブル：日本語は文字が詰まるのでセル内余白を広めに --- */
table{ line-height: 1.75; }
th,td{
  padding: .75em 1em;
  letter-spacing: .02em;
  line-height: 1.7;
}
th{ font-weight: 600; white-space: nowrap; }

/* --- フォーム --- */
label{ letter-spacing: .03em; line-height: 1.7; }
input,select,textarea{
  font-family: var(--ja-sans);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: .03em;
  padding: .6em .8em;
}
::placeholder{ letter-spacing:.03em; opacity:.6 }

/* --- リンク・ナビゲーション --- */
a{ letter-spacing: .03em; }
nav a,.nav a,[class*="nav"] a{ letter-spacing:.04em; white-space:nowrap }

/* --- 細部の日本語対応 --- */
small,.small{ font-size:.85rem; letter-spacing:.03em }
blockquote{ line-height:1.9; letter-spacing:.03em; font-style:normal }
dt,dd{ line-height:1.8; letter-spacing:.03em }
/* 日本語では斜体・下線過多を避ける */
em,i,cite{ font-style: normal; }
/* 和欧混植：欧文語の前後に四分アキを自動付与 */
[lang="en"],.en{ font-family:"Inter","Helvetica Neue",Arial,sans-serif; letter-spacing:0 }

/* --- 印刷時 --- */
@media print{
  body{ font-size:10.5pt; line-height:1.7 }
  section{ padding:1rem 0 }
}
