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

html {
    /* Tailwind 默认 1rem = 16px，改为 14.4px (×0.9) 使所有 rem 单位自动缩小 10% */
    /* 相比 zoom：不会干扰 fixed 定位、Tailwind 断点、滚动条计算 */
    font-size: 14.4px;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
}

.max-w-6xl {
    max-width: 90rem !important;
}
.mt-1-5 {
    margin-top: 1.5rem    !important;
}
.mt-2 {
    margin-top: 2rem    !important;
}
.mb-1-5 {
    margin-bottom: 1.5rem    !important;
}
.mb-2 {
    margin-bottom: 2.5rem    !important;
}
/* .mb-1 {
    margin-bottom: 2rem    !important;
} */
.pay_method {
    margin-bottom: 1rem !important;
    margin-top: 1.5rem !important;
}

.price-3 {
    margin-bottom: -1.25rem;
}
.notice-2 {
    margin-bottom: 0.5rem    !important;
}

.viptop-xl {
    font-size: 1.2rem;
    line-height: 2rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 6px;
}

.py-10 {
    padding-top: 2.5rem !important;
    padding-bottom: 5.5rem !important;
}

.py-8 {
    padding-top: 4rem !important;
    padding-bottom: 2rem !important;
}
.mb-12 {
    margin-bottom: -30rem !important;
}

@media (max-width: 768px) {
    .mb-12 {
        margin-bottom: -37rem !important;
    }
}

/* ==================== 服务端直出内容区（工具说明 / 知识库正文） ==================== */
.page-content {
    max-width: 48rem;
    margin: 1.75rem auto 0;
    padding: 2.25rem 2.5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* 知识库 SSR 正文：React 挂载后被移动进 KnowledgeBase 的 max-w-6xl / max-w-3xl 容器，
   去掉白卡外壳、填满父容器，与客户端渲染版外观一致（无 JS 时 body 下也保持满宽留白） */
.page-content.kb-ssr-content {
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}
/* 无 JS 时节点尚未被移入 React 容器（body 直属），给满宽排版补上两侧留白与顶部间距；
   React 挂载移动后父节点改变，本规则自动不再生效 */
body > #page-content.kb-ssr-content {
    max-width: 90rem;
    margin: 2rem auto 0;
    padding: 0 clamp(1rem, 3vw, 2rem);
}
/* 知识库直出卡片网格兜底（与 Tailwind sm:grid-cols-2 / lg:grid-cols-3 断点一致） */
.kb-ssr-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 640px) {
    .kb-ssr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .kb-ssr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.kb-card .line-clamp-2,
.kb-card .line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kb-card .line-clamp-2 { -webkit-line-clamp: 2; }
.kb-card .line-clamp-3 { -webkit-line-clamp: 3; }

/* ==================== 首页工具卡片缩放 ==================== */
/* 首页各功能区块的卡片网格统一缩小到 90%：zoom 比 transform:scale 更好，
   会同步调整布局占位（不会产生空白间隙），字体/内边距/图片/间距全部等比缩小 */
.home-tool-grid {
    zoom: 0.9;
}

/* ==================== 工具页内容模块：与工具操作区等宽（外层 max-w-6xl 容器）+ section 布局 ====================
   React 版由 App.js 的 max-w-6xl 包裹层限宽，本容器填满即可（背景透明、浅边框）；
   每个 section 一个居中大标题，内容为 gray-50 浅灰卡片网格；长文卡片内部另限阅读宽度。
   #page-content（id 选择器）仅服务 React 挂载前的服务端直出副本，挂载后节点即被移除。 */
.page-content.tool-info-content {
    width: 100%;
    max-width: none;
    margin: 3rem auto 0;
    padding: clamp(1.75rem, 3.5vw, 3rem) clamp(1.25rem, 3.2vw, 2.75rem) clamp(2rem, 3.2vw, 2.75rem);
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
    box-shadow: none;
}
#page-content.tool-info-content {
    max-width: 86rem;
}
@media (max-width: 88rem) {
    #page-content.tool-info-content {
        width: calc(100% - 2rem);
    }
}

/* section 间距 */
.page-content .info-section {
    margin-bottom: 4rem;
}
.page-content .info-section:last-child {
    margin-bottom: 0;
}

/* 介绍区：视觉主标题「工具介绍」+ 灰色副标题（工具全名）+ 浅灰卡片正文
   DOM 顺序为 h1 → h2（合法大纲），flex order 将「工具介绍」置顶显示 */
