@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #2e469d;
    --primary-hover: #1f357d;
    --accent-color: #d1f9f4;
    --accent-soft: #ecfaf8;
    --bg-warm: #fff8ed;
    --bg-page: #ffffff;
    --bg-light: #f4f6fb;
    --text-dark: #142044;
    --text-body: #52617f;
    --text-muted: #74809a;
    --border-color: #dfe5f2;
    --shadow-soft: 0 18px 44px rgba(46, 70, 157, 0.10);
    --site-max-width: 1180px;
    --site-padding-x: 32px;
    --section-spacing-y: 92px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    background: var(--bg-page);
}

img,
svg {
    display: block;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

h1,
h2,
h3,
p {
    letter-spacing: 0;
}

h1 {
    max-width: 920px;
    font-size: 64px;
    font-weight: 700;
    line-height: 1.08;
}

h2 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.18;
}

h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

p {
    font-size: 16px;
    line-height: 1.7;
}

p a {
    color: var(--primary-color);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

p a:hover {
    color: var(--primary-hover);
}

.site-container {
    width: 100%;
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding-left: var(--site-padding-x);
    padding-right: var(--site-padding-x);
}

.standard-section {
    padding-top: var(--section-spacing-y);
    padding-bottom: var(--section-spacing-y);
}

.eyebrow {
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0;
    opacity: 0.8;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 248, 237, 0.94);
    border-bottom: 1px solid rgba(46, 70, 157, 0.10);
    backdrop-filter: blur(12px);
}

.site-nav {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo-area {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-area img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.logo-text {
    font-size: 23px;
    font-weight: 700;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 8px;
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-menu > li:hover > a,
.nav-menu > li:focus-within > a {
    color: var(--primary-color);
    background: rgba(46, 70, 157, 0.06);
}

.nav-dropdown-toggle {
    gap: 6px;
}

.nav-caret {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
}

.mega-menu::before {
    content: '';
    position: absolute;
    top: -16px; /* 向上延伸 16px 的隐形热区 */
    left: 0;
    width: 100%;
    height: 16px;
    background: transparent;
}

.mega-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(520px, calc(100vw - 40px));
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 24px;
    border: 1px solid rgba(46, 70, 157, 0.08);
    border-radius: 14px;
    background: var(--bg-light);
    box-shadow: 0 20px 40px rgba(46, 70, 157, 0.12);
    animation: menuFadeIn 0.2s ease;
}

.more-menu {
    width: min(260px, calc(100vw - 40px));
    grid-template-columns: 1fr;
}

@keyframes menuFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.dropdown:hover .mega-menu,
.dropdown:focus-within .mega-menu {
    display: grid;
}

.menu-column {
    display: grid;
    gap: 8px;
}

.menu-column p {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.6;
}

.menu-column a {
    min-height: auto;
    justify-content: flex-start;
    padding: 0;
    border-radius: 0;
    color: var(--text-body);
    font-size: 14px;
    font-weight: 500;
}

.menu-column a:hover,
.menu-column a:focus-visible {
    color: var(--primary-color);
    background: rgba(46, 70, 157, 0.06);
    transform: translateX(3px);
    text-decoration: none;
}

.hero {
    min-height: calc(100vh - 82px);
    display: flex;
    align-items: center;
    background: var(--accent-soft);
}

.hero-container {
    display: grid;
    justify-items: center;
    gap: 30px;
    text-align: center;
}

.hero-copy {
    display: grid;
    justify-items: center;
    gap: 18px;
}

.hero-description {
    max-width: 760px;
    color: var(--text-body);
    font-size: 19px;
}

.upload-box {
    width: min(760px, 100%);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 26px;
    border: 2px dashed rgba(46, 70, 157, 0.38);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
}

.upload-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--primary-color);
    background: var(--accent-soft);
}

.upload-content {
    display: grid;
    gap: 4px;
    text-align: left;
}

