/* MatchMate 手机 H5 引导页 */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --orange: #ff6b35;
    --orange-deep: #e85a28;
    --amber: #f7931e;
    --green: #4caf50;
    --dark: #1a2332;
    --ink: #2c3e50;
    --muted: #5a6a7a;
    --light: #f4f6f8;
    --white: #ffffff;
    --grad: linear-gradient(135deg, #ff6b35 0%, #f7931e 48%, #4caf50 100%);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    color: var(--ink);
    background: var(--dark);
    line-height: 1.55;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* —— Hero —— */
.m-hero {
    position: relative;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px 22px 48px;
    color: var(--white);
    overflow: hidden;
}

.m-hero__bg {
    position: absolute;
    inset: 0;
    background: var(--grad);
    z-index: 0;
}

.m-hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.m-hero__bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center 32%;
    opacity: 1;
    z-index: 0;
}

/* 底部轻叠暗，保证白字可读；整体保留橙→绿品牌渐变 */
.m-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 48%,
        rgba(44, 62, 80, 0.28) 72%,
        rgba(44, 62, 80, 0.55) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.m-hero__content {
    position: relative;
    z-index: 2;
    animation: m-rise 0.7s ease-out both;
}

.m-brand {
    font-size: clamp(2rem, 9vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #fff 0%, #ffe8d6 60%, #c8f0c8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.m-hero__title {
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 0;
    max-width: 18em;
}

.m-hero__sub {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-top: 10px;
    margin-bottom: 0;
    max-width: 22em;
    line-height: 1.35;
}

.m-en {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--muted);
    letter-spacing: 0.01em;
    margin: 1px 0 0;
}

.m-en--hero {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
    margin-top: 1px;
    margin-bottom: 0;
    max-width: 22em;
}

.m-en--hero-sub {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
    margin-top: 1px;
    margin-bottom: 22px;
    max-width: 24em;
}

.m-en--lead {
    margin-top: 1px;
    margin-bottom: 22px;
}

.m-en--hint {
    margin-top: 1px;
    margin-bottom: 14px;
}

.m-section > .m-en:first-of-type {
    margin-top: 1px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--orange);
    font-weight: 500;
}

.m-section--home > .m-en:first-of-type {
    color: #f7931e;
}

.m-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    list-style: none;
}

.m-nav a {
    display: flex;
    flex-direction: column;
    gap: 0;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.25;
    opacity: 0.95;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    padding-bottom: 4px;
    transition: opacity 0.2s, border-color 0.2s;
}

.m-nav a .m-en {
    font-size: 0.66rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    border: none;
    margin-top: 0;
    line-height: 1.2;
}

.m-nav a:active {
    opacity: 1;
    border-color: #fff;
}

.m-scroll-hint {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 22px;
    height: 34px;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    border-radius: 12px;
    opacity: 0.7;
    animation: m-hint 2s ease-in-out infinite;
}

.m-scroll-hint::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    width: 3px;
    height: 7px;
    margin-left: -1.5px;
    background: #fff;
    border-radius: 2px;
    animation: m-dot 2s ease-in-out infinite;
}

/* —— Sections —— */
.m-section {
    padding: 56px 22px 48px;
    background: var(--white);
}

.m-section--alt {
    background: var(--light);
}

.m-section--contact {
    background: linear-gradient(180deg, #fff 0%, #fff5ef 100%);
    text-align: center;
}

.m-section--home {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding-bottom: 40px;
}

.m-label {
    display: none;
}

.m-h2 {
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--dark);
    margin-bottom: 0;
}

.m-section--home .m-h2 {
    color: var(--white);
}

.m-lead {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 0;
    line-height: 1.4;
    max-width: 28em;
}

.m-section--contact .m-lead,
.m-section--home .m-lead,
.m-section--contact .m-en--lead,
.m-section--home .m-en--lead {
    margin-left: auto;
    margin-right: auto;
}

.m-section--home .m-lead {
    color: rgba(255, 255, 255, 0.7);
}

.m-section--home .m-en--lead {
    color: rgba(255, 255, 255, 0.45);
}

.m-about__body p:not(.m-en) {
    font-size: 0.95rem;
    color: var(--ink);
    margin-bottom: 0;
    line-height: 1.5;
}

.m-about__body .m-en {
    margin-top: 1px;
    margin-bottom: 14px;
}

/* —— Services：文案左、设备外观右 —— */
.m-services {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.m-services li {
    display: grid;
    grid-template-columns: 1fr minmax(112px, 38%);
    gap: 14px;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid rgba(44, 62, 80, 0.1);
    opacity: 0;
    transform: translateY(12px);
    animation: m-rise 0.55s ease-out forwards;
}

.m-services li:nth-child(1) { animation-delay: 0.05s; }
.m-services li:nth-child(2) { animation-delay: 0.12s; }
.m-services li:nth-child(3) { animation-delay: 0.19s; }

.m-services li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.m-services__copy h3 {
    font-size: 1.05rem;
    font-weight: 650;
    margin-bottom: 0;
    color: var(--dark);
    line-height: 1.25;
}

.m-services__copy > p:not(.m-en) {
    font-size: 0.88rem;
    color: var(--muted);
    margin-top: 8px;
    margin-bottom: 0;
    line-height: 1.35;
}

.m-services__copy .m-en {
    font-size: 0.72rem;
    margin-top: 1px;
    line-height: 1.25;
}

.m-services__copy h3 + .m-en {
    margin-bottom: 0;
}

.m-services__visual {
    aspect-ratio: 1;
    border-radius: 14px;
    background: transparent;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.m-services__visual picture,
.m-services__visual img {
    width: 100%;
    height: 100%;
}

.m-services__visual img {
    object-fit: contain;
    object-position: center;
}

.m-services__visual--cover {
    background: transparent;
}

.m-services__visual--cover img {
    object-fit: cover;
}

.m-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 28px;
    list-style: none;
}

.m-tags li {
    display: flex;
    flex-direction: column;
    gap: 0;
    font-size: 0.8rem;
    color: var(--ink);
    font-weight: 500;
    line-height: 1.25;
    padding: 0;
}

.m-tags li .m-en {
    font-size: 0.66rem;
    font-weight: 400;
    margin-top: 0;
    line-height: 1.2;
}

.m-tags li:not(:last-child) {
    padding-right: 16px;
    border-right: 1px solid rgba(44, 62, 80, 0.12);
}

/* —— Demo video —— */
.m-demo {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid rgba(44, 62, 80, 0.1);
}

.m-demo__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.25;
    margin-bottom: 0;
}

