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

body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ======== Container ======== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ======== Top Bar ======== */
#top-bar {
  background: #222;
  color: #999;
  font-size: 13px;
  padding: 6px 0;
}
#top-bar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

/* ======== Header ======== */
#header {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
#header .container {
  display: flex;
  align-items: center;
  min-height: 60px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-area img { height: 40px; width: auto; }
.logo-area .cn {
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  white-space: nowrap;
}

/* ======== Navigation ======== */
#nav-menu { margin-left: auto; }
#nav-menu ul {
  list-style: none;
  display: flex;
}
#nav-menu li { position: relative; }
#nav-menu a {
  display: block;
  padding: 18px 22px;
  color: #ddd;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  position: relative;
  overflow: hidden;
}
#nav-menu > ul > li > a:hover,
#nav-menu > ul > li > a:focus {
  background: rgba(255,255,255,0.1);
  color: #ffd700;
}

/* Dropdown */
#nav-menu ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #2c3e50;
  min-width: 160px;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border-radius: 0 0 4px 4px;
}
#nav-menu ul ul a {
  padding: 10px 20px;
  white-space: nowrap;
  font-size: 14px;
}
#nav-menu ul ul a:hover {
  background: rgba(255,255,255,0.1);
  color: #ffd700;
}
#nav-menu li:hover > ul { display: block; }

/* Hamburger */
#menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  padding: 8px 12px;
  margin-left: auto;
  border-radius: 4px;
  transition: background 0.2s;
}
#menu-toggle:hover { background: rgba(255,255,255,0.1); }

/* ======== Friend Links ======== */
#friend-links {
  background: #e8e8e8;
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
}
#friend-links .container {
  display: flex;
  align-items: center;
}
.fl-label {
  font-size: 13px;
  color: #888;
  white-space: nowrap;
  margin-right: 10px;
  flex-shrink: 0;
}
.fl-scroll {
  overflow-x: auto;
  white-space: nowrap;
  padding: 2px 0;
  -webkit-overflow-scrolling: touch;
}
.fl-scroll::-webkit-scrollbar { height: 3px; }
.fl-scroll::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
.fl-scroll a {
  display: inline-block;
  padding: 2px 14px;
  color: #666;
  font-size: 13px;
  border-right: 1px solid #ccc;
  transition: color 0.2s;
}
.fl-scroll a:last-child { border-right: none; }
.fl-scroll a:hover { color: #2c3e50; }

/* ======== Content ======== */
#content {
  min-height: 450px;
  padding: 50px 0;
  background-attachment: fixed;
  background-image: radial-gradient(ellipse at center, rgba(255,255,255,0.8) 0%, transparent 70%);
}
#page-content {
  max-width: 900px;
  margin: 0 auto;
}
#page-content h1 {
  font-size: 2em;
  color: #2c3e50;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 3px solid #ffd700;
}
#page-content h2 {
  font-size: 1.4em;
  color: #34495e;
  margin: 30px 0 12px;
}
#page-content h3 {
  font-size: 1.15em;
  color: #555;
  margin: 20px 0 10px;
}
#page-content p {
  margin-bottom: 16px;
  text-align: justify;
}
#page-content ul, #page-content ol {
  margin: 10px 0 16px 25px;
}
#page-content li { margin-bottom: 6px; }
#page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 15px 0;
}
#page-content blockquote {
  border-left: 4px solid #ffd700;
  padding: 12px 20px;
  margin: 20px 0;
  background: #f9f9f9;
  border-radius: 0 6px 6px 0;
  color: #666;
}
#page-content code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}
#page-content pre {
  background: #2d2d2d;
  color: #eee;
  padding: 16px 20px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 16px 0;
}
#page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
}
#page-content th, #page-content td {
  border: 1px solid #ddd;
  padding: 10px 14px;
  text-align: left;
}
#page-content th { background: #f5f5f5; font-weight: bold; }
.error-msg {
  text-align: center;
  padding: 40px;
  color: #999;
  font-size: 16px;
}

/* ======== Footer ======== */
#footer {
  background: #2a2a2a;
  color: #aaa;
  padding: 40px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  .footer-col.fc-logo{
    grid-column: 1 / 3;
  }
}
p{
  text-indent: 2em;
}
.footer-col h3 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid #444;
}
.fc-logo { text-align: center; }
.fc-logo img {
  max-width: 120px;
  margin-bottom: 12px;
  border-radius: 6px;
}
.fc-logo p { font-size: 14px; color: #aaa; }

.fc-map ul { list-style: none; }
.fc-map ul ul { margin-left: 14px; margin-top: 4px; }
.fc-map a {
  display: block;
  color: #aaa;
  font-size: 13px;
  padding: 4px 0;
  transition: color 0.2s;
}
.fc-map a:hover { color: #ffd700; }

.fc-contact p {
  font-size: 13px;
  margin-bottom: 8px;
}
.fc-contact a { color: #ffd700; }
.fc-contact a:hover { text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid #444;
  padding: 18px 0;
  margin-top: 30px;
  text-align: center;
  font-size: 13px;
  color: #777;
}
.footer-bottom a { color: #888; }
.footer-bottom a:hover { color: #ffd700; }

/* ======== Ripple Effect ======== */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  pointer-events: none;
  animation: ri 0.6s ease-out;
}
@keyframes ri {
  to { transform: scale(3); opacity: 0; }
}

/* ======== Mouse Glow ======== */
#mouse-glow {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,215,0,0.06) 0%, transparent 65%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s;
}

/* ======== Responsive ======== */
@media (max-width: 768px) {
  #menu-toggle { display: block; }

  #nav-menu {
    display: none;
    width: 100%;
    order: 3;
  }
  #nav-menu.active { display: block; }
  #nav-menu ul {
    flex-direction: column;
  }
  #nav-menu ul ul {
    position: static;
    display: none;
    box-shadow: none;
    background: rgba(0,0,0,0.2);
    border-radius: 0;
  }
  #nav-menu li.active > ul { display: block; }
  #nav-menu a { padding: 14px 20px; }

  .logo-area .cn { font-size: 15px; }
  .logo-area img { height: 32px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  #content { padding: 30px 0; }
  #page-content h1 { font-size: 1.5em; }

  #top-bar .container { justify-content: center; font-size: 12px; }
}
