/* ========================================
   Reset & Base
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #1f2933;
    background: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Navbar
   ======================================== */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.navbar-brand,
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand img,
.logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.brand-name,
.brand-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2933;
}

.navbar-menu,
.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.navbar-menu a,
.nav-menu a,
.nav-item {
    color: #4b5563;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.navbar-menu a:hover,
.nav-menu a:hover,
.nav-item.active,
.nav-item:hover {
    color: #dc2626;
    background: #fee2e2;
}

.navbar-end {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-bar {
    display: flex;
}

.search-bar input {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 4px 0 0 4px;
    width: 200px;
    outline: none;
}

.search-bar button {
    padding: 8px 12px;
    border: none;
    background: #dc2626;
    color: #fff;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* Avatar dropdown */
.nav-menu li {
    position: relative;
}

.nav-menu #loginBtn,
.nav-menu .btn-outline {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-menu #loginBtn:not(.login-text) {
    padding: 0;
    border: none;
    background: transparent;
    overflow: hidden;
}

.nav-menu #loginBtn img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.nav-menu #loginBtn.login-text {
    width: auto;
    min-width: 120px;
    height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    border: 2px solid #dc2626;
    background: rgba(220,38,38,0.08);
    color: #dc2626;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 38px;
    justify-content: center;
}

.nav-menu #loginBtn.login-text:hover {
    background: #dc2626;
    color: #fff;
}

.nav-menu li.hide-dropdown .nav-avatar-dropdown {
    display: none !important;
}

.nav-login-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dc2626;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.nav-menu li:hover .nav-avatar-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-avatar-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
    overflow: hidden;
}

.nav-dropdown-header {
    padding: 20px;
    background:
      radial-gradient(160px 140px at 18% 24%, rgba(255, 90, 60, 0.26), transparent 60%),
      radial-gradient(200px 160px at 82% 18%, rgba(0, 0, 0, 0.14), transparent 66%),
      linear-gradient(135deg,#1a1a1a,#333);
    color: #fff;
    text-align: center;
}

.nav-dropdown-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 12px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-dropdown-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.nav-dropdown-status {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
}

.nav-dropdown-menu {
    padding: 12px 0;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #374151;
    transition: background 0.2s;
}

.nav-dropdown-item:hover {
    background: #f5f5f5;
}

.nav-dropdown-item-icon {
    width: 20px;
    margin-right: 12px;
    font-size: 16px;
}

.nav-dropdown-item-text {
    flex: 1;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-dropdown-count {
    font-size: 12px;
    color: #999;
    margin-left: 8px;
    font-weight: normal;
}

.nav-dropdown-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 4px 0;
}

.nav-dropdown-member {
    background: #dc2626 !important;
    color: #fff !important;
    margin: 0 12px 10px;
    border-radius: 10px;
}

.nav-dropdown-item-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-dropdown-item-desc {
    font-size: 11px;
    color: rgba(255,255,255,0.9);
}

.nav-dropdown-item.logout {
    color: #dc2626;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

/* ========================================
   Hero
   ======================================== */
.hero {
    background: #050505;
    color: #fff;
    text-align: center;
    padding: 70px 20px 50px;
    position: relative;
    overflow: hidden;
}

/* 浅色弥散光感覆盖层（红黑点缀） */
.glow-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(240px 180px at 20% 30%, rgba(255, 120, 60, 0.16), transparent 60%),
      radial-gradient(300px 240px at 80% 10%, rgba(0, 0, 0, 0.08), transparent 66%),
      radial-gradient(340px 260px at 50% 90%, rgba(220, 38, 38, 0.12), transparent 72%);
    filter: saturate(1.06);
}

/* Mobile glow tuning */
@media (max-width: 640px) {
    .glow-overlay {
        background:
          radial-gradient(220px 160px at 22% 32%, rgba(255, 90, 60, 0.38), transparent 60%),
          radial-gradient(280px 220px at 78% 12%, rgba(0, 0, 0, 0.18), transparent 66%),
          radial-gradient(320px 260px at 50% 92%, rgba(220, 38, 38, 0.32), transparent 72%);
        filter: saturate(1.18) contrast(1.04);
    }
}

.hero::after {
    content: "";
    position: absolute;
    inset: 20px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.08);
    pointer-events: none;
}