.upload-content p {
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.upload-content span {
    color: var(--text-muted);
    font-size: 14px;
}

.upload-box button {
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    background: var(--primary-color);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.upload-box button:hover,
.upload-box button:focus-visible {
    background: var(--primary-hover);
    box-shadow: 0 12px 24px rgba(46, 70, 157, 0.22);
    transform: translateY(-1px);
    outline: none;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-features span {
    padding: 8px 12px;
    border: 1px solid rgba(46, 70, 157, 0.12);
    border-radius: 999px;
    color: var(--text-body);
    background: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 600;
}

.other-tools {
    background: var(--primary-color);
}

.other-tools .site-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.other-tools .section-title {
    flex: 1 1 320px;
    min-width: 0;
    max-width: none;
    margin: 0;
    display: grid;
    justify-items: start;
    align-content: center;
    gap: 12px;
    text-align: left;
}

.other-tools .section-title .eyebrow {
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--bg-warm);
    opacity: 0.95;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.other-tools .section-title h2 {
    color: var(--accent-color);
}

.other-tools .section-title p:not(.eyebrow) {
    margin: 0;
    opacity: 0.8;
    color: var(--bg-warm);
    line-height: 1.6;
}

.tools-explore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: var(--border-color);
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.other-tools .tools-grid {
    flex: 2 1 500px;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.other-tools .tool-card {
    min-width: 0;
    min-height: 0;
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 0;
    padding: 28px;
    border: none;
    border-radius: 16px;
    color: var(--primary-color);
    background: var(--bg-page);
    box-shadow: 0 12px 30px rgba(46, 70, 157, 0.05);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.other-tools .tool-card:nth-child(odd) {
    transform: translateY(-15px);
}

.other-tools .tool-card:nth-child(even) {
    color: var(--primary-color);
    background: var(--bg-warm);
    transform: translateY(20px);
}

.other-tools .tool-card:hover,
.other-tools .tool-card:focus-visible {
    box-shadow: 0 16px 36px rgba(46, 70, 157, 0.10);
    transform: translateY(-4px);
    outline: none;
}

.other-tools .tool-card:nth-child(even):hover,
.other-tools .tool-card:nth-child(even):focus-visible {
    transform: translateY(8px);
}

.other-tools .tool-icon {
    width: auto;
    height: auto;
    display: inline-grid;
    place-items: center;
    padding: 4px 8px;
    border-radius: 6px;
    color: var(--primary-color);
    background: var(--accent-color);
    font-size: 11px;
    font-weight: 800;
    white-space: normal;
}

.other-tools .tool-card-content {
    display: grid;
    gap: 8px;
    margin-top: 15px;
}

.other-tools .tool-card h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 700;
}

.other-tools .tool-card p {
    margin: 0;
    color: var(--primary-color);
    opacity: 0.75;
    font-size: 13px;
    line-height: 1.5;
}

.other-tools .tool-card code {
    padding: 2px 4px;
    border-radius: 4px;
    color: var(--primary-color);
    background: rgba(46, 70, 157, 0.08);
    font-size: 12px;
}

/* 工作流板块背景 */
.how-section {
    background: var(--bg-warm);
    color: var(--primary-color);
}

/* 各板块标题使用一致的内部与底部间距 */
.how-section .section-title,
.faq-section .section-title,
.specs-header {
    max-width: 800px;
    margin: 0 auto 48px;
    display: grid;
    justify-items: center;
    gap: 12px;
    text-align: center;
}

.how-section .section-title .eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.how-section .section-title h2 {
    color: var(--primary-hover);
    font-size: 36px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
}

.how-section .section-title p:not(.eyebrow) {
    margin: 0;
    color: var(--primary-color);
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.8;
}

/* 三列连续工作流 */
.how-section .steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    align-items: start;
}

.how-section .step-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
    transition: none;
}

.how-section .step-card:hover {
    transform: none;
    box-shadow: none;
}

.how-section .step-img-box {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 12 / 7;
    overflow: hidden;
    border: none;
    border-radius: 0;
    background: transparent;
}

.how-section .step-img-box img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.35s ease;
}

/* 图片左上角圆形步骤编号 */
.how-section .step-number {
    position: absolute;
    z-index: 2;
    top: 15px;
    left: 15px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    color: var(--primary-color);
    background: var(--accent-color);
    font-size: 12px;
    font-weight: 800;
}

/* 步骤标题 */
.how-section .step-card h3 {
    margin: 20px 0 8px;
    color: var(--text-body);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

/* 步骤说明 */
.how-section .step-card p {
    max-width: 280px;
    margin: 0;
    color: var(--text-body);
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.8;
}

/* 行内代码 */
.how-section .step-card code {
    padding: 2px 4px;
    border-radius: 4px;
    color: var(--text-dark);
    background: rgba(46, 70, 157, 0.08);
    font-size: 12px;
}

/* FAQ Section */
.faq-section {
    background: var(--bg-warm);
    color: var(--primary-color);
}

.faq-section .section-title .eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.7;
}

.faq-section .section-title h2 {
    margin: 0;
    color: var(--primary-hover);
    font-size: 36px;
    font-weight: 800;
    line-height: 1.25;
}

.faq-section .section-title p:not(.eyebrow) {
    margin: 0;
    color: var(--primary-color);
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.8;
}

/* 问题列表：无外层大框 */
.faq-section .faq-grid {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: none;
}

/* FAQ 默认状态：仅保留底部分割线 */
.faq-section .faq-item {
    min-width: 0;
    overflow: hidden;
    border: none;
    border-bottom: var(--border-color) 1px solid;
    border-radius: 0;
    background: transparent;
    transition: background-color 0.25s ease;
}

/* 默认不使用整行悬浮底色 */
.faq-section .faq-item:hover {
    background: rgba(209, 249, 244, 0.12);
}

/* 展开状态：浅青色背景 + 左侧深蓝色强调线 */
.faq-section .faq-item.active {
    border-left: 4px solid var(--primary-color);
    border-radius: 0 12px 12px 0;
    background: rgba(209, 249, 244, 0.3);
}

.faq-section .faq-item.active:hover {
    background: rgba(209, 249, 244, 0.4);
}

/* 问题按钮 */
.faq-section .faq-question {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 24px;
    border: none;
    color: var(--text-body);
    background: transparent;
    text-align: left;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    cursor: pointer;
    transition: color 0.2s ease;
}

.faq-section .faq-item.active .faq-question {
    color: var(--primary-color);
    padding-left: 20px;
}

/* 展开 / 收起图标 */
.faq-section .faq-icon {
    display: block;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-left: auto;
    color: var(--primary-color);
    transition: transform 0.25s ease;
}

.faq-section .faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* 答案折叠动画 */
.faq-section .faq-answer {
    box-sizing: border-box;
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-section .faq-answer p {
    max-width: 90ch;
    margin: 0;
    padding-bottom: 20px;
    color: var(--text-body);
    font-size: 14px;
    line-height: 1.75;
    opacity: 0.85;
}

.faq-section .faq-item.active .faq-answer {
    max-height: 500px;
    padding: 12px 24px 0 20px;
}

/* Specs section */
.specs-section {
    background: var(--bg-light);
}
.specs-header .eyebrow {
    width: max-content;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--bg-warm);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    margin: 0 auto;
}

.specs-header h2 {
    color: var(--primary-color);
    margin: 0;
}

.specs-header p:not(.eyebrow) {
    color: var(--text-body);
    margin: 0;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;
}

.spec-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    padding: 32px;
    border-radius: 14px;
}

