/*
 Theme Name:   Fountain Blog Child
 Template:     fountain-blog
 Version:      1.0.0  
 Author: Chulan
*/

/* 字体声明 */
@font-face {
  font-family: 'Avenir';
  src: url('./fonts/Avenir-Roman.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Avenir';
  src: url('./fonts/Avenir-Heavy.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Avenir';
  src: url('./fonts/Avenir-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* 设置全局字体变量 */
:root {
  --font-primary: 'Avenir', sans-serif;
  --fontFamily: 'Avenir', sans-serif;
}

/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 重置常用标签的默认样式 */
h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dt, dd, blockquote {
  margin: 0;
  padding: 0;
}

/* 去除列表样式 */
ul, ol {
  list-style: none;
}

/* 去除链接下划线 */
a {
  text-decoration: none;
}

/* 图片默认样式 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 表单元素样式重置 */
button, input, select, textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* 隐藏WordPress管理员工具栏 */
#wpadminbar {
  display: none !important;
}

html {
  margin-top: 0 !important;
  height: 100%;
}

:root {
  --background-color: #231e1e;
}

body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 主要内容区域 */
#primary {
  flex: 1;
}

/* Header Styles */
.header {
  position: sticky;
  left: 0;
  top: 0;
  z-index: 50;
  width: 100%;
  background-color: var(--background-color);
}

/* Desktop Menu Styles */
.desktop-nav {
  display: none;
  max-width: 1560px;
  margin: 0 auto;
  width: 100%;
  overflow: hidden;
}

.desktop-nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.desktop-nav__left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.desktop-nav__logo {
  display: block;
  text-decoration: none;
}

.desktop-nav__logo-image {
  width: 29.708px;
  height: 23px;
}

.desktop-nav__links {
  display: flex;
  gap: 40px;
}

.desktop-nav__link {
  text-decoration: none;
}

.desktop-nav__link-text {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 700;
  color: white;
}

.desktop-nav__link:hover .desktop-nav__link-text {
  opacity: 0.8;
}

/* Mobile Menu Styles */
.mobile-nav {
  width: 100%;
  height: 48px;
}

.mobile-nav__header {
  z-index: 50;
  height: 48px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--background-color);
  padding: 12px 16px;
  overflow: hidden;
  box-sizing: border-box;
}

.mobile-nav__logo {
  display: block;
  text-decoration: none;
}

.mobile-nav__logo-image {
  width: 29.708px;
  height: 23px;
}

.mobile-nav__toggle {
  position: relative;
  height: 24px;
  width: 24px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.mobile-nav__menu-icon,
.mobile-nav__close-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  transition: all 0.3s;
}

.mobile-nav__menu-icon {
  opacity: 1;
  transform: scale(1);
}

.mobile-nav__close-icon {
  opacity: 0;
  transform: scale(0);
}

.mobile-nav.active .mobile-nav__menu-icon {
  opacity: 0;
  transform: scale(0);
}

.mobile-nav.active .mobile-nav__close-icon {
  opacity: 1;
  transform: scale(1);
}

.mobile-nav__content {
  position: absolute;
  top: 48px;
  left: 0;
  z-index: 30;
  width: 100%;
  height: 0;
  overflow: hidden;
  background-color: var(--background-color);
  padding-left: 16px;
  opacity: 0.9;
  transition: all 0.5s;
  box-sizing: border-box;
}

.mobile-nav.active .mobile-nav__content {
  height: calc(100vh - 48px);
  padding-top: 16px;
  opacity: 0.9;
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mobile-nav__link {
  text-decoration: none;
}

.mobile-nav__link-text {
  font-size: 16px;
  font-weight: 700;
  color: white;
}

/* Footer Styles */
.footer {
  color: white;
  background-color: #2F2B2B;
}

.footer-main {
  background-color: #2F2B2B;
  padding: 64px 16px;
  box-sizing: border-box;
}

/* Base Styles (0-649px) */
.footer-container {
  display: flex;
  flex-direction: column;
}

.footer-info {
  margin-bottom: 32px;
  border-bottom: 1px solid #aaaaaa;
  padding-bottom: 32px;
}

.footer-logo {
  height: 48px;
  width: 62px;
}

.footer-title {
  margin-top: 8px;
  margin-bottom: 18px;
  font-size: 28px;
  font-weight: 900;
  line-height: 40px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  line-height: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.address-list {
  display: flex;
  align-items: center;
}

.address-divider {
  margin: 0 16px;
  width: 1px;
}

.address-item {
  cursor: pointer;
}

.address-item:hover {
  opacity: 0.8;
}

.address-item.active {
  color: #FF4E2A;
}

.footer-links {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.footer-section {
  display: flex;
  max-width: 120px;
  flex-direction: column;
  gap: 20px;
}

.footer-section-title {
  font-size: 16px;
  font-weight: bold;
  white-space: nowrap;
}

.footer-link {
  text-decoration: none;
  color: white;
}

.footer-link:hover {
  opacity: 0.8;
  color: white;
}

/* Footer Bottom */
.footer-bottom-wrapper {
  width: 100%;
  background-color: black;
}

.footer-bottom {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  box-sizing: border-box;
  max-width: 1568px;
}

.social-media {
  display: flex;
  gap: 24px;
}

.social-icon {
  height: 24px;
  width: 24px;
}

.social-icon:hover {
  opacity: 0.8;
}

.footer-bottom-text {
  align-items: center;
  font-size: 12px;
}

.footer-policies {
  display: flex;
  gap: 16px;
  font-weight: bold;
}

.copyright {
  margin-top: 4px;
  display: inline-block;
}

/* Responsive Design */
/* Default - Mobile (<650px) */
@media screen and (max-width: 649px) {
  .mobile-nav {
    display: block;
  }
  .desktop-nav {
    display: none;
  }
  .mobile-nav__header {
    height: 48px;
    padding: 12px 16px;
  }
}

/* sm - Tablet (≥650px) */
@media screen and (min-width: 650px) and (max-width: 1023px) {
  .mobile-nav {
    display: block;
  }
  .desktop-nav {
    display: none;
  }
  .mobile-nav__header {
    height: 48px;
    padding: 12px 16px;
  }
  .footer-main {
    padding: 24px;
  }
}

/* md - Small Screen (≥1024px) */
@media screen and (min-width: 1024px) and (max-width: 1439px) {
  .mobile-nav {
    display: none;
  }
  .desktop-nav {
    display: block;
  }
  .desktop-nav__container {
    height: 32px;
    padding: 20px 64px;
    box-sizing: content-box;
  }
  .desktop-nav__logo-image {
    width: 41px;
    height: 32px;
  }
  .footer-main {
    padding: 80px 64px;
  }
  .footer-container {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
  }
  .footer-info {
    flex: 1;
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
  }
  .footer-divider {
    display: block;
    width: 1px;
    height: inherit;
    min-height: inherit;
    margin: 0 48px;
    background-color: #aaaaaa;
    align-self: stretch;
  }
  .footer-links {
    flex: 1;
  }
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 64px;
  }
  .footer-bottom-text {
    order: -1;
    display: flex;
    gap: 16px;
  }
  .copyright {
    margin-top: 0;
  }
}

/* lg - Large Screen (≥1440px) */
@media screen and (min-width: 1440px) {
  .mobile-nav {
    display: none;
  }
  .desktop-nav {
    display: block;
  }
  .desktop-nav__container {
    height: 48px;
    padding: 18px 64px;
    box-sizing: content-box;
    max-width: 1560px;
    margin: 0 auto;
  }
  .desktop-nav__logo-image {
    width: 62px;
    height: 48px;
  }
  .footer-main {
    padding: 120px 64px;
    max-width: 1568px;
    margin: 0 auto;
    box-sizing: border-box;
  }
  .footer-container {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
  }
  .footer-info {
    flex: 1;
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
  }
  .footer-divider {
    display: block;
    width: 1px;
    height: inherit;
    min-height: inherit;
    margin: 0 48px;
    background-color: #aaaaaa;
    align-self: stretch;
  }
  .footer-links {
    flex: 1;
  }
  .footer-logo {
    height: 72px;
    width: 93px;
  }
  .footer-title {
    font-size: 32px;
    line-height: normal;
    margin-bottom: 20px;
  }
  .footer-contact {
    gap: 12px;
    font-size: 14px;
    line-height: 24px;
  }
  .footer-section-title {
    font-size: 20px;
  }
  .footer-bottom {
    flex-direction: row;
    margin: 0 auto;
    max-width: 1568px;
    padding: 20px 64px;
    justify-content: space-between;

  }
  .footer-bottom-text {
    display: flex;
    flex-direction: row;
    font-size: 14px;
    line-height: 24px;
    gap: 24px;
    order: -1;
    justify-content: space-between;
  }
  .footer-policies {
    gap: 24px;
  }
}

/* 页面布局 */
body > .container {
  margin-top: 30px;
  min-height: calc(100vh - 84px - 553px); /* 100vh - header高度 - footer高度 */
}

@media screen and (max-width: 1023px) {
  body > .container {
    min-height: calc(100vh - 48px - 553px); /* 100vh - 移动端header高度 - footer高度 */
  }
} 
#primary button,
#primary input,
#primary select,
#primary optgroup,
#primary textarea,
#primary p {
  color: #2f3633;
  margin-bottom: 24px;
}

#primary article ul {
  list-style: disc;
}

#primary article ul {
  margin-bottom: 24px;
}

#primary .entry-content p a,
#primary .entry-content ul a {
  text-decoration: underline;
}

#primary .submit {
  color: #fff
}

.wp-block-heading {
  margin-bottom: 1rem;
}

.wp-block-buttons {
  margin-top: 28px;
  margin-bottom: 28px;
}

body {
  margin: 0;
  padding: 0;
  font-size: 16px;
}

body .container {
  margin-bottom: 30px;
}

ul,
ol {
  margin-left: 0;
  padding-left: 20px;
}