.hero-eyebrow {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    color: #f87171;
    margin-bottom: 10px;
    display: inline-block;
}

.hero h1 {
    font-size: 2.6rem;
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 38px;
    color: rgba(255,255,255,0.85);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-stat-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 18px;
    padding: 14px 28px;
    min-width: 150px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.hero-stat-card .stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #f97373;
}

.hero-stat-card .stat-label {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    margin-top: 6px;
}

.main-content {
    background: #fff;
}

/* ========================================
   Page Header / Search
   ======================================== */
.page-header {
    text-align: center;
    padding: 60px 20px 40px;
    background: linear-gradient(135deg,#dc2626,#b91c1c);
    color: #fff;
    position: relative;
}

.page-header.resources-header {
    background: #050505;
    position: relative;
}

.page-header.resources-header h1 {
    color: #fff;
}

.page-header.resources-header p {
    color: rgba(255,255,255,0.85);
}

.page-header h1 {
    font-size: 2.4rem;
    margin-bottom: 8px;
}

.page-header p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.9);
}

.search-container {
    margin-bottom: 30px;
}

.main-search-form {
    max-width: 520px;
    margin: 0 auto;
}

.search-input-wrapper {
    display: flex;
    background: rgba(255,255,255,0.95);
    border-radius: 999px;
    padding: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.main-search-input {
    flex: 1;
    border: none;
    padding: 12px 18px;
    background: transparent;
    font-size: 0.95rem;
    color: #374151;
    outline: none;
}

.search-submit-btn {
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 1rem;
}

/* ========================================
   Categories & Tags
   ======================================== */
.category-nav,
.category-nav-section {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.category-nav-scroll {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 0 20px;
    -webkit-overflow-scrolling: touch;
}

.category-nav-item {
    padding: 8px 20px;
    border-radius: 20px;
    background: #f5f5f5;
    color: #333;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.category-nav-item.active {
    background: #dc2626;
    color: #fff;
    box-shadow: 0 6px 18px rgba(220,38,38,0.25);
}

.tags-nav,
.tag-nav {
    padding: 16px 0;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.tags-nav-scroll,
.tag-nav-scroll {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 0 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tags-nav-scroll::-webkit-scrollbar,
.tag-nav-scroll::-webkit-scrollbar {
    display: none;
}

.tag-nav-item {
    padding: 8px 20px;
    border-radius: 20px;
    background: #f5f5f5;
    border: none;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.tag-nav-item:hover {
    background: #fee2e2;
    color: #dc2626;
}

.tag-nav-item.active {
    background: #dc2626;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(220,38,38,0.25);
}

/* Filter tabs */
/* 内容筛选 - 小程序样式 */
.content-filters {
    display: flex;
    padding: 0 30px 20px;
    gap: 40px;
    background: #fff;
}

.filter-item {
    font-size: 28px;
    color: #999;
    padding: 8px 0;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.filter-item.active {
    color: #333;
    font-weight: 600;
}

.filter-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #dc2626;
}

/* 兼容旧的类名 */
.filter-tabs {
    display: flex;
    gap: 40px;
    padding: 0 30px 20px;
    background: #fff;
}

.filter-tab {
    font-size: 28px;
    color: #999;
    padding: 8px 0;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.filter-tab.active {
    color: #333;
    font-weight: 600;
}

.filter-tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #dc2626;
}

/* ========================================
   Resources Grid & Cards
   ======================================== */
.resources-section,
.resource-list {
    background: #fff;
    padding: 20px;
}

.resources-grid,
#resourcesGrid,
#articlesList {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.resource-card {
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid #f1f1f1;
    box-shadow: 0 8px 20px rgba(15,23,42,0.06);
    display: flex;
    gap: 12px;
    align-items: stretch;
    transition: all 0.3s;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(15,23,42,0.15);
}

.resource-main {
    display: flex;
    gap: 12px;
    flex: 1;
}

.resource-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.resource-body {
    flex: 1;
    min-width: 0;
}

.resource-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #111827;
    line-height: 1.35;
}

.resource-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.resource-tag {
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 11px;
}

.resource-tag.format-badge {
    background: #fee2e2;
    color: #b91c1c;
    font-weight: 600;
}

.resource-tag.primary-badge {
    background: rgba(220,38,38,0.06);
    color: #dc2626;
    font-weight: 600;
    border: 1px solid rgba(220,38,38,0.4);
}

.resource-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11px;
    color: #6b7280;
}

.resource-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.resource-stat .icon {
    font-size: 14px;
    padding: 4px 6px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.06);
    background: #f9fafb;
    line-height: 1;
}

.resource-stat[data-type="date"] .icon {
    border-color: rgba(220,38,38,0.18);
    background: rgba(220,38,38,0.06);
}
.resource-stat[data-type="download"] .icon {
    border-color: rgba(59,130,246,0.18);
    background: rgba(59,130,246,0.06);
}
.resource-stat[data-type="favorite"] .icon {
    border-color: rgba(220,38,38,0.18);
    background: rgba(220,38,38,0.06);
}
.resource-stat[data-type="size"] .icon {
    border-color: rgba(245,158,11,0.18);
    background: rgba(245,158,11,0.06);
}

.resource-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 68px;
}

