/* ========================================
   钉钉下载页 — 暗色主题 + 钉钉蓝强调（#007FFF）
   ======================================== */

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

:root{
    --bg:       #0a0a0a;
    --bg-card:  #141414;
    --bg-card2: #1a1a1a;
    --border:   #222;
    --text:     #e8e8e8;
    --text-dim: #888;
    --accent:   #007fff;
    --accent-dark: #0066dd;
    --radius:   16px;
    --radius-sm:10px;
    --container: 1200px;
    --font: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Microsoft YaHei', sans-serif;
}

html{scroll-behavior:smooth;font-size:16px}
body{
    font-family:var(--font);
    background:var(--bg);
    color:var(--text);
    line-height:1.6;
    -webkit-font-smoothing:antialiased;
    overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
ul,ol{list-style:none}
img{max-width:100%;display:block}

.container{max-width:var(--container);margin:0 auto;padding:0 24px}
.container-sm{max-width:800px}
.center-text{text-align:center}

/* ========== 导航栏 ========== */
.navbar{
    position:fixed;top:0;left:0;right:0;z-index:100;
    padding:16px 0;
    transition:all .3s;
}
.navbar.scrolled{
    background:rgba(10,10,10,.85);
    backdrop-filter:blur(20px);
    -webkit-backdrop-filter:blur(20px);
    border-bottom:1px solid var(--border);
    padding:12px 0;
}
.nav-container{display:flex;align-items:center;justify-content:space-between}

.logo{display:flex;align-items:center;gap:10px}
.logo-icon{width:36px;height:36px;border-radius:10px}
.logo-text{font-weight:700;font-size:1.125rem;letter-spacing:-.02em}

.nav-menu{display:flex;gap:32px}
.nav-menu a{font-size:.875rem;color:var(--text-dim);transition:color .2s}
.nav-menu a:hover{color:var(--text)}

.nav-right .btn-accent{font-size:.875rem;padding:8px 20px}

.mobile-toggle{display:none;flex-direction:column;gap:5px;background:none;border:none;cursor:pointer;padding:4px}
.mobile-toggle span{display:block;width:22px;height:2px;background:var(--text);border-radius:2px;transition:all .3s}

/* ========== 按钮 ========== */
.btn-accent{
    display:inline-flex;align-items:center;gap:8px;
    background:var(--accent);color:#fff;
    font-weight:600;border-radius:60px;
    padding:12px 28px;font-size:.9375rem;
    transition:all .25s;border:none;cursor:pointer;
}
.btn-accent:hover{background:#3399ff;transform:translateY(-1px);box-shadow:0 8px 30px rgba(0,127,255,.35)}
.btn-outline{
    display:inline-flex;align-items:center;gap:8px;
    border:1px solid var(--border);color:var(--text);
    font-weight:500;border-radius:60px;
    padding:12px 28px;font-size:.9375rem;
    transition:all .25s;
}
.btn-outline:hover{border-color:var(--text-dim);background:rgba(255,255,255,.04)}
.btn-lg{padding:14px 32px;font-size:1rem}

.link-arrow{color:var(--accent);font-size:.875rem;font-weight:500;transition:opacity .2s}
.link-arrow:hover{opacity:.8}

/* ========== Hero ========== */
.hero{
    position:relative;
    padding:140px 0 60px;
    overflow:hidden;
}
.hero-bg-glow{
    position:absolute;
    width:800px;height:800px;
    top:-200px;left:50%;
    transform:translateX(-50%);
    background:radial-gradient(circle, rgba(0,127,255,.08) 0%, transparent 70%);
    pointer-events:none;
}

.hero-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    align-items:center;
}
.hero-content{position:relative;z-index:2}

.hero-badge{
    display:inline-flex;align-items:center;gap:8px;
    background:rgba(0,127,255,.1);
    border:1px solid rgba(0,127,255,.2);
    border-radius:60px;padding:6px 16px;
    font-size:.8125rem;color:var(--accent);
    margin-bottom:24px;
}
.badge-dot{
    width:6px;height:6px;border-radius:50%;
    background:var(--accent);
    animation:pulse 2s infinite;
}
@keyframes pulse{
    0%,100%{opacity:1}
    50%{opacity:.4}
}

.hero-title{
    font-size:clamp(2.5rem,5vw,4rem);
    font-weight:900;
    line-height:1.1;
    letter-spacing:-.03em;
    margin-bottom:20px;
}
.title-line{display:block}
.title-img-wrap{
    display:inline-block;
    width:clamp(48px,5vw,64px);height:clamp(48px,5vw,64px);
    vertical-align:middle;
    border-radius:14px;
    overflow:hidden;
    margin:0 4px;
    position:relative;top:-2px;
}
.title-inline-img{width:100%;height:100%;object-fit:cover}
.accent-dot{color:var(--accent)}

.hero-desc{
    font-size:1.0625rem;
    color:var(--text-dim);
    max-width:480px;
    margin-bottom:32px;
    line-height:1.7;
}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap}