.main-card {
    color: var(--primary-color);
    background: rgba(209, 249, 244, 0.3);
    border: 1px solid rgba(46, 70, 157, 0.10);
}

.format-card {
    color: var(--bg-page);
    background: var(--primary-color);
    box-shadow: 0 15px 35px rgba(46, 70, 157, 0.15);
}

.card-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.card-index {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--bg-warm);
    background: var(--primary-color);
    font-size: 14px;
    font-weight: 800;
}

.format-card .card-index {
    color: var(--primary-color);
    background: var(--bg-warm);
}

.card-heading h3 {
    margin: 0;
    color: inherit;
    font-size: 19px;
    font-weight: 700;
}

.spec-card-intro {
    margin: 0 0 20px;
    color: inherit;
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.72;
}

.spec-rule-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.spec-rule-list li {
    display: grid;
    grid-template-columns: 18px minmax(120px, 140px) 1fr;
    align-items: start;
    column-gap: 10px;
    color: inherit;
    font-size: 14px;
    line-height: 1.65;
}

.spec-rule-list strong {
    white-space: nowrap;
}

.main-card .spec-rule-list span {
    color: var(--text-dark);
    font-weight: 800;
}

.spec-rule-list span {
    color: var(--bg-warm);
    font-weight: 800;
}

