/* ======================================================
   CMS 首页样式 — home.css
   来源: PhpCode cms/index.html 内联 <style> 提取
   ====================================================== */

/* Hero（clear:both 为保险：即使 header 浮动意外逃逸，也强制 hero 另起一行满宽；overflow:hidden 保留以裁剪装饰圆圈） */
.hp-hero{background:linear-gradient(135deg,#0f172a 0%,#1e3a8a 50%,#2563eb 100%);color:#fff;padding:88px 0 96px;position:relative;overflow:hidden;clear:both;}
.hp-hero::after{content:"";position:absolute;right:-120px;top:-120px;width:480px;height:480px;border-radius:50%;background:rgba(59,130,246,.12);}
.hp-hero::before{content:"";position:absolute;left:-80px;bottom:-140px;width:400px;height:400px;border-radius:50%;background:rgba(99,102,241,.08);}
.hp-hero-grid{display:flex;align-items:center;gap:48px;position:relative;z-index:1;}
.hp-hero-text{flex:1;min-width:0;}
.hp-hero-badge{display:inline-block;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);border-radius:999px;padding:6px 16px;font-size:13px;margin-bottom:22px;backdrop-filter:blur(4px);}
.hp-hero h1{font-size:44px;font-weight:800;line-height:1.25;margin:0 0 18px;}
.hp-hero h1 em{font-style:normal;color:#fbbf24;}
.hp-hero p{font-size:17px;line-height:1.8;color:rgba(255,255,255,.85);margin:0 0 34px;max-width:540px;}
.hp-hero-cta{display:flex;gap:14px;flex-wrap:wrap;}
.hp-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 30px;border-radius:10px;font-size:16px;font-weight:600;text-decoration:none;transition:all .25s;cursor:pointer;border:none;}
.hp-btn-solid{background:#fff;color:#1d4ed8;}
.hp-btn-solid:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,.2);color:#1d4ed8;}
.hp-btn-ghost{background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.5);}
.hp-btn-ghost:hover{background:rgba(255,255,255,.12);border-color:#fff;color:#fff;}
.hp-btn-primary{background:#2563eb;color:#fff;}
.hp-btn-primary:hover{background:#1d4ed8;color:#fff;transform:translateY(-2px);box-shadow:0 8px 20px rgba(37,99,235,.35);}
.hp-btn-sm{padding:9px 18px;font-size:14px;border-radius:8px;}
.hp-btn-outline{background:#fff;color:#2563eb;border:1.5px solid #2563eb;text-decoration:none;}
.hp-btn-outline:hover{background:#2563eb;color:#fff;}
.hp-hero-code{flex:0 0 440px;background:rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:24px;backdrop-filter:blur(8px);font-family:'Fira Code',Consolas,'Courier New',monospace;}
.hp-hero-code pre{margin:0;font-size:13px;line-height:1.7;color:#e2e8f0;white-space:pre-wrap;word-break:break-all;}
.hp-hero-code .cmt{color:#64748b;}
.hp-hero-code .kw{color:#93c5fd;}
.hp-hero-code .str{color:#86efac;}
.hp-hero-code .fn{color:#fbbf24;}
.hp-hero-stats{display:flex;gap:0;margin-top:44px;border-top:1px solid rgba(255,255,255,.18);padding-top:26px;}
.hp-hero-stat{flex:1;text-align:center;}
.hp-hero-stat + .hp-hero-stat{border-left:1px solid rgba(255,255,255,.16);}
.hp-hero-stat b{display:block;font-size:26px;font-weight:800;color:#fbbf24;}
.hp-hero-stat span{font-size:13px;color:rgba(255,255,255,.75);}

/* 公告条 */
.hp-notice{background:#fff;border-bottom:1px solid #e2e8f0;}
.hp-notice-in{display:flex;align-items:center;gap:12px;padding:13px 0;font-size:14px;}
.hp-notice-tag{flex-shrink:0;display:inline-flex;align-items:center;gap:6px;background:#eff6ff;color:#2563eb;border:1px solid #bfdbfe;border-radius:6px;padding:3px 10px;font-size:12px;font-weight:600;}
.hp-notice-title{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
.hp-notice-title a{color:#0f172a;text-decoration:none;}
.hp-notice-title a:hover{color:#2563eb;}
.hp-notice-more{flex-shrink:0;color:#64748b;text-decoration:none;font-size:13px;}
.hp-notice-more:hover{color:#2563eb;}

/* Section 公共 */
.hp-sec{padding:76px 0;}
.hp-wrap{max-width:1200px;margin:0 auto;padding:0 20px;}
.hp-sec-title{font-size:32px;font-weight:700;color:#0f172a;text-align:center;margin:0 0 12px;letter-spacing:.5px;}
.hp-sec-sub{font-size:16px;color:#64748b;text-align:center;margin:0 0 52px;}

/* 热门 API */
.hp-apis{background:#fff;}
.hp-api-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;}
.hp-api-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:28px 24px;transition:all .3s;display:flex;flex-direction:column;text-decoration:none;}
.hp-api-card:hover{transform:translateY(-5px);box-shadow:0 14px 34px rgba(15,23,42,.1);border-color:transparent;}
.hp-api-head{display:flex;align-items:center;gap:12px;margin-bottom:14px;flex-wrap:wrap;}
.hp-api-ico{width:42px;height:42px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:18px;color:#fff;flex-shrink:0;}
.hp-api-card h4{font-size:16px;font-weight:700;color:#0f172a;margin:0;}
.hp-api-tag{font-size:11px;color:#fff;background:#2563eb;padding:2px 8px;border-radius:4px;font-weight:500;white-space:nowrap;}
.hp-api-card .hp-api-desc{font-size:13.5px;color:#64748b;line-height:1.7;margin:0 0 18px;flex:1;}
.hp-api-foot{display:flex;align-items:center;justify-content:space-between;padding-top:14px;border-top:1px solid #e2e8f0;}
.hp-api-price{font-size:14px;font-weight:700;color:#2563eb;}
.hp-api-price small{font-size:12px;color:#64748b;font-weight:400;}
.hp-api-link{font-size:13px;color:#2563eb;font-weight:600;text-decoration:none;display:inline-flex;align-items:center;gap:4px;}
.hp-api-link:hover{gap:8px;}

/* 最新 API */
.hp-latest{background:#f8fafc;}

/* 快速接入步骤 */
.hp-steps{background:linear-gradient(135deg,#eef2ff 0%,#f0f9ff 100%);}
.hp-step-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;position:relative;}
.hp-step{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:30px 20px;text-align:center;transition:all .3s;position:relative;}
.hp-step:hover{transform:translateY(-5px);box-shadow:0 12px 32px rgba(15,23,42,.08);}
.hp-step-num{width:36px;height:36px;border-radius:50%;background:#2563eb;color:#fff;font-size:16px;font-weight:700;display:flex;align-items:center;justify-content:center;margin:0 auto 14px;}
.hp-step h4{font-size:15px;font-weight:700;color:#0f172a;margin:0 0 8px;}
.hp-step p{font-size:12.5px;color:#64748b;line-height:1.6;margin:0;}
.hp-step-arrow{position:absolute;right:-14px;top:50%;transform:translateY(-50%);color:#2563eb;font-size:18px;z-index:1;}

/* 平台优势 */
.hp-why{background:#fff;}
.hp-why-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;}
.hp-why-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:28px 26px;display:flex;flex-direction:column;transition:all .3s;position:relative;overflow:hidden;}
.hp-why-card::before{content:"";position:absolute;left:0;top:0;width:4px;height:100%;background:linear-gradient(180deg,#2563eb,#60a5fa);opacity:0;transition:opacity .3s;}
.hp-why-card:hover{transform:translateY(-6px);box-shadow:0 16px 40px rgba(15,23,42,.1);background:#fff;}
.hp-why-card:hover::before{opacity:1;}
.hp-why-head{display:flex;align-items:center;gap:14px;margin-bottom:14px;}
.hp-why-ico{flex-shrink:0;width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:21px;color:#fff;}
.hp-why-card h4{font-size:17px;font-weight:700;color:#0f172a;margin:0;line-height:1.4;}
.hp-why-card p{font-size:13.5px;color:#64748b;line-height:1.8;margin:0;flex:1;}

/* CTA */
.hp-cta{background:linear-gradient(135deg,#1e3a8a 0%,#2563eb 100%);color:#fff;padding:64px 0;text-align:center;}
.hp-cta h2{font-size:32px;font-weight:800;margin:0 0 14px;}
.hp-cta p{font-size:16px;color:rgba(255,255,255,.8);margin:0 0 32px;}
.hp-cta-btns{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;}

/* 合作伙伴 */
.hp-partners{background:#fff;border-top:1px solid #e2e8f0;padding:26px 0;}
.hp-partners-in{display:flex;align-items:center;gap:16px;flex-wrap:wrap;font-size:14px;}
.hp-partners-in strong{color:#64748b;font-weight:600;flex-shrink:0;}
.hp-partners-in a{color:#475569;text-decoration:none;padding:4px 12px;border-radius:6px;background:#f8fafc;transition:all .2s;}
.hp-partners-in a:hover{color:#2563eb;background:#eff6ff;}

/* ===== 响应式 ===== */
@media (max-width:1024px){
    .hp-hero-grid{flex-direction:column;text-align:center;}
    .hp-hero p{margin-left:auto;margin-right:auto;}
    .hp-hero-cta{justify-content:center;}
    .hp-hero-code{flex:none;width:100%;max-width:500px;}
    .hp-api-grid{grid-template-columns:1fr;}
    .hp-step-grid{grid-template-columns:repeat(3,1fr);}
    .hp-step-arrow{display:none;}
    .hp-why-grid{grid-template-columns:repeat(2,1fr);}
    .hp-hero h1{font-size:34px;}
}
@media (max-width:600px){
    .hp-step-grid{grid-template-columns:1fr;}
    .hp-why-grid{grid-template-columns:1fr;}
    .hp-hero{padding:60px 0 70px;}
    .hp-hero h1{font-size:28px;}
    .hp-hero-stats{flex-direction:column;gap:14px;}
    .hp-sec{padding:40px 0;}
    .hp-sec-title{font-size:24px;}
    .hp-sec-sub{font-size:14px;margin-bottom:30px;}
}
