/* =========================================================
   阿里云虚拟主机渠道展示站 全站样式
   ========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei","PingFang SC","Helvetica Neue",Arial,sans-serif; font-size: 14px; color: #333; background: #f5f6f7; line-height: 1.6; }
a { color: #333; text-decoration: none; transition: color .2s; }
a:hover { color: #ff6a00; }
img { max-width: 100%; vertical-align: middle; border: 0; }
ul, ol { list-style: none; }
.container { width: 1180px; max-width: 96%; margin: 0 auto; }
.btn { display: inline-block; padding: 10px 26px; border-radius: 4px; font-size: 15px; border: 0; cursor: pointer; }
.btn-orange { background: #ff6a00; color: #fff; }
.btn-orange:hover { background: #e55d00; color: #fff; }
.btn-white { background: #fff; color: #ff6a00; }
.btn-white:hover { background: #fff3e8; color: #ff6a00; }
.num-img { height: 26px; vertical-align: middle; }
.num-img-lg { height: 30px; }
.section { padding: 50px 0; }
.section-title { text-align: center; margin-bottom: 34px; }
.section-title h2 { font-size: 28px; color: #181818; }
.section-title p { color: #999; margin-top: 8px; font-size: 14px; }

/* ---------- 顶栏 ---------- */
.topbar { background: #10151a; color: #b8c0c8; font-size: 12px; line-height: 36px; }
.topbar .container { display: flex; justify-content: space-between; flex-wrap: wrap; }
.topbar-item { color: #ffa14a; margin-left: 10px; }
.topbar-right .num-img { height: 22px; }

/* ---------- 头部导航 ---------- */
.header { background: #fff; border-bottom: 2px solid #ff6a00; position: sticky; top: 0; z-index: 999; }
.header .container { display: flex; align-items: center; height: 76px; }
.logo a { display: flex; align-items: center; }
.logo img { height: 44px; margin-right: 12px; }
.logo-text h1 { font-size: 22px; color: #181818; line-height: 1.2; }
.logo-text p { font-size: 12px; color: #999; }
.nav { margin-left: auto; display: flex; }
.nav a { padding: 0 18px; font-size: 15px; color: #333; line-height: 76px; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a.active { color: #ff6a00; border-bottom-color: #ff6a00; }
.nav-toggle { display: none; font-size: 24px; cursor: pointer; margin-left: auto; }

/* ---------- 首屏横幅 ---------- */
.hero { background-size: cover; background-position: center; color: #fff; }
.hero-inner { padding: 90px 0 100px; }
.hero h2 { font-size: 40px; margin-bottom: 14px; text-shadow: 0 1px 6px rgba(0,0,0,.3); }
.hero p { font-size: 17px; opacity: .92; margin-bottom: 30px; text-shadow: 0 1px 4px rgba(0,0,0,.3); }
.hero-actions .btn { margin-right: 14px; }

/* ---------- 板块: 六大优势 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.feature-card { background: #fff; min-width: 0; border: 1px solid #eee; border-radius: 6px; padding: 28px 24px; transition: box-shadow .25s, transform .25s; }
.feature-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-4px); }
.feature-card img { width: 48px; height: 48px; margin-bottom: 14px; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { color: #777; font-size: 13px; }

/* ---------- 产品区 ---------- */
.prod-tabs { display: flex; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; gap: 8px; }
.prod-tab { padding: 9px 22px; border: 1px solid #ddd; border-radius: 4px; background: #fff; cursor: pointer; font-size: 14px; color: #555; }
.prod-tab:hover { border-color: #ff6a00; color: #ff6a00; }
.prod-tab.active { background: #ff6a00; border-color: #ff6a00; color: #fff; }
.prod-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.prod-card { background: #fff; min-width: 0; border: 1px solid #eee; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.prod-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,.10); transform: translateY(-4px); }
.prod-card-top { background: linear-gradient(135deg,#ff6a00,#ff9438); color: #fff; padding: 18px 16px 12px; }
.prod-card-top h3 { font-size: 16px; margin-bottom: 8px; }
.prod-card-top .prod-price { font-size: 20px; font-weight: 700; }
.prod-card-top .prod-price em { font-style: normal; font-size: 14px; margin-right: 2px; }
.prod-card-top .prod-price small { font-size: 12px; font-weight: 400; opacity: .9; }
.prod-card-tags { margin-top: 6px; }
.tag { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 10px; background: rgba(255,255,255,.25); margin-right: 4px; }
.prod-card-body { padding: 14px 16px; flex: 1; }
.prod-card-body li { font-size: 13px; color: #555; padding: 4px 0; border-bottom: 1px dashed #f0f0f0; display: flex; justify-content: space-between; }
.prod-card-body li b { color: #333; font-weight: 600; }
.prod-card-foot { padding: 12px 16px; border-top: 1px solid #f0f0f0; display: flex; gap: 10px; }
.prod-card-foot .btn { flex: 1; text-align: center; padding: 8px 0; font-size: 14px; }
.btn-detail { background: #f5f6f7; color: #333; }
.btn-detail:hover { background: #e8e8e8; color: #333; }
.btn-buy { background: #ff6a00; color: #fff; }
.btn-buy:hover { background: #e55d00; color: #fff; }

/* ---------- 对比表 ---------- */
.compare-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 720px; }
.compare-table th, .compare-table td { border: 1px solid #e8e8e8; padding: 11px 14px; font-size: 13px; text-align: center; }
.compare-table th { background: #ff6a00; color: #fff; font-weight: 600; }
.compare-table td:first-child { background: #fafafa; font-weight: 600; width: 140px; }

/* ---------- 应用场景 ---------- */
.scene-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.scene-card { background: #fff; min-width: 0; border: 1px solid #eee; border-radius: 6px; padding: 26px 22px; text-align: center; }
.scene-card img { width: 72px; height: 72px; margin-bottom: 14px; }
.scene-card h3 { font-size: 17px; margin-bottom: 8px; }
.scene-card p { color: #777; font-size: 13px; }

/* ---------- 客户案例 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; }
.case-card { background: #fff; min-width: 0; border: 1px solid #eee; border-radius: 6px; padding: 20px 16px; text-align: center; }
.case-card img { height: 34px; margin-bottom: 10px; }
.case-card h4 { font-size: 14px; margin-bottom: 6px; }
.case-card p { font-size: 12px; color: #999; line-height: 1.8; text-align: left; }

/* ---------- 资讯 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.news-card { background: #fff; border: 1px solid #eee; border-radius: 6px; padding: 20px; min-width: 0; }
.news-card .date { font-size: 12px; color: #999; }
.news-card h3 { font-size: 16px; margin: 8px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-card h3 a:hover { color: #ff6a00; }
.news-card p { font-size: 13px; color: #777; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.news-more { text-align: center; margin-top: 24px; }

/* ---------- 选购须知(产品大全页) ---------- */
.notice-bar { background: #fff8f0; border: 1px solid #ffd9b8; border-left: 4px solid #ff6a00; border-radius: 6px; padding: 16px 22px; margin-bottom: 22px; }
.notice-bar h3 { font-size: 15px; color: #a24e00; margin-bottom: 10px; }
.notice-bar ul { list-style: none; }
.notice-bar li { font-size: 13px; color: #7a5a3a; line-height: 1.9; padding-left: 16px; position: relative; }
.notice-bar li::before { content: "•"; position: absolute; left: 2px; color: #ff6a00; font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 900px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid #eee; border-radius: 6px; margin-bottom: 12px; overflow: hidden; }
.faq-q { padding: 15px 20px; cursor: pointer; font-weight: 600; position: relative; }
.faq-q::after { content: "+"; position: absolute; right: 20px; color: #ff6a00; font-size: 20px; }
.faq-item.open .faq-q::after { content: "-"; }
.faq-a { display: none; padding: 4px 20px 16px; color: #666; }

/* ---------- 面包屑 ---------- */
.crumb { background: #fff; border-bottom: 1px solid #eee; padding: 12px 0; font-size: 13px; color: #999; }
.crumb a { color: #999; }
.crumb a:hover { color: #ff6a00; }
.page-main { background: #fff; border: 1px solid #eee; border-radius: 6px; padding: 30px 34px; margin: 24px 0 40px; }
.page-title { font-size: 24px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid #f0f0f0; }

/* ---------- 产品详情 ---------- */
.prod-detail-head { display: flex; gap: 30px; background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 30px; margin: 24px auto; width: 96%; max-width: 1180px; flex-wrap: wrap; }
.prod-detail-left { flex: 1; min-width: 300px; }
.prod-detail-left h1 { font-size: 24px; margin-bottom: 12px; }
.prod-detail-left .price-box { background: #fff7f0; border: 1px solid #ffd9b8; border-radius: 6px; padding: 16px 20px; margin-bottom: 16px; }
.prod-detail-left .price-box .price { font-size: 30px; color: #ff6a00; font-weight: 700; }
.prod-detail-left .price-box .price em { font-style: normal; font-size: 18px; }
.prod-detail-left .price-box .price small { font-size: 13px; color: #999; font-weight: 400; }
.prod-detail-left .price-box p { font-size: 12px; color: #999; margin-top: 6px; }
.prod-detail-left .tag-row { margin-bottom: 16px; }
.prod-detail-right { width: 380px; min-width: 300px; }
.prod-detail-right .card { background: #fafbfc; border: 1px solid #eee; border-radius: 6px; padding: 20px; }
.prod-detail-right .card h3 { font-size: 16px; margin-bottom: 14px; }
.prod-detail-right .card li { font-size: 13px; padding: 6px 0; border-bottom: 1px dashed #e8e8e8; display: flex; justify-content: space-between; gap: 12px; }
.prod-detail-right .card li b { color: #333; text-align: right; }
.prod-detail-actions { display: flex; gap: 14px; margin-top: 16px; }
.prod-detail-actions .btn { flex: 1; text-align: center; padding: 12px 0; font-size: 15px; }
.prod-spec { margin-bottom: 30px; }
.prod-spec h2 { font-size: 20px; margin-bottom: 16px; padding-left: 12px; border-left: 4px solid #ff6a00; }
.spec-table { width: 100%; border-collapse: collapse; background: #fff; }
.spec-table td { border: 1px solid #eee; padding: 10px 16px; font-size: 13px; }
.spec-table td:first-child { background: #fafafa; width: 160px; font-weight: 600; color: #555; }
.prod-desc { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 26px 30px; margin-bottom: 30px; }
.prod-desc h2 { font-size: 20px; margin-bottom: 16px; padding-left: 12px; border-left: 4px solid #ff6a00; }
.prod-desc p { color: #555; margin-bottom: 10px; }

/* ---------- 文章 ---------- */
.article-list .article-item { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px dashed #e8e8e8; }
.article-item .a-date { font-size: 12px; color: #999; min-width: 80px; }
.article-item h3 { font-size: 17px; margin-bottom: 6px; }
.article-item h3 a:hover { color: #ff6a00; }
.article-item p { font-size: 13px; color: #777; }
.article-detail h1 { font-size: 24px; line-height: 1.4; }
.article-meta { color: #999; font-size: 13px; margin: 12px 0 22px; padding-bottom: 14px; border-bottom: 1px solid #f0f0f0; }
.article-content { font-size: 15px; color: #444; }
.article-content h2 { font-size: 20px; margin: 26px 0 12px; color: #181818; }
.article-content h3 { font-size: 17px; margin: 20px 0 10px; color: #181818; }
.article-content p { margin-bottom: 12px; }
.article-content ul { margin: 0 0 14px 20px; list-style: disc; }
.article-content ol { margin: 0 0 14px 20px; list-style: decimal; }
.article-content li { margin-bottom: 4px; }
.article-content img { display: block; margin: 14px auto; border-radius: 4px; }
.article-pager { margin-top: 26px; padding-top: 16px; border-top: 1px solid #f0f0f0; color: #666; font-size: 14px; }
.article-pager div { margin: 4px 0; }

/* ---------- 关于/联系 ---------- */
.about-content p { color: #555; margin-bottom: 14px; font-size: 15px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact-item { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 26px; }
.contact-item h3 { font-size: 17px; margin-bottom: 14px; color: #181818; }
.contact-item li { padding: 8px 0; font-size: 14px; color: #555; display: flex; align-items: center; }
.contact-item li .label { min-width: 90px; color: #999; }
.contact-cta { text-align: center; margin-top: 26px; }

/* ---------- 分页 ---------- */
.pagination { text-align: center; margin: 26px 0; }
.pagination a, .pagination .current { display: inline-block; min-width: 34px; height: 34px; line-height: 34px; padding: 0 8px; margin: 0 3px; border: 1px solid #ddd; background: #fff; color: #555; border-radius: 4px; font-size: 13px; }
.pagination a:hover { border-color: #ff6a00; color: #ff6a00; }
.pagination .current { background: #ff6a00; border-color: #ff6a00; color: #fff; }

/* ---------- 页脚 ---------- */
.footer { background: #10151a; color: #9aa4ad; margin-top: 30px; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 34px; padding: 40px 0 26px; }
.footer-col { min-width: 0; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col p { font-size: 13px; line-height: 1.9; }
.footer-col ul li { padding: 5px 0; }
.footer-col ul li a { color: #9aa4ad; font-size: 13px; }
.footer-col ul li a:hover { color: #ff6a00; }
.contact-list .num-img { height: 22px; }
/* 兜底: 部分采集文章正文存在未闭合标签, 会把 footer 包进 .article-content 作用域,
   此处以更高特异性强制重置 footer 内部布局, 保证号码图片行内对齐、列表/段落样式不受污染 */
.footer .num-img,
.footer .contact-list .num-img,
.footer .wx-num .num-img { display: inline-block; margin: 0; border-radius: 0; vertical-align: middle; }
.footer p { margin-bottom: 0; }
.footer ul, .footer ol { margin: 0; padding: 0; list-style: none; }
.footer li { margin-bottom: 0; }
.footer-bottom { border-top: 1px solid #232a31; padding: 16px 0 20px; text-align: center; font-size: 13px; }
.footer-bottom a { color: #c3cbd3; }
.footer-bottom a:hover { color: #ff6a00; }
.footer-tip { color: #6b747d; font-size: 12px; margin-top: 4px; }

/* ---------- 悬浮客服 ---------- */
.kefu { position: fixed; right: 8px; top: 35%; z-index: 1000; width: 96px; background: #fff; border: 1px solid #ffd9b8; border-radius: 8px; box-shadow: 0 6px 22px rgba(0,0,0,.14); cursor: grab; user-select: none; }
.kefu:active { cursor: grabbing; }
.kefu-head { background: #ff6a00; color: #fff; text-align: center; font-size: 14px; padding: 10px 0; border-radius: 8px 8px 0 0; cursor: move; }
.kefu-body { padding: 8px; }
.kefu-item { display: flex; flex-direction: column; align-items: center; padding: 8px 0; border-radius: 6px; font-size: 12px; color: #555; }
.kefu-item:hover { background: #fff7f0; color: #ff6a00; }
.kefu-icon { width: 30px; height: 30px; margin-bottom: 4px; background-size: contain; background-repeat: no-repeat; background-position: center; display: inline-block; }
.kefu-icon-qq { background-image: url(../images/icon-qq.png); }
.kefu-icon-wx { background-image: url(../images/icon-wx.png); }
.kefu-modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1200; display: flex; align-items: center; justify-content: center; }
.kefu-modal { width: 340px; background: #fff; border-radius: 10px; overflow: hidden; }
.kefu-modal-title { background: #ff6a00; color: #fff; font-size: 16px; padding: 14px 18px; position: relative; }
.kefu-modal-close { position: absolute; right: 14px; top: 8px; font-size: 22px; color: #fff; opacity: .85; }
.kefu-modal-close:hover { color: #fff; opacity: 1; }
.kefu-modal-body { padding: 24px 20px; text-align: center; }
.wx-tip { color: #666; margin-bottom: 12px; }
.wx-qr { width: 180px; height: 180px; border: 1px solid #eee; }
.wx-num { margin-top: 14px; color: #555; }
.wx-num .num-img { height: 28px; margin-left: 4px; }
.wx-copy { margin-top: 12px; }
.wx-copy button { background: #07c160; color: #fff; border: 0; border-radius: 4px; padding: 8px 22px; cursor: pointer; }
.wx-copy button:hover { background: #06ad56; }
.buy-options { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.buy-option { display: block; padding: 12px 0; border-radius: 6px; font-size: 15px; color: #fff; }
.buy-qq { background: #12b7f5; }
.buy-qq:hover { background: #0fa3d9; color: #fff; }
.buy-wx { background: #07c160; }
.buy-wx:hover { background: #06ad56; color: #fff; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
    .prod-grid { grid-template-columns: repeat(2,1fr); }
    .feature-grid, .scene-grid { grid-template-columns: repeat(2,1fr); }
    .case-grid { grid-template-columns: repeat(3,1fr); }
    .news-grid { grid-template-columns: repeat(2,1fr); }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; border-top: 1px solid #eee; box-shadow: 0 6px 16px rgba(0,0,0,.08); }
    .nav.open { display: flex; }
    .nav a { line-height: 46px; padding: 0 20px; border-bottom: 1px solid #f5f5f5; }
    .nav-toggle { display: block; }
    .prod-detail-head { flex-direction: column; }
    .prod-detail-right { width: 100%; }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .prod-grid, .feature-grid, .scene-grid, .news-grid { grid-template-columns: 1fr; }
    .case-grid { grid-template-columns: repeat(2,1fr); }
    .hero h2 { font-size: 26px; }
    .hero-inner { padding: 60px 0 70px; }
    .topbar-right { display: none; }
}