.spec-card-note {
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid rgba(46, 70, 157, 0.10);
    color: var(--text-body);
    font-size: 12px;
}

.spec-card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.spec-card-action span {
    color: var(--bg-warm);
    font-size: 13px;
}

.spec-card-action a {
    flex: 0 0 auto;
    padding: 9px 16px;
    border-radius: 6px;
    color: var(--primary-color);
    background: var(--bg-warm);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.spec-card-action a:hover,
.spec-card-action a:focus-visible {
    background: #ffffff;
    transform: translateY(-1px);
    outline: none;
}

/* Lightweight closing CTA */
.tool-closing-cta {
    padding: 64px 0;
    background: var(--bg-page);
}

.tool-closing-cta__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 42px;
    padding: 32px;
    border-radius: 14px;
    color: #ffffff;
    background: var(--primary-color);
    box-shadow: 0 15px 35px rgba(46, 70, 157, 0.15);
}

.tool-closing-cta__copy {
    display: grid;
    gap: 9px;
}

.tool-closing-cta__copy h2 {
    color: #ffffff;
    font-size: 30px;
    line-height: 1.25;
}

.tool-closing-cta__copy p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    line-height: 1.65;
}

.tool-closing-cta__button {
    min-width: 154px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 8px;
    color: var(--primary-color);
    background: var(--bg-warm);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-closing-cta__button:hover,
.tool-closing-cta__button:focus-visible {
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(16, 28, 66, 0.22);
    transform: translateY(-1px);
    outline: none;
}

.tool-closing-cta__button:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

/* Legal pages */
.legal-page {
    background: var(--bg-light);
}

.legal-hero {
    padding-top: 76px;
    padding-bottom: 54px;
    background: var(--accent-soft);
}

.legal-shell {
    max-width: 880px;
}

.legal-hero .eyebrow {
    margin-bottom: 14px;
}

.legal-hero h1 {
    max-width: 760px;
    margin: 0 0 18px;
    color: var(--primary-color);
    font-size: clamp(40px, 6vw, 58px);
    line-height: 1.1;
}

.legal-updated {
    color: var(--text-muted);
    font-size: 14px;
}

.legal-content {
    padding-top: 56px;
    padding-bottom: 82px;
    background: var(--bg-light);
}

.legal-intro {
    margin-bottom: 18px;
    color: var(--text-body);
    font-size: 17px;
}

.legal-section {
    padding: 28px 0;
    border-top: 1px solid var(--border-color);
}

.legal-section h2 {
    margin-bottom: 14px;
    color: var(--primary-color);
    font-size: 28px;
    line-height: 1.3;
}

.legal-section h3 {
    margin: 20px 0 8px;
    color: var(--text-dark);
    font-size: 18px;
}

.legal-section p,
.legal-section li {
    color: var(--text-body);
}

.legal-section p + p,
.legal-section p + ul,
.legal-section ul + p {
    margin-top: 14px;
}

.legal-section ul {
    display: grid;
    gap: 9px;
    padding-left: 22px;
}

.legal-section a {
    color: var(--primary-color);
    text-underline-offset: 3px;
}

.legal-note {
    margin-top: 20px;
    padding: 18px 20px;
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
    color: var(--text-body);
    background: rgba(209, 249, 244, 0.3);
    font-size: 14px;
    line-height: 1.7;
}

/* Tool directories */
.catalog-page {
    background: var(--bg-light);
}

.catalog-hero {
    padding-top: 66px;
    padding-bottom: 42px;
    background: var(--accent-soft);
    border-bottom: 1px solid var(--border-color);
}

.catalog-hero .site-container {
    display: grid;
    gap: 14px;
}

.catalog-hero .eyebrow {
    margin: 0;
}

.catalog-hero h1 {
    max-width: 820px;
    color: var(--primary-color);
    font-size: clamp(42px, 6vw, 60px);
}

.catalog-hero__intro {
    max-width: 720px;
    color: var(--text-body);
    font-size: 17px;
}

.catalog-main {
    padding-top: 50px;
    padding-bottom: 82px;
}

.catalog-category + .catalog-category {
    margin-top: 54px;
    padding-top: 42px;
    border-top: 1px solid var(--border-color);
}

.catalog-category__heading {
    display: grid;
    gap: 7px;
    margin-bottom: 22px;
}

.catalog-category__heading h2 {
    color: var(--primary-color);
    font-size: 28px;
    line-height: 1.3;
}

.catalog-category__heading p {
    max-width: 720px;
    color: var(--text-body);
    font-size: 15px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.catalog-card {
    min-width: 0;
    min-height: 158px;
    display: grid;
    align-content: space-between;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    color: var(--text-dark);
    background: var(--bg-page);
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(46, 70, 157, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.catalog-card:hover,
.catalog-card:focus-visible {
    border-color: rgba(46, 70, 157, 0.34);
    box-shadow: 0 12px 28px rgba(46, 70, 157, 0.09);
    transform: translateY(-2px);
    outline: none;
}

.catalog-card h3 {
    color: var(--primary-color);
    font-size: 18px;
}

.catalog-card p {
    color: var(--text-body);
    font-size: 13px;
    line-height: 1.6;
}

.catalog-card__action {
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 700;
}

.seller-tools-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Help Center */
.help-center-page {
    background: var(--bg-light);
}

.help-center-hero {
    padding-top: 62px;
    padding-bottom: 44px;
    background: var(--accent-soft);
    border-bottom: 1px solid var(--border-color);
}

.help-center-hero .site-container {
    display: grid;
    gap: 14px;
}

.help-center-hero h1 {
    color: var(--primary-color);
    font-size: clamp(42px, 6vw, 58px);
}

.help-center-hero p:not(.eyebrow) {
    max-width: 720px;
    color: var(--text-body);
    font-size: 17px;
}

.help-center-main {
    padding-top: 46px;
    padding-bottom: 82px;
}

.help-center-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
    gap: 30px;
}

.help-directory {
    position: sticky;
    top: 106px;
    max-height: calc(100vh - 126px);
    overflow: auto;
    padding: 22px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-page);
}

.help-directory__details > summary {
    display: none;
}

.help-directory__body {
    display: grid;
    gap: 24px;
}

.help-directory__group {
    display: grid;
    gap: 8px;
}

.help-directory__group p {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.help-directory__group ul {
    display: grid;
    gap: 3px;
    list-style: none;
}

.help-directory__link {
    display: block;
    padding: 8px 10px;
    border-radius: 7px;
    color: var(--text-body);
    font-size: 13px;
    line-height: 1.45;
    text-decoration: none;
}

.help-directory__link:hover,
.help-directory__link:focus-visible,
.help-directory__link.is-active {
    color: var(--primary-color);
    background: var(--accent-soft);
    outline: none;
}

.help-directory__link.is-active {
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--primary-color);
}

.help-article-panel {
    min-width: 0;
    padding: 38px 42px 46px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-page);
}

.help-article {
    display: grid;
    gap: 18px;
    max-width: 760px;
    scroll-margin-top: 110px;
}

.help-article[hidden] {
    display: none;
}

.help-article section,
.help-article section > * {
    min-width: 0;
}

.help-article section {
    display: grid;
    gap: 12px;
    scroll-margin-top: 110px;
}

.help-article h2 {
    color: var(--primary-color);
    font-size: 32px;
    line-height: 1.25;
}

.help-article h3 {
    margin-top: 16px;
    color: var(--text-dark);
    font-size: 22px;
    line-height: 1.35;
}

.help-article h4 {
    margin-top: 8px;
    color: var(--text-dark);
    font-size: 17px;
    line-height: 1.45;
}

.help-article p,
.help-article li {
    color: var(--text-body);
}

.help-article ol,
.help-article ul {
    display: grid;
    gap: 8px;
    padding-left: 22px;
}

.help-article a {
    color: var(--primary-color);
    text-underline-offset: 3px;
}

.help-article code {
    padding: 2px 5px;
    border-radius: 4px;
    color: var(--primary-color);
    background: rgba(46, 70, 157, 0.08);
    font-size: 0.92em;
}

.help-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.help-article table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    color: var(--text-body);
    font-size: 14px;
    line-height: 1.55;
}

