/*
 * 文件翻译与认证配套专题（/translation/）。在 topics.css、trademark.css 的专题控件之上，只写本页独有的区块。
 * 用色（方案2）：标题与大面积用藏青（--ink），编号、链接用品牌蓝（--accent）；亮蓝 #3558F0 只做悬停、选中与动线；
 * 深色首屏上的动线用浅调 #8FA6FF；琥珀金只给首屏“获取翻译报价”这一个主按钮（由品牌层统一处理）。
 * 造型母题：右上 45° 切角，不用圆角。动效只用于装饰性的首屏文件流，开启“减少动态效果”时全部停用。
 */
.tp-tr { --tr-live: #3558F0; --tr-live-soft: rgba(53, 88, 240, .1); --tr-route: #8FA6FF; }
.tp-tr .tr-sub { position: relative; margin: 0 0 18px; padding-left: 16px; color: var(--ink); font-size: 18px; }
.tp-tr .tr-sub::before { content: ""; position: absolute; left: 0; top: .3em; bottom: .3em; width: 3px; background: var(--accent-fill); transform: skewX(calc(var(--slant, 9deg) * -1)); }
.tp-tr :is(.tr-scene-go, .tr-biz a, .tr-match-links a):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- 首屏：原文 → 译文 → 使用场景 ---------- */
.tr-hero .tp-hero-main { min-width: 0; }
.tr-hero h1 { max-width: 12em; }
.tr-hero-grid { display: grid; gap: 40px; }
.tr-flow { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tr-flow-route { display: none; }
.tr-flow-card { position: relative; display: grid; align-content: start; gap: 8px; min-width: 0; padding: 14px 14px 16px; border: 1px solid rgba(209, 219, 255, .26); background: rgba(255, 255, 255, .05); color: rgba(240, 243, 255, .94);
  clip-path: polygon(0 0, calc(100% - var(--tm-cut)) 0, 100% var(--tm-cut), 100% 100%, 0 100%); }
.tr-flow-card b { font-size: 13px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.tr-flow-card.is-out { border-color: rgba(255, 255, 255, .9); background: #FFFFFF; color: var(--ink); }
.tr-flow-tag { display: flex; align-items: center; gap: 8px; color: rgba(209, 219, 255, .84); font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.tr-flow-tag em { color: var(--tr-route); font: 700 12px/1 var(--numeric), var(--sans); font-style: normal; }
.tr-flow-card.is-out .tr-flow-tag { color: var(--muted); }
.tr-flow-card.is-out .tr-flow-tag em { color: var(--tr-live); }
.tr-flow-lines { display: grid; gap: 7px; margin-top: 4px; }
.tr-flow-lines i { display: block; height: 5px; background: rgba(209, 219, 255, .2); }
.tr-flow-lines i:nth-child(2) { width: 86%; }
.tr-flow-lines i:nth-child(3) { width: 93%; }
.tr-flow-lines i:nth-child(4) { width: 54%; }
.tr-flow-card.is-out .tr-flow-lines i { background: rgba(33, 39, 115, .12); }
.tr-flow-card.is-out .tr-flow-lines i:nth-child(1) { background: rgba(53, 88, 240, .32); }
.tr-flow-mark { position: absolute; right: 14px; bottom: 14px; display: none; place-items: center; min-width: 34px; height: 26px; padding: 0 6px; border: 1px solid rgba(209, 219, 255, .4); color: rgba(240, 243, 255, .9); font: 700 12px/1 var(--numeric), var(--sans); letter-spacing: .06em; }
.tr-flow-card.is-out .tr-flow-mark { border-color: var(--tr-live); background: var(--tr-live); color: #FFFFFF; }
.tr-flow-uses { display: flex; flex-wrap: wrap; gap: 6px; }
.tr-flow-uses i { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border: 1px solid rgba(143, 166, 255, .45); color: rgba(240, 243, 255, .94); font-size: 12px; font-style: normal; }
.tr-flow-card.is-use b { display: none; }
@media (max-width: 1023px) {
  .tr-flow { margin-top: 4px; }
  .tr-flow-card:not(:last-of-type)::after { content: "→"; position: absolute; right: -2px; top: 12px; color: var(--tr-route); font-size: 13px; }
  .tr-flow-lines i:nth-child(n + 3) { display: none; }
}
@media (max-width: 760px) {
  .tr-hero .tm-hero-tags { flex-wrap: nowrap; margin-right: calc(var(--gutter, 20px) * -1); padding-right: var(--gutter, 20px); overflow-x: auto; scrollbar-width: none; }
  .tr-hero .tm-hero-tags::-webkit-scrollbar { display: none; }
  .tr-hero .tm-hero-tags li { flex: none; }
  .tr-hero-grid { gap: 28px; }
  .tr-flow { gap: 8px; }
  .tr-flow-card { padding: 12px 10px 12px; }
  .tr-flow-card b { font-size: 12px; }
  .tr-flow-uses i { min-height: 22px; padding: 0 6px; font-size: 11.5px; }
}
@media (min-width: 1024px) {
  .tr-hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); align-items: center; gap: clamp(40px, 5vw, 80px); }
  .tr-flow { display: block; height: 430px; }
  .tr-flow-route { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
  .tr-flow-route path { fill: none; stroke: var(--tr-route); stroke-width: 1.5; stroke-dasharray: 2 10; stroke-linecap: round; opacity: .75; animation: tr-route 6s linear infinite; }
  .tr-flow-card { position: absolute; width: 64%; padding: 20px 22px 24px; animation: tr-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .tr-flow-card b { font-size: 15px; }
  .tr-flow-card.is-src { left: 0; top: 0; }
  .tr-flow-card.is-out { right: 0; top: 140px; box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .55); animation-delay: .12s; }
  .tr-flow-card.is-use { left: 10%; bottom: 0; width: 76%; animation-delay: .24s; }
  .tr-flow-card.is-use { border-color: rgba(143, 166, 255, .5); background: rgba(9, 46, 184, .28); }
  .tr-flow-mark { display: grid; }
  .tr-flow-lines { padding-right: 48px; }
  .tr-flow-uses i { min-height: 30px; padding: 0 12px; font-size: 13px; }
  .tr-hero.is-offscreen .tr-flow-route path { animation-play-state: paused; }
}
@keyframes tr-route { to { stroke-dashoffset: -120; } }
@keyframes tr-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- 01 按用途找服务 ---------- */
.tr-scenes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.tr-scene { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px 24px 22px; border: 1px solid var(--line); background: var(--white);
  clip-path: polygon(0 0, calc(100% - var(--tm-cut)) 0, 100% var(--tm-cut), 100% 100%, 0 100%); transition: border-color .2s, transform .2s; }
.tr-scene::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--tr-live); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.tr-scene:hover, .tr-scene:focus-within { border-color: rgba(53, 88, 240, .5); transform: translateY(-2px); }
.tr-scene:hover::before, .tr-scene:focus-within::before { transform: scaleX(1); }
.tr-scene-no { color: var(--accent); font: 700 13px/1 var(--numeric), var(--sans); letter-spacing: .08em; }
.tr-scene h3 { margin: 0; color: var(--ink); font-size: 19px; }
.tr-scene p { margin: 0; color: var(--text, #2B3155); font-size: 14.5px; line-height: 1.75; }
.tr-scene em, .tr-example dt { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; font-style: normal; font-weight: 600; letter-spacing: .04em; }
.tr-scene-biz { padding-top: 12px; border-top: 1px dashed var(--line); }
.tr-biz { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.tr-biz a, .tr-match-links a { color: var(--accent); font-weight: 600; text-decoration: none; }
.tr-biz a:hover, .tr-match-links a:hover { color: var(--tr-live); text-decoration: underline; text-underline-offset: 4px; }
.tr-biz i, .tr-match-links i { color: var(--muted); font-style: normal; }
.tr-scene-go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; color: var(--ink); font-weight: 600; text-decoration: none; }
.tr-scene-go i { font-style: normal; transition: transform .2s ease; }
.tr-scene-go:hover { color: var(--tr-live); }
.tr-scene-go:hover i, .tr-scene-go:focus-visible i { transform: translateX(4px); }

/* ---------- 02 可翻译文件 ---------- */
.tr-file-panel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.tr-file-head h3 { margin: 0 0 10px; color: var(--ink); font-size: 21px; }
.tr-file-head p { margin: 0 0 14px; color: var(--text, #2B3155); font-size: 15px; line-height: 1.8; }
.tr-file-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.tr-file-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; min-height: 58px; padding: 12px 16px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-weight: 600;
  clip-path: polygon(0 0, calc(100% - var(--tm-cut-s)) 0, 100% var(--tm-cut-s), 100% 100%, 0 100%); }
.tr-file-list li small { padding: 2px 7px; border: 1px dashed rgba(33, 39, 115, .4); color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; }
.tp-tabs:not(.is-enhanced) .tr-file-panel + .tr-file-panel { padding-top: 24px; border-top: 1px solid var(--line); }
.tr-files-foot { display: grid; gap: 14px; margin-top: 28px; }
.tr-files-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 0; padding: 18px 22px; border: 1px solid var(--ink); background: var(--white); }
.tr-files-more b { color: var(--ink); font-size: 16px; }
.tr-files-mask { margin: 0; padding-left: 16px; border-left: 3px solid rgba(33, 39, 115, .3); color: var(--muted); font-size: 14px; line-height: 1.8; }

/* ---------- 03 翻译与公证认证如何配套 ---------- */
.tr-match .tp-fee-row { grid-template-columns: minmax(11.5em, 3fr) minmax(0, 5fr) minmax(0, 4.4fr); align-items: start; }
.tr-match [role="rowheader"] { display: flex; align-items: baseline; gap: 10px; }
.tr-match [role="rowheader"] em { color: var(--accent-fill); font: 700 13px/1 var(--numeric), var(--sans); font-style: normal; }
.tr-match-ask { color: var(--muted) !important; font-size: 14px; }
.tr-key { margin-top: 24px; border-left: 4px solid var(--ink); font-size: 16px; }
.tr-key b { color: var(--ink); }
.tr-match-foot { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(20px, 3vw, 40px); align-items: start; margin-top: 28px; }
.tr-fact { padding: 22px 24px; background: var(--pale); clip-path: polygon(0 0, calc(100% - var(--tm-cut)) 0, 100% var(--tm-cut), 100% 100%, 0 100%); }
.tr-fact h3 { margin: 0 0 8px; color: var(--ink); font-size: 17px; }
.tr-fact p { margin: 0 0 10px; color: var(--text, #2B3155); font-size: 14.5px; line-height: 1.85; }
.tr-match-actions { display: grid; gap: 16px; justify-items: start; }
.tr-match-links { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 14.5px; }

/* ---------- 05 交付内容与流程 ---------- */
.tr-deliver { margin-bottom: 40px; }
.tr-deliver-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.tr-deliver-list li { display: grid; gap: 10px; align-content: start; padding: 18px 18px 20px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.6; }
.tr-deliver-list span { color: var(--accent); font: 700 12px/1 var(--numeric), var(--sans); letter-spacing: .08em; }
.tr-deliver-note { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.tr-steps .tp-step h4 { margin: 0 0 10px; color: var(--ink); font-size: 18px; }

/* ---------- 06 报价与时效 ---------- */
.tr-pricing .tm-quote .tp-fee-row { grid-template-columns: 11rem minmax(0, 1fr); }
.tr-periods > div { padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.tr-periods p { margin: 0; color: var(--text, #2B3155); font-size: 14.5px; line-height: 1.75; }
.tr-quote { margin: 0; padding-left: 14px; border-left: 3px solid var(--accent-fill); color: var(--ink) !important; font-weight: 600; }

/* ---------- 07 典型业务场景（服务场景示例） ---------- */
.tr-example-label { display: inline-flex; margin: 0 0 18px; padding: 6px 12px; border: 1px dashed rgba(33, 39, 115, .4); color: var(--muted); font-size: 13px; font-weight: 600; }
.tr-examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tr-example { display: flex; flex-direction: column; gap: 12px; padding: 26px 24px 22px; border: 1px solid var(--line); background: var(--white);
  clip-path: polygon(0 0, calc(100% - var(--tm-cut)) 0, 100% var(--tm-cut), 100% 100%, 0 100%); }
.tr-example-tag { align-self: flex-start; padding: 3px 10px; background: var(--tr-live-soft); color: var(--accent); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; }
.tr-example h3 { margin: 0; color: var(--ink); font-size: 19px; }
.tr-example > p { margin: 0; color: var(--text, #2B3155); font-size: 14.5px; line-height: 1.8; }
.tr-example dl { display: grid; gap: 12px; margin: 0; padding-top: 12px; border-top: 1px dashed var(--line); }
.tr-example dd { margin: 0; color: var(--text, #2B3155); font-size: 14px; line-height: 1.75; }

/* ---------- 咨询表单：样本上传 ---------- */
.tp-tr .tp-file-box { display: grid; gap: 8px; padding: 12px; border: 1px dashed rgba(33, 39, 115, .32); background: var(--pale); }
.tp-tr .tp-file-box:focus-within { border-color: var(--tr-live); }
.tp-tr .tp-file-box input[type="file"] { min-height: 0; padding: 8px 0; border: 0; background: transparent; color: inherit; font-size: 14px; }
.tp-tr .tp-file-box input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 1px solid currentColor; background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.tp-tr .tp-file-box input[type="file"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tp-tr .tp-file-picked { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; font-size: 13.5px; overflow-wrap: anywhere; }
.tp-tr .tp-file-picked[hidden] { display: none; }
.tp-tr .tp-file-clear { padding: 2px 10px; border: 1px solid currentColor; background: transparent; color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.tp-tr .tp-hint.is-note { color: var(--muted); line-height: 1.7; }

/* ---------- 断点 ---------- */
@media (max-width: 1180px) {
  .tr-deliver-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .tr-scenes, .tr-examples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tr-file-panel, .tr-match-foot { grid-template-columns: 1fr; }
  .tr-match .tp-fee-row { grid-template-columns: minmax(10em, 3fr) minmax(0, 5fr); }
  .tr-match .tp-fee-row .tr-match-ask { grid-column: 2; }
  .tr-match .tp-fee-row.is-head span:last-child { display: none; }
}
@media (max-width: 760px) {
  .tr-scenes, .tr-examples { grid-template-columns: 1fr; }
  .tr-pricing .tm-quote .tp-fee-row { grid-template-columns: 1fr; }
  .tr-scene, .tr-example { padding: 22px 20px 18px; }
  .tr-file-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tr-file-list li { min-height: 52px; padding: 10px 12px; font-size: 14px; }
  .tr-files-more { padding: 16px; }
  .tr-files-more .button { flex: 1 1 100%; justify-content: center; }
  .tr-match .tp-fee-row { grid-template-columns: 1fr; }
  .tr-match .tp-fee-row .tr-match-ask { grid-column: auto; }
  .tr-match-ask::before { content: "办理前先确认："; color: var(--ink); font-weight: 600; }
  .tr-match-actions .button { width: 100%; justify-content: center; }
  .tr-deliver-list { grid-template-columns: 1fr; }
  .tr-deliver-list li { grid-template-columns: 28px 1fr; align-items: baseline; padding: 14px 16px; }
}
@media (max-width: 374px) {
  .tr-file-list { grid-template-columns: 1fr; }
}
/* 四项优势排成一行时（trademark.css 已改为 4 列），第 4 项同样带左侧分隔线 */
@media (min-width: 1024px) {
  .tp-tr .tm-advs:has(> li:nth-child(4):last-child) > li:nth-child(4) { padding-left: 26px; border-left: 1px solid var(--line-dark); }
}
@media (prefers-reduced-motion: reduce) {
  .tr-flow-route path, .tr-flow-card { animation: none !important; }
  .tr-scene, .tr-scene::before, .tr-scene-go i { transition: none; }
  .tr-scene:hover, .tr-scene:focus-within { transform: none; }
}
@media print {
  .tr-flow, .tr-scene-go, .tr-files-more .button, .tr-match-actions .button { display: none !important; }
  .tr-scene, .tr-example, .tr-file-list li, .tr-fact { clip-path: none; }
}
