/* ============================================================
   磁力猫(torrentkitty) 全站样式
   主题：磁力搜索 / 科技感
   ============================================================ */

:root {
    --bg-deep: #070b14;
    --bg-body: #0a0e1a;
    --bg-card: #111827;
    --bg-card-hover: #16213a;
    --border: #1f2a44;
    --text-main: #e8eef7;
    --text-muted: #9aa7bd;
    --primary: #00d4ff;
    --primary-strong: #22e0c8;
    --accent: #7c4dff;
    --gradient: linear-gradient(135deg, #00d4ff 0%, #7c4dff 100%);
    --danger: #ff5a5f;
    --radius: 14px;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    --font-main: 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.7;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 15% 0%, rgba(0, 212, 255, 0.08), transparent 45%),
        radial-gradient(circle at 85% 10%, rgba(124, 77, 255, 0.08), transparent 45%);
    background-attachment: fixed;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover {
    color: #8feaff;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

/* ================= 页头导航 ================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 11, 20, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--text-main);
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--gradient);
    font-size: 1.1rem;
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.35);
}

.site-nav ul {
    display: flex;
    gap: 4px;
    list-style: none;
}

.site-nav a {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 10px;
    color: var(--text-muted);
    font-weight: 500;
}

.site-nav a:hover,
.site-nav a.active {
    color: #fff;
    background: rgba(0, 212, 255, 0.12);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ================= Hero ================= */
.hero {
    padding: 90px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(7, 11, 20, 0.6), rgba(7, 11, 20, 0.95)),
        radial-gradient(circle at 50% 0%, rgba(0, 212, 255, 0.16), transparent 60%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.06) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900;
    background: linear-gradient(90deg, #ffffff 0%, #00d4ff 55%, #7c4dff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 18px;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.search-box {
    display: flex;
    max-width: 720px;
    margin: 0 auto 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 60px;
    padding: 6px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.15);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--text-main);
    font-size: 1.05rem;
    padding: 12px 20px;
    font-family: var(--font-main);
}

.search-box input::placeholder {
    color: #6b7a93;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 700;
    border-radius: 60px;
    padding: 12px 28px;
    font-size: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 212, 255, 0.42);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.08rem;
}

.hot-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.hot-tags a {
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 4px 14px;
    border-radius: 30px;
    transition: all 0.25s ease;
}

.hot-tags a:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* ================= 区块通用 ================= */
section {
    padding: 70px 0;
}

section h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 14px;
}

.section-lead {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 44px;
}

/* ================= 特性 ================= */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    animation: fadeUp 0.6s ease both;
}

.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }
.feature-card:nth-child(4) { animation-delay: 0.3s; }

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ================= 分类 ================= */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--text-main);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeUp 0.6s ease both;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    color: var(--text-main);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-card h3 {
    padding: 16px 18px 4px;
    font-size: 1.2rem;
}

.category-card p {
    padding: 0 18px 18px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* ================= 资源表格 ================= */
.resource-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: auto;
    animation: fadeUp 0.6s ease both;
}

