@charset "UTF-8";

/* 本地拉丁字形配合头部预加载，避免外部样式表与字体的串行请求。 */
@font-face {
    font-family: 'Dosis';
    font-style: normal;
    font-weight: 700 800;
    font-display: block;
    src: url('./fonts/dosis-latin.woff2') format('woff2');
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
        U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 400 700;
    font-display: block;
    src: url('./fonts/rubik-latin.woff2') format('woff2');
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
        U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    color-scheme: light;
    --ink: #132e05;
    --muted: #536449;
    --green: #48ad15;
    --green-soft: #e0f5d6;
    font-family: 'Rubik', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--ink);
    background: #fff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    /* 官网以白色内容区覆盖两侧淡斜纹，保持中心区域干净。 */
    background-image:
        linear-gradient(90deg, transparent, #fff 18%, #fff 82%, transparent),
        repeating-linear-gradient(135deg, #faf9fb 0 5px, #f2eff5 5px 10px);
    font-size: 16px;
    line-height: 1.8;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 5px;
}

::selection {
    background: var(--green-soft);
    color: var(--ink);
}

.teco-nav {
    position: absolute;
    top: 24px;
    left: clamp(20px, 4vw, 48px);
}

.teco-back {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 3px solid #ef941c;
    border-radius: 3px;
    background: #ef941c;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition:
        background-color 0.15s,
        color 0.15s;
}

.teco-back:hover {
    background: #fff;
    color: #a65c00;
}

.teco {
    width: min(100% - 64px, 1000px);
    margin: 0 auto;
    padding: clamp(88px, 8vw, 112px) 0 52px;
}

.teco__hero {
    text-align: center;
    padding-bottom: 64px;
}

.teco__eyebrow {
    display: inline-block;
    margin: 0 0 18px;
    padding: 2px 14px;
    border-radius: 3px;
    background: var(--green-soft);
    color: var(--green);
    font-family: 'Dosis', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.teco h1 {
    margin: 0;
    color: var(--green);
    font-family: 'Dosis', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: clamp(3.1rem, 7vw, 5.2rem);
    font-weight: 800;
    letter-spacing: 0.025em;
    line-height: 1.15;
    text-transform: uppercase;
    text-shadow: 3px 3px 0 var(--green-soft);
}

.teco__subtitle {
    margin: 22px 0 0;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 700;
}

.teco__description {
    margin: 20px 0 28px;
    font-size: 1rem;
    line-height: 1.9;
}

.teco__download {
    display: inline-flex;
    max-width: 100%;
    min-height: 56px;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    border: 3px solid var(--green);
    border-radius: 3px;
    background: var(--green);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition:
        background-color 0.15s,
        color 0.15s;
}

.teco__download:hover {
    background: #fff;
    color: var(--green);
}

.teco__download svg {
    flex-shrink: 0;
}

.teco__download > span {
    font-size: 1.2rem;
}

.teco__download-note {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.teco h2 {
    margin: 0;
    color: var(--green);
    text-align: center;
    font-size: 1.35rem;
    font-weight: 800;
}

.teco__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 28px 0 0;
    padding: 0;
    gap: 24px;
    list-style: none;
}

.teco__steps li {
    padding: 24px;
    border: 3px solid var(--green);
    border-radius: 4px;
    background: #fff;
}

.teco__step-number {
    display: block;
    color: var(--green);
    font-family: 'Dosis', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.teco__steps h3 {
    margin: 16px 0 8px;
    color: var(--green);
    font-size: 1rem;
    font-weight: 700;
}

.teco__steps p,
.teco__source {
    position: relative;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    color: var(--green);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

/* 整条下划线跨越文字与箭头的间距，悬停时保持连续。 */
.teco__source::after {
    position: absolute;
    right: 0;
    bottom: 7px;
    left: 0;
    border-bottom: 1px solid currentColor;
    content: '';
}

.teco__source:hover::after,
.teco__source:focus-visible::after {
    border-bottom-width: 2px;
}

.teco__faq {
    max-width: 800px;
    margin: 36px auto 0;
}

.teco__faq h2 {
    margin-bottom: 20px;
}

.teco__faq-item {
    border: 2px solid var(--green);
    border-radius: 4px;
    background: #fff;
}

.teco__faq-item + .teco__faq-item {
    margin-top: 16px;
}

.teco__faq-item summary {
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    color: var(--green);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.7;
    list-style: none;
    cursor: pointer;
}

.teco__faq-item summary::-webkit-details-marker {
    display: none;
}

.teco__faq-item summary::after {
    flex-shrink: 0;
    content: '+';
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1;
}

.teco__faq-item[open] summary::after {
    content: '−';
}

.teco__faq-item summary:hover {
    background: #f5fbf1;
}

.teco__faq-answer {
    margin: 0 20px;
    padding: 16px 0 20px;
    border-top: 1px dashed #c6dfba;
}

.teco__faq-answer p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.9;
}

.teco-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(100% - 64px, 1000px);
    margin: 0 auto;
    padding: 22px 0 28px;
    border-top: 1px solid #d4e5cd;
    color: var(--muted);
    font-size: 0.75rem;
}

.teco-footer__records {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px 24px;
}

.teco-footer__record {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.teco-footer__record img {
    flex-shrink: 0;
}

.teco-footer__record:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.teco-footer__copyright {
    flex-shrink: 0;
    margin: 0;
}

@media (orientation: portrait) {
    .teco-footer {
        flex-direction: column;
        text-align: center;
    }

    .teco-footer__records {
        justify-content: center;
    }
}

@media (max-width: 720px) {
    .teco-nav {
        top: 10px;
    }

    .teco-back {
        min-height: 36px;
        padding: 5px 10px;
        gap: 6px;
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .teco,
    .teco-footer {
        width: calc(100% - 40px);
    }

    .teco {
        padding-top: 72px;
    }

    .teco__hero {
        padding-bottom: 44px;
    }

    .teco__download {
        min-height: 52px;
        padding: 10px 18px;
        gap: 10px;
        font-size: 0.95rem;
    }

    .teco__steps {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .teco__steps li {
        display: grid;
        grid-template-columns: 24px minmax(0, 1fr);
        align-items: start;
        column-gap: 16px;
        padding: 20px;
    }

    .teco__step-number {
        grid-row: span 2;
        font-size: 1.8rem;
    }

    .teco__steps h3 {
        margin: 0 0 6px;
    }

    .teco__steps p {
        grid-column: 2;
    }

    .teco__about {
        margin-top: 36px;
        padding-top: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .teco-back,
    .teco__download {
        transition: none;
    }
}

/* 固定背景并关闭根滚动，移动端触摸和桌面滚轮均不能滚动说明后的页面。 */
html:has(body.teco-locked) {
    overflow: hidden;
    overscroll-behavior: none;
}

body.teco-locked {
    position: fixed;
    inset: 0;
    overflow: hidden;
    overscroll-behavior: none;
}

/* 主内容全部模糊；返回、说明卡片内的官方链接及站点页脚保持可用。 */
.teco-locked [data-teco-protected] {
    filter: blur(9px);
    pointer-events: none;
    user-select: none;
}

/* 说明文字与继续按钮共用左对齐轴线，以字号和间距建立阅读顺序。 */
.teco-gate {
    position: fixed;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: min(calc(100% - 40px), 448px);
    padding: clamp(24px, 4vw, 32px);
    border: 2px solid var(--green);
    border-radius: 6px;
    box-shadow: 0 12px 40px #132e0512;
    background: #fff;
    text-align: left;
    transform: translate(-50%, -50%);
}

.teco-gate h2 {
    margin: 0;
    color: var(--green);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.35;
}

.teco-gate__notice {
    margin-top: 14px;
    font-size: 0.9375rem;
    line-height: 1.75;
}

.teco-gate__notice p {
    margin: 0;
    text-wrap: pretty;
}

.teco-gate__notice p + p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.875rem;
}

.teco-gate__notice .teco__source {
    margin-top: 6px;
    font-size: 0.875rem;
    font-weight: 500;
}

.teco-gate__actions {
    margin-top: 18px;
    padding-top: 20px;
    border-top: 1px solid var(--green-soft);
}

.teco-gate__continue {
    width: 100%;
    min-height: 46px;
    padding: 8px 22px;
    border: 2px solid var(--green);
    border-radius: 3px;
    background: var(--green);
    color: #fff;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.5;
    cursor: pointer;
}

.teco-gate__continue:hover {
    background: #fff;
    color: var(--green);
}

/* 手机横屏时收紧卡片留白，保证继续按钮仍在屏幕内。 */
@media (max-height: 420px) {
    .teco-gate {
        padding: 18px 24px;
    }

    .teco-gate__notice {
        margin-top: 10px;
    }

    .teco-gate__actions {
        margin-top: 12px;
        padding-top: 12px;
    }
}
