/* ============================================
   西安雨落科技有限公司 - 公共样式
   多彩渐变 · 简洁大方 · 响应式
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: "Microsoft YaHei","PingFang SC","Helvetica Neue",Arial,sans-serif;
    background: #f5f7fb;
    color: #333;
    line-height: 1.7;
    font-size: 15px;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul,ol { list-style: none; }
input, select, textarea, button { font-family: inherit; font-size: inherit; outline: none; }

/* ---------- 多彩渐变背景装饰 ---------- */
.page-bg {
    position: fixed; inset: 0; z-index: -2;
    background: linear-gradient(135deg,#667eea 0%,#764ba2 20%,#f953c6 40%,#ff8a5c 60%,#ffd86f 80%,#4facfe 100%);
    opacity: .10;
}
.page-bg2 {
    position: fixed; inset: 0; z-index: -1;
    background: radial-gradient(circle at 20% 20%, rgba(102,126,234,.15), transparent 40%),
                radial-gradient(circle at 80% 30%, rgba(249,83,198,.12), transparent 40%),
                radial-gradient(circle at 60% 80%, rgba(255,138,92,.15), transparent 40%);
}

/* ---------- 顶栏 ---------- */
.topbar {
    background: linear-gradient(90deg,#667eea,#764ba2,#f953c6);
    color: #fff; font-size: 13px;
    padding: 6px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: #fff; margin: 0 8px; opacity: .9; }
.topbar a:hover { opacity: 1; text-decoration: underline; }
.tb-phone { display: flex; align-items: center; gap: 6px; }

/* ---------- 头部导航 ---------- */
.header { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 100; }
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo .logo-img {
    width: 44px; height: 44px; border-radius: 10px; object-fit: cover;
    box-shadow: 0 4px 12px rgba(102,126,234,.4);
}
.logo .logo-txt { line-height: 1.2; }
.logo .logo-txt b { font-size: 17px; background: linear-gradient(90deg,#667eea,#f953c6); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.logo .logo-txt span { font-size: 11px; color: #999; white-space: nowrap; }

.nav-menu { display: flex; gap: 4px; align-items: center; }
.nav-menu a {
    padding: 9px 16px; border-radius: 22px; color: #444; font-weight: 500;
    transition: all .25s; font-size: 15px;
}
.nav-menu a:hover { color: #667eea; background: #eef1ff; }
.nav-menu a.active { background: linear-gradient(90deg,#667eea,#764ba2); color: #fff; box-shadow: 0 4px 10px rgba(102,126,234,.35); }

.nav-auth { display: flex; gap: 8px; align-items: center; }
.btn { display: inline-block; padding: 8px 18px; border-radius: 22px; font-weight: 500; cursor: pointer; border: none; transition: all .25s; text-align: center; }
.btn-primary { background: linear-gradient(90deg,#667eea,#f953c6); color: #fff; box-shadow: 0 4px 12px rgba(102,126,234,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(102,126,234,.5); }
.btn-outline { background: #fff; color: #667eea; border: 1.5px solid #667eea; }
.btn-outline:hover { background: #667eea; color: #fff; }
.btn-ghost { background: transparent; color: #666; }
.btn-ghost:hover { color: #667eea; }
.btn-danger { background: linear-gradient(90deg,#f953c6,#ff8a5c); color: #fff; }

/* 登录态用户区 */
.user-chip { display: flex; align-items: center; gap: 8px; background: #eef1ff; padding: 5px 14px 5px 6px; border-radius: 22px; }
.user-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg,#667eea,#f953c6); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.user-chip b { font-size: 13px; color: #444; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .logout { font-size: 12px; color: #999; cursor: pointer; }
.user-chip .logout:hover { color: #f953c6; }

/* ---------- 容器与布局 ---------- */
.container { width: 1200px; max-width: 96%; margin: 0 auto; }
.section { padding: 40px 0; }
.section-title { text-align: center; margin-bottom: 28px; }
.section-title h2 { font-size: 28px; margin-bottom: 8px; }
.section-title .sub { color: #999; font-size: 14px; }
.section-title .bar { width: 60px; height: 4px; border-radius: 4px; margin: 10px auto 0; background: linear-gradient(90deg,#667eea,#f953c6,#ff8a5c); }

/* ---------- 首页 Banner ---------- */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background: linear-gradient(135deg,#667eea 0%,#764ba2 35%,#f953c6 70%,#ff8a5c 100%);
    padding: 70px 0;
}
.hero .container { position: relative; z-index: 2; display: flex; gap: 40px; align-items: center; }
.hero h1 { font-size: 40px; line-height: 1.3; margin-bottom: 16px; }
.hero p { font-size: 17px; opacity: .95; max-width: 600px; margin-bottom: 24px; }
.hero .btn { font-size: 16px; padding: 12px 30px; margin-right: 12px; }
.hero .btn-white { background: #fff; color: #667eea; }
.hero-deco { position: absolute; right: -80px; top: -60px; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.12); }
.hero-deco2 { position: absolute; right: 60px; bottom: -100px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.1); }

/* ---------- 分类卡片 ---------- */
.cat-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.cat-card {
    background: #fff; border-radius: 16px; padding: 28px; text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.05); transition: all .3s; border-top: 5px solid transparent;
}
.cat-card:nth-child(1){ border-top-color:#667eea; }
.cat-card:nth-child(2){ border-top-color:#f953c6; }
.cat-card:nth-child(3){ border-top-color:#ff8a5c; }
.cat-card:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(0,0,0,.12); }
.cat-card .ico {
    width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px; font-size: 32px;
    display: flex; align-items: center; justify-content: center; color: #fff;
}
.cat-card:nth-child(1) .ico{ background:linear-gradient(135deg,#667eea,#764ba2); }
.cat-card:nth-child(2) .ico{ background:linear-gradient(135deg,#f953c6,#ff8a5c); }
.cat-card:nth-child(3) .ico{ background:linear-gradient(135deg,#ff8a5c,#ffd86f); }
.cat-card h3 { font-size: 20px; margin-bottom: 10px; }
.cat-card p { color: #888; font-size: 14px; margin-bottom: 0; min-height: 44px; }

/* ---------- 信息卡片网格 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.info-card {
    background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,.05);
    transition: all .3s; display: flex; flex-direction: column;
}
.info-card:hover { transform: translateY(-5px); box-shadow: 0 10px 26px rgba(0,0,0,.12); }
.info-card .thumb { position: relative; height: 180px; overflow: hidden; }
.info-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.info-card:hover .thumb img { transform: scale(1.05); }
.info-card .thumb .tag {
    position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,.55); color: #fff;
    font-size: 12px; padding: 3px 10px; border-radius: 14px; backdrop-filter: blur(4px);
}
.info-card .tag-ico { position:absolute; top:12px; right:12px; }
.info-card .body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.info-card h3 { font-size: 17px; margin-bottom: 8px; line-height: 1.4; height: 46px; overflow: hidden; }
.info-card .sum { color: #888; font-size: 13px; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.info-card .meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #999; border-top: 1px dashed #eee; padding-top: 12px; }
.info-card .meta .date { color: #889; font-weight: 500; font-size: 12px; }

/* ---------- 分页 ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 30px 0 10px; flex-wrap: wrap; }
.pagination .page {
    min-width: 38px; height: 38px; padding: 0 8px; border-radius: 8px; background: #fff;
    border: 1px solid #e3e6ef; display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #555; font-size: 14px; transition: all .2s;
}
.pagination .page:hover { border-color: #667eea; color: #667eea; }
.pagination .page.active { background: linear-gradient(90deg,#667eea,#f953c6); color: #fff; border: none; font-weight: 600; }
.pagination .page.disabled { opacity: .4; cursor: not-allowed; }
.pagination .page.dots { border: none; cursor: default; }

/* ---------- 详情页 ---------- */
.detail-wrap { background: #fff; border-radius: 16px; padding: 34px; box-shadow: 0 4px 16px rgba(0,0,0,.05); }
.detail-wrap h1 { font-size: 26px; margin-bottom: 12px; line-height: 1.4; }
.detail-crumb { color: #999; font-size: 13px; margin-bottom: 18px; }
.detail-crumb a:hover { color: #667eea; }
.detail-head { display: flex; align-items: center; gap: 20px; background: #f8f9ff; border-radius: 12px; padding: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.detail-head img { width: 260px; height: 160px; object-fit: cover; border-radius: 10px; }
.detail-head .dh-info { flex: 1; min-width: 260px; }
.detail-head .dh-info .row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed #e8eaf3; font-size: 14px; }
.detail-head .dh-info .row:last-child{ border: none; }
.detail-head .dh-info .lbl { color: #888; }
.detail-body h2 { font-size: 20px; margin: 26px 0 12px; padding-left: 12px; border-left: 4px solid #667eea; }
.detail-body p { margin-bottom: 12px; color: #555; font-size: 15px; }

.pub-box { background: linear-gradient(135deg,#667eea,#764ba2,#f953c6); border-radius: 14px; padding: 22px; color: #fff; margin-top: 26px; }
.pub-box h3 { margin-bottom: 12px; font-size: 18px; }
.pub-box .pb-row { display: flex; gap: 10px; padding: 6px 0; font-size: 15px; align-items: center; }
.pub-box .pb-lbl { opacity: .8; min-width: 76px; }
.pub-box .pb-phone { font-weight: 700; letter-spacing: 1px; }
.pub-box .lock { background: rgba(255,255,255,.2); padding: 2px 10px; border-radius: 12px; font-size: 12px; margin-left: 8px; }
.pub-box a.lbtn { margin-left: 8px; background:#fff; color:#667eea; padding:3px 14px; border-radius:14px; font-size:13px; font-weight:600; }

/* ---------- 表单 ---------- */
.form-card { background: #fff; border-radius: 16px; padding: 34px; box-shadow: 0 4px 16px rgba(0,0,0,.06); max-width: 520px; margin: 0 auto; }
.form-card.wide { max-width: 720px; }
.form-card h2 { text-align: center; margin-bottom: 24px; font-size: 24px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; margin-bottom: 6px; font-weight: 500; color: #555; }
.form-row label .req { color: #f953c6; }
.form-control {
    width: 100%; padding: 11px 14px; border: 1.5px solid #e3e6ef; border-radius: 10px;
    transition: border .2s, box-shadow .2s; background: #fbfcff;
}
.form-control:focus { border-color: #667eea; box-shadow: 0 0 0 3px rgba(102,126,234,.12); background: #fff; }
textarea.form-control { resize: vertical; min-height: 110px; }
.form-hint { font-size: 12px; color: #999; margin-top: 5px; }
.form-tip { text-align: center; margin-top: 14px; font-size: 14px; color: #888; }
.form-tip a { color: #667eea; font-weight: 600; }

/* 登录提示横幅 */
.login-banner {
    background: linear-gradient(90deg,#fff7e6,#ffe9d6); color: #9a6b00;
    border: 1px solid #ffd88f; border-radius: 12px; padding: 12px 18px; margin-bottom: 18px;
    display: flex; align-items: center; gap: 10px; font-size: 14px;
}
.login-banner a { color: #667eea; font-weight: 600; margin-left: 6px; }

/* 类型选择卡片（个人/企业） */
.type-select { display: flex; gap: 16px; margin-bottom: 20px; }
.type-opt {
    flex: 1; border: 2px solid #e3e6ef; border-radius: 12px; padding: 16px; text-align: center;
    cursor: pointer; transition: all .2s;
}
.type-opt .ti { font-size: 30px; }
.type-opt h4 { margin: 6px 0 2px; }
.type-opt p { font-size: 12px; color: #999; }
.type-opt.selected { border-color: #667eea; background: #eef1ff; box-shadow: 0 0 0 3px rgba(102,126,234,.1); }

/* ---------- 图片上传预览 ---------- */
.upload-box { display: flex; gap: 16px; flex-wrap: wrap; }
.upload-area {
    width: 180px; height: 140px; border: 2px dashed #c6cce6; border-radius: 12px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #999; cursor: pointer; transition: all .2s; background: #fbfcff;
}
.upload-area:hover { border-color: #667eea; color: #667eea; }
.upload-area .plus { font-size: 32px; line-height: 1; }
.upload-preview { display: flex; gap: 12px; flex-wrap: wrap; }
.upload-preview .pv { position: relative; width: 180px; height: 140px; border-radius: 12px; overflow: hidden; border: 1px solid #eee; }
.upload-preview .pv img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview .pv .del { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; background: rgba(0,0,0,.6); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; }
.upload-preview .pv .del:hover { background: #f953c6; }

/* ---------- 收费/支付 ---------- */
.price-hero { text-align: center; background: linear-gradient(135deg,#667eea,#764ba2,#f953c6); color: #fff; border-radius: 18px; padding: 44px 30px; margin-bottom: 30px; }
.price-hero .amount { font-size: 56px; font-weight: 800; }
.price-hero .amount small { font-size: 22px; }
.price-hero p { opacity: .95; margin-top: 8px; }
.price-features { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 30px; }
.pf-item { background: #fff; border-radius: 14px; padding: 22px; text-align: center; box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.pf-item .fi { font-size: 34px; }
.pf-item h4 { margin: 10px 0 6px; }
.pf-item p { color: #888; font-size: 13px; }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: none; align-items: center; justify-content: center; z-index: 999; }
.modal-mask.show { display: flex; }
.modal-box { background: #fff; border-radius: 16px; width: 400px; max-width: 92%; padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,.2); animation: pop .25s ease; }
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-box h3 { text-align: center; margin-bottom: 18px; }
.modal-box .mb-row { margin-bottom: 14px; }
.modal-box label { display: block; margin-bottom: 6px; color: #666; font-size: 14px; }
.modal-actions { display: flex; gap: 12px; margin-top: 20px; }
.modal-actions .btn { flex: 1; }

/* ---------- 提示 Toast ---------- */
.toast { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.78); color: #fff; padding: 12px 26px; border-radius: 30px; z-index: 9999; font-size: 14px; opacity: 0; transition: all .3s; pointer-events: none; }
.toast.show { opacity: 1; top: 90px; }

/* ---------- 页脚 ---------- */
.footer { background: #20233a; color: #b8bccf; margin-top: 50px; padding: 40px 0 20px; }
.footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { color: #fff; margin-bottom: 14px; font-size: 16px; }
.footer p, .footer li { font-size: 13px; line-height: 2; }
.footer a:hover { color: #fff; }
.footer .f-about { font-size: 13px; line-height: 2; color: #b8bccf; }
.footer .f-logo { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer .f-logo span { background: linear-gradient(90deg,#667eea,#f953c6); -webkit-background-clip: text; background-clip: text; color: transparent; }
footer .footer-bottom { display: block !important; width: 100%; max-width: 1200px; border-top: 1px solid rgba(255,255,255,.1); margin: 26px auto 0; padding: 16px 0 0; text-align: center; font-size: 12px; color: #8b8fa5; }
.footer-bottom a { color: #b8bccf; margin: 0 4px; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom .icp a { color: #c9cdf0; }
.footer-bottom .fb-line { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 14px; line-height: 1.9; }
.footer-bottom .fb-line span, .footer-bottom .fb-line .sep { white-space: nowrap; }
.footer-bottom .fb-copy { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 6px; white-space: nowrap; }
.footer-bottom .fb-copy .icp a { color: #c9cdf0; white-space: nowrap; }

/* ---------- 文章页（协议/关于/联系/反馈） ---------- */
.article { background: #fff; border-radius: 16px; padding: 36px; box-shadow: 0 4px 16px rgba(0,0,0,.05); max-width: 860px; margin: 0 auto; }
.article h1 { text-align: center; font-size: 26px; margin-bottom: 20px; }
.article h2 { font-size: 19px; margin: 22px 0 10px; color: #444; border-left: 4px solid #f953c6; padding-left: 10px; }
.article p { margin-bottom: 12px; color: #555; font-size: 15px; text-indent: 0; }
.article .date-line { text-align: center; color: #999; font-size: 13px; margin-bottom: 20px; }
.article ul { list-style: disc; padding-left: 22px; margin-bottom: 12px; }
.article ul li { margin-bottom: 6px; color: #555; }

/* 联系卡片 */
.contact-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.contact-item { background: #fff; border-radius: 14px; padding: 24px; box-shadow: 0 4px 14px rgba(0,0,0,.05); display: flex; gap: 16px; align-items: flex-start; }
.contact-item .ci { font-size: 32px; }
.contact-item h4 { margin-bottom: 6px; }
.contact-item p { color: #666; font-size: 14px; line-height: 1.9; }

/* 信息/服务特性列表 */
.feature-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin: 14px 0; }
.feature-list li { background: #f8f9ff; border-radius: 10px; padding: 12px 16px; display: flex; gap: 8px; align-items: center; color: #555; font-size: 14px; }
.feature-list li::before { content: "✓"; color: #667eea; font-weight: 700; }

/* 空状态 */
.empty { text-align: center; color: #999; padding: 60px 0; font-size: 16px; }

/* 公告条 */
.notice-bar { background: linear-gradient(90deg,#eef1ff,#ffeef7); color: #555; font-size: 13px; padding: 8px 0; border-bottom: 1px solid #eef0f7; }
.notice-bar .container { display: flex; gap: 10px; align-items: center; }
.notice-bar b { color: #f953c6; }

/* 首页服务流程 */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.step { text-align: center; position: relative; }
.step .sn { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: linear-gradient(135deg,#667eea,#f953c6); color: #fff; font-size: 22px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step h4 { margin-bottom: 6px; }
.step p { color: #888; font-size: 13px; }

/* 分类页头部横幅 */
.page-hero { color: #fff; padding: 46px 0; border-radius: 0; position: relative; overflow: hidden; }
.page-hero.web{ background: linear-gradient(135deg,#667eea,#764ba2); }
.page-hero.mp{ background: linear-gradient(135deg,#f953c6,#ff8a5c); }
.page-hero.iot{ background: linear-gradient(135deg,#ff8a5c,#ffd86f); }
.page-hero h1 { font-size: 32px; margin-bottom: 8px; }
.page-hero p { opacity: .95; font-size: 15px; }

/* 工具条（筛选+搜索） */
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 14px; flex-wrap: wrap; }
.search-box { display: flex; gap: 0; }
.search-box input { width: 240px; padding: 10px 16px; border: 1.5px solid #e3e6ef; border-right: none; border-radius: 22px 0 0 22px; background: #fff; }
.search-box button { padding: 10px 20px; border: none; background: linear-gradient(90deg,#667eea,#f953c6); color: #fff; border-radius: 0 22px 22px 0; cursor: pointer; }
.sort-tabs { display: flex; gap: 8px; }
.sort-tabs a { padding: 7px 16px; border-radius: 18px; background: #fff; border: 1px solid #e3e6ef; font-size: 13px; color: #666; cursor: pointer; }
.sort-tabs a.active { background: linear-gradient(90deg,#667eea,#f953c6); color: #fff; border: none; }

/* 响应式 */
@media (max-width: 900px) {
    .navbar { flex-wrap: wrap; gap: 10px; }
    .nav-menu { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; }
    .cat-cards, .card-grid, .price-features, .steps, .contact-grid { grid-template-columns: repeat(2,1fr); }
    .footer .container { grid-template-columns: repeat(2,1fr); }
    .hero h1 { font-size: 30px; }
}
@media (max-width: 600px) {
    .cat-cards, .card-grid, .price-features, .steps, .contact-grid, .feature-list { grid-template-columns: 1fr; }
    .hero h1 { font-size: 24px; }
    .detail-head { flex-direction: column; }
}