.page-content .info-intro {
    display: flex;
    flex-direction: column;
}
.page-content .info-intro-title {
    order: -1;
    margin-bottom: 0.6rem;
}
.page-content .info-subtitle {
    margin: 0 auto 1.6rem;
    text-align: center;
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    font-weight: 500;
    line-height: 1.6;
    color: #6b7280;
}
.page-content .info-intro-card {
    max-width: 64rem;
    margin: 0 auto;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 0.75rem;
    padding: clamp(1.25rem, 2.4vw, 1.75rem) clamp(1.25rem, 2.8vw, 2rem);
}
.page-content .info-intro-card .info-desc {
    max-width: none;
    margin: 0;
    text-align: left;
    color: #4b5563;
    font-size: 0.925rem;
    line-height: 2;
}

/* section 标题：大号粗体居中 */
.page-content .info-h2 {
    margin: 0 0 2.5rem;
    text-align: center;
    font-size: clamp(1.4rem, 2.6vw, 1.875rem);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.015em;
    color: #111827;
}

/* 操作步骤：gray-50 浅灰卡片，图标在上、文字居中；网格与介绍/FAQ 文本同宽（64rem 居中） */
.page-content .info-steps {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 64rem;
    margin: 0 auto;
    padding: 0;
}
.page-content .info-step-card {
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.page-content .info-step-card:hover {
    border-color: #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}
.page-content .info-step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    border-radius: 0.75rem;
    background: #eff6ff;
    color: #2563eb;
}
.page-content .info-step-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}
.page-content .info-step-text {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.7;
    color: #4b5563;
}

/* 常见问题：单列静态问答卡（与步骤卡同色系；限阅读宽度居中，避免宽屏行过长） */
.page-content .info-faq {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 64rem;
    margin: 0 auto;
}
.page-content .info-faq-item {
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.page-content .info-faq-item:hover {
    border-color: #e5e7eb;
    box-shadow: 0 2px 6px -2px rgba(0, 0, 0, 0.07);
}
.page-content .info-faq-item h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}
.page-content .info-faq-item p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.8;
    color: #4b5563;
}
/* 相关工具推荐 / 胶囊链接：居中排列的箭头胶囊 */
.page-content .info-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}
.page-content a.info-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    color: #374151;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.5;
    transition: all 0.15s ease;
}
.page-content a.info-chip::after {
    content: '\2192';
    color: #94a3b8;
    font-size: 0.85rem;
    transition: transform 0.15s ease, color 0.15s ease;
}
.page-content a.info-chip:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -6px rgba(37, 99, 235, 0.35);
}
.page-content a.info-chip:hover::after {
    color: #2563eb;
    transform: translateX(2px);
}

/* ==================== 全站导航页脚（工具导航区） ==================== */
/* 浅色背景 + 品牌蓝点缀，与页面浅灰底自然衔接 */
.site-footer {
    background: #f8fafc;
    /* border-top: 1px solid #e5e7eb; */
    margin-top: 3.5rem;
    padding: 3rem 1rem 2.25rem;
}
.site-footer-inner {
    max-width: 72rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 2.25rem 2rem;
}
.site-footer-col {
    min-width: 0;
}
.site-footer-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}
.site-footer-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 1.5rem;
    height: 2px;
    background: linear-gradient(90deg, #60a5fa, #2563eb);
    border-radius: 1px;
}
.site-footer-col a {
    display: block;
    width: fit-content;
    padding: 0.25rem 0.65rem 0.25rem 0.85rem;
    margin-left: -0.85rem;
    border-radius: 0.35rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 2;
    position: relative;
    transition: color 0.18s ease, background 0.18s ease, padding 0.18s ease;
}
.site-footer-col a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 2px;
    height: 1rem;
    background: linear-gradient(180deg, #60a5fa, #2563eb);
    border-radius: 1px;
    transition: transform 0.18s ease;
}
.site-footer-col a:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.07);
    padding-left: 1.1rem;
}
.site-footer-col a:hover::before {
    transform: translateY(-50%) scaleY(1);
}

/* 页脚备案/法务信息（服务端直出与 React 页脚共用同一结构） */
.site-footer-legal {
    max-width: 72rem;
    margin: 2.25rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    color: #94a3b8;
    font-size: 0.78rem;
    line-height: 2;
}
.site-footer-legal a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.18s ease;
}
.site-footer-legal a:hover {
    color: #2563eb;
}
.site-footer-legal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0.3rem;
    gap: 0.25rem;
}
.site-footer-legal .sep {
    color: #cbd5e1;
    margin: 0 0.6rem;
}
.site-footer-legal a.inline-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* 移动端适配 */
@media (max-width: 640px) {
    .page-content.tool-info-content {
        margin-top: 1.5rem;
        padding: 1.5rem 1rem 1.75rem;
        border-radius: 1rem;
    }
    .page-content .info-section {
        margin-bottom: 2.75rem;
    }
    .site-footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem 1rem;
    }
}

/* 平板：步骤两列 */
@media (min-width: 768px) {
    .page-content .info-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 桌面：4 步恰好一行（FAQ 始终单列，保持阅读节奏） */
@media (min-width: 1024px) {
    .page-content .info-steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
