* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
}

body {
  font-family: STHeiti, 'Microsoft YaHei', 'PingFang SC', Helvetica, Arial, sans-serif;
  background: #f0f2f5;
  color: #333;
  line-height: 1.6;
  max-width: 100%;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== Header ===== */
.site-header {
  background: linear-gradient(135deg, #2b5dae, #4285f4);
  color: #fff;
  padding: 14px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-area {
  flex-shrink: 0;
}

.site-logo {
  height: 48px;
  display: block;
}

.site-title {
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 1px;
}

.announcement-area {
  flex: 1;
  overflow: hidden;
  min-width: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 4px 16px;
}

.marquee-wrap {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-text {
  display: inline-block;
  animation: marquee 20s linear infinite;
  font-size: 14px;
  opacity: 0.95;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ===== Search Box ===== */
.search-section {
  max-width: 1100px;
  margin: 14px auto 0;
  padding: 0 16px;
}

.search-box {
  background: #fff;
  border-radius: 10px;
  padding: 16px 20px 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.search-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.search-tab {
  padding: 6px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
}

.search-tab:hover {
  color: #2b5dae;
}

.search-tab.active {
  color: #2b5dae;
  border-bottom-color: #2b5dae;
}

.search-form {
  display: flex;
  gap: 0;
  border: 2px solid #4285f4;
  border-radius: 24px;
  overflow: hidden;
  height: 44px;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 16px;
  font-size: 15px;
  color: #333;
  background: #fff;
}

.search-input::placeholder {
  color: #bbb;
}

.search-btn {
  flex-shrink: 0;
  width: 100px;
  border: none;
  background: linear-gradient(135deg, #2b5dae, #4285f4);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.search-btn:hover {
  background: linear-gradient(135deg, #1e4a8e, #3275e4);
}

/* ===== Route Section ===== */
.route-section {
  max-width: 1100px;
  margin: 14px auto;
  padding: 0 16px;
}

.route-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 8px;
  background: #fff;
  border-radius: 10px;
  padding: 10px 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.route-table td {
  width: 50%;
  padding: 0;
}

.route-btn {
  display: block;
  height: 44px;
  line-height: 42px;
  text-align: center;
  border: 1px solid #67a4f5;
  border-radius: 22px;
  background: #f5f5f5;
  background-image: linear-gradient(to top, #fff, #eee, #fff);
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  font-weight: 700;
  font-size: 16px;
  color: #d9534f;
  transition: all 0.2s ease;
}

.route-btn:hover {
  background-image: linear-gradient(to top, #e8f0fe, #dbeafe, #e8f0fe);
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}

.route-btn.app-btn {
  color: #1a73e8;
}

/* ===== Quick Links Bar ===== */
.quick-links-section {
  max-width: 1100px;
  margin: 0 auto 14px;
  padding: 0 16px;
}

.quick-links-wrap {
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.quick-link-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 12px;
  font-size: 14px;
  color: #333;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.15s;
}

.quick-link-item:hover {
  background: #e8f0fe;
  color: #1a73e8;
}

.ql-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 3px;
  object-fit: contain;
}

/* ===== Main Content ===== */
.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 16px;
}

.category-section {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  overflow: hidden;
}

.category-header {
  background: linear-gradient(135deg, #2b5dae, #4285f4);
  padding: 10px 20px;
}

.category-header h2 {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
}

.category-body {
  padding: 0;
}

.subcategory-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px dashed #e8e8e8;
}

.subcategory-row:last-child {
  border-bottom: none;
}

.subcategory-label {
  flex-shrink: 0;
  width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #d9534f;
  background: #fafbfe;
  padding: 10px 6px;
  text-align: center;
  border-right: 1px dashed #e8e8e8;
}

.subcategory-links {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 6px 10px;
  gap: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  font-size: 14px;
  color: #333;
  border-radius: 4px;
  transition: all 0.15s;
}

.nav-link:hover {
  color: #1a73e8;
  background: #e8f0fe;
}

.link-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* ===== Life Tools ===== */
.life-tools-section {
  max-width: 1100px;
  margin: 0 auto 14px;
  padding: 0 16px;
}

.life-tools-header {
  background: linear-gradient(135deg, #2b5dae, #4285f4);
  padding: 8px 20px;
  border-radius: 10px 10px 0 0;
}

.life-tools-header h3 {
  font-size: 14px;
  color: #fff;
  font-weight: 600;
}

.life-tools-body {
  background: #fff;
  border-radius: 0 0 10px 10px;
  padding: 18px 12px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.life-tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 4px;
  border-radius: 8px;
  transition: all 0.2s;
  text-align: center;
}

.life-tool-item:hover {
  background: #f0f5ff;
  transform: translateY(-2px);
}

.life-tool-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
}

.life-tool-icon-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #6c7ae0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.life-tool-name {
  font-size: 13px;
  color: #555;
  line-height: 1.3;
  word-break: keep-all;
}

.life-tool-item:hover .life-tool-name {
  color: #1a73e8;
}

/* ===== Friendly Links ===== */
.friendly-section {
  max-width: 1100px;
  margin: 0 auto 14px;
  padding: 0 16px;
}

.friendly-header {
  background: linear-gradient(135deg, #2b5dae, #4285f4);
  padding: 8px 20px;
  border-radius: 10px 10px 0 0;
}

.friendly-header h3 {
  font-size: 14px;
  color: #fff;
  font-weight: 600;
}

.friendly-body {
  background: #fff;
  border-radius: 0 0 10px 10px;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid #67a4f5;
  border-style: dashed;
  border-top: none;
}

.friendly-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 16px;
  font-size: 14px;
  color: #1a73e8;
  border: 1px solid #67a4f5;
  border-radius: 20px;
  transition: all 0.15s;
  background: linear-gradient(to top, #fff, #eee, #fff);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  font-weight: 600;
}

.friendly-link:hover {
  background: #1a73e8;
  color: #fff;
  border-color: #1a73e8;
}

/* ===== Footer ===== */
.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 30px;
  text-align: center;
  font-size: 13px;
  color: #999;
}

.site-footer .icp {
  margin-top: 4px;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .site-title {
    font-size: 18px;
  }

  .announcement-area {
    width: 100%;
  }

  .search-box {
    padding: 12px 14px 10px;
  }

  .search-tab {
    padding: 5px 12px;
    font-size: 13px;
  }

  .search-form {
    height: 40px;
  }

  .search-btn {
    width: 72px;
    font-size: 14px;
  }

  .route-table {
    border-spacing: 6px;
  }

  .route-btn {
    height: 38px;
    line-height: 36px;
    font-size: 14px;
    border-radius: 19px;
  }

  .quick-link-item {
    padding: 4px 8px;
    font-size: 13px;
  }

  .ql-icon {
    width: 18px;
    height: 18px;
  }

  .category-header {
    padding: 8px 14px;
  }

  .category-header h2 {
    font-size: 14px;
  }

  .subcategory-row {
    flex-direction: column;
  }

  .subcategory-label {
    width: 100%;
    padding: 7px 14px;
    justify-content: flex-start;
    border-right: none;
    border-bottom: 1px dashed #e8e8e8;
  }

  .subcategory-links {
    padding: 4px 8px;
  }

  .nav-link {
    padding: 4px 10px;
    font-size: 13px;
  }

  .friendly-link {
    padding: 4px 12px;
    font-size: 13px;
  }

  .life-tools-body {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px 6px;
    padding: 14px 8px;
  }

  .life-tool-icon {
    width: 36px;
    height: 36px;
  }

  .life-tool-icon-placeholder {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .life-tool-name {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .search-tabs {
    overflow-x: auto;
  }

  .search-tab {
    padding: 4px 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .search-form {
    height: 38px;
  }

  .search-input {
    font-size: 14px;
    padding: 0 12px;
  }

  .search-btn {
    width: 60px;
    font-size: 13px;
  }

  .route-table td {
    display: block;
    width: 100%;
  }

  .route-table tr {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .route-table {
    border-spacing: 4px;
  }

  .route-btn {
    height: 36px;
    line-height: 34px;
    font-size: 13px;
  }

  .nav-link {
    padding: 3px 8px;
    font-size: 12px;
  }

  .quick-link-item {
    padding: 3px 6px;
    font-size: 12px;
    gap: 3px;
  }

  .ql-icon {
    width: 16px;
    height: 16px;
  }

  .life-tools-body {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 4px;
    padding: 12px 6px;
  }

  .life-tool-item {
    padding: 8px 2px;
    gap: 6px;
  }

  .life-tool-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .life-tool-icon-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 14px;
  }

  .life-tool-name {
    font-size: 11px;
  }
}