.m-demo > .m-en {
    margin-bottom: 14px;
    color: var(--orange);
    font-weight: 500;
    font-size: 0.82rem;
}

.m-demo__list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.m-demo__item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.m-demo__meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.m-demo__name {
    font-size: 0.95rem;
    font-weight: 650;
    color: var(--dark);
    line-height: 1.25;
    margin: 0;
    min-width: 0;
}

.m-demo__name .m-en {
    display: block;
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--muted);
    margin-top: 1px;
}

.m-demo .video-quality {
    display: inline-flex;
    flex-shrink: 0;
    border: 1px solid rgba(44, 62, 80, 0.14);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.m-demo .video-quality__btn {
    appearance: none;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    color: #667788;
    padding: 6px 10px;
    cursor: pointer;
    line-height: 1.15;
    -webkit-tap-highlight-color: transparent;
}

.m-demo .video-quality__btn .m-en {
    display: inline;
    font-size: 0.62rem;
    font-weight: 400;
    margin: 0;
    color: inherit;
    opacity: 0.75;
}

.m-demo .video-quality__btn.is-active {
    background: var(--grad);
    color: #fff;
}

.m-demo__player {
    border-radius: 14px;
    overflow: hidden;
    background: transparent;
    aspect-ratio: 16 / 9;
}

.m-demo__player video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    vertical-align: top;
    background: #111;
}

/* —— Contact QR —— */
.m-qr {
    margin: 8px auto 20px;
    width: min(220px, 62vw);
    padding: 14px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.18);
}

.m-qr img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.m-qr__hint {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 0;
    line-height: 1.35;
}

.m-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--orange);
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 107, 53, 0.08);
    border: none;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    margin-top: 4px;
}

.m-email:active {
    background: rgba(255, 107, 53, 0.16);
}

.m-email.copied {
    color: var(--green);
    background: rgba(76, 175, 80, 0.12);
}

/* —— Interest form —— */
.m-interest {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 107, 53, 0.18);
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.m-interest__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.25;
    margin-bottom: 0;
    text-align: center;
}

.m-interest > .m-en:first-of-type {
    text-align: center;
    color: var(--orange);
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.m-interest__hint {
    font-size: 0.88rem;
    color: var(--muted);
    text-align: center;
    margin-bottom: 0;
    line-height: 1.35;
}

.m-interest .m-en--hint {
    text-align: center;
    margin-bottom: 18px;
}

.m-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.m-form__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.m-form__label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.25;
}

.m-form__label .m-en {
    display: inline;
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--muted);
    margin: 0;
}

.m-form input,
.m-form select,
.m-form textarea {
    width: 100%;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid rgba(44, 62, 80, 0.16);
    border-radius: 10px;
    padding: 11px 12px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
    appearance: none;
}

.m-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235a6a7a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.m-form textarea {
    resize: vertical;
    min-height: 72px;
    line-height: 1.45;
}

.m-form input:focus,
.m-form select:focus,
.m-form textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.m-form__submit {
    width: 100%;
    margin-top: 4px;
}

.m-form__status {
    text-align: center;
    font-size: 0.88rem;
    line-height: 1.4;
    margin: 0;
}

.m-form__status.is-ok {
    color: var(--green);
}

.m-form__status.is-err {
    color: #c0392b;
}

.m-form__status.is-info {
    color: var(--muted);
}

/* —— Home CTA section —— */
.m-home-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}

.m-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 10px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.m-btn__stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    line-height: 1.2;
}

.m-btn .m-en {
    font-size: 0.68rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0;
    line-height: 1.15;
}

.m-btn--ghost .m-en {
    color: rgba(255, 255, 255, 0.45);
}

.m-btn:active {
    transform: scale(0.97);
}

.m-btn--primary {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.35);
    width: min(100%, 320px);
}

.m-btn--ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 500;
    min-height: 44px;
}

.m-btn--ghost:active {
    color: #fff;
}

/* —— Reveal on scroll —— */
.m-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.m-reveal.is-in {
    opacity: 1;
    transform: none;
}

@keyframes m-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes m-hint {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.85; }
}

@keyframes m-dot {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

@media (min-width: 480px) {
    .m-hero,
    .m-section {
        padding-left: 32px;
        padding-right: 32px;
    }
}

/* 桌面误入时居中限宽 */
@media (min-width: 768px) {
    body {
        max-width: 480px;
        margin: 0 auto;
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
    }
}
