/* ============================================================
   自研工具详情页（tool_official）
   与第三方软件详情页区分：更强的品牌感、功能展示、版本对比
   ============================================================ */

body.to-page {
    background: #f5f6f8;
    color: #1f2329;
    -webkit-font-smoothing: antialiased;
}

/* ---------- 面包屑 ---------- */
.to-crumb {
    padding: 15px 0;
    background: #fff;
    border-bottom: 1px solid #eef0f4;
    font-size: 13px;
    color: #8f959e;
}
.to-crumb a { color: #646a73; transition: color .18s; }
.to-crumb a:hover { color: #f76341; }
.to-crumb .layui-icon { font-size: 11px; color: #cfd5de; padding: 0 3px; }
.to-crumb em { font-style: normal; color: #1f2329; font-weight: 500; }

/* ---------- 主视觉 ---------- */
.to-hero {
    position: relative;
    overflow: hidden;
    padding: 48px 0 56px;
    background: linear-gradient(135deg, #fff7f3 0%, #fff 42%, #f7f9ff 100%);
    border-bottom: 1px solid #eef0f4;
}
.to-hero-glow {
    position: absolute;
    top: -180px;
    right: -80px;
    width: 520px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(247, 99, 65, .18), transparent 68%);
    pointer-events: none;
}
.to-hero-in {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 48px;
    align-items: center;
}

.to-hero-copy { min-width: 0; }
.to-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 16px;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f76341, #ff8a5c);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .04em;
    box-shadow: 0 6px 16px rgba(247, 99, 65, .28);
}
.to-badge .layui-icon { font-size: 13px; }

.to-hero-copy h1 {
    margin: 0 0 14px;
    font-size: 34px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #111827;
}
.to-lead {
    margin: 0 0 20px;
    font-size: 15.5px;
    line-height: 1.75;
    color: #6b7280;
    max-width: 46em;
}

.to-points {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 28px;
}
.to-points span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #4b5563;
}
.to-points .layui-icon { font-size: 14px; color: #18a058; }

.to-hero-act { display: flex; flex-wrap: wrap; gap: 12px; }
.to-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    padding: 0 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f76341, #ff8a5c);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 10px 26px rgba(247, 99, 65, .34);
    transition: transform .2s, box-shadow .2s;
}
.to-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(247, 99, 65, .44);
    color: #fff;
}
.to-btn .layui-icon { font-size: 20px; }
.to-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 28px;
    border-radius: 12px;
    border: 1.5px solid #e3e6ec;
    background: #fff;
    color: #4b5563;
    font-size: 15px;
    font-weight: 600;
    transition: all .2s;
}
.to-btn-ghost:hover { border-color: #ffcdb8; color: #e8552d; background: #fff8f4; }

.to-hero-visual {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 46px rgba(31, 35, 41, .16), 0 0 0 1px rgba(31, 35, 41, .05);
    line-height: 0;
}
.to-hero-visual img { display: block; width: 100%; height: auto; }
.to-hero-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    font-size: 72px;
    font-weight: 800;
    color: rgba(247, 99, 65, .35);
    background: linear-gradient(135deg, #fff3ed, #ffe8dc);
}

/* ---------- 主体 ---------- */
.to-body { padding-bottom: 64px; }

/* 数据条 */
.to-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: -32px 0 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(31, 35, 41, .08);
    position: relative;
    z-index: 2;
}
.to-stats li {
    padding: 22px 10px;
    text-align: center;
    border-left: 1px solid #f0f2f5;
}
.to-stats li:first-child { border-left: 0; }
.to-stats b {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #1f2329;
    line-height: 1.3;
}
.to-stats span { display: block; margin-top: 5px; font-size: 12.5px; color: #9aa1ad; }

/* 区块 */
.to-sec { margin-top: 44px; }
.to-sec-h {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.01em;
    color: #111827;
    text-align: center;
}
.to-sec-sub {
    margin: 0 0 30px;
    font-size: 14px;
    color: #8f959e;
    text-align: center;
}

/* 功能卡片 */
.to-feats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.to-feat {
    padding: 26px 22px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #eef0f4;
    transition: transform .22s, box-shadow .22s, border-color .22s;
}
.to-feat:hover {
    transform: translateY(-4px);
    border-color: #ffd2c2;
    box-shadow: 0 14px 30px rgba(247, 99, 65, .12);
}
.to-feat-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff3ed, #ffe8dc);
    color: #f76341;
    font-size: 21px;
}
.to-feat h3 {
    margin: 0 0 8px;
    font-size: 15.5px;
    font-weight: 700;
    color: #1f2329;
}
.to-feat p {
    margin: 0;
    font-size: 13px;
    line-height: 1.75;
    color: #8f959e;
}