.resource-actions button {
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-download {
    background: #dc2626;
    color: #fff;
    box-shadow: 0 4px 12px rgba(220,38,38,0.25);
}

.btn-download:hover {
    background: #b91c1c;
}

.btn-favorite {
    background: #fff;
    color: #dc2626;
    border-color: #dc2626;
}

.btn-favorite.favorited {
    background: #dc2626;
    color: #fff;
}

.btn-share {
    background: #fff7f7;
    color: #c2410c;
    border-color: #fed7aa;
}

.btn-share:hover {
    background: #fee2e2;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
    font-size: 1rem;
}

.load-more {
    text-align: center;
    padding: 30px 0;
}

.btn-primary {
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220,38,38,0.25);
}

/* ========================================
   Footer
   ======================================== */
.footer { display: none; }

/* 新页尾（TRAE 风格） */
.site-footer { background: #0b0b0b; color: #e5e7eb; margin-top: 40px; border-top-left-radius: 20px; border-top-right-radius: 20px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; overflow: visible; position: relative; }
.site-footer .footer-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; }
.site-footer .footer-center { align-self: flex-end; }
.site-footer .footer-left { font-size: 14px; line-height: 1.8; }
.site-footer .footer-left p { margin: 4px 0; }
.site-footer .footer-right { text-align: center; }
.site-footer .footer-right .qr-row { display: flex; align-items: center; justify-content: center; gap: 18px; }
.site-footer .footer-right .qr-block { text-align: center; display: flex; flex-direction: column; align-items: center; }
.site-footer .footer-right img { width: 110px; height: 110px; border-radius: 8px; background: transparent; padding: 0; border: none; }
.site-footer .footer-right .qr-caption { font-size: 13px; color: #e5e7eb; margin-top: 6px; }
.site-footer .footer-right .qr-title { font-size: 13px; color: #e5e7eb; line-height: 1.6; margin-bottom: 6px; }
.site-footer .footer-banner { position: relative; background: #dc2626; height: 520px; display: flex; align-items: center; justify-content: center; overflow: visible; }
.site-footer .footer-banner::before { content: ''; position: absolute; top: -60px; left: 0; right: 0; height: 120px; background: linear-gradient(to bottom, rgba(0,0,0,0.22), rgba(0,0,0,0.08), rgba(0,0,0,0)); filter: blur(2px); animation: cloth-slide 4s ease-in-out infinite alternate; }
.site-footer .footer-banner .banner-text { position: relative; font-size: 520px; font-weight: 700; letter-spacing: 8px; color: transparent; -webkit-text-fill-color: transparent; background-image: linear-gradient(90deg, #ffffff 0%, #ffe5e5 50%, #ffffff 100%); -webkit-background-clip: text; background-clip: text; background-size: 200% auto; line-height: 1; cursor: default; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif; }
.site-footer .footer-banner .banner-text:hover { animation: hank-jitter 0.5s steps(6) infinite, hank-shimmer 1.6s linear infinite; }
.site-footer .footer-banner .banner-text::after { content: 'HANK'; position: absolute; inset: 0; color: transparent; background: repeating-linear-gradient(180deg, rgba(255,255,255,0.25) 0 3px, transparent 3px 6px); -webkit-background-clip: text; background-clip: text; opacity: 0; }
.site-footer .footer-banner .banner-text:hover::after { opacity: 1; animation: hank-scan 0.6s steps(4) infinite; }
@keyframes hank-jitter { 0% { transform: translate(0,0);} 20% { transform: translate(1px,-1px);} 40% { transform: translate(-1px,1px);} 60% { transform: translate(1px,1px);} 80% { transform: translate(-1px,-1px);} 100% { transform: translate(0,0);} }
@keyframes hank-shimmer { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
@keyframes cloth-slide { 0% { transform: translateY(0);} 100% { transform: translateY(40px);} }

/* 固定“回到顶部”按钮 */
.back-to-top-fixed { position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 999px; background: rgba(229,231,235,0.12); border: 1px solid rgba(229,231,235,0.25); display: flex; align-items: center; justify-content: center; color: #e5e7eb; font-size: 20px; backdrop-filter: blur(6px); cursor: pointer; z-index: 9999; }
.back-to-top-fixed:hover { background: rgba(229,231,235,0.22); }
.back-to-top-fixed.hide { display: none; }
.site-footer .footer-banner .banner-text:hover { animation: hank-flash 1.2s linear infinite; filter: drop-shadow(0 0 6px rgba(255,255,255,0.35)); }
@keyframes hank-flash { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.site-footer .footer-center { text-align: center; flex: 1; padding-top: 8px; }
.site-footer .back-to-top { display: inline-flex; align-items: center; gap: 6px; color: #e5e7eb; font-size: 13px; padding: 0; border: none; background: transparent; cursor: pointer; }
.site-footer .back-to-top::before { content: '↑'; font-size: 14px; opacity: 0.9; }
.site-footer .back-to-top:hover { color: #ffffff; }
.site-footer .back-to-top { display: inline-flex; align-items: center; gap: 6px; color: #e5e7eb; font-size: 13px; padding: 8px 12px; border: 1px solid #e5e7eb22; border-radius: 999px; cursor: pointer; }
.site-footer .back-to-top:hover { background: #e5e7eb12; }

.footer a {
    color: #9ca3af;
}

.footer a:hover {
    color: #fff;
}

/* ========================================
   Modal
   ======================================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 90%;
    max-height: 90vh;
    overflow: auto;
    position: relative;
    padding: 30px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1200px) {
    .resources-grid,
    #resourcesGrid,
    #articlesList {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .resources-grid,
    #resourcesGrid,
    #articlesList {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
        gap: 10px;
        height: auto;
        padding: 10px 0;
    }

    .navbar-menu {
        gap: 10px;
    }

    .navbar-end .search-bar {
        display: none;
    }

    .hero {
        padding: 50px 18px;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .hero-stats {
        gap: 16px;
    }

    .hero-stat-card {
        min-width: calc(50% - 12px);
        padding: 12px 18px;
    }

    .resources-grid,
    #resourcesGrid,
    #articlesList {
        gap: 16px;
    }

    .resource-card {
        flex-direction: column;
        padding: 16px;
    }

    .resource-main {
        flex-direction: column;
        gap: 12px;
    }

    .resource-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }

    .resource-actions {
        flex-direction: row;
        width: 100%;
        min-width: 0;
        gap: 8px;
    }

    .resource-actions button {
        flex: 1;
        padding: 8px 12px;
        font-size: 13px;
    }

    .filter-tabs {
        justify-content: center;
    }
}

/* Mobile optimizations moved to styles/mobile.css */

.global-toast {
    position: fixed;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%) translateY(20px);
    background: rgba(17,24,39,0.9);
    color: #fff;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
}

.global-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.global-toast.success {
    background: rgba(22,163,74,0.95);
}

.global-toast.error {
    background: rgba(220,38,38,0.95);
}

/* ========================================
   交个朋友样式
   ======================================== */
.make-friends-section a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 16px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.make-friends-section a:hover {
    background-color: #f5f5f5;
}

.make-friends-section a:active {
    background-color: #eeeeee;
}
.site-footer .slogan { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.site-footer .slogan img { width: 18px; height: 18px; vertical-align: -3px; }
