/* ========== Excel转Word 宣传页专属样式 ========== */

/* 锚点定位避开吸顶导航 */
section[id] {
    scroll-margin-top: 72px;
}

/* ---------- Hero：渐变氛围 + 渐变标题 ---------- */
.hero {
    position: relative;
    padding: 84px 0 56px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 300px at 20% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
        radial-gradient(500px 260px at 85% 10%, color-mix(in srgb, #34c759 10%, transparent), transparent 70%);
    pointer-events: none;
}

.hero .container { position: relative; }

.eyebrow {
    display: inline-block;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 13px;
    color: var(--muted);
    letter-spacing: .08em;
}

h1 {
    font-size: clamp(40px, 6.4vw, 72px);
    background: linear-gradient(120deg, var(--text) 30%, var(--accent) 70%, #34c759);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-desc {
    max-width: 720px;
}

/* ---------- 功能特性：顶部渐变条 + 悬浮上浮 ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.feature-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 20px 18px 18px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #34c759);
    opacity: 0;
    transition: opacity .25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
    box-shadow: 0 12px 32px rgba(0, 113, 227, 0.14);
}

.feature-card:hover::before { opacity: 1; }

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    letter-spacing: -0.01em;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

/* ---------- 使用步骤 ---------- */
.step-list {
    max-width: 760px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.step-list li {
    counter-increment: step;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 14px 16px 14px 54px;
    margin: 10px 0;
    position: relative;
    font-size: 15px;
    transition: border-color .25s ease, transform .25s ease;
}

.step-list li:hover {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
    transform: translateX(4px);
}

.step-list li::before {
    content: counter(step);
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #34c759);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- 界面预览：窗口式外框 ---------- */
.app-shot {
    max-width: 920px;
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.app-shot-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-soft);
}

.app-shot-bar i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}

.app-shot-bar i:nth-child(1) { background: #ff5f57; }
.app-shot-bar i:nth-child(2) { background: #febc2e; }
.app-shot-bar i:nth-child(3) { background: #28c840; }

.app-shot-bar span {
    margin-left: 8px;
    font-size: 12px;
    color: var(--muted);
}

.app-shot img {
    display: block;
    width: 100%;
    max-width: 880px;
    height: auto;
    margin: 0 auto;
}

/* ---------- 适用场景 ---------- */
.scenario-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.scenario {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
    padding: 18px 14px;
    text-align: center;
    font-size: 15px;
    transition: border-color .25s ease, background .25s ease;
}

.scenario:hover {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
    background: var(--surface);
}

/* ---------- 字段映射示例 ---------- */
.mapping-demo {
    max-width: 760px;
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 18px;
    overflow-x: auto;
}

.mapping-demo table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.mapping-demo th, .mapping-demo td {
    border: 1px solid var(--line);
    padding: 8px 12px;
    text-align: left;
}

.mapping-demo th {
    background: var(--surface-soft);
    font-weight: 600;
}

.mapping-demo tr:hover td {
    background: color-mix(in srgb, var(--accent) 6%, transparent);
}

/* ---------- 常见问题 ---------- */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.faq-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 18px;
    transition: border-color .25s ease;
}

.faq-card:hover {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.faq-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.faq-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

/* ---------- 下载卡片：渐变顶边强调 ---------- */
.download-card {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 34px 30px 30px;
    text-align: center;
    overflow: hidden;
}

.download-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #34c759);
}

.download-card h2 {
    margin: 0;
    font-size: clamp(26px, 3.6vw, 38px);
    letter-spacing: -0.02em;
}

.download-card p {
    margin: 8px 0 0;
    color: var(--muted);
}

.download-url {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 15px;
}

.download-url a {
    color: var(--accent);
    text-decoration: none;
    word-break: break-all;
}

.download-url a:hover { text-decoration: underline; }

.pwd {
    display: inline-block;
    background: var(--surface-soft);
    border: 1px dashed color-mix(in srgb, var(--accent) 50%, var(--line));
    border-radius: 8px;
    padding: 3px 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--accent);
}

.download-tip {
    margin-top: 14px;
    font-size: 13px;
    color: var(--muted);
}

/* ---------- CTA ---------- */
.cta-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    padding: 34px 30px;
    text-align: center;
}

.cta-card h2 {
    margin: 0;
    font-size: clamp(26px, 3.6vw, 38px);
    letter-spacing: -0.02em;
}

.cta-card p {
    margin: 8px 0 0;
    color: var(--muted);
}

/* ---------- 响应式 ---------- */
@media (max-width: 920px) {
    .feature-grid { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
    .scenario-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .app-shot { margin: 0 16px; }
}

@media (max-width: 560px) {
    .scenario-grid { grid-template-columns: 1fr; }
    .hero { padding: 56px 0 40px; }
}
