/* content/plugins/ridecircle/assets/front.css V32.0 */
:root { 
  --c-blue:#3b82f6; --c-dark:#0f172a; --c-gray:#64748b; 
  --c-light:#f8fafc; --c-bg:#f1f5f9;
  --rc-font-num: "Roboto Condensed", "DIN Alternate", "Arial Narrow", sans-serif;
}

#rc-app-root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--c-dark); line-height: 1.6;
  background-color: #f3f6f9;
  background-image: radial-gradient(#d1d5db 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  min-height: 100vh; padding-bottom: 80px;
}
.ridecircle-container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* === 核心修复：强制详情页内容上移 === */
.ridecircle-container.home-layout { margin-top: -100px !important; position: relative; z-index: 10; }
.ridecircle-container.detail-layout { 
  margin-top: -120px !important; /* 详情页压得更多一点，效果更好 */
  position: relative; z-index: 10; 
}

@keyframes rcZoom { 0% { transform: scale(1); } 100% { transform: scale(1.12); } }
@keyframes slideUpFade { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rcLikePop { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }

.rc-glass { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.6); }

/* Hero */
.rc-home-hero, .rc-detail-hero { 
  height: 540px; /* 足够的高度 */
  position: relative; overflow: hidden; margin-bottom: 0; 
  background: #0f172a; 
  animation: slideUpFade 0.6s ease-out; 
}
.rc-detail-hero { margin-bottom: 0; }

.rc-hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; transition: opacity 0.8s ease-in-out; animation: rcZoom 30s infinite alternate linear; z-index: 0; }
.rc-hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(15,23,42,0.1) 0%, rgba(15,23,42,0.2) 40%, rgba(15,23,42,0.9) 100%); display: flex; align-items: center; justify-content: center; z-index: 1; }