.resource-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.resource-table th,
.resource-table td {
    padding: 15px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.resource-table th {
    background: rgba(0, 212, 255, 0.08);
    color: var(--primary);
    font-weight: 700;
}

.resource-table tbody tr {
    transition: background 0.2s ease;
}

.resource-table tbody tr:hover {
    background: rgba(124, 77, 255, 0.08);
}

.resource-table td:first-child a {
    font-weight: 500;
}

.table-note {
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: right;
}

/* ================= FAQ ================= */
.faq-list {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px 22px;
    transition: border-color 0.3s ease;
    animation: fadeUp 0.5s ease both;
}

.faq-item[open] {
    border-color: var(--primary);
}

.faq-item summary {
    cursor: pointer;
    padding: 16px 0;
    font-weight: 700;
    font-size: 1.02rem;
    list-style: none;
    position: relative;
    padding-right: 36px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-item p {
    color: var(--text-muted);
    padding-bottom: 18px;
    font-size: 0.97rem;
}

/* ================= 服务 ================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-item {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.07), rgba(124, 77, 255, 0.07));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    animation: fadeUp 0.6s ease both;
}

.service-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.service-item h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
    color: var(--primary);
}

.service-item p {
    color: var(--text-muted);
    font-size: 0.96rem;
}

/* ================= CTA ================= */
.cta {
    background: var(--gradient);
    border-radius: 24px;
    margin: 20px auto 0;
    width: min(1200px, 92%);
    padding: 64px 32px;
    text-align: center;
    box-shadow: 0 18px 50px rgba(124, 77, 255, 0.3);
}

.cta h2 {
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 28px;
    font-size: 1.08rem;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta .btn-primary {
    background: #fff;
    color: #0a0e1a;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.cta .btn-ghost {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.cta .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.28);
}

/* ================= 页脚 ================= */
.site-footer {
    background: #05070d;
    border-top: 1px solid var(--border);
    margin-top: 70px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 30px;
    padding: 56px 0 40px;
}

.footer-brand h2 {
    text-align: left;
    font-size: 1.35rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.footer-brand p,
.footer-disclaimer p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.footer-links h3,
.footer-disclaimer h3 {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 14px;
}

.footer-links ul {
    list-style: none;
    display: grid;
    gap: 8px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.93rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
}

.footer-bottom p {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* ================= 内部页 Hero ================= */
.page-hero {
    padding: 70px 0 60px;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(7, 11, 20, 0.5), rgba(7, 11, 20, 0.95)),
        radial-gradient(circle at 50% 0%, rgba(124, 77, 255, 0.18), transparent 60%);
}

.page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    background: linear-gradient(90deg, #ffffff 0%, #00d4ff 60%, #7c4dff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 14px;
}

.page-hero .page-hero-sub {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 720px;
    margin: 0 auto;
}

/* ================= 关于页 ================= */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h2 {
    text-align: left;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.about-visual img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.timeline {
    list-style: none;
    position: relative;
    padding-left: 26px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: var(--gradient);
}

.timeline li {
    position: relative;
    padding: 0 0 26px 22px;
}

.timeline li::before {
    content: "";
    position: absolute;
    left: -26px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gradient);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.6);
}

.timeline h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.timeline p {
    color: var(--text-muted);
    font-size: 0.93rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 18px;
    text-align: center;
    animation: fadeUp 0.6s ease both;
}

.stat-card .stat-num {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.stat-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 6px;
}

/* ================= 联系页 ================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    margin-bottom: 20px;
    animation: fadeUp 0.5s ease both;
}

.contact-info-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.contact-info-card p {
    color: var(--text-muted);
    font-size: 0.96rem;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 0.98rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 0;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.12);
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

.form-message {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(34, 224, 200, 0.12);
    border: 1px solid var(--primary-strong);
    color: var(--primary-strong);
}

.form-message.error {
    display: block;
    background: rgba(255, 90, 95, 0.12);
    border: 1px solid var(--danger);
    color: var(--danger);
}

/* ================= 资讯页 ================= */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeUp 0.6s ease both;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.news-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.news-card-body {
    padding: 22px;
}

.news-card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    gap: 14px;
}

.news-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.news-card h3 a {
    color: var(--text-main);
}

.news-card h3 a:hover {
    color: var(--primary);
}

.news-card p {
    color: var(--text-muted);
    font-size: 0.94rem;
}

.news-card .btn {
    margin-top: 16px;
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* ================= 资讯详情页 ================= */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 36px;
    align-items: start;
}

.detail-article {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 38px;
    animation: fadeUp 0.6s ease both;
}

.detail-article .article-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 22px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.detail-article .article-featured {
    border-radius: var(--radius);
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.detail-article h2 {
    text-align: left;
    margin: 30px 0 14px;
    font-size: 1.35rem;
}

.detail-article h3 {
    margin: 24px 0 12px;
    font-size: 1.12rem;
    color: var(--primary);
}

.detail-article p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 1.02rem;
}

.detail-article ul {
    padding-left: 22px;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.detail-article blockquote {
    border-left: 4px solid var(--primary);
    background: rgba(0, 212, 255, 0.06);
    padding: 16px 20px;
    margin: 22px 0;
    border-radius: 0 12px 12px 0;
    color: var(--text-main);
}

.detail-aside {
    display: grid;
    gap: 22px;
    position: sticky;
    top: 90px;
}

.aside-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    animation: fadeUp 0.5s ease both;
}

.aside-card h2 {
    text-align: left;
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.aside-card ul {
    list-style: none;
    display: grid;
    gap: 12px;
}

.aside-card li a {
    color: var(--text-muted);
    font-size: 0.94rem;
    display: block;
    padding: 6px 0;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.aside-card li a:hover {
    color: var(--primary);
    padding-left: 6px;
}

/* ================= 产品/资源导航页 ================= */
.product-banner {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 77, 255, 0.1));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    text-align: center;
    margin-bottom: 40px;
    animation: fadeUp 0.5s ease both;
}

.product-banner h2 {
    font-size: 1.4rem;
}

.product-banner p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.keyword-cloud a {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.93rem;
    transition: all 0.25s ease;
}

.keyword-cloud a:hover {
    color: #fff;
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.12);
    transform: translateY(-2px);
}

.product-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.product-tabs button {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 10px 22px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.product-tabs button:hover,
.product-tabs button.active {
    color: #fff;
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.14);
}

.resource-list {
    display: grid;
    gap: 16px;
}

.resource-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: border-color 0.25s ease, transform 0.25s ease;
    animation: fadeUp 0.5s ease both;
}

.resource-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.resource-item h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.resource-item h3 a {
    color: var(--text-main);
}

.resource-item h3 a:hover {
    color: var(--primary);
}

.resource-item .resource-meta {
    color: var(--text-muted);
    font-size: 0.88rem;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.resource-item .badge {
    flex-shrink: 0;
    background: rgba(0, 212, 255, 0.12);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 700;
}

/* ================= 动画 ================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= 响应式 ================= */
@media (max-width: 992px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-aside {
        position: static;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(7, 11, 20, 0.98);
        border-bottom: 1px solid var(--border);
        padding: 12px 4%;
    }

    .site-nav.open {
        display: block;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 2px;
    }

    .site-nav a {
        display: block;
        padding: 14px 16px;
    }

    .hero {
        padding: 60px 0 70px;
    }

    .search-box {
        flex-direction: column;
        border-radius: 20px;
        padding: 10px;
        gap: 8px;
    }

    .search-box .btn {
        width: 100%;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .resource-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .feature-grid,
    .category-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

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

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cta {
        padding: 48px 20px;
    }

    section {
        padding: 52px 0;
    }
}
