section, div, a {box-sizing: border-box;}

h1, h2, h3, ul, p {margin: 0; padding: 0; }

li {margin: 0;}




/* ===== Variables & Base Styles ===== */
:root {
  --primary-color: #1494a5;
  --primary-hover: #bf124e;
  --secondary-color: #ffc562;
  --secondary-hover: #ffb83e;
  --bg-color: #111;
  --text-color: #fff;
  --modal-bg: rgba(0, 0, 0, 0.5);
  --space: 0.5rem;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  text-align: center;
  font-size: 10px;
}

h1, h2, p { margin: var(--space) 0; }

a {
  color: var(--primary-color);
  transition: color 0.1s ease;
}
a:hover { color: var(--primary-hover); }

/* ===== Layout Components ===== */
section {
  margin: 50px 0;
}
section:last-child { margin-bottom: 50px; }

.logo img {
  width: 128px;
  background: white;
  border-radius: 128px;
}

.title {
  font-size: 150%;
}

.logo-text {width:128px; display:block; margin:0 auto; margin-top:10px;}

/* ===== Contact Styles ===== */
.contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 auto;
}

.contacts img {
  width: 32px;
  background: white;
  border-radius: 100px;
  padding: 4px;
  opacity: 0.75;
}

.contacts a {
  margin: 0 auto;
  width: 80%;
  font-size: 13px;                                          /* CONTACTS FONT SIZE */
  color: #222;
  text-decoration: none;
  padding: var(--space) calc(var(--space) * 3);
  background: var(--secondary-color);
  transition: all 0.1s ease;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contacts a:hover {
  background: var(--secondary-hover);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(255, 94, 0, 0.4);
}

.contacts a span:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 10px;
}

.press-button { opacity: 0.8; }



/* ===== Posts link and post page ===== */

section.posts-link {padding: var(--space) 0;}

.posts-link a {
  background: var(--primary-color);
  color: var(--bg-color);
  text-decoration: none;
  padding: var(--space) calc(var(--space) * 2);
  border-radius: 100px;
  transition: background 0.1s ease;
  font-size: 120%;
}
.posts-link a:hover { background: #0b72b7; }

.posts-title { margin-top:0;}


.posts-list a {
  display: inline-block;
  border-radius: 3px;
  padding: 10px 20px;
  border: 2px solid var(--primary-color);
  text-decoration: none;
  margin-bottom: 10px;
  transition: all 0.1s ease;
}
.posts-list a:hover {
  color: var(--secondary-color);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(20, 148, 165, 0.4);
}

.post-page {
  border-radius: 3px;
  background: #eee;
  color: #111;
  display: inline-block;
  width: 80%;
  max-width: 1200px;
  text-align: left;
  padding: calc(var(--space) * 3) calc(var(--space) * 4);
  box-sizing: border-box;
}








/* ===== Utility Classes ===== */
.now { font-size: 90%; }

#clock {
  background: #333;
  color: #aaa;
  padding: 2px 6px;
  border-radius: 2px;
}




/* ===== Modal Styles ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--modal-bg);
  z-index: 1000;
}

.modal-content {
  background: white;
  color: #111;
  margin: 15% auto;
  padding: 20px;
  width: 60%;
  max-width: 400px;
  border-radius: 5px;
}

.close {
  float: right;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.1s ease;
}
.close:hover { color: red; }

#wechat-modal img { width: 300px; }





.footer { font-size: 120%; }

/* ===== Responsive Breakpoints ===== */

/* TABLET */
@media (min-width: 512px) {
  .title { font-size: 220%; }
  .contacts a { width: 22rem; }
  .description,
  .contacts a,
  .press-button,
  .posts-link a,
  .posts-list a { font-size: 150%; }
  .post-page {font-size: 120%; padding: calc(var(--space) * 3) calc(var(--space) * 6); }
}


/* PC */
@media (min-width: 1024px) {
  .contacts a { width: 23rem; }
  .posts-link a { padding: calc(var(--space) * 2) calc(var(--space) * 4); }
  section.posts-link {padding: calc(var(--space) * 2) 0;}
  .description,
  .contacts a,
  .press-button,
  .posts-link a,
  .posts-list a { font-size: 175%; }
  .post-page {font-size: 140%; padding: calc(var(--space) * 3) calc(var(--space) * 6); }
}