.rc-hero-inner, .rc-hero-content { 
  position: relative; z-index: 2; padding: 20px; max-width: 800px; text-align: center; color: #fff; transition: opacity 0.4s ease-in-out; margin-top: 40px; 
}
.rc-hero-tag { display: inline-block; background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; padding: 6px 16px; font-size: 11px; font-weight: 800; letter-spacing: 2px; border-radius: 50px; margin-bottom: 20px; text-transform: uppercase; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.rc-hero-inner h2, .rc-hero-content h1 { font-size: 3.8rem; margin: 0 0 15px; font-weight: 900; letter-spacing: -1px; color: #fff; text-shadow: 0 4px 20px rgba(0,0,0,0.5); line-height: 1.1; }
.rc-hero-data, .rc-hero-meta { display: flex; justify-content: center; align-items: center; gap: 30px; font-size: 1.15rem; font-weight: 600; margin-bottom: 35px; font-family: var(--rc-font-num); color: rgba(255,255,255,0.95); text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.rc-hd-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rc-hd-val { font-size: 1.4rem; font-weight: 800; }
.rc-hd-lbl { font-size: 0.75rem; text-transform: uppercase; opacity: 0.7; font-weight: 500; letter-spacing: 1px; }
.rc-hero-data .sep, .rc-hero-meta .sep { width: 1px; height: 25px; background: rgba(255,255,255,0.3); margin: 0 5px; }
.rc-hero-btn { display: inline-block; padding: 14px 45px; background: #fff; color: var(--c-dark); border-radius: 50px; font-weight: 800; text-decoration: none; transition: all 0.3s; box-shadow: 0 10px 30px rgba(0,0,0,0.3); font-size: 1rem; }
.rc-hero-btn:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 20px 40px rgba(0,0,0,0.5); background: #f8fafc; color: #3b82f6; }
.rc-back-btn { display: inline-block; color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.9rem; padding: 6px 18px; border-radius: 30px; margin-bottom: 15px; transition: 0.2s; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); }
.rc-back-btn:hover { background: rgba(0,0,0,0.6); color: #fff; border-color: rgba(255,255,255,0.4); }

/* Stats Card */
.rc-stats-card { border-radius: 20px; padding: 25px 40px; margin-bottom: 40px; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.08); display: flex; justify-content: space-between; align-items: center; position: relative; flex-wrap: wrap; gap: 30px; z-index: 10; animation: slideUpFade 0.8s ease-out 0.2s backwards; }
.rc-brand-col h3 { font-size: 1.8rem; margin: 0 0 5px; font-weight: 800; color: var(--c-dark); letter-spacing: -0.5px; }
.rc-brand-col p { margin: 0; color: var(--c-gray); font-size: 0.95rem; }
.rc-stat-group { display: flex; gap: 50px; }
.stat-col { display: flex; align-items: center; gap: 15px; }
.stat-col .icon { font-size: 26px; background: rgba(59, 130, 246, 0.1); width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 16px; color: var(--c-blue); }
.stat-col .info strong { display: block; font-size: 1.6rem; line-height: 1; color: var(--c-dark); font-family: var(--rc-font-num); letter-spacing: -0.5px; }
.stat-col .info span { font-size: 0.75rem; color: var(--c-gray); text-transform: uppercase; font-weight: 600; margin-top: 4px; display: block; }

/* Grid & Cards */
.ridecards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; margin-top: 40px; animation: slideUpFade 0.8s ease-out 0.4s backwards; }
.ride-card { background: #fff; border-radius: 24px; height: 360px; overflow: hidden; box-shadow: 0 10px 30px -5px rgba(0,0,0,0.05); transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); cursor: pointer; position: relative; background-size: cover !important; background-position: center !important; border: 1px solid rgba(255,255,255,0.6); }
.ride-card:hover { transform: translateY(-8px); box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.2); border-color: rgba(59, 130, 246, 0.3); }
.rc-card-overlay { height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; background: linear-gradient(to bottom, rgba(255,255,255,0.8), #fff 60%); }
.ride-card[data-bg="1"] .rc-card-overlay { background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.9) 100%); color: #fff; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.rc-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.rc-card-meta h3 { margin: 0 0 5px 0; font-size: 1.4rem; line-height: 1.2; font-weight: 800; letter-spacing: -0.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta-row { font-size: 0.85rem; font-weight: 500; opacity: 0.7; color: var(--c-dark); }
.ride-card[data-bg="1"] .meta-row { color: #fff; opacity: 0.8; }
.rc-card-capsules { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; margin-bottom: 20px; }
.rc-cap-item { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; font-family: var(--rc-font-num); background: rgba(59, 130, 246, 0.08); color: var(--c-blue); }
.ride-card[data-bg="1"] .rc-cap-item { background: rgba(255,255,255,0.2); color: #fff; backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.1); }
.rc-cap-item i { font-style: normal; opacity: 0.7; font-size: 0.9em; }
.rc-card-foot { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; font-weight: 700; padding-top: 10px; border-top: 1px solid rgba(0,0,0,0.05); }
.ride-card[data-bg="1"] .rc-card-foot { border-top-color: rgba(255,255,255,0.2); }
.rc-card-foot .likes { color: #f59e0b; display: flex; align-items: center; gap: 6px; }
.btn-go { color: var(--c-blue); transition: 0.2s; opacity: 0.8; }
.ride-card[data-bg="1"] .btn-go { color: #fff; }
.ride-card:hover .btn-go { opacity: 1; transform: translateX(3px); }

/* Detail Main */
.rc-detail-main { background: #fff; border-radius: 24px; padding: 40px; position: relative; z-index: 10; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.1); animation: slideUpFade 0.8s ease-out 0.2s backwards; }
.rc-data-panel { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 40px; justify-content: center; }
.data-item { flex: 1 1 150px; background: #fff; border-radius: 18px; padding: 25px 15px; text-align: center; border: 1px solid #e2e8f0; transition: transform 0.2s; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02); }
.data-item:hover { transform: translateY(-5px); box-shadow: 0 10px 20px -5px rgba(0,0,0,0.1); }
.data-item .icon { font-size: 28px; margin-bottom: 8px; display: block; }
.data-item .num { font-size: 2rem; font-weight: 900; color: var(--c-dark); line-height: 1.1; font-family: var(--rc-font-num); }
.data-item .lbl { font-size: 0.85rem; color: var(--c-gray); margin-top: 6px; font-weight: 600; text-transform: uppercase; }
.di-dist { border-color: #dbeafe; background: linear-gradient(to bottom right, #fff, #eff6ff); } .di-dist .icon { color: #2563eb; } .di-dist .num { color: #1e40af; }
.di-speed { border-color: #fef3c7; background: linear-gradient(to bottom right, #fff, #fffbeb); } .di-speed .icon { color: #d97706; } .di-speed .num { color: #b45309; }
.di-max { border-color: #fee2e2; background: linear-gradient(to bottom right, #fff, #fef2f2); } .di-max .icon { color: #dc2626; } .di-max .num { color: #991b1b; }
.di-ele { border-color: #dcfce7; background: linear-gradient(to bottom right, #fff, #f0fdf4); } .di-ele .icon { color: #16a34a; } .di-ele .num { color: #166534; }
.di-hr { border-color: #ffe4e6; background: linear-gradient(to bottom right, #fff, #fff1f2); } .di-hr .icon { color: #e11d48; } .di-hr .num { color: #9f1239; }
.di-cad { border-color: #f3e8ff; background: linear-gradient(to bottom right, #fff, #faf5ff); } .di-cad .icon { color: #9333ea; } .di-cad .num { color: #6b21a8; }
.di-pwr { border-color: #ffedd5; background: linear-gradient(to bottom right, #fff, #fff7ed); } .di-pwr .icon { color: #ea580c; } .di-pwr .num { color: #9a3412; }

.rc-map-box { height: 450px; background: #e2e8f0; border-radius: 18px; overflow: hidden; margin-bottom: 40px; border: 1px solid #cbd5e1; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
#ridecircle-map { width: 100%; height: 100%; }
.rc-action-area { text-align: center; margin-bottom: 50px; display: flex; justify-content: center; gap: 20px; }
.like-btn-lg { background: #fff; border: 2px solid #f59e0b; color: #f59e0b; font-size: 1.2rem; font-weight: 800; padding: 14px 45px; border-radius: 50px; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 15px rgba(245,158,11,0.15); display: inline-flex; align-items: center; gap: 10px; }
.like-btn-lg:hover { background: #f59e0b; color: #fff; transform: scale(1.05); box-shadow: 0 10px 25px rgba(245,158,11,0.3); }
.like-btn-lg:active { animation: rcLikePop 0.4s ease; }

/* Comments */
#ridecircle-comments-root { border-top: 1px dashed #cbd5e1; padding-top: 40px; }
.rc-comments-scroll-wrap { max-height: 500px; overflow-y: auto; padding-right: 15px; margin-bottom: 30px; }
.rc-form { background: #f8fafc; padding: 30px; border-radius: 20px; border: 1px solid #e2e8f0; box-shadow: inset 0 2px 4px rgba(0,0,0,0.02); }
.form-row { display: flex; gap: 15px; margin-bottom: 15px; }
.rc-input { width: 100%; padding: 14px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 15px; outline: none; transition: 0.2s; background: #fff; }
.rc-input:focus { border-color: var(--c-blue); box-shadow: 0 0 0 4px rgba(59,130,246,0.1); }
.rc-input.short { width: 140px; }
#rc-captcha-question { display: flex; align-items: center; font-weight: 800; color: var(--c-blue); cursor: pointer; white-space: nowrap; font-size: 18px; padding: 0 15px; background: #eff6ff; border-radius: 8px; user-select: none; }
.rc-emoji-bar { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.rc-emoji-bar span { font-size: 22px; cursor: pointer; padding: 6px; border-radius: 8px; transition: 0.2s; user-select: none; background: #fff; border: 1px solid #e2e8f0; }
.rc-emoji-bar span:hover { transform: scale(1.15); background: #e0f2fe; border-color: #bae6fd; }
.btn-submit { background: var(--c-dark); color: #fff; border: none; padding: 14px 35px; border-radius: 10px; font-weight: 700; cursor: pointer; margin-top: 15px; transition: 0.2s; font-size: 1rem; width: 100%; }
.btn-submit:hover { background: var(--c-blue); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25); }
.c-item { display: flex; gap: 18px; margin-bottom: 24px; animation: slideUpFade 0.4s ease; align-items: flex-start; }
.c-ava { width: 44px; height: 44px; background: #3b82f6; border-radius: 12px; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; flex-shrink: 0; box-shadow: 0 4px 10px rgba(59,130,246,0.3); }
.c-body { flex: 1; background: #fff; padding: 18px 22px; border-radius: 0 20px 20px 20px; border: 1px solid #e2e8f0; box-shadow: 0 4px 12px rgba(0,0,0,0.03); position: relative; }
.c-body::before { content: ""; position: absolute; top: 0; left: -10px; width: 0; height: 0; border-top: 10px solid #fff; border-left: 10px solid transparent; filter: drop-shadow(-1px 1px 0 #e2e8f0); }
.c-meta { font-size: 0.85rem; color: #94a3b8; margin-bottom: 8px; display: flex; justify-content: space-between; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.c-txt { line-height: 1.7; color: #334155; font-size: 1rem; }
.c-reply { margin-top: 15px; background: #f8fafc; padding: 12px 16px; border-radius: 12px; color: #475569; font-size: 0.95rem; border-left: 4px solid #cbd5e1; display: flex; flex-direction: column; gap: 4px; }
.c-reply b { color: var(--c-blue); font-size: 0.8rem; text-transform: uppercase; }

@media(max-width: 768px) {
  .rc-stats-card { flex-direction: column; align-items: flex-start; gap: 20px; }
  .rc-stat-group { width: 100%; justify-content: space-between; }
  .ridecards-grid { grid-template-columns: 1fr; }
  .form-row { flex-wrap: wrap; } .rc-input.short { width: 100%; }
}