/* 夜欢官网样式：常规内容网站排版，首页与用户协议页共用 */

:root {
    --brand: #a855f7;
    --brand-light: #eb7efd;
    --accent: #ff7a00;
    --gradient: linear-gradient(135deg, #a855f7 0%, #eb7efd 100%);
    --text: #1f1b1b;
    --text-light: #5c5566;
    --text-muted: #999999;
    --line: #f0eaf7;
    --bg-soft: #fbf7ff;
    --radius: 16px;
    --shadow: 0 2px 16px rgba(168, 85, 247, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text);
    background: #fff;
}

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

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 顶部导航 */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 24px;
    min-height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 2px;
}

.brand img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
    font-size: 14px;
    color: var(--text-light);
}

.nav-links a {
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--brand);
    border-bottom-color: var(--brand);
}

/* 首屏 */
.hero {
    padding: 70px 0 64px;
    background: linear-gradient(180deg, #f7f0ff 0%, #ffffff 100%);
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1 1 440px;
}

.hero-tag {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 999px;
    background: var(--gradient);
    color: #fff;
    font-size: 13px;
    letter-spacing: 1px;
}

.hero-text h1 {
    margin-top: 18px;
    font-size: 54px;
    font-weight: 700;
    letter-spacing: 10px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-text .hero-sub {
    margin-top: 10px;
    font-size: 16px;
    color: var(--text-light);
    letter-spacing: 1px;
}

.hero-text .hero-desc {
    margin-top: 18px;
    max-width: 520px;
    font-size: 15px;
    color: var(--text-light);
    text-align: justify;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin-top: 22px;
    list-style: none;
    font-size: 14px;
}

.hero-points li::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--gradient);
    vertical-align: middle;
}

.hero-media {
    flex: 1 1 480px;
}

.hero-media img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(168, 85, 247, 0.18);
}

/* 下载按钮 */
.btn-box {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
}

.btn {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 26px;
    border-radius: 24px;
    font-size: 15px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.btn img {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.28);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(168, 85, 247, 0.34);
}

.btn-ghost {
    background: #fff;
    color: var(--text-light);
    border: 1px solid var(--line);
}

.btn-ghost:hover {
    color: var(--brand);
    border-color: var(--brand-light);
}

/* 通用板块 */
.block {
    padding: 62px 0;
}

.block.soft {
    background: var(--bg-soft);
}

.section-head {
    margin-bottom: 40px;
    text-align: center;
}

.section-head h2 {
    font-size: 30px;
    letter-spacing: 2px;
}

.section-head h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 4px;
    margin: 14px auto 0;
    border-radius: 2px;
    background: var(--gradient);
}

.section-head .sub {
    margin-top: 12px;
    font-size: 15px;
    color: var(--text-muted);
}

/* 应用介绍 */
.intro-card {
    padding: 40px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.intro-card p {
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--text-light);
    text-align: justify;
}

.intro-card p:last-child {
    margin-bottom: 0;
}

.intro-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 40px;
    margin-top: 28px;
    padding-top: 26px;
    border-top: 1px dashed var(--line);
    list-style: none;
    font-size: 14px;
}

.intro-meta li {
    color: var(--text-light);
}

.intro-meta li strong {
    display: inline-block;
    min-width: 84px;
    color: var(--text);
}

/* 功能特色 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px 28px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(168, 85, 247, 0.16);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--gradient);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
}

.feature-card h3 {
    margin: 18px 0 10px;
    font-size: 18px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-light);
    text-align: justify;
}

/* 产品展示 */
.shots-wrap {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.shots-wrap::-webkit-scrollbar {
    height: 6px;
}

.shots-wrap::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: #e6dcf3;
}

.shots {
    display: flex;
    gap: 24px;
    padding-bottom: 10px;
    list-style: none;
}