.help-article th,
.help-article td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    vertical-align: top;
}

.help-article th {
    color: var(--primary-color);
    background: var(--accent-soft);
    font-weight: 700;
}

.help-article tr:last-child td {
    border-bottom: none;
}

.help-contact-note {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.help-callout {
    padding: 16px 18px;
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
    color: var(--text-body);
    background: rgba(209, 249, 244, 0.3);
    font-size: 14px;
    line-height: 1.7;
}

/* Contact page */
.contact-page {
    background: var(--bg-light);
}

.contact-page__hero {
    padding-top: 72px;
    padding-bottom: 54px;
    background: var(--accent-soft);
    border-bottom: 1px solid var(--border-color);
}

.contact-page__shell {
    max-width: 1000px;
}

.contact-page__hero .eyebrow {
    margin-bottom: 14px;
}

.contact-page__hero h1 {
    margin: 0 0 18px;
    color: var(--primary-color);
    font-size: clamp(40px, 6vw, 58px);
    line-height: 1.1;
}

.contact-page__intro {
    max-width: 700px;
    color: var(--text-body);
    font-size: 17px;
}

.contact-page__content {
    padding-top: 58px;
    padding-bottom: 84px;
    background: var(--bg-light);
}

.contact-page__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    align-items: start;
    gap: 32px;
}

