/* 丹川网络官网共享样式（静态站，无构建依赖） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand: #4d6bfe;          /* 品牌蓝（DeepSeek 风格） */
    --brand-dark: #3a54e8;
    --text-primary: #1f2328;
    --text-secondary: #5f6b7a;
    --border: #e6e9ef;
    --bg: #ffffff;
    --bg-soft: #f7f8fa;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    background: var(--bg);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 顶部导航（初始透明悬浮，滚动后浮起玻璃胶囊，仿 DeepSeek） ===== */
.site-header {
    position: sticky;
    top: 12px;
    z-index: 100;
    /* 初始状态：透明无边框，悬浮在页面顶部 */
}

/* 滚动后：logo 被圆角玻璃胶囊框住 */
.site-header.is-floating .header-inner {
    background: hsla(0, 0%, 100%, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    padding-left: 20px;
    padding-right: 20px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    border: 1px solid transparent;
    border-radius: 16px;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.header-right {
    position: relative;
}

/* 菜单按钮（汉堡 / 关闭，仿 DeepSeek 图标按钮） */
.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.menu-toggle:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: var(--border);
}

.menu-toggle svg {
    width: 20px;
    height: 20px;
}

.menu-toggle .icon-close {
    display: none;
}

.site-header.is-open .menu-toggle .icon-menu {
    display: none;
}

.site-header.is-open .menu-toggle .icon-close {
    display: block;
}

/* 下拉菜单面板（圆角玻璃，与胶囊一致） */
.nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 170px;
    padding: 6px;
    background: hsla(0, 0%, 100%, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.site-header.is-open .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu-item {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 15px;
    color: var(--text-primary);
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.nav-menu-item:hover {
    background: rgba(77, 107, 254, 0.08);
    color: var(--brand);
}

/* 移动端全屏菜单的顶部栏（桌面隐藏） */
.nav-menu-mobile-header {
    display: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
}

.logo-text {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    font-size: 15px;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* ===== 按钮 ===== */
.btn {
    display: inline-block;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.05s;
    border: 1px solid transparent;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--brand);
    color: #fff;
}

.btn-primary:hover {
    background: var(--brand-dark);
}

.btn-lg {
    padding: 13px 34px;
    font-size: 17px;
    border-radius: 10px;
}

/* ===== 主视觉 ===== */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 96px 0 120px;
    background:
        radial-gradient(600px 300px at 85% -10%, rgba(77, 107, 254, 0.08), transparent 60%),
        radial-gradient(500px 260px at 10% 110%, rgba(77, 107, 254, 0.06), transparent 60%);
}

.hero-inner {
    text-align: center;
    max-width: 760px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 14px;
    color: var(--brand);
    letter-spacing: 2px;
    margin-bottom: 20px;
    padding: 4px 14px;
    border: 1px solid rgba(77, 107, 254, 0.25);
    border-radius: 999px;
    background: rgba(77, 107, 254, 0.05);
}

.hero-title {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* ===== 管理后台卡片入口（仿 DeepSeek API 开放平台卡片） ===== */
.hero-cta-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 300px;
    padding: 22px 24px;
    border-radius: 24px;
    background: hsla(0, 0%, 100%, 0.38);
    border: 1px solid rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: left;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta-card:hover {
    background: hsla(0, 0%, 100%, 0.5);
    border-color: rgba(58, 101, 194, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.hero-cta-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 150%;
    color: #3a65c2;
    letter-spacing: -0.01em;
}

.hero-cta-desc {
    font-size: 15px;
    font-weight: 400;
    line-height: 160%;
    color: rgba(0, 0, 0, 0.65);
}

/* ===== 页脚（仿 DeepSeek：图标+公司名 / 备案 / 隐私政策 / 版权行，左对齐） ===== */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
    padding: 32px 0 28px;
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-inner {
    text-align: left;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.footer-filing {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-filing a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.footer-filing a:hover {
    color: var(--brand);
}

.icp-icon {
    height: 15px;
    vertical-align: middle;
}

/* 社交图标行（仿 DeepSeek icon 行：小图标横排、灰色、hover 变品牌蓝） */
.footer-social {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.footer-social a:hover {
    color: var(--brand);
    border-color: rgba(77, 107, 254, 0.35);
    background-color: rgba(77, 107, 254, 0.05);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* 底部区域：隐私政策 + 版权行（DeepSeek 风格，带顶部边框分隔） */
.footer-bottom {
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-legal a {
    font-size: 14px;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--brand);
}

/* 版权行：与 DeepSeek 一致（14px / 400 / 150% / 灰色 / 左对齐） */
.footer-copyright {
    font-size: 14px;
    font-weight: 400;
    line-height: 150%;
    color: rgba(0, 0, 0, 0.65);
}

/* ===== 隐私政策页 ===== */
.page {
    flex: 1;
    padding: 48px 0 72px;
}

.page h1 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 28px;
}

.page h2 {
    font-size: 21px;
    font-weight: 600;
    margin: 32px 0 14px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.page h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 24px 0 10px;
}

.page p {
    margin-bottom: 12px;
}

.page ol,
.page ul {
    padding-left: 24px;
    margin-bottom: 12px;
}

.page li {
    margin-bottom: 6px;
}

.page table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0 18px;
    font-size: 14px;
}

.page th,
.page td {
    border: 1px solid var(--border);
    padding: 8px 12px;
    text-align: left;
    vertical-align: top;
}

.page th {
    background: var(--bg-soft);
    font-weight: 600;
}

.page a {
    color: var(--brand);
}

.page a:hover {
    text-decoration: underline;
}

.page .doc-meta {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

/* ===== 移动端：菜单全屏覆盖（仿 DeepSeek 移动菜单，必须关闭才能继续操作页面） ===== */
@media (max-width: 767.98px) {
    body.is-menu-open {
        overflow: hidden; /* 打开时锁住背景滚动 */
    }

    /* 全屏菜单顶部栏：logo + 关闭按钮 */
    .nav-menu-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 16px;
    }

    .site-header.is-open .nav-menu {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100dvh;
        min-width: 0;
        display: flex;
        flex-direction: column;
        padding: 20px;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: none;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        z-index: 1000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu-item {
        padding: 16px 6px;
        font-size: 17px;
        border-radius: 10px;
    }
}

/* ===== 移动端适配 ===== */
@media (max-width: 640px) {
    .header-inner {
        height: 56px;
    }

    .nav-link {
        font-size: 14px;
    }

    .hero {
        padding: 64px 0 88px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .btn-lg {
        padding: 12px 28px;
        font-size: 15px;
    }

    .hero-cta-card {
        min-width: 0;
        width: 100%;
        max-width: 340px;
        padding: 18px 20px;
    }

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