@charset "utf-8";

:root {
    --primary: #0d1b2a;
    --secondary: #1b263b;
    --accent: #00f5d4;
    --muted: #415a77;
    --light: #e0e1dd;
    --dislike: #ff69b4;
}

#menu-query {
    margin-bottom: 108px;
    margin-top: 108px;
}

b.date-select {
    margin-bottom: 14px;
    margin-top: 18px;
    display:block;
}

b.easy-form {
    margin-bottom: 14px;
    margin-top: 18px;
    display:block;
}

/*select.easy-form {

}*/

#zhuanfou-products {
    text-align: left;
    margin-top: 56px;
}

#zhuanfou-products .result-card img {
    height: 40px;
}

#zhuanfou-products .result-card span.badge.rounded-pill {
    float: right;
}

#zhuanfou-products h3.title {
    font-size: 24px;
    color: #333;
    margin-top: 12px;
}

#zhuanfou-products p.desc {
    font-size: 18px;
}

#zhuanfou-products li.result-card {
    padding-top: 24px;
    padding-bottom: 48px;
    margin-bottom: 18px;
}

#search-submit {
    margin: 0px;
    margin-top: 18px;
}

#copyrightStatement {
    margin-top: 24px;
    font-size: 16px;
    font-weight: 300;
    color: #595959;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial,
                 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
                 "微软雅黑 Light", sans-serif;
}

.lead a {
    text-decoration: none;
    color: deeppink;
}

html {
  background-color: var(--primary);
  min-height: 100%;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--light);
    color: var(--primary);
}

.navbar-brand {
    font-weight: 700;
    color: var(--accent) !important;
}
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    padding: 80px 0;
}
.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.hero button {
    margin-left: 7px;
    margin-right: 7px;
}
.btn-accent {
    background-color: var(--accent);
    color: var(--primary);
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.btn-accent:hover {
    background-color: #00c5b0;
    color: #fff;
}
.btn-dislike {
    background-color: var(--dislike);
    color: var(--primary);
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-dislike:hover {
    background-color: #e052a0;
    color: #fff;
}
.section-title {
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}
.adsense {
    background: url(https://logo.zhuanfou.com/xiexian.svg);
    background-color: #f8f9fa;
    border: 1px dashed var(--muted);
    text-align: center;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    color: var(--muted);
}
footer {
    background-color: var(--primary);
    color: #fff;
    padding: 2rem 0;
/*    margin-top: 4rem;*/
}
footer a {
    color: var(--accent);
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

footer p.beian {
    margin-top: 108px;
    margin-bottom: 24px;
}

footer {
    padding-bottom: 12px;
}

footer p.beian a {
    color:#535e69;
    text-decoration: none;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
}

@media (min-width: 768px) { 
  .adsense { min-height: 90px; }
}

/*------------*/

/* 代码块整体样式 */
pre {
    background: #1e1e1e; /* 深色背景，护眼且突出代码 */
    color: #d4d4d4; /* 浅灰色文字 */
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 14px;
    line-height: 1.6;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto; /* 横向滚动 */
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    margin: 20px 0;
}

/* 滚动条美化 */
pre::-webkit-scrollbar {
    height: 8px;
}
pre::-webkit-scrollbar-track {
    background: #2d2d2d;
    border-radius: 4px;
}
pre::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}
pre::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* 行号 */
pre code {
    counter-reset: line;
}
pre code .line {
    display: block;
    counter-increment: line;
}
pre code .line::before {
    content: counter(line);
    position: absolute;
    left: 0;
    width: 40px;
    padding-right: 10px;
    text-align: right;
    color: #858585;
    user-select: none;
}

/* 选中高亮 */
pre ::selection {
    background: rgba(255, 255, 255, 0.15);
}
pre ::-moz-selection {
    background: rgba(255, 255, 255, 0.15);
}

/* 左上角语言标签 */
pre[data-lang]:not([data-lang=""])::after {
    content: attr(data-lang);
    position: absolute;
    top: 0;
    right: 0;
    background: #007acc;
    color: #fff;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 0 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

pre:hover .copy-btn {
    opacity: 1;
}
pre .copy-btn:hover {
    background: #005a9e;
}

/*------------*/

.lang-switcher {
  all: unset;
  display: inline-block;
  position: relative;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

/* 下拉按钮 */
.lang-switcher .lang-btn {
  appearance: none;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 4px 8px 4px 10px;
  background: #f8f9fa;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color .2s;
  font-size: inherit;
  color: inherit;
}
.lang-switcher .lang-btn:hover { border-color: #9ca3af; }
.lang-switcher .lang-btn::after {
  content: "";
  width: 0; height: 0;
  border-style: solid;
  border-width: 4px 4px 0 4px;
  border-color: #6b7280 transparent transparent transparent;
  margin-left: 2px;
}

/* 上拉菜单 */
.lang-switcher .lang-menu {
  position: absolute;
  left: 0;
  bottom: 100%;          /* 关键：贴按钮上沿 */
  margin-bottom: 4px;    /* 与按钮留一点间隙 */
  background: #f8f9fa;
  border: 1px solid #d1d5db;
  border-radius: 4px 4px 0 0; /* 上圆角，下直角 */
  box-shadow: 0 -2px 6px rgba(0,0,0,.08); /* 阴影朝上方 */
  display: none;
  z-index: 10;
  min-width: 100%;
}
.lang-switcher.open .lang-menu { display: block; }

/* 选项 */
.lang-switcher .lang-option {
  padding: 6px 10px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background .15s;
}
.lang-switcher .lang-option:hover { background: #f3f4f6; }
.lang-switcher .lang-option.active::before {
  content: "✓";
  color: #2563eb;
  font-weight: 600;
  width: 12px;
  text-align: center;
}

/* ========= Cookie Banner 样式 ========= */
.cookie-wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 16px 0;
  background: var(--primary);
  backdrop-filter: blur(4px);
  border: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  color: #fff;
  transform: translateY(100%);
  animation: slideUp .4s ease forwards;
  min-height: 113px;
}

@keyframes slideUp {
  to { transform: translateY(0); }
}

.cookie-inner {
/*  max-width: 1200px;*/
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: flex-start; 
  justify-content: space-between;
  gap: 16px;
}

.cookie-icon {
  margin: 0;
  line-height: 1.5;
  font-size: 24px;
}

.cookie-txt {
  margin: 0;
  line-height: 1.5;
  margin-right: 7px;
  margin-left: 7px;
}

.cookie-txt .all-rights {
    margin-left:24px;
}

.cookie-txt a {
  color: var(--accent);
  text-decoration: none;
}
.cookie-txt a:hover {
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 6px 16px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

#cookie-accept {
    min-width: 180px;
    padding: 7px;
}

/* 移动端自动换行 */
@media (max-width: 860px) {
  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-icon {
    display: none;
  }

  .cookie-txt .all-rights {
    margin-left:0px;
    display: block;
  }
 
  #latest_search_words_box > *:nth-child(n+14) {
    display: none;
  }
}

#langSwitcher {
    margin:0px;
    margin-top: 24px;
    margin-bottom: 24px;
    margin-left: 12px;
}

.lang-switcher .lang-btn {
    margin: 0px;
}