.contact-page__topics {
    display: grid;
    gap: 16px;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-page);
}

.contact-page__topics h2 {
    color: var(--primary-color);
    font-size: 28px;
    line-height: 1.3;
}

.contact-page__topics > p:not(.eyebrow) {
    color: var(--text-body);
    font-size: 15px;
}

.contact-page__topic-list {
    display: grid;
    gap: 0;
    margin-top: 4px;
}

.contact-page__topic {
    display: grid;
    gap: 5px;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
}

.contact-page__topic dt {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 700;
}

.contact-page__topic dd {
    color: var(--text-body);
    font-size: 14px;
    line-height: 1.65;
}

.contact-page__email-block {
    display: grid;
    gap: 14px;
    padding: 30px;
    border-radius: 14px;
    color: #ffffff;
    background: var(--primary-color);
    box-shadow: 0 15px 35px rgba(46, 70, 157, 0.16);
}

.contact-page__email-block .eyebrow {
    margin: 0;
    color: var(--accent-color);
    opacity: 0.86;
}

.contact-page__email-block h2 {
    color: #ffffff;
    font-size: 24px;
    line-height: 1.3;
}

.contact-page__email-block > p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.contact-email-link {
    overflow-wrap: anywhere;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.4;
    text-underline-offset: 3px;
    user-select: all;
}

.contact-page__email-block .contact-email-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--primary-color);
    background: var(--bg-warm);
    font-size: 17px;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-page__email-block .contact-email-link:hover,
.contact-page__email-block .contact-email-link:focus-visible {
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(16, 28, 66, 0.22);
    transform: translateY(-1px);
    outline: none;
}

.contact-page__email-block .contact-email-link:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

/* Footer Section */
.site-footer {
    padding: 62px 0 24px;
    color: rgba(255, 255, 255, 0.78);
    background: #1a2656;
}

.footer-container {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 36px;
}

.footer-brand {
    display: grid;
    align-content: start;
    gap: 16px;
}

.footer-brand p {
    max-width: 360px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.footer-logo {
    color: #ffffff;
}

.footer-column {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-column p {
    margin-bottom: 4px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.70);
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
}

.footer-column a:hover,
.footer-column a:focus-visible {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
    outline: none;
}