/* 版本对比 */
.to-vers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
}
.to-ver {
    position: relative;
    padding: 30px 28px 26px;
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid #eef0f4;
    text-align: center;
    transition: border-color .2s, box-shadow .2s;
}
.to-ver:hover { box-shadow: 0 14px 32px rgba(31, 35, 41, .09); }
.to-ver.is-main {
    border-color: #ffd2c2;
    background: linear-gradient(180deg, #fffaf7, #fff);
    box-shadow: 0 12px 30px rgba(247, 99, 65, .1);
}
.to-ver-tag {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 13px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f76341, #ff8a5c);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}
.to-ver h3 {
    margin: 0 0 10px;
    font-size: 19px;
    font-weight: 800;
    color: #111827;
}
.to-ver-desc {
    margin: 0 0 22px;
    min-height: 44px;
    font-size: 13px;
    line-height: 1.7;
    color: #8f959e;
}
.to-ver-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 46px;
    border-radius: 11px;
    background: linear-gradient(135deg, #f76341, #ff8a5c);
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(247, 99, 65, .28);
    transition: transform .18s, box-shadow .18s;
}
.to-ver-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(247, 99, 65, .38);
    color: #fff;
}
.to-ver-size { margin: 12px 0 0; font-size: 12px; color: #b0b6c0; }

/* 步骤 */
.to-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 0;
}
.to-step {
    position: relative;
    padding: 26px 22px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #eef0f4;
    text-align: center;
}
.to-step-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f76341, #ff8a5c);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 5px 14px rgba(247, 99, 65, .28);
}
.to-step h4 { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: #1f2329; }
.to-step p { margin: 0; font-size: 13px; line-height: 1.7; color: #8f959e; }

/* 详细说明 */
.to-article {
    margin: 0;
    max-width: 100%;
    padding: 28px 32px;
    background: #fff;
    border-radius: 14px;
    font-size: 14.5px;
    line-height: 2;
    color: #3d4654;
}
.to-article p { margin: 0 0 13px; }
.to-article p:last-child { margin-bottom: 0; }
.to-article h3 {
    margin: 24px 0 10px;
    font-size: 15px;
    font-weight: 800;
    color: #1f2329;
}
.to-article h3:first-child { margin-top: 0; }
.to-article ul { margin: 0 0 13px; padding: 0; list-style: none; }
.to-article ul li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
    color: #4a525e;
}
.to-article ul li::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 12px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ffc4a8;
}

/* FAQ */
.to-faq {
    margin: 0;
}
.to-faq details {
    margin-bottom: 10px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eef0f4;
    transition: border-color .18s;
}
.to-faq details[open] { border-color: #ffd2c2; }
.to-faq summary {
    cursor: pointer;
    font-size: 14.5px;
    font-weight: 600;
    color: #1f2329;
    list-style: none;
    position: relative;
    padding-right: 24px;
}
.to-faq summary::-webkit-details-marker { display: none; }
.to-faq summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: -1px;
    font-size: 19px;
    font-weight: 400;
    color: #b0b6c0;
    transition: transform .2s;
}
.to-faq details[open] summary::after { content: "−"; color: #f76341; }
.to-faq p {
    margin: 12px 0 0;
    font-size: 13.5px;
    line-height: 1.85;
    color: #6b7280;
}

/* 底部说明 */
.to-note {
    display: flex;
    gap: 18px;
    margin: 44px 0 0;
    padding: 26px 30px;
    background: linear-gradient(135deg, #fffaf7, #fff);
    border-radius: 16px;
    border: 1px solid #ffe3d6;
}
.to-note-ico {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: linear-gradient(135deg, #f76341, #ff8a5c);
    color: #fff;
    font-size: 21px;
    box-shadow: 0 6px 16px rgba(247, 99, 65, .26);
}
.to-note h3 { margin: 0 0 9px; font-size: 15.5px; font-weight: 700; color: #1f2329; }
.to-note p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.8; color: #6b7280; }
.to-note p:last-child { margin-bottom: 0; }
.to-note-meta { font-size: 12px !important; color: #a8aeb8 !important; }

/* 相关工具 */
.to-related {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}
.to-rel-item {
    display: block;
    padding: 14px 16px;
    background: #fff;
    border-radius: 11px;
    border: 1px solid #eef0f4;
    transition: all .18s;
}
.to-rel-item:hover { border-color: #ffd2c2; background: #fffaf7; }
.to-rel-item b {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #1f2329;
    line-height: 1.45;
    white-space: normal;
    word-break: break-all;
}
.to-rel-item span { display: block; margin-top: 3px; font-size: 11.5px; color: #a8aeb8; }

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
    .to-hero-in { grid-template-columns: 1fr; gap: 32px; }
    .to-hero-visual { max-width: 520px; }
    .to-feats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .to-hero { padding: 32px 0 40px; }
    .to-hero-copy h1 { font-size: 24px; }
    .to-lead { font-size: 14px; }
    .to-stats { grid-template-columns: repeat(2, 1fr); margin-top: -22px; }
    .to-stats li { border-left: 0; border-top: 1px solid #f0f2f5; }
    .to-stats li:nth-child(-n+2) { border-top: 0; }
    .to-sec { margin-top: 34px; }
    .to-sec-h { font-size: 19px; }
    .to-vers { grid-template-columns: 1fr; }
    .to-steps { grid-template-columns: 1fr; }
    .to-related { grid-template-columns: 1fr; }
    .to-article { padding: 20px 18px; }
    .to-note { flex-direction: column; padding: 20px; }
}
@media (max-width: 560px) {
    .to-feats { grid-template-columns: 1fr; }
    .to-btn, .to-btn-ghost { width: 100%; }
    .to-points { gap: 10px 16px; }
}
