/*
Theme Name: 狗急加速 Goj Landing
Theme URI: https://goj123.com/
Author: WorkBuddy
Author URI: https://www.workbuddy.cn/
Description: 高相似度落地页主题，支持 7 种语言、后台自定义按钮链接、文章与特色图片展示。
Version: 1.0
Text Domain: goj-landing
*/

html { font-size: 12px; background-color: #a1eeff; }
body {
  margin: 0;
  font-family: Roboto, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #000;
  background: transparent;
}
a { text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

/* 顶部导航 */
.header {
  background: #000;
  color: #fff;
  padding: .75rem;
  width: 100%;
  display: flex;
  align-items: center;
  position: fixed;
  z-index: 5;
  top: 0;
  font-size: 0;
}
.header span { display: inline-block; vertical-align: middle; }
.header img.icon {
  height: 3.2rem;
  width: 3.2rem;
  border-radius: .5rem;
  cursor: pointer;
  display: block;
}
.header .title { flex: 1; margin-left: .75rem; font-size: 1.75rem; cursor: pointer; }
.header .down-triangle {
  margin: .65rem 0 0 .25rem;
  border: .6rem solid #fff;
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-right-color: transparent;
  width: 0;
  height: 0;
}
.header .wai { cursor: pointer; font-size: 1.2rem; position: relative; }
.header .sel { font-size: 1.2rem; }
.header .language-selector {
  background-color: #fff;
  color: #000;
  border: 2px solid #000;
  position: absolute;
  top: 4rem;
  right: 2rem;
  padding: 0 .75rem;
  display: none;
  z-index: 6;
  min-width: 9rem;
}
.header .language-selector .language-item { padding: .75rem 0; }
.header .language-selector .language-item:not(:last-child) {
  border-bottom: 1px dotted #d3d3d3;
}
.header .language-selector .language-item[checked="true"]::after {
  content: "✔︎";
  margin-left: .5rem;
}

/* 主视觉 */
.main { position: absolute; top: 0; left: 0; right: 0; bottom: 274px; }
.views { height: 100%; box-sizing: border-box; background-color: #a1eeff; overflow: hidden; }
.viewport-float { height: 100%; width: 100%; }
.ves, .banner, .sky, .around, .ber { height: 100%; }
.banner { background-color: #a1eeff; }
.sky { background: url("assets/sky.69226871.png") no-repeat 100% 100%; background-size: auto 85%; }
.around { background: url("assets/around.1e12670d.png") no-repeat 100% 100%; background-size: auto 45%; }
.ber { background: url("assets/goji.e152e896.png") no-repeat 100% 100%; background-size: auto 83%; }

.download-parent {
  padding-top: calc(3.5% + 5.24rem);
  padding-left: 12.5%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
#cav {
  margin-bottom: 4rem;
  white-space: nowrap;
  font-size: 3.8em;
  line-height: 1.45;
  text-align: left;
  color: #000;
  width: 100%;
}
.button-row { margin-left: 2px; margin-top: 2px; }
.theme-button {
  display: flex;
  align-items: center;
  background-color: #fff;
  border-radius: 2.5rem;
  border: .2rem solid #000;
  color: #000;
  text-align: center;
  box-sizing: border-box;
  min-width: 17.5rem;
  height: 4rem;
  cursor: pointer;
}
.theme-button .icon-wrap { display: flex; align-items: center; padding-left: 2rem; }
.theme-button img.thumbnail { display: block; height: 24px; width: auto; }
.theme-button .title { font-size: 1.5rem; padding-left: 1rem; padding-right: 2rem; white-space: nowrap; }
.platform-wrap { margin-left: 2px; margin-top: 26px; }
.other-platform {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 1.2rem;
  -webkit-tap-highlight-color: transparent;
}
.other-platform .title { padding-right: .4rem; white-space: nowrap; }
.platform-icons { display: inline-flex; align-items: center; }
.other-platform-icon { display: inline-flex; align-items: center; }
.other-platform-icon img { padding-left: 1rem; height: 24px; width: auto; }
.other-platform-icon img.mac-icon { width: 26px; height: 26px; }

/* 页脚 */
.footer {
  background-color: #000;
  color: #fff;
  padding: 15px 0 17px 0;
  width: 100%;
  font-size: 1.2rem;
  font-weight: 400;
  position: fixed;
  bottom: 0;
  left: 0;
  box-sizing: border-box;
  z-index: 4;
}
.footer > div { width: 70%; margin: auto 15%; }
.footer div { line-height: 2rem; display: flex; flex-direction: column; justify-content: flex-start; }
.footer .footer-text-row,
.footer .footer-text-column { justify-content: space-between; flex-direction: row !important; }
.footer .footer-text-row { display: flex !important; }
.footer .footer-text-column { display: none !important; }
.footer-text-row div div,
.footer-text-column div div {
  font-weight: 900;
  line-height: 3.5rem;
  font-size: 1.6rem;
  color: #666;
}
.footer a { color: #fff; text-decoration: none; cursor: pointer; font-size: 1.2rem; font-weight: 400; line-height: 2rem; }
.footer-text-row br { display: none; }
.footer hr { margin-top: 2.5rem; margin-bottom: 0; border-width: .5px; border-color: #404040; border-style: solid; }
.footer > div:last-child { margin-top: 1rem; }
.copyright { margin-top: 1rem; text-align: center; line-height: 2rem; }
.copyright-line { display: none; }
.footer-text .footer-text-img { display: flex; flex-direction: row; flex-wrap: wrap; margin-bottom: 1.5rem; }
.footer-text .footer-text-img a { width: 2.5rem; height: 2.5rem; }
.footer-text .footer-text-img a:not(:last-child) { margin-right: .8rem; }
.footer-text .footer-text-img a { margin-top: 1rem; }
.footer-text img { width: 100%; height: 100%; }
.space-bottom { margin-bottom: 1.5rem; }
.footer ul { list-style: none; }

/* 响应式 */
@media (min-width: 1101px) and (max-width: 1399px) {
  .download-parent { padding-left: 10%; }
}
@media (min-width: 531px) and (max-width: 800px) {
  #cav { font-size: 3.4rem; }
  .sky { background-size: auto 330px; }
  .copyright-line { display: inline-block; }
}
@media (min-width: 531px) and (max-width: 1100px) {
  .sky { background-size: 86%; }
  .around { background-size: 21%; }
  .ber { background-size: 75%; }
  .download-parent { padding-left: 8%; }
}
@media (min-width: 366px) and (max-width: 530.999px) {
  .footer .footer-text-row { display: none !important; }
  .footer .footer-text-column { display: flex !important; }
  .copyright-line { display: inline-block; }
  .sky { background-size: auto 300px; }
  .around { background-size: 32%; }
  .ber { background-size: 100% auto; }
  .download-parent { padding-top: calc(5.5% + 5.24rem); padding-left: 5.5%; }
  #cav { font-size: 2.8rem; }
  .button-row { margin-top: 3px; }
}
@media (min-width: 150px) and (max-width: 365.999px) {
  .footer .footer-text-row { display: none !important; }
  .footer .footer-text-column { display: flex !important; }
  .copyright-line { display: inline-block; }
  .sky { background-position: bottom; background-size: auto 245px; }
  .around { background-size: 32%; }
  .ber { background-size: 100% auto; }
  .download-parent { padding-top: calc(5.5% + 5.24rem); padding-left: 5.5%; }
  #cav { font-size: 2rem; }
  .button-row { margin-top: 3px; }
}

/* 小屏模式：内容流式排列，页脚随页面滚动（与原站一致） */
body.narrow #main { position: static; }
body.narrow .footer { position: static; }
body.narrow .views,
body.narrow .ves,
body.narrow .banner,
body.narrow .sky,
body.narrow .around,
body.narrow .ber { height: auto; }
body.narrow .platform-wrap { margin-bottom: 19rem; }
@media (max-width: 365.999px) {
  body.narrow .platform-wrap { margin-bottom: 17rem; }
}

/* -------------------------------------------------------------------------
 * WordPress 主题扩展
 * ---------------------------------------------------------------------- */
.header .wai:hover .language-selector,
.header .wai.open .language-selector { display: block; }
.header .language-item a { color: #000; display: block; white-space: nowrap; }

/* 有文章时：页面流式滚动，页脚不再固定 */
body.goj-has-posts #main { position: static; }
body.goj-has-posts .footer { position: static; }
body.goj-has-posts .views,
body.goj-has-posts .ves,
body.goj-has-posts .banner,
body.goj-has-posts .sky,
body.goj-has-posts .around,
body.goj-has-posts .ber { height: auto; }
body.goj-has-posts .platform-wrap { margin-bottom: 6rem; }

/* 首页文章卡片 */
.goj-posts {
  background-color: #a1eeff;
  padding: 4rem 0 7rem;
  box-sizing: border-box;
}
.goj-posts-inner { width: 80%; max-width: 1200px; margin: 0 auto; }
.goj-posts-title {
  font-size: 3rem;
  line-height: 1.4;
  margin: 0 0 3rem;
  text-align: center;
  color: #000;
}
.goj-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
}
.goj-post-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
  display: flex;
  flex-direction: column;
}
.goj-post-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background: #eee;
  overflow: hidden;
}
.goj-post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.goj-post-body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.goj-post-title { font-size: 1.8rem; line-height: 1.4; margin: 0 0 .8rem; }
.goj-post-title a { color: #000; }
.goj-post-meta { font-size: 1.2rem; color: #666; margin-bottom: 1rem; }
.goj-post-excerpt { font-size: 1.3rem; line-height: 1.8; color: #444; flex: 1; font-weight: 400; }
.goj-post-more {
  margin-top: 1.5rem;
  align-self: flex-start;
  display: inline-block;
  background: #cc1424;
  color: #fff;
  border-radius: 2rem;
  padding: .6rem 1.4rem;
  font-size: 1.2rem;
  font-weight: 700;
}

/* 文章详情 / 归档 */
.goj-single { background: #a1eeff; min-height: 100vh; padding: 10rem 0 6rem; box-sizing: border-box; }
.goj-single-inner {
  width: 80%;
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 3rem;
  border-radius: 1rem;
  box-sizing: border-box;
}
.goj-back { display: inline-block; font-size: 1.4rem; color: #000; margin-bottom: 2rem; }
.goj-article-title { font-size: 3rem; line-height: 1.4; margin: 0 0 1rem; }
.goj-article-meta { font-size: 1.2rem; color: #666; margin-bottom: 2rem; }
.goj-article-thumb img { width: 100%; height: auto; display: block; border-radius: .5rem; margin-bottom: 2rem; }
.goj-article-content { font-size: 1.5rem; line-height: 2; color: #333; font-weight: 400; }
.goj-article-content img { max-width: 100%; height: auto; }
.goj-article-content a { color: #06f; text-decoration: underline; }

@media (max-width: 900px) {
  .goj-post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .goj-post-grid { grid-template-columns: 1fr; }
  .goj-posts-inner, .goj-single-inner { width: 90%; }
  .goj-single { padding-top: 8rem; }
  .goj-single-inner { padding: 2rem; }
  .goj-article-title { font-size: 2.2rem; }
}

/* 阿拉伯语 RTL */
body.goj-rtl #cav { text-align: right; }
body.goj-rtl .download-parent { padding-left: 0 !important; padding-right: 12.5% !important; }
body.goj-rtl .other-platform { flex-direction: row-reverse; }
body.goj-rtl .theme-button { flex-direction: row-reverse; }
body.goj-rtl .header .title { margin-left: 0; margin-right: .75rem; }
body.goj-rtl .goj-post-body { text-align: right; }
body.goj-rtl .goj-post-more { align-self: flex-end; }
@media (min-width: 366px) and (max-width: 530.999px) {
  body.goj-rtl .download-parent { padding-right: 5.5% !important; }
}
@media (max-width: 365.999px) {
  body.goj-rtl .download-parent { padding-right: 5.5% !important; }
}

/* 有文章时仍保持首屏主视觉的原始高度 */
body.goj-has-posts .views,
body.goj-has-posts .ves,
body.goj-has-posts .banner,
body.goj-has-posts .sky,
body.goj-has-posts .around,
body.goj-has-posts .ber { min-height: calc(100vh - 274px); }
@media (max-width: 531.999px) {
  body.goj-has-posts .views,
  body.goj-has-posts .ves,
  body.goj-has-posts .banner,
  body.goj-has-posts .sky,
  body.goj-has-posts .around,
  body.goj-has-posts .ber { min-height: 566px; }
}
