/* ============================================================
   软件编程学习Y - 工具页统一模板样式
   适用于 link/*/ 下的软件介绍与下载页
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --green: #16a34a;
    --green-dark: #15803d;
    --green-light: #f0fdf4;
    --text: #1f2937;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 4px 20px rgba(0, 0, 0, .06);
}

body {
    font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: #f6f8fa;
    line-height: 1.7;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ---------- 顶部导航 ---------- */
.tp-nav {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.tp-nav .inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 18px;
}
.tp-logo {
    font-weight: 700;
    font-size: 18px;
    color: var(--green);
    display: flex;
    align-items: center;
    gap: 8px;
}
.tp-logo img {
    width: 27px;
    height: 27px;
    border-radius: 6px;
    display: inline-block;
    object-fit: cover;
}
.tp-logo .dot {
    width: 10px; height: 10px;
    background: var(--green);
    border-radius: 50%;
    display: inline-block;
}
.tp-nav .links {
    margin-left: auto;
    display: flex;
    gap: 14px;
    font-size: 14px;
}
.tp-nav .links a { color: var(--text-light); transition: color .2s; }
.tp-nav .links a:hover { color: var(--green); }

/* ---------- Hero 头区 ---------- */
.tp-hero {
    background: linear-gradient(135deg, #16a34a 0%, #0d9488 100%);
    color: #fff;
    padding: 48px 20px 56px;
    text-align: center;
}
.tp-hero h1 {
    font-size: 32px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.tp-hero .sub {
    font-size: 15px;
    opacity: .92;
}
.tp-hero .badge {
    display: inline-block;
    margin-top: 16px;
    padding: 5px 16px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 999px;
    font-size: 13px;
    background: rgba(255,255,255,.12);
}

/* ---------- 主体卡片 ---------- */
.tp-main {
    max-width: 1080px;
    margin: -28px auto 0;
    padding: 0 20px 50px;
    position: relative;
}
.tp-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 34px;
}
.tp-notice {
    background: var(--green-light);
    border: 1px solid #bbf7d0;
    border-left: 4px solid var(--green);
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 14px;
    color: var(--green-dark);
    margin-bottom: 26px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.tp-notice a {
    color: var(--green-dark);
    font-weight: 600;
    border-bottom: 1px dashed var(--green-dark);
}

.tp-cols {
    display: flex;
    gap: 34px;
    align-items: flex-start;
}
.tp-shot {
    flex: 0 0 46%;
    background: #f3f4f6;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}
.tp-shot img {
    width: 100%;
    display: block;
}
.tp-info { flex: 1; min-width: 0; }
.tp-info h2 {
    font-size: 19px;
    margin-bottom: 14px;
    padding-left: 12px;
    border-left: 4px solid var(--green);
}
.tp-steps {
    list-style: none;
    counter-reset: step;
}
.tp-steps li {
    counter-increment: step;
    padding: 7px 0 7px 40px;
    position: relative;
    font-size: 15px;
    color: #374151;
    border-bottom: 1px dashed #f0f0f0;
}
.tp-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0; top: 9px;
    width: 24px; height: 24px;
    background: var(--green-light);
    color: var(--green);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tp-steps li.warn { color: #b91c1c; font-weight: 600; }
.tp-steps li.hl  { color: var(--green-dark); font-weight: 600; }

/* 非步骤型说明列表（外链下载等） */
.tp-links { list-style: none; }
.tp-links li {
    padding: 8px 0;
    font-size: 15px;
    border-bottom: 1px dashed #f0f0f0;
}
.tp-links a {
    color: #2563eb;
    word-break: break-all;
}
.tp-links a:hover { text-decoration: underline; }

/* ---------- 下载区 ---------- */
.tp-download {
    margin-top: 30px;
    text-align: center;
}
.tp-btn {
    display: inline-block;
    padding: 14px 64px;
    font-size: 17px;
    font-weight: 700;
    color: #fff !important;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(234, 88, 12, .35);
    transition: transform .15s, box-shadow .15s;
    cursor: pointer;
    border: none;
}
.tp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(234, 88, 12, .45);
    color: #fff;
}
.tp-btn.green {
    background: linear-gradient(135deg, #16a34a, #0d9488);
    box-shadow: 0 6px 16px rgba(22, 163, 74, .35);
}
.tp-download .hint {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-light);
}

/* ---------- 功能型页（视频解析等表单） ---------- */
.tp-form {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.tp-form h3 { font-size: 17px; margin-bottom: 14px; }
.tp-form input[type=text] {
    width: 100%;
    max-width: 460px;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: border-color .2s;
}
.tp-form input[type=text]:focus { border-color: var(--green); }
.tp-form select {
    margin-top: 14px;
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
    outline: none;
}

/* ---------- 目录列表页 ---------- */
.tp-list { list-style: none; }
.tp-list li {
    border-bottom: 1px dashed #eee;
}
.tp-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 10px;
    font-size: 16px;
    border-radius: 8px;
    transition: background .15s;
}
.tp-list a:hover { background: var(--green-light); color: var(--green-dark); }
.tp-list .num {
    flex: 0 0 26px; height: 26px;
    background: var(--green);
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tp-list .tag {
    margin-left: auto;
    font-size: 12px;
    color: var(--green);
    background: var(--green-light);
    border: 1px solid #bbf7d0;
    padding: 2px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

/* ---------- 页脚 ---------- */
.tp-footer {
    text-align: center;
    padding: 26px 20px 34px;
    font-size: 13px;
    color: var(--text-light);
    border-top: 1px solid var(--border);
    background: #fff;
}
.tp-footer a { color: var(--green); }

/* ---------- 响应式 ---------- */
@media (max-width: 767px) {
    .tp-hero h1 { font-size: 24px; }
    .tp-hero { padding: 36px 16px 48px; }
    .tp-card { padding: 22px 16px; }
    .tp-cols { flex-direction: column; }
    .tp-shot { flex: none; width: 100%; }
    .tp-btn { padding: 13px 46px; font-size: 16px; }
    .tp-nav .links { font-size: 13px; gap: 10px; }
    .tp-list .tag { display: none; }
}
