/* ===== Preflight 基础重置 ===== */
*, *::before, *::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: #e5e7eb; }
* { margin: 0; padding: 0; }
body { font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;line-height: 1.35; -webkit-font-smoothing: antialiased; background: linear-gradient(45deg,rgba(0, 204, 102, 0.05),rgba(16, 119, 243, 0.05), rgba(255, 102, 0, 0.05));}
a { color: inherit; text-decoration: inherit; }
img, svg, video, canvas { display: block; max-width: 100%; }
input, button { font: inherit; }
input::placeholder, textarea::placeholder { color: #9ca3af; opacity: 1; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
ul, ol { list-style: none; }

/* ===== Container ===== */
.container { width: 100%; }
@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }
@media (min-width: 1500px) { .container { max-width: 1500px; } }
/* ===== Display ===== */
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }

/* ===== Width ===== */
.w-full { width: 100%; }

/* ===== Flexbox ===== */
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-grow { flex-grow: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ===== Grid ===== */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ===== Gap ===== */
.gap-0 { gap: 0px; }
.gap-3 { gap: 0.75rem; }
.gap-5 { gap: 1.25rem; }

/* ===== Padding ===== */
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-0 { padding-top: 0; padding-bottom: 0; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }

/* ===== Margin ===== */
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-5 { margin-bottom: 1.25rem; }
.ml-3 { margin-left: 0.75rem; }
.mt-3 { margin-top: 0.75rem; }

/* ===== Position ===== */
.relative { position: relative; }
.absolute { position: absolute; }
.right-1 { right: 0.25rem; }
.top-1 { top: 0.25rem; }

/* ===== Background ===== */
.bg-gray-100 { background-color: #f3f4f6; }
.bg-primary { background-color: var(--primary); }
.bg-white { background-color: #fff; }

/* ===== Text Color ===== */
.text-white { color: #fff; }
.text-gray-500 { color: #6b7280; }

/* ===== Font Size ===== */
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }

/* ===== Font Weight ===== */
.font-bold { font-weight: 600; }
.font-medium { font-weight: 500; }

/* ===== Text Align ===== */
.text-center { text-align: center; }

/* ===== Border ===== */
.border { border-width: 1px; }
.border-gray-300 { border-color: #d1d5db; }

/* ===== Border Radius ===== */
.rounded-lg { border-radius: 0.5rem; }
.rounded-md { border-radius: 0.375rem; }

/* ===== Shadow ===== */
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }

/* ===== Transition ===== */
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

/* ===== Hover ===== */
.hover\:bg-primary\/60:hover { background-color: rgba(var(--primary-rgb), 0.6); }

/* ===== Focus ===== */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--tw-ring-color, transparent); }
.focus\:ring-primary:focus { --tw-ring-color: var(--primary); }
.focus\:border-primary:focus { border-color: var(--primary); }

/* ===== Responsive: sm (>=640px) ===== */
@media (min-width: 640px) {
.sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ===== Responsive: md (>=768px) ===== */
@media (min-width: 768px) {
.md\:flex-row { flex-direction: row; }
.md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.md\:inline-block { display: inline-block; }
.md\:text-2xl { font-size: 1.25rem; line-height: 2rem; }
}

/* ===== Responsive: lg (>=1024px) ===== */
@media (min-width: 1024px) {
.lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.lg\:grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.lg\:grid-cols-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.lg\:grid-cols-9 { grid-template-columns: repeat(9, minmax(0, 1fr)); }
.lg\:grid-cols-10 { grid-template-columns: repeat(10, minmax(0, 1fr)); }
}

/* ===== 自定义组件样式 ===== */

.content-auto { content-visibility: auto; }

.nav-card {background-color: #fff; border-radius: 0.375rem; box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);transition: box-shadow 0.2s ease;}
.nav-card:hover {box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);}

.logo { font-size: 18px; font-weight: bold; color: #15ac70; text-decoration: none; width: 246px; height: 55px; }
.logo img { width: 226px; height: 55px; background: #fff; border-radius: 5px; }

.tabs {display: flex;flex-wrap: wrap; gap: 5px;display: inline-block;padding:0px;color: #333;;border-radius: 3px;width: 100%;}
.tabs a {display: inline-block;padding: 6px 10px;margin: 5px 5px;text-decoration: none;color: #333;font-size: 16px;font-weight:600;background: #fafafa;border-radius: 4px;}
.category-title {background-color: var(--primary); color: #fff; padding: 0.5rem 1rem;}

.subcategory-tabs {display: flex;border-bottom: 1px solid #e5e7eb;background-color: #f9fafb;}
.subcategory-tab {padding: 0.5rem 0.75rem;font-weight: 500;cursor: pointer;font-size: 0.875rem;transition: background-color 0.2s ease;}
.subcategory-tab:hover { background-color: #f3f4f6; }
.subcategory-tab.active {background-color: #fff;border-bottom: 2px solid var(--primary);color: var(--primary);}

.subcategory-tab16 {padding: 0.5rem 0.75rem;cursor: pointer;transition: background-color 0.2s ease;}
.subcategory-tab16:hover { background-color: #f3f4f6;}
.subcategory-tab16.active {background-color: #fff;border-bottom: 2px solid var(--primary);color: var(--primary);}

.subcategory-tabdh {padding: 0.5rem 0.75rem;font-weight: 600; cursor: pointer;transition: background-color 0.2s ease;}
.subcategory-tabdh:hover { background-color: #f3f4f6; }
.subcategory-tabdh.active {background-color: #fff;border-bottom: 2px solid var(--primary); color: var(--primary);}
.link-item {display: block;padding: 0.375rem 0.75rem;font-size: 0.975rem;border-radius: 0.375rem;transition: color 0.2s ease, background-color 0.2s ease;color: #1f2937;}
.link-item:hover {background: rgba(var(--primary-rgb), 0.05);color: #111827;}
.link-item14 {display: block;padding: 0.25rem 0.75rem;font-size: 0.875rem;border-radius: 0.375rem;transition: color 0.2s ease, background-color 0.2s ease;color: #1f2937;}
.link-item14:hover {background-color: rgba(var(--primary-rgb), 0.05);color: #111827;}
.content-section { display: none; }
.content-section.active { display: block; }
.search-engine-item {padding: 0.25rem 0.75rem;border-radius: 0.375rem;cursor: pointer;transition: background-color 0.2s ease;}
.search-engine-item:hover { background-color: rgba(var(--primary-rgb), 0.05); }
.search-engine-item.active {background-color: var(--primary);color: #fff;}
.error-message {color: #ef4444;font-style: italic;}
.footer-links {display: flex;justify-content: center;gap: 10px;margin: 10px;flex-wrap: wrap;font-size: 14px;line-height: 20px;}
.footer-links a {color: #333;text-decoration: none;transition: color 0.2s;}
.footer-links a:hover {color: var(--primary-color);text-decoration: underline;}