.shot {
    flex: 0 0 46%;
    scroll-snap-align: start;
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.shot img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.shot .cap {
    padding: 18px 22px 22px;
}

.shot .cap h3 {
    font-size: 17px;
}

.shot .cap p {
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.shots-tip {
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

/* 关于我们 */
.about {
    background: url(./images/phone5.jpg) center center / cover no-repeat;
}

.about-card {
    padding: 44px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.12);
}

.about-card p {
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--text-light);
    text-align: justify;
}

.about-card p:last-child {
    margin-bottom: 0;
}

/* 联系方式 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 40px;
    padding: 34px 40px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.contact-item {
    padding: 14px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 15px;
    color: var(--text-light);
}

.contact-item strong {
    display: inline-block;
    min-width: 96px;
    color: var(--text);
}

.contact-note {
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

/* 页脚 */
.site-footer {
    padding: 42px 0 30px;
    background: linear-gradient(135deg, #2a1250 0%, #4a1d7a 100%);
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    line-height: 2;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-brand img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

.footer-brand .footer-name {
    color: #fff;
    font-size: 15px;
    letter-spacing: 1px;
}

.footer-links a {
    margin-right: 20px;
    transition: color 0.2s;
}

.footer-links a:last-child {
    margin-right: 0;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.footer-bottom a:hover {
    color: #fff;
}

/* 用户协议页 */
.page-head {
    padding: 56px 0 48px;
    background: linear-gradient(180deg, #f7f0ff 0%, #ffffff 100%);
    text-align: center;
}

.page-head h1 {
    font-size: 32px;
    letter-spacing: 3px;
}

.page-head .page-sub {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-muted);
}

.doc-wrap {
    padding: 50px 0 70px;
}

.doc {
    max-width: 900px;
    margin: 0 auto;
    padding: 46px 50px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.doc-lead {
    padding: 18px 20px;
    border-radius: 12px;
    background: var(--bg-soft);
    font-size: 14px;
    color: var(--text-light);
}

.doc h2 {
    margin: 34px 0 12px;
    padding-left: 14px;
    border-left: 4px solid var(--brand-light);
    font-size: 19px;
}

.doc h2:first-of-type {
    margin-top: 30px;
}

.doc p,
.doc li {
    font-size: 14px;
    line-height: 2;
    color: var(--text-light);
    text-align: justify;
}

.doc p + p {
    margin-top: 10px;
}

.doc ul {
    margin-top: 10px;
    padding-left: 22px;
}

.doc ul + p {
    margin-top: 10px;
}

.doc-tip {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed var(--line);
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .nav-inner {
        min-height: 60px;
    }

    .nav-links {
        flex-wrap: nowrap;
        gap: 16px;
        width: 100%;
        overflow-x: auto;
        font-size: 13px;
        scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .brand {
        font-size: 18px;
    }

    .hero {
        padding: 40px 0 44px;
    }

    .hero-inner {
        flex-direction: column;
        gap: 32px;
    }

    .hero-text h1 {
        font-size: 36px;
        letter-spacing: 6px;
    }

    .hero-text .hero-sub,
    .hero-text .hero-desc {
        font-size: 14px;
    }

    .hero-points {
        gap: 8px 20px;
        font-size: 13px;
    }

    .btn-box {
        gap: 12px;
        margin-top: 24px;
    }

    .btn {
        height: 44px;
        padding: 0 20px;
        font-size: 14px;
    }

    .block {
        padding: 42px 0;
    }

    .section-head {
        margin-bottom: 28px;
    }

    .section-head h2 {
        font-size: 22px;
    }

    .section-head .sub {
        font-size: 13px;
    }

    .intro-card,
    .about-card {
        padding: 26px 22px;
    }

    .intro-card p,
    .about-card p {
        font-size: 14px;
    }

    .intro-meta {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 22px;
    }

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

    .feature-card {
        padding: 24px 22px;
    }

    .feature-card h3 {
        margin-top: 14px;
        font-size: 17px;
    }

    .shots {
        gap: 16px;
    }

    .shot {
        flex: 0 0 86%;
    }

    .shot .cap {
        padding: 14px 18px 18px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .contact-item {
        font-size: 14px;
    }

    .contact-item strong {
        min-width: 84px;
    }

    .footer-inner {
        justify-content: center;
        text-align: center;
    }

    .page-head {
        padding: 38px 0 32px;
    }

    .page-head h1 {
        font-size: 24px;
    }

    .doc-wrap {
        padding: 32px 0 46px;
    }

    .doc {
        padding: 26px 22px;
    }

    .doc h2 {
        margin-top: 26px;
        font-size: 17px;
    }

    .doc p,
    .doc li {
        font-size: 13px;
    }
}
