/**
 * BUDDY 单站增强 · 不盖原风，无站群 Hub
 */
:root {
  --buddy-red: #ee0000;
  --buddy-orange: #e85d04;
}

html { -webkit-font-smoothing: antialiased; }

body[data-buddy-theme="orange"] { --buddy-accent: var(--buddy-orange); }
body:not([data-buddy-theme="orange"]) { --buddy-accent: var(--buddy-red); }

#buddy-site-hub { display: none !important; }

.site_goto_center,
.site_goto_center_two,
.hosting_plans_center_div {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.date_wrap b.date { display: inline-block; margin-right: 8px; }

.plans_button:hover,
.button1-s:hover { filter: brightness(1.06); }

#popupContainer {
  backdrop-filter: blur(4px);
  background-color: rgba(0, 0, 0, 0.82) !important;
}
#popupImage {
  border: 3px solid var(--buddy-accent, var(--buddy-red)) !important;
  border-radius: 8px !important;
}
#popupContainer .buddy-popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  z-index: 10001;
  line-height: 30px;
  text-align: center;
}

img.buddy-hero-fallback,
img[data-buddy-patched] {
  background: #111;
}

img { max-width: 100%; height: auto; }

@media (max-width: 768px) {
  .site_goto_center {
    width: 100% !important;
    padding: 0 10px;
    box-sizing: border-box;
  }
}

/* 各站原始配色：仅补强按钮/标题，不盖整站 darkblue/red 皮肤 */
body[data-buddy-theme="blue"] { --buddy-accent: #3d7ec8; }
body[data-buddy-theme="red"] { --buddy-accent: #ee0000; }
body[data-buddy-theme="orange"] { --buddy-accent: #e85d04; }

body[data-buddy-theme] .plans_button,
body[data-buddy-theme] .button1-s,
body[data-buddy-theme] a.plans_button {
  background-color: var(--buddy-accent) !important;
  border-color: var(--buddy-accent) !important;
}

/* Revolution 轮播：去掉镜像 1000×1000 占位高度 */
.bannercontainer,
.banner.revslider-initialised {
  width: 100% !important;
  max-width: 1000px;
  height: 440px !important;
  min-height: 440px;
  overflow: hidden;
  margin: 0 auto;
}
.bannercontainer .slotholder,
.bannercontainer .slotholder img.defaultimg {
  width: 100% !important;
  max-width: 1000px !important;
  height: 440px !important;
  max-height: 440px !important;
}
img.slider_img_pur {
  max-width: 450px !important;
  width: 450px !important;
  height: auto !important;
}

/* 浮动清场，页脚勿顶到主区上方 */
footer,
.footer_main,
.hosting_plans_area_main,
.punchline_text {
  clear: both;
  width: 100%;
  float: none;
}
.footer_main {
  position: relative;
  z-index: 1;
}
.hosting_plans_center_div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  float: none;
  margin: 0 auto;
}
.hosting_plans_area .plan_box {
  float: none;
  flex: 0 0 220px;
}

/* 站群互链横条 */
.buddy-site-links-wrap {
  clear: both;
  width: 100%;
  overflow-x: auto;
}
table.buddy-site-links {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-collapse: collapse;
}
table.buddy-site-links td {
  text-align: center;
  vertical-align: middle;
  padding: 8px 4px;
}
table.buddy-site-links img {
  display: block;
  margin: 0 auto 6px;
}

#buddy-site-hub { display: none !important; }
.buddy-lead-wechat { margin-top: 10px; font-size: 14px; }
.buddy-lead-wechat input { width: 100%; margin-top: 4px; }
