/*!
 * AI神器导航主题 - 三套配色方案
 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; -webkit-text-size-adjust: 100%; }

/* ===== 默认主题变量 (方案A) ===== */
:root, [data-theme="a"] {
  --bg-body: #fff;
  --bg-sidebar: #f7f8fa;
  --bg-header: #fff;
  --bg-card: #fff;
  --bg-footer: #111827;
  --bg-banner: linear-gradient(135deg, #1a56db, #4da3ff);
  --bg-input: #f7f8fa;
  --border-light: #e5e7eb;
  --border-card: #eef0f4;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --text-header: #1f2937;
  --text-footer: #9ca3af;
  --text-footer-link: #d1d5db;
  --text-nav: #4b5563;
  --color-primary: #1a56db;
  --color-primary-hover: #1e40af;
  --color-sidebar-active-bg: #eef2ff;
  --color-sidebar-active-border: #1a56db;
  --color-sidebar-active-text: #1a56db;
  --color-sidebar-icon: #9ca3af;
  --color-sidebar-icon-active: #1a56db;
  --color-sidebar-header-icon: #1a56db;
  --sidebar-header-bg: transparent;
  --header-shadow: 0 1px 3px rgba(0,0,0,.06);
  --header-border: 1px solid #f0f0f0;
  --footer-border: none;
  --card-hover-shadow: 0 4px 16px rgba(26,86,219,.10);
  --card-hover-border: #1a56db;
  --card-before-bg: linear-gradient(90deg, #1a56db, #4da3ff);
  --icon-bg: #eef2ff;
  --icon-color: #1a56db;
  --tab-active-bg: #fff;
  --playground-header-bg: linear-gradient(135deg, #f8faff, #f0f5ff);
  --submit-btn-bg: linear-gradient(135deg, #1a56db, #4da3ff);
  --submit-btn-hover: linear-gradient(135deg, #1e40af, #3d8fff);
  --banner-text: #fff;
}

/* ===== 方案B：商务蓝灰 ===== */
[data-theme="b"] {
  --bg-body: #eef1f5;
  --bg-sidebar: #1e3a5f;
  --bg-header: #1e3a5f;
  --bg-card: #fff;
  --bg-footer: #1e3a5f;
  --bg-banner: linear-gradient(135deg, #1e3a5f, #2563eb);
  --bg-input: rgba(255,255,255,.15);
  --border-light: rgba(255,255,255,.1);
  --border-card: #e2e6ed;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --text-header: #fff;
  --text-footer: rgba(255,255,255,.5);
  --text-footer-link: rgba(255,255,255,.7);
  --text-nav: #fff;
  --color-primary: #2563eb;
  --color-primary-hover: #3b82f6;
  --color-sidebar-active-bg: rgba(255,255,255,.15);
  --color-sidebar-active-border: #2563eb;
  --color-sidebar-active-text: #fff;
  --color-sidebar-icon: rgba(255,255,255,.5);
  --color-sidebar-icon-active: #fff;
  --color-sidebar-header-icon: rgba(255,255,255,.6);
  --sidebar-header-bg: transparent;
  --header-shadow: none;
  --header-border: none;
  --footer-border: none;
  --card-hover-shadow: 0 4px 16px rgba(37,99,235,.15);
  --card-hover-border: #2563eb;
  --card-before-bg: linear-gradient(90deg, #2563eb, #60a5fa);
  --icon-bg: #eef2ff;
  --icon-color: #2563eb;
  --tab-active-bg: #fff;
  --playground-header-bg: linear-gradient(135deg, #f8faff, #f0f5ff);
  --submit-btn-bg: linear-gradient(135deg, #2563eb, #60a5fa);
  --submit-btn-hover: linear-gradient(135deg, #1d4ed8, #3b82f6);
  --banner-text: #fff;
}

/* ===== 方案C：柔和灰白+青色 ===== */
[data-theme="c"] {
  --bg-body: #f3f4f6;
  --bg-sidebar: #fff;
  --bg-header: #fff;
  --bg-card: #fff;
  --bg-footer: #1f2937;
  --bg-banner: linear-gradient(135deg, #0d9488, #5eead4);
  --bg-input: #f3f4f6;
  --border-light: #e5e7eb;
  --border-card: #e5e7eb;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --text-header: #1f2937;
  --text-footer: #9ca3af;
  --text-footer-link: #d1d5db;
  --text-nav: #4b5563;
  --color-primary: #0d9488;
  --color-primary-hover: #0f766e;
  --color-sidebar-active-bg: #f0fdfa;
  --color-sidebar-active-border: #0d9488;
  --color-sidebar-active-text: #0d9488;
  --color-sidebar-icon: #9ca3af;
  --color-sidebar-icon-active: #0d9488;
  --color-sidebar-header-icon: #0d9488;
  --sidebar-header-bg: transparent;
  --header-shadow: 0 1px 3px rgba(0,0,0,.06);
  --header-border: 1px solid #e5e7eb;
  --footer-border: none;
  --card-hover-shadow: 0 4px 16px rgba(13,148,136,.10);
  --card-hover-border: #0d9488;
  --card-before-bg: linear-gradient(90deg, #0d9488, #5eead4);
  --icon-bg: #f0fdfa;
  --icon-color: #0d9488;
  --tab-active-bg: #fff;
  --playground-header-bg: linear-gradient(135deg, #f8fdfc, #f0fdfa);
  --submit-btn-bg: linear-gradient(135deg, #0d9488, #5eead4);
  --submit-btn-hover: linear-gradient(135deg, #0f766e, #2dd4bf);
  --banner-text: #fff;
}

/* ===== 基础样式 (使用变量) ===== */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg-body);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--color-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-primary-hover); }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; }
.container { max-width: 96%; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--bg-header);
  box-shadow: var(--header-shadow);
  border-bottom: var(--header-border);
  position: sticky; top: 0; z-index: 1000; height: 56px;
}
.header-inner {
  display: flex; align-items: center; justify-content: center; height: 56px;
}
.logo-area { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-text { font-size: 1.4rem; font-weight: 700; color: var(--color-primary); white-space: nowrap; }
.logo-text:hover { color: var(--color-primary-hover); }
.logo-sub {
  font-size: .85rem; color: var(--text-muted);
  border-left: 1px solid var(--border-light); padding-left: 10px; white-space: nowrap;
}
.header-right { display: flex; align-items: center; gap: 15px; }

/* Theme Switcher */
.theme-switcher { display: flex; gap: 4px; background: var(--bg-input); border-radius: 8px; padding: 2px; }
.theme-btn {
  width: 28px; height: 28px; border-radius: 6px; border: none; cursor: pointer;
  transition: all .2s; position: relative;
}
.theme-btn:hover { transform: scale(1.1); }
.theme-btn.active { box-shadow: 0 0 0 2px var(--color-primary); transform: scale(1.1); }
.theme-btn-a { background: linear-gradient(135deg, #1a56db 40%, #fff 40%); }
.theme-btn-b { background: linear-gradient(135deg, #1e3a5f 40%, #eef1f5 40%); }
.theme-btn-c { background: linear-gradient(135deg, #0d9488 40%, #f3f4f6 40%); }

/* Search */
.search-box {
  display: flex; align-items: center; background: var(--bg-input);
  border-radius: 20px; padding: 5px 15px; transition: all .3s; border: 1px solid transparent;
}
.search-box:focus-within { background: #fff; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(17,102,235,.08); }
.search-icon { color: var(--text-muted); margin-right: 8px; font-size: .9rem; }
.search-input { border: none; background: transparent; outline: none; font-size: .9rem; width: 200px; color: var(--text-primary); }
.search-input::placeholder { color: var(--text-muted); }
.search-btn {
  background: linear-gradient(225deg, #4da3ff, #2c90ff, #0a7dff);
  color: #fff; border: none; padding: 5px 16px; border-radius: 15px;
  cursor: pointer; font-size: .85rem; font-weight: 600; margin-left: 8px; transition: all .3s;
}
.search-btn:hover { opacity: .9; }

.sidebar-toggle { display: none; background: none; border: none; font-size: 1.3rem; color: var(--text-secondary); cursor: pointer; padding: 5px; }

/* Layout */
.main-wrapper { display: flex; min-height: calc(100vh - 56px - 60px); }

/* Sidebar */
.site-sidebar {
  width: 220px; min-width: 220px; background: var(--bg-sidebar);
  border-right: 1px solid var(--border-light); overflow-y: auto;
  position: sticky; top: 56px; height: calc(100vh - 56px); z-index: 100; transition: transform .3s;
}
.sidebar-header { padding: 18px 20px 12px; font-size: .95rem; font-weight: 600; color: var(--text-header); border-bottom: 1px solid var(--border-light); }
.sidebar-header i { margin-right: 6px; color: var(--color-sidebar-header-icon); }
.cat-nav { padding: 8px 0; }
.cat-nav li a {
  display: flex; align-items: center; padding: 10px 20px; color: var(--text-nav);
  font-size: .9rem; transition: all .2s; border-left: 3px solid transparent;
}
.cat-nav li a i { width: 20px; margin-right: 8px; color: var(--color-sidebar-icon); font-size: .85rem; transition: color .2s; }
.cat-nav li a:hover, .cat-nav li a.active {
  color: var(--color-sidebar-active-text); background: var(--color-sidebar-active-bg);
  border-left-color: var(--color-sidebar-active-border);
}
.cat-nav li a:hover i, .cat-nav li a.active i { color: var(--color-sidebar-icon-active); }

.sidebar-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.4); z-index: 99; }

/* Main */
.site-main { flex: 1; padding: 24px 0; min-width: 0; }

/* Section */
.nav-section { margin-bottom: 30px; }
.section-header { display: flex; align-items: center; justify-content: center; margin-bottom: 16px; padding: 0 4px; }
.section-title { font-size: 1.15rem; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; }
.section-title i { color: var(--color-primary); margin-right: 8px; }
.section-more { font-size: .85rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.section-more:hover { color: var(--color-primary); }

/* Cards */
.url-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.url-card {
  background: var(--bg-card); border-radius: 8px; padding: 16px 18px;
  display: flex; align-items: flex-start; cursor: pointer; transition: all .25s;
  border: 1px solid var(--border-card); position: relative; overflow: hidden;
}
.url-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--card-before-bg); transform: scaleX(0); transition: transform .25s;
}
.url-card:hover { border-color: var(--card-hover-border); box-shadow: var(--card-hover-shadow); transform: translateY(-2px); }
.url-card:hover::before { transform: scaleX(1); }
.url-card a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; color: var(--text-primary); text-decoration: none; }
.url-card a:hover { color: var(--text-primary); }
.url-card .tool-logo {
  width: 44px; height: 44px; border-radius: 10px; object-fit: contain;
  flex-shrink: 0; background: var(--icon-bg); padding: 4px;
  border: 1px solid var(--border-card); margin-top: 2px;
}
.card-info { flex: 1; min-width: 0; }
.card-info strong { display: block; font-size: .95rem; color: var(--text-primary); margin-bottom: 4px; }
.card-info .card-desc {
  font-size: .78rem; color: var(--text-muted); display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5;
}

/* Footer */
.site-footer { background: var(--bg-footer); border-top: var(--footer-border); padding: 32px 0; color: var(--text-footer); }
.site-footer a { color: var(--text-footer-link); }
.site-footer a:hover { color: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.footer-right { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; font-size: .92rem; }
.footer-icp a { color: var(--text-footer-link); }
.footer-icp a:hover { color: #fff; }
@media (max-width: 768px) { .footer-inner { flex-direction: column; text-align: center; } .footer-right { justify-content: center; } }

/* Banner */
.site-banner {
  background: var(--bg-banner); border-radius: 12px; padding: 36px 40px;
  margin-bottom: 28px; color: var(--banner-text); text-align: center;
}
.banner-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 10px; }
.banner-desc { font-size: .95rem; opacity: .9; max-width: 650px; margin: 0 auto 18px; line-height: 1.7; }
.banner-stats { display: flex; justify-content: center; gap: 30px; font-size: .9rem; }
.banner-stats span { display: flex; align-items: center; gap: 6px; }

/* Submit btn */
.sidebar-footer { padding: 14px 20px; border-top: 1px solid var(--border-light); }
.submit-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px;
  background: var(--submit-btn-bg); color: #fff !important; border-radius: 8px;
  font-size: .9rem; font-weight: 600; transition: all .3s;
}
.submit-btn:hover { background: var(--submit-btn-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(17,102,235,.25); }

/* Top Nav */
.top-nav { display: flex; align-items: center; gap: 6px; flex: 1; justify-content: center; }
.top-nav a {
  display: flex; align-items: center; gap: 5px; padding: 7px 14px;
  color: var(--text-nav); font-size: .92rem; border-radius: 6px; transition: all .2s; white-space: nowrap;
}
.top-nav a:hover { color: var(--color-primary); background: var(--color-sidebar-active-bg); }

/* Breadcrumb */
.breadcrumb { padding: 16px 0; font-size: .85rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .fa-angle-right { font-size: .7rem; color: var(--text-muted); }
.breadcrumb span { color: var(--text-primary); }

/* Tool detail */
.post-detail { max-width: 100%; margin: 0; }
.tool-detail { background: var(--bg-card); border-radius: 0; overflow: hidden; }
.tool-header {
  position: relative; padding: 60px 40px;
  background: var(--bg-banner); color: #fff;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 24px; overflow: hidden;
}
.tool-header::before {
  content: ""; position: absolute; top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%); border-radius: 50%;
}
.tool-header h2 { font-size: 2rem; font-weight: 800; color: #fff; margin: 0 0 8px; position: relative; }
.tool-visit-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px;
  background: #fff; color: var(--color-primary) !important; border-radius: 10px;
  font-size: .95rem; font-weight: 700; text-decoration: none; transition: all .3s;
  position: relative; box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.tool-visit-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,.3); color: var(--color-primary-hover) !important; }

.tool-section { padding: 36px 40px; border-bottom: 1px solid var(--border-card); }
.tool-section h3 { display: flex; align-items: center; gap: 12px; font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; }
.tool-section h3 i { color: var(--color-primary); font-size: 1.1rem; width: 32px; height: 32px; background: var(--icon-bg); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.tool-section p { color: var(--text-secondary); line-height: 1.9; font-size: .95rem; padding-left: 44px; }
.tool-features { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; padding: 0 0 0 44px; }
.tool-features li { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--bg-input); border-radius: 10px; border: 1px solid var(--border-card); font-size: .9rem; color: var(--text-primary); transition: all .2s; }
.tool-features li:hover { border-color: var(--color-primary); box-shadow: 0 2px 10px rgba(17,102,235,.06); }
.tool-features li i { color: var(--color-primary); font-size: .85rem; flex-shrink: 0; }

/* AI Playground */
.ai-playground { background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border-card); margin: 30px 0; overflow: hidden; }
.ai-playground-header { display: flex; align-items: center; justify-content: center; padding: 16px 24px; background: var(--playground-header-bg); border-bottom: 1px solid var(--border-card); }
.ai-playground-header h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin: 0; display: flex; align-items: center; gap: 8px; }
.ai-playground-header h3 i { color: var(--color-primary); }
.ai-playground-tip { font-size: .8rem; color: var(--text-muted); }

/* Chat container */
.ai-chat-container { background: #f9fafb; }
.ai-chat-container .ai-chat-keyarea { padding: 14px 20px; background: #fffbe6; border-bottom: 1px solid #f0e68c; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ai-chat-container .ai-chat-keyarea.saved { background: #e8f5e9; border-color: #a5d6a7; }
.ai-chat-container .ai-chat-keyinput { flex: 1; min-width: 160px; padding: 8px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: .85rem; outline: none; }
.ai-chat-container .ai-chat-keyinput:focus { border-color: var(--color-primary); }
.ai-chat-container .ai-chat-keysave { padding: 8px 18px; background: var(--color-primary); color: #fff; border: none; border-radius: 8px; cursor: pointer; font-size: .85rem; font-weight: 600; }
.ai-chat-container .ai-chat-keysave:hover { background: var(--color-primary-hover); }
.ai-chat-container .ai-chat-keyhint { width: 100%; text-align: center; font-size: .95rem; font-weight: bold; color: #e53e3e; }
.ai-chat-container .ai-chat-messages { height: 400px; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.ai-chat-container .ai-chat-welcome { text-align: center; padding: 30px; color: var(--text-muted); }
.ai-chat-container .ai-chat-welcome i { font-size: 2rem; display: block; margin-bottom: 12px; color: var(--color-primary); opacity: .4; }
.ai-chat-container .ai-chat-msg-user { justify-content: center; }
.ai-chat-container .ai-chat-msg-user .ai-chat-bubble { background: var(--color-primary); color: #fff; border-radius: 14px 14px 4px 14px; max-width: 80%; }
.ai-chat-container .ai-chat-msg-assistant .ai-chat-bubble { background: #fff; border: 1px solid var(--border-card); border-radius: 14px 14px 14px 4px; max-width: 80%; }
.ai-chat-container .ai-chat-bubble { padding: 10px 16px; font-size: .9rem; line-height: 1.6; word-break: break-word; }
.ai-chat-container .ai-chat-system { text-align: center; font-size: .78rem; color: var(--text-muted); }
.ai-chat-container .ai-chat-bubble pre { background: #1e1e1e; color: #d4d4d4; padding: 10px; border-radius: 8px; overflow-x: auto; font-size: .8rem; margin: 6px 0; }
.ai-chat-container .ai-chat-inputarea { display: flex; align-items: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--border-card); background: #fff; }
.ai-chat-container .ai-chat-input { flex: 1; padding: 10px 14px; border: 1px solid #e0e0e0; border-radius: 12px; font-size: .92rem; outline: none; resize: none; font-family: inherit; line-height: 1.5; max-height: 100px; }
.ai-chat-container .ai-chat-input:focus { border-color: var(--color-primary); }
.ai-chat-container .ai-chat-input:disabled { background: #f5f5f5; }
.ai-chat-container .ai-chat-send { width: 40px; height: 40px; background: var(--color-primary); color: #fff; border: none; border-radius: 50%; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ai-chat-container .ai-chat-send:hover { background: var(--color-primary-hover); }
.ai-chat-container .ai-chat-send:disabled { background: #ccc; cursor: not-allowed; }
.ai-chat-container .ai-typing { display: flex; gap: 4px; padding: 4px 0; }
.ai-chat-container .ai-typing span { width: 7px; height: 7px; background: #bbb; border-radius: 50%; animation: typingBounce 1.4s infinite; }
.ai-chat-container .ai-typing span:nth-child(2) { animation-delay: .2s; }
.ai-chat-container .ai-typing span:nth-child(3) { animation-delay: .4s; }

@keyframes typingBounce { 0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-6px)} }

/* Pagebar / Search / 404 */
.pagebar { text-align: center; padding: 20px 0; }
.pagebar a, .pagebar span { display: inline-block; padding: 6px 14px; margin: 0 3px; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 4px; color: var(--text-secondary); font-size: .9rem; transition: all .2s; }
.pagebar a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pagebar .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

.post-single, .post-page { max-width: 800px; margin: 0 auto; background: var(--bg-card); padding: 30px 36px; border-radius: 8px; border: 1px solid var(--border-card); }
.search-results { max-width: 800px; margin: 0 auto; }

.search-results .post { background: var(--bg-card); padding: 20px 24px; border-radius: 8px; margin-bottom: 14px; border: 1px solid var(--border-card); }
.page-404 { text-align: center; padding: 80px 20px; }
.page-404 h2 { font-size: 4rem; color: #ddd; margin-bottom: 10px; }
.page-404 p { color: var(--text-muted); margin-bottom: 24px; }
.page-404 a { display: inline-block; padding: 10px 28px; background: var(--color-primary); color: #fff; border-radius: 6px; }

.related-tools { margin-top: 30px; }
.related-title { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.related-title i { color: var(--color-primary); }
/* 排行榜 - chinapp风格 */
.rank-page { max-width: 100%; margin: 0 auto; }
.rank-header { text-align: center; padding: 30px 20px 24px; }
.rank-header h2 { font-size: 1.6rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.rank-header h2 i { color: #f5af19; margin-right: 6px; }
.rank-badge { display: inline-block; background: linear-gradient(135deg,#f5af19,#f12711); color: #fff; font-size: .75rem; padding: 3px 12px; border-radius: 20px; vertical-align: middle; margin-left: 8px; font-weight: 600; }
.rank-desc { font-size: .9rem; color: var(--text-muted); margin-bottom: 6px; }
.rank-update { font-size: .75rem; color: #bbb; }
.rank-list { display: flex; flex-direction: column; gap: 12px; }
.rank-card { display: flex; align-items: center; gap: 16px; padding: 18px 22px; background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 12px; transition: all .2s; }
.rank-card:hover { border-color: var(--color-primary); box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.rank-num-wrap { flex-shrink: 0; width: 48px; text-align: center; }
.rank-num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; font-weight: 700; font-size: .9rem; background: #eef1f5; color: #999; }
.rank-num-1 { background: linear-gradient(135deg,#f5af19,#f12711); color: #fff; font-size: 1.1rem; box-shadow: 0 3px 12px rgba(245,175,25,.3); }
.rank-num-2 { background: linear-gradient(135deg,#a8c0ff,#6c7ce0); color: #fff; font-size: 1.05rem; }
.rank-num-3 { background: linear-gradient(135deg,#cd7f32,#a0522d); color: #fff; font-size: 1rem; }
.rank-logo { flex-shrink: 0; width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: #f5f6f8; border: 1px solid #eee; display: flex; align-items: center; justify-content: center; }
.rank-logo img { width: 100%; height: 100%; object-fit: contain; }
.rank-body { flex: 1; min-width: 0; }
.rank-name { font-size: 1.05rem; font-weight: 600; color: var(--text-primary); text-decoration: none; display: block; margin-bottom: 4px; }
.rank-name:hover { color: var(--color-primary); }
.rank-text { font-size: .8rem; color: var(--text-muted); margin: 0 0 6px 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rank-tag { display: inline-block; font-size: .7rem; color: var(--text-muted); background: var(--bg-hover); padding: 2px 10px; border-radius: 12px; }
.rank-action { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.rank-views { font-size: .8rem; color: var(--color-primary); font-weight: 600; white-space: nowrap; }
.rank-views i { margin-right: 3px; }
.rank-btn { display: inline-flex; align-items: center; gap: 4px; padding: 7px 16px; background: var(--color-primary); color: #fff; border-radius: 20px; font-size: .82rem; font-weight: 600; text-decoration: none; transition: all .2s; }
.rank-btn:hover { opacity: .9; transform: scale(1.03); color: #fff; }
/* 提交产品表单 */
/* ===== 提交产品页面 ===== */
.submit-wrap { max-width: 1100px; margin: 0 auto; }
.submit-content { display: flex; gap: 24px; align-items: flex-start; }
.submit-main { flex: 1; min-width: 0; }
.submit-sidebar { width: 300px; flex-shrink: 0; }
/* 卡片样式 */
.panel { margin-bottom: 20px; }
.card { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 12px; overflow: hidden; }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border-light); background: var(--bg-input); }
.card-header h2, .card-header h3 { font-weight: 600; color: var(--text-primary); }
.card-body { padding: 20px; }
.rounded-lg { border-radius: 12px; }
/* 输入组 */
.input-group { display: flex; align-items: stretch; width: 100%; border: 1px solid var(--border-card); border-radius: 8px; overflow: hidden; transition: border-color .2s; background: var(--bg-card); }
.input-group:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(33,117,155,.08); }
.input-group-prepend { display: flex; }
.input-group-text { display: flex; align-items: center; padding: 10px 14px; font-size: .9rem; color: var(--text-muted); background: var(--bg-input); border-right: 1px solid var(--border-card); white-space: nowrap; }
.input-group-append { display: flex; margin-left: 0; }
.input-group .form-control { flex: 1; border: none; padding: 10px 14px; font-size: .9rem; background: var(--bg-card); color: var(--text-primary); outline: none; font-family: inherit; min-width: 0; }
.input-group textarea.form-control { resize: vertical; }
/* 通用表单元素 */
.form-label { display: block; font-size: .9rem; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.form-label i { color: var(--color-primary); margin-right: 4px; width: 16px; }
.required { color: #e53e3e; }
.form-control { width: 100%; padding: 10px 14px; border: 1px solid var(--border-card); border-radius: 8px; font-size: .9rem; color: var(--text-primary); background: var(--bg-card); transition: border-color .2s; font-family: inherit; }
.form-control:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(33,117,155,.08); }
.form-control::placeholder { color: var(--text-muted); }
.form-select select.form-control { appearance: auto; }
textarea.form-control { resize: vertical; }
/* 一键填写按钮 */
.get-info-btn { padding: 10px 18px; background: linear-gradient(135deg, #f97316, #ef4444); color: #fff !important; border: none; font-size: .85rem; font-weight: 600; cursor: pointer; transition: all .2s; text-decoration: none !important; white-space: nowrap; border-radius: 0; display: flex; align-items: center; gap: 4px; }
.get-info-btn:hover { opacity: .9; }
.get-info-btn:disabled { opacity: .6; cursor: not-allowed; }
/* 主提交按钮 */
.submit-main-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; background: linear-gradient(135deg, #f97316, #ef4444); color: #fff; border: none; border-radius: 8px; font-size: 1.05rem; font-weight: 600; cursor: pointer; transition: all .2s; }
.submit-main-btn:hover { opacity: .9; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(239,68,68,.3); }
.submit-main-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.submit-note { text-align: center; font-size: .78rem; color: var(--text-muted); margin-top: 10px; }
.submit-success { text-align: center; padding: 60px 20px; }
.submit-success h3 { font-size: 1.3rem; margin: 16px 0 8px; color: var(--text-primary); }
.submit-success p { color: var(--text-muted); margin-bottom: 20px; }
/* 工具类 */
.row { display: flex; flex-wrap: wrap; }
.row-sm { margin-left: -8px; margin-right: -8px; }
.col-12 { width: 100%; padding-left: 8px; padding-right: 8px; }
.my-2 { margin-top: .5rem; margin-bottom: .5rem; }
.mt-1 { margin-top: .25rem; }
.mt-3 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: 1rem; }
.mr-2 { margin-right: .5rem; }
.text-sm { font-size: .85rem; }
.text-md { font-size: 1.15rem; }
.text-muted { color: var(--text-muted) !important; }
.col-12 { width: 100%; }
.sites-keywords { resize: vertical; }
/* 面包屑 */
.breadcrumb { padding: 12px 0; font-size: .85rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb i.fa-angle-right { margin: 0 8px; font-size: .75rem; }
.breadcrumb span { color: var(--text-primary); }
@media (max-width: 768px) {
  .submit-content { flex-direction: column; }
  .submit-sidebar { width: 100%; }
  .card-header h2 { font-size: 1.1rem; }
  .input-group { flex-wrap: wrap; }
  .get-info-btn { width: 100%; justify-content: center; padding: 12px; }
}

@media (max-width: 768px) {
  .rank-card { padding: 14px 16px; gap: 10px; }
  .rank-logo { width: 42px; height: 42px; }
  .rank-name { font-size: .95rem; }
  .rank-text { -webkit-line-clamp: 1; }
  .rank-action { display: none; }
  .rank-num-wrap { width: 36px; }
  .rank-num { width: 30px; height: 30px; font-size: .8rem; }
  .rank-num-1,.rank-num-2,.rank-num-3 { font-size: .85rem; }
}


/* 关联资讯卡片 */

/* 原文iframe嵌入 */

/* Responsive */
@media (max-width: 1024px) { .url-card-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); } }
@media (max-width: 768px) {
  .top-nav { display: none; }
  .site-banner { padding: 20px 16px; }
  .banner-title { font-size: 1.3rem; }
  .banner-stats { flex-direction: column; gap: 8px; }
  .sidebar-toggle { display: block; }
  .site-sidebar { position: fixed; top: 0; left: 0; height: 100vh; z-index: 200; transform: translateX(-100%); }
  .site-sidebar.show { transform: translateX(0); }
  .sidebar-overlay.show { display: block; }
  .search-input { width: 120px; }
  .logo-sub { display: none; }
  .url-card-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .site-main { padding: 16px 0; }
  .tool-header { padding: 40px 20px; }
  .tool-header h2 { font-size: 1.5rem; }
  .tool-section { padding: 24px 20px; }
  .tool-section p { padding-left: 0; }
  .tool-features { grid-template-columns: 1fr 1fr; padding-left: 0; }
  .ai-chat-container .ai-chat-messages { height: 300px; }
  .theme-switcher { margin-right: 8px; }
}
@media (max-width: 480px) {
  .url-card-grid { grid-template-columns: 1fr; }
  .search-input { width: 80px; }
  .header-inner { padding: 0 10px; }
  .tool-features { grid-template-columns: 1fr; }
}
@media print {
  .site-header, .site-sidebar, .site-footer, .search-form { display: none; }
  .site-main { padding: 0; }
}

.footer-links { width: 100%; text-align: center; border-bottom: 1px solid rgba(255,255,255,.08); padding: 14px 0; }
.footer-links .container { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; max-width: none; padding: 0; }
.footer-links-label { font-size: .85rem; color: rgba(255,255,255,.4); font-weight: 600; margin-right: 4px; }
.footer-links a { display: inline-block; padding: 4px 14px; font-size: .85rem; color: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; transition: all .2s; }
.url-card a i { font-size: 1.1rem; width: 22px; text-align: center; flex-shrink: 0; color: var(--icon-color); }
.url-desc { width: 100%; font-size: .78rem; color: var(--text-muted); line-height: 1.5; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; padding-left: 30px; margin-top: -2px; }
@media (max-width: 480px) { .url-desc { font-size: .75rem; -webkit-line-clamp: 1; } }/* === ????????? === */
.prompt-copy-area {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin: 10px 0;
}
.prompt-content {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    max-height: 500px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.copy-prompt-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 20px;
    background: #4a90d9;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}
.copy-prompt-btn:hover {
    background: #357abd;
}
.copy-prompt-btn.copied {
    background: #27ae60;
}
.tool-contributor {
    display: inline-block;
    color: #888;
    font-size: 13px;
    margin-top: 4px;
}
/* === ??????? === */
/* === 子分类筛选 === */
.subcat-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; padding: 14px 16px; background: #f5f6f8; border-radius: 10px; }
.subcat-btn { display: inline-block; padding: 7px 18px; border-radius: 20px; background: #fff; color: #555; font-size: 13px; cursor: pointer; user-select: none; border: 1px solid #e0e0e0; transition: all 0.2s ease; }
.subcat-btn:hover { border-color: #4a90d9; color: #4a90d9; background: #eef5fc; }
.subcat-btn.active { background: #4a90d9; color: #fff; border-color: #4a90d9; font-weight: 600; }
.url-card.hidden-by-filter { display: none !important; }
    display: none !important;
}
/* === ????? === */
.ad-page { max-width: 900px; margin: 0 auto; }
.ad-hero { text-align: center; padding: 40px 20px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 12px; color: #fff; margin-bottom: 30px; }
.ad-hero h2 { font-size: 2rem; margin-bottom: 10px; color: #fff; }
.ad-hero p { font-size: 1.1rem; opacity: 0.9; }
.ad-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.ad-card { background: #fff; border-radius: 10px; padding: 24px; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: transform 0.2s; }
.ad-card:hover { transform: translateY(-3px); }
.ad-card-icon { font-size: 2rem; color: #667eea; margin-bottom: 12px; }
.ad-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: #333; }
.ad-card p { font-size: 0.9rem; color: #777; line-height: 1.5; }
.ad-plans { margin-bottom: 40px; }
.ad-plans h3 { font-size: 1.3rem; margin-bottom: 16px; text-align: center; }
.ad-plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ad-plan { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.ad-plan-header { background: #f0f2ff; padding: 14px; text-align: center; font-weight: 700; font-size: 1.05rem; color: #4a5fc1; }
.ad-plan-body { padding: 18px; }
.ad-plan-body p { font-size: 0.9rem; color: #666; margin-bottom: 10px; }
.ad-plan-body ul { list-style: none; padding: 0; }
.ad-plan-body li { padding: 6px 0; font-size: 0.9rem; color: #555; }
.ad-plan-body li::before { content: "\2713"; color: #27ae60; margin-right: 8px; font-weight: bold; }
.ad-contact { background: #f8f9fb; border-radius: 10px; padding: 24px; text-align: center; }
.ad-contact h3 { font-size: 1.2rem; margin-bottom: 12px; }
.ad-contact p { color: #666; margin-bottom: 6px; }
.ad-contact a { color: #4a90d9; font-weight: 600; }
@media (max-width: 768px) {
  .ad-benefits, .ad-plan-grid { grid-template-columns: 1fr; }
  .ad-hero { padding: 30px 16px; }
  .ad-hero h2 { font-size: 1.5rem; }
}
/* === ?????? === */
.sidebar-guestbook { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(0,0,0,0.08); }
.sidebar-guestbook .sidebar-header { font-size: 14px; font-weight: 600; padding: 8px 0; margin-bottom: 8px; }
.gb-form { display: flex; flex-direction: column; gap: 8px; }
.gb-input, .gb-textarea { width: 100%; padding: 8px 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; box-sizing: border-box; background: #fff; }
.gb-textarea { height: 60px; resize: none; }
.gb-submit { padding: 7px 14px; background: #4a90d9; color: #fff; border: none; border-radius: 6px; font-size: 13px; cursor: pointer; transition: background 0.2s; }
.gb-submit:hover { background: #357abd; }
.gb-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.gb-list { margin-top: 10px; max-height: 300px; overflow-y: auto; }
.gb-item { padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.gb-name { font-weight: 600; font-size: 12px; color: #4a90d9; margin-right: 8px; }
.gb-time { font-size: 11px; color: #aaa; }
.gb-content { margin: 4px 0 0; font-size: 12px; color: #555; line-height: 1.5; word-break: break-all; }
.gb-empty { text-align: center; color: #bbb; font-size: 12px; padding: 12px 0; }
/* === ????? === */
.post-comments { margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; }
.comments-title { font-size: 1.1rem; color: #333; margin-bottom: 16px; }
.cmt-list { margin-bottom: 16px; }
.cmt-item { padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
.cmt-name { font-weight: 600; font-size: 13px; color: #4a90d9; margin-right: 8px; }
.cmt-time { font-size: 11px; color: #bbb; }
.cmt-content { margin: 4px 0 0; font-size: 13px; color: #555; line-height: 1.6; }
.cmt-empty { text-align: center; color: #bbb; font-size: 13px; padding: 20px 0; }
.cmt-form { display: flex; flex-direction: column; gap: 10px; }
.cmt-input, .cmt-textarea { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; box-sizing: border-box; }
.cmt-textarea { height: 80px; resize: vertical; }
.cmt-submit { align-self: flex-end; padding: 8px 20px; background: #4a90d9; color: #fff; border: none; border-radius: 6px; font-size: 14px; cursor: pointer; }
.cmt-submit:hover { background: #357abd; }
.cmt-submit:disabled { opacity: 0.6; }
/* === 验证码样式 === */
.cmt-captcha, .gb-captcha { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.captcha-q { font-size: 15px; font-weight: 700; color: #e74c3c; white-space: nowrap; background: #fff3f3; padding: 4px 10px; border-radius: 4px; border: 1px solid #fcc; min-width: 80px; text-align: center; user-select: none; }
.captcha-input { width: 90px !important; padding: 8px 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 15px; text-align: center; box-sizing: border-box; }
.captcha-input:focus { border-color: #4a90d9; outline: none; box-shadow: 0 0 0 2px rgba(74,144,217,0.15); }
.captcha-refresh { font-size: 12px; color: #4a90d9; cursor: pointer; white-space: nowrap; background: none; border: none; }
.captcha-refresh:hover { text-decoration: underline; }
CSSEOF

/* === 主内容区留言板 === */
.main-guestbook { margin: 24px 0; padding: 20px; background: #f9fafb; border-radius: 10px; border: 1px solid #e8eaed; }
.main-guestbook .guestbook-header { font-size: 16px; font-weight: 700; color: #333; margin-bottom: 14px; }
.main-guestbook .gb-form { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.main-guestbook .gb-form-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.main-guestbook .gb-form-row .gb-input { flex: 1; min-width: 140px; }
.main-guestbook .gb-input, .main-guestbook .gb-textarea { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; box-sizing: border-box; background: #fff; }
.main-guestbook .gb-textarea { height: 74px; resize: vertical; }
.main-guestbook .gb-captcha { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.main-guestbook .gb-submit { align-self: flex-end; padding: 9px 22px; background: #4a90d9; color: #fff; border: none; border-radius: 8px; font-size: 14px; cursor: pointer; transition: background 0.2s; }
.main-guestbook .gb-submit:hover { background: #357abd; }
.main-guestbook .gb-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.main-guestbook .gb-list { margin-top: 12px; max-height: 260px; overflow-y: auto; }
.main-guestbook .gb-item { padding: 8px 0; border-bottom: 1px solid #eee; }
.main-guestbook .gb-name { font-weight: 600; font-size: 13px; color: #4a90d9; margin-right: 8px; }
.main-guestbook .gb-time { font-size: 11px; color: #aaa; }
.main-guestbook .gb-content { margin: 4px 0 0; font-size: 13px; color: #555; line-height: 1.6; }
.main-guestbook .gb-empty { text-align: center; color: #bbb; font-size: 13px; padding: 16px 0; }

@media (max-width: 768px) {
  .main-guestbook { padding: 14px; margin: 16px 0; }
  .main-guestbook .gb-form-row { flex-direction: column; gap: 8px; }
  .main-guestbook .gb-form-row .gb-input { min-width: 100%; }
  .main-guestbook .gb-submit { width: 100%; text-align: center; }
}
﻿/* === 关于我们页面 === */
.about-hero { text-align: center; padding: 50px 20px 36px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 14px; color: #fff; margin-bottom: 28px; }
.about-hero-icon { width: 64px; height: 64px; line-height: 64px; font-size: 28px; background: rgba(255,255,255,0.2); border-radius: 50%; margin: 0 auto 16px; }
.about-hero h1 { font-size: 28px; margin: 0 0 8px; font-weight: 700; }
.about-hero-desc { font-size: 15px; opacity: 0.9; margin: 0; }
.about-stats { display: flex; justify-content: center; gap: 40px; margin-bottom: 32px; flex-wrap: wrap; }
.about-stat-item { text-align: center; min-width: 100px; }
.about-stat-num { font-size: 32px; font-weight: 800; color: #667eea; }
.about-stat-label { font-size: 13px; color: #999; margin-top: 4px; }
.about-section { margin-bottom: 28px; }
.about-section h2 { font-size: 18px; color: #333; margin: 0 0 12px; padding-left: 4px; }
.about-section h2 i { color: #667eea; margin-right: 8px; }
.about-section p { font-size: 14px; color: #666; line-height: 1.8; margin: 0; }
.about-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.about-feature-item { display: flex; align-items: flex-start; gap: 12px; padding: 16px; background: #f8f9fb; border-radius: 10px; }
.about-feature-item i { font-size: 22px; color: #667eea; margin-top: 2px; width: 28px; text-align: center; }
.about-feature-item strong { display: block; font-size: 14px; color: #333; }
.about-feature-item p { font-size: 12px; color: #999; margin: 4px 0 0 !important; line-height: 1.5 !important; }
.about-contact { display: inline-block; padding: 12px 24px; background: #f0f4ff; border-radius: 8px; color: #4a6cf7; font-size: 14px; margin-top: 8px; }
@media (max-width: 768px) {
  .about-hero { padding: 32px 16px 24px; }
  .about-hero h1 { font-size: 22px; }
  .about-stats { gap: 20px; }
  .about-stat-num { font-size: 24px; }
  .about-features { grid-template-columns: 1fr; }
}