/* Hero Visual — 仿 Bento 图片风格 */
.hero-visual{position:relative;z-index:1}

.hero-card-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    grid-template-rows:auto auto;
    gap:12px;
}
.hero-card{
    background:var(--bg-card);
    border:1px solid var(--border);
    border-radius:var(--radius);
    overflow:hidden;
}

/* 主窗口卡片 */
.card-main{
    grid-column:1/3;
    grid-row:1;
}
.mockup-window{overflow:hidden}
.window-dots{display:flex;gap:6px;padding:12px 16px;background:rgba(255,255,255,.03)}
.window-dots span{width:10px;height:10px;border-radius:50%;background:#333}
.window-dots span:first-child{background:#ff5f57}
.window-dots span:nth-child(2){background:#ffbd2e}
.window-dots span:last-child{background:#28c940}

.window-body{display:flex;height:200px}

.mock-sidebar{width:48px;background:rgba(255,255,255,.02);border-right:1px solid var(--border);padding:12px 0;display:flex;flex-direction:column;align-items:center;gap:10px}
.mock-nav-item{width:28px;height:28px;border-radius:8px;background:#222}
.mock-nav-item.active{background:var(--accent);opacity:.7}

.mock-chat-list{width:160px;border-right:1px solid var(--border);padding:10px 8px;display:flex;flex-direction:column;gap:8px}
.mock-chat{display:flex;align-items:center;gap:8px;padding:8px;border-radius:8px}
.mock-chat.active{background:rgba(0,127,255,.08)}
.mock-avatar{width:28px;height:28px;border-radius:50%;background:#2a2a2a;flex-shrink:0}
.mock-chat.active .mock-avatar{background:var(--accent);opacity:.5}
.mock-lines{display:flex;flex-direction:column;gap:4px;flex:1}
.l-md{display:block;height:8px;background:#2a2a2a;border-radius:4px;width:80%}
.l-sm{display:block;height:6px;background:#1e1e1e;border-radius:3px;width:55%}

.mock-main{flex:1;padding:16px;display:flex;flex-direction:column;gap:10px;justify-content:center}
.mock-msg{display:flex}
.mock-msg.in{justify-content:flex-start}
.mock-msg.out{justify-content:flex-end}
.mock-msg span{
    display:inline-block;
    padding:8px 14px;
    border-radius:12px;
    font-size:.75rem;
    max-width:240px;
}
.mock-msg.in span{background:#1e1e1e;color:var(--text-dim)}
.mock-msg.out span{background:rgba(0,127,255,.12);color:var(--accent)}
.ai-tag{
    display:inline-block;
    background:var(--accent);color:#fff;
    font-size:.625rem;font-weight:700;
    padding:2px 6px;border-radius:4px;
    margin-right:6px;vertical-align:middle;
}

/* 手机卡片 */
.card-phone{grid-column:1;grid-row:2;padding:16px;display:flex;justify-content:center}
.phone-frame{
    width:100px;height:180px;
    background:#1a1a1a;
    border:2px solid #2a2a2a;
    border-radius:20px;
    overflow:hidden;
    position:relative;
}
.phone-notch{
    width:40px;height:6px;
    background:#2a2a2a;
    border-radius:0 0 4px 4px;
    margin:0 auto;
}
.phone-screen{padding:10px 8px;display:flex;flex-direction:column;gap:8px}
.phone-header-bar{height:8px;background:#2a2a2a;border-radius:4px;width:60%}
.phone-chat-item{height:24px;background:#1e1e1e;border-radius:6px}
.phone-chat-item.short{width:65%}

/* 数据卡片 */
.card-stat{
    grid-column:2;grid-row:2;
    padding:20px;
    display:flex;align-items:center;gap:14px;
}
.stat-icon{
    width:44px;height:44px;
    background:var(--accent);color:#fff;
    font-weight:900;font-size:.875rem;
    border-radius:12px;
    display:flex;align-items:center;justify-content:center;
    flex-shrink:0;
}
.stat-content{display:flex;flex-direction:column}
.stat-label{font-size:.75rem;color:var(--text-dim)}
.stat-value{font-size:1.5rem;font-weight:900;letter-spacing:-.02em}

/* CTA 小卡片 */
.card-cta{
    display:none; /* 在大屏不显示，移动端用 */
}

/* ========== 跑马灯 ========== */
.marquee{
    padding:20px 0;
    border-top:1px solid var(--border);
    border-bottom:1px solid var(--border);
    overflow:hidden;
    white-space:nowrap;
}
.marquee-track{
    display:inline-flex;gap:40px;
    animation:marquee 20s linear infinite;
    font-size:.875rem;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.08em;
    color:var(--text-dim);
}
.marquee-track span{flex-shrink:0}
@keyframes marquee{
    0%{transform:translateX(0)}
    100%{transform:translateX(-50%)}
}

/* ========== Section 通用 ========== */
.section{padding:100px 0}
.section-header{text-align:center;margin-bottom:56px}
.section-title{
    font-size:clamp(1.75rem,3.5vw,2.5rem);
    font-weight:800;
    letter-spacing:-.03em;
    line-height:1.2;
    margin-bottom:16px;
}
.section-subtitle{
    font-size:1rem;
    color:var(--text-dim);
    max-width:560px;
    margin:0 auto;
    line-height:1.7;
}

/* ========== Bento Grid ========== */
.bento-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
}
.bento-card{
    background:var(--bg-card);
    border:1px solid var(--border);
    border-radius:var(--radius);
    transition:border-color .25s, transform .25s;
}
.bento-card:hover{border-color:#333;transform:translateY(-2px)}
.bento-card.span-2{grid-column:span 2}
.bento-card.span-3{grid-column:span 3}

.card-inner{padding:32px}
.card-inner h3{font-size:1.125rem;font-weight:700;margin-bottom:10px;letter-spacing:-.01em}
.card-inner p{font-size:.9375rem;color:var(--text-dim);line-height:1.65}

.card-inner.horizontal{display:flex;align-items:center;justify-content:space-between;gap:40px}

.card-icon-lg{
    width:48px;height:48px;
    background:var(--accent);color:#fff;
    font-weight:900;font-size:.875rem;
    border-radius:14px;
    display:flex;align-items:center;justify-content:center;
    margin-bottom:16px;
}

.card-tags{display:flex;gap:8px;margin-top:16px;flex-wrap:wrap}
.card-tags span{
    padding:4px 12px;
    background:rgba(0,127,255,.08);
    border:1px solid rgba(0,127,255,.15);
    border-radius:60px;
    font-size:.75rem;
    color:var(--accent);
}

.avatar-stack{display:flex;align-items:center;flex-shrink:0}
.av{
    width:40px;height:40px;border-radius:50%;
    background:linear-gradient(135deg,#333,#555);
    border:2px solid var(--bg-card);
    margin-left:-10px;
}
.av:first-child{margin-left:0}
.av-plus{
    width:40px;height:40px;border-radius:50%;
    background:var(--accent);color:#fff;
    font-weight:700;font-size:1.125rem;
    display:flex;align-items:center;justify-content:center;
    margin-left:-10px;
    border:2px solid var(--bg-card);
}

/* ========== 下载区 ========== */
.section-download{
    position:relative;
    background:var(--bg-card);
    border-top:1px solid var(--border);
    border-bottom:1px solid var(--border);
}
.download-glow{
    position:absolute;
    width:600px;height:600px;
    top:50%;left:50%;
    transform:translate(-50%,-50%);
    background:radial-gradient(circle, rgba(0,127,255,.06) 0%, transparent 70%);
    pointer-events:none;
}

.download-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:14px;
    max-width:900px;
    margin:0 auto 56px;
}
.dl-card{
    display:flex;align-items:center;gap:16px;
    padding:24px;
    background:var(--bg);
    border:1px solid var(--border);
    border-radius:var(--radius);
    transition:all .25s;
    position:relative;
    overflow:hidden;
}
.dl-card:hover{border-color:var(--accent);transform:translateY(-2px)}

.dl-icon-wrap{
    width:52px;height:52px;flex-shrink:0;
    background:rgba(0,127,255,.1);
    border-radius:14px;
    display:flex;align-items:center;justify-content:center;
    color:var(--accent);
}
.dl-card h3{font-size:1rem;font-weight:600;margin-bottom:4px}
.dl-card p{font-size:.8125rem;color:var(--text-dim);line-height:1.5}

.dl-badge{
    position:absolute;top:12px;right:12px;
    background:var(--accent);color:#fff;
    font-size:.6875rem;font-weight:700;
    padding:3px 10px;border-radius:60px;
}
.dl-arrow{
    margin-left:auto;flex-shrink:0;
    color:var(--text-dim);transition:color .2s;
}
.dl-card:hover .dl-arrow{color:var(--accent)}

/* 信任品牌 */
.trusted-row{text-align:center}
.trusted-row p{font-size:.8125rem;color:var(--text-dim);margin-bottom:16px}
.brand-list{
    display:flex;justify-content:center;gap:40px;flex-wrap:wrap;
    font-size:.8125rem;font-weight:600;
    color:#444;letter-spacing:.1em;
}

/* ========== 安装指南 ========== */
.guide-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
}
.guide-card{
    background:var(--bg-card);
    border:1px solid var(--border);
    border-radius:var(--radius);
    padding:32px;
    transition:border-color .25s;
}
.guide-card:hover{border-color:#333}
.guide-step{
    font-size:2.5rem;font-weight:900;
    color:var(--accent);
    letter-spacing:-.04em;
    margin-bottom:16px;
    line-height:1;
}
.guide-card h3{font-size:1.0625rem;font-weight:700;margin-bottom:10px}
.guide-card p{font-size:.9375rem;color:var(--text-dim);line-height:1.65}

/* ========== 数据亮点 ========== */
.section-stats{
    padding:60px 0;
    border-top:1px solid var(--border);
    border-bottom:1px solid var(--border);
}
.stats-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:24px;
    text-align:center;
}
.stat-item strong{
    display:block;
    font-size:clamp(1.75rem,3vw,2.5rem);
    font-weight:900;
    color:var(--accent);
    letter-spacing:-.03em;
    margin-bottom:4px;
}
.stat-item span{font-size:.875rem;color:var(--text-dim)}

/* ========== FAQ ========== */
.faq-list{display:flex;flex-direction:column;gap:2px}
.faq-item{
    background:var(--bg-card);
    border:1px solid var(--border);
    border-radius:var(--radius-sm);
    overflow:hidden;
    transition:border-color .25s;
}
.faq-item[open]{border-color:#333}
.faq-item summary{
    padding:20px 24px;
    font-size:1rem;font-weight:600;
    cursor:pointer;
    list-style:none;
    display:flex;align-items:center;justify-content:space-between;
    transition:color .2s;
}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{
    content:'+';font-size:1.25rem;color:var(--text-dim);
    transition:transform .2s;flex-shrink:0;margin-left:16px;
}
.faq-item[open] summary::after{transform:rotate(45deg);color:var(--accent)}
.faq-item summary:hover{color:var(--accent)}
.faq-item p{
    padding:0 24px 20px;
    font-size:.9375rem;
    color:var(--text-dim);
    line-height:1.7;
}

/* ========== SEO 内容区 ========== */
.seo-section{
    background:var(--bg-card);
    border-top:1px solid var(--border);
}
.seo-article h2{
    font-size:1.5rem;font-weight:700;
    margin-bottom:24px;padding-bottom:16px;
    border-bottom:1px solid var(--border);
}
.seo-article section{margin-bottom:32px}
.seo-article h3{font-size:1.125rem;font-weight:600;margin-bottom:12px;color:var(--text)}
.seo-article p{font-size:.9375rem;color:var(--text-dim);line-height:1.75;margin-bottom:12px}
.seo-article ul,.seo-article ol{
    padding-left:20px;margin-bottom:12px;
    list-style:disc;
}
.seo-article ol{list-style:decimal}
.seo-article li{
    font-size:.9375rem;color:var(--text-dim);
    line-height:1.75;margin-bottom:4px;
}

/* ========== 底部 CTA ========== */
.section-final-cta{
    padding:80px 0;
    position:relative;
}
.section-final-cta h2{
    font-size:clamp(1.5rem,3vw,2rem);
    font-weight:800;margin-bottom:12px;
    letter-spacing:-.02em;
}
.section-final-cta p{
    color:var(--text-dim);margin-bottom:28px;
}

/* ========== 页脚 ========== */
.site-footer{
    border-top:1px solid var(--border);
    padding:60px 0 32px;
}
.footer-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1fr;
    gap:40px;
    margin-bottom:40px;
}
.footer-brand strong{font-size:1.125rem;display:block;margin-bottom:6px}
.footer-brand p{font-size:.875rem;color:var(--text-dim)}

.footer-col h4{font-size:.8125rem;font-weight:600;color:var(--text-dim);text-transform:uppercase;letter-spacing:.08em;margin-bottom:12px}
.footer-col ul{display:flex;flex-direction:column;gap:8px}
.footer-col a{font-size:.875rem;color:var(--text-dim);transition:color .2s}
.footer-col a:hover{color:var(--text)}

.footer-bottom{
    border-top:1px solid var(--border);
    padding-top:24px;
    font-size:.75rem;
    color:#555;
}

/* ========== 响应式 ========== */
@media(max-width:1024px){
    .hero-grid{grid-template-columns:1fr;gap:48px}
    .hero-content{text-align:center;display:flex;flex-direction:column;align-items:center}
    .hero-desc{margin-left:auto;margin-right:auto}
    .hero-actions{justify-content:center}
    .bento-grid{grid-template-columns:1fr 1fr}
    .bento-card.span-2{grid-column:span 2}
    .bento-card.span-3{grid-column:span 2}
    .guide-grid{grid-template-columns:1fr 1fr}
    .guide-grid .guide-card:last-child{grid-column:span 2}
    .stats-grid{grid-template-columns:repeat(2,1fr);gap:32px}
    .footer-grid{grid-template-columns:1fr 1fr}
}

@media(max-width:768px){
    .nav-menu{
        display:none;
        position:fixed;top:0;left:0;right:0;bottom:0;
        background:rgba(10,10,10,.97);
        flex-direction:column;
        align-items:center;justify-content:center;
        gap:32px;
        z-index:99;
    }
    .nav-menu.open{display:flex}
    .nav-menu a{font-size:1.25rem;color:var(--text)}

    .mobile-toggle{display:flex;z-index:101}
    .nav-right .btn-accent{display:none}

    .hero{padding:120px 0 40px}
    .hero-title{font-size:2.25rem}
    .hero-card-grid{grid-template-columns:1fr 1fr;gap:10px}
    .window-body{height:160px}
    .mock-chat-list{width:0;overflow:hidden;padding:0;border:none}

    .bento-grid{grid-template-columns:1fr}
    .bento-card.span-2,.bento-card.span-3{grid-column:span 1}
    .card-inner.horizontal{flex-direction:column;gap:20px;align-items:flex-start}

    .download-grid{grid-template-columns:1fr}

    .guide-grid{grid-template-columns:1fr}
    .guide-grid .guide-card:last-child{grid-column:span 1}

    .stats-grid{grid-template-columns:1fr 1fr}

    .footer-grid{grid-template-columns:1fr;gap:28px}
    .brand-list{gap:20px}
}

@media(max-width:480px){
    .hero-title{font-size:1.875rem}
    .hero-actions{flex-direction:column;width:100%}
    .hero-actions a{justify-content:center;width:100%}
    .hero-card-grid{grid-template-columns:1fr}
    .card-phone{display:none}
    .card-stat{grid-column:1}
    .stats-grid{grid-template-columns:1fr}
    .stat-item{padding:16px 0;border-bottom:1px solid var(--border)}
    .stat-item:last-child{border:none}
}
