/* content/plugins/ridecircle/assets/front.css V18.2 */
:root { --c-blue:#3b82f6; --c-dark:#1e293b; --c-gray:#64748b; --c-light:#f1f5f9; --c-bg:#f8fafc; }

/* 全局 */
#rc-app-root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--c-dark); line-height: 1.6;
  background-color: var(--c-bg);
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: 20px 20px;
  min-height: 100vh; padding-bottom: 60px;
}
.ridecircle-container { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* Hero Animation */
@keyframes rcZoom { 0% { transform: scale(1); } 100% { transform: scale(1.1); } }

/* Home Hero (Carousel) */
.rc-home-hero {
  height: 420px; position: relative; overflow: hidden; margin-bottom: 0;
  background: #334155; 
}
.rc-hero-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center;
  transition: opacity 0.6s ease-in-out; /* 图片切换淡入淡出 */
  animation: rcZoom 15s 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(0,0,0,0.1), rgba(0,0,0,0.8));
  display: flex; align-items: center; justify-content: center; text-align: center; color: #fff;
  z-index: 1;
}
.rc-hero-inner {
  position: relative; z-index: 2; padding: 20px; max-width: 800px; 
  transition: opacity 0.4s ease-in-out;
}

.rc-hero-tag {
  display: inline-block; background: #2563eb; color: #fff; padding: 4px 10px; font-size: 12px; font-weight: bold;
  border-radius: 4px; margin-bottom: 15px; letter-spacing: 1px;
}
.rc-hero-inner h2 { font-size: 2.8rem; margin: 0 0 15px; text-shadow: 0 4px 15px rgba(0,0,0,0.5); font-weight: 900; }
.rc-hero-data { font-size: 1.1rem; opacity: 0.95; margin-bottom: 25px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.rc-hero-data .sep { margin: 0 10px; opacity: 0.6; }
.rc-hero-btn {
  display: inline-block; padding: 12px 30px; background: #fff; color: var(--c-dark);
  border-radius: 50px; font-weight: bold; text-decoration: none; transition: 0.2s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.rc-hero-btn:hover { background: var(--c-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }

/* Stats Bar (New Layout) */
.rc-stats-card {
  background: #fff; border-radius: 16px; padding: 25px 35px; 
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1); 
  display: flex; justify-content: space-between; align-items: center;
  position: relative; flex-wrap: wrap; gap: 20px;
}
.rc-brand-col h3 { font-size: 1.8rem; margin: 0 0 5px; font-weight: 800; color: var(--c-dark); }
.rc-brand-col p { margin: 0; color: var(--c-gray); font-size: 0.95rem; }

.rc-stat-group { display: flex; gap: 40px; }
.stat-col { display: flex; align-items: center; gap: 12px; }
.stat-col .icon { font-size: 28px; background: #eff6ff; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #2563eb; }
.stat-col .info strong { display: block; font-size: 1.5rem; line-height: 1; color: var(--c-dark); }
.stat-col .info span { font-size: 0.8rem; color: var(--c-gray); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; display: block; }

/* Detail Hero */
.rc-detail-hero { height: 400px; position: relative; overflow: hidden; margin-bottom: -60px; background: #334155; }
.rc-detail-hero .rc-hero-bg { animation: none; } /* Disable zoom on detail */
.rc-detail-hero .rc-hero-content { position: relative; z-index: 2; padding: 20px; animation: fadeIn 0.8s ease; text-align: center; }
.rc-detail-hero h1 { font-size: 2.6rem; margin: 15px 0; text-shadow: 0 4px 15px rgba(0,0,0,0.5); color: #fff; }
.rc-back-btn { display: inline-block; color: #fff; text-decoration: none; font-size: 0.9rem; background: rgba(255,255,255,0.15); padding: 5px 12px; border-radius: 20px; backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.2); }
.rc-hero-meta { font-size: 1.1rem; opacity: 0.9; color: #fff; }
.rc-hero-meta .sep { margin: 0 10px; opacity: 0.5; }

/* Cards List */
.ridecards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.ride-card { 
  background: #fff; border-radius: 16px; overflow: hidden; height: 280px; 
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; 
  cursor: pointer; position: relative; background-size: cover !important; background-position: center !important; 
}
.ride-card:hover { transform: translateY(-6px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.rc-card-overlay { height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; background: linear-gradient(to bottom, rgba(255,255,255,0.95), rgba(255,255,255,1)); }
.ride-card[data-bg="1"] .rc-card-overlay { background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.8)); color: #fff; }
.ride-card[data-bg="1"] .rc-date-badge { background: rgba(255,255,255,0.2); backdrop-filter: blur(5px); color: #fff; }
.ride-card[data-bg="1"] .rc-card-meta .meta-row, .ride-card[data-bg="1"] .d-col small { color: rgba(255,255,255,0.8); }
.rc-card-top { display: flex; align-items: flex-start; gap: 15px; }
.rc-date-badge { background: #eff6ff; color: #2563eb; border-radius: 12px; padding: 8px 12px; text-align: center; display: flex; flex-direction: column; min-width: 50px; }
.rc-date-badge .m { font-size: 10px; text-transform: uppercase; font-weight: 700; }
.rc-date-badge .d { font-size: 20px; font-weight: 900; line-height: 1; }
.rc-card-meta h3 { margin: 0 0 4px 0; font-size: 1.15rem; line-height: 1.3; }
.meta-row { font-size: 0.85rem; color: var(--c-gray); }
.rc-card-data { display: flex; justify-content: space-between; margin-top: auto; padding-bottom: 15px; border-bottom: 1px dashed rgba(0,0,0,0.1); }
.ride-card[data-bg="1"] .rc-card-data { border-bottom-color: rgba(255,255,255,0.2); }
.d-col { text-align: center; flex: 1; }
.d-col strong { display: block; font-size: 1.2rem; font-weight: 800; }
.d-col small { font-size: 0.75rem; color: var(--c-gray); text-transform: uppercase; }
.rc-card-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 15px; font-size: 0.9rem; font-weight: 600; }
.rc-card-foot .likes { color: #f59e0b; }
.btn-go { opacity: 0.7; transition: 0.2s; }
.ride-card:hover .btn-go { opacity: 1; transform: translateX(5px); }

/* Detail Main */
.rc-detail-main { background: #fff; border-radius: 24px; padding: 35px; box-shadow: 0 20px 50px -10px rgba(0,0,0,0.1); position: relative; z-index: 10; margin-top: -60px; }
.rc-data-panel { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 35px; justify-content: center; }
.data-item { flex: 1 1 140px; background: #f8fafc; border-radius: 16px; padding: 20px; text-align: center; border: 1px solid #e2e8f0; transition: transform 0.2s; }
.data-item:hover { transform: translateY(-3px); border-color: #cbd5e1; }
.data-item .icon { font-size: 24px; margin-bottom: 5px; }
.data-item .num { font-size: 1.8rem; font-weight: 900; color: var(--c-blue); line-height: 1.1; }
.data-item .lbl { font-size: 0.85rem; color: var(--c-gray); margin-top: 5px; }
.rc-map-box { height: 420px; background: #e2e8f0; border-radius: 16px; overflow: hidden; margin-bottom: 35px; border: 1px solid #e2e8f0; }
#ridecircle-map { width: 100%; height: 100%; }
.rc-action-area { text-align: center; margin-bottom: 45px; }
.like-btn-lg { background: #fff; border: 2px solid #f59e0b; color: #f59e0b; font-size: 1.1rem; font-weight: bold; padding: 12px 35px; border-radius: 50px; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 15px rgba(245,158,11,0.2); }
.like-btn-lg:hover { background: #f59e0b; color: #fff; transform: scale(1.05); }

/* Comments */
#ridecircle-comments-root { border-top: 1px dashed #cbd5e1; padding-top: 30px; }
.rc-comments-scroll-wrap { max-height: 450px; overflow-y: auto; padding-right: 10px; margin-bottom: 20px; }
.rc-comments-scroll-wrap::-webkit-scrollbar { width: 6px; }
.rc-comments-scroll-wrap::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 3px; }
.rc-comments-scroll-wrap::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.rc-form { background: #f8fafc; padding: 25px; border-radius: 16px; border: 1px solid #e2e8f0; }
.form-row { display: flex; gap: 10px; margin-bottom: 15px; }
.rc-input { width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; outline: none; transition: 0.2s; }
.rc-input:focus { border-color: var(--c-blue); background: #fff; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.rc-input.short { width: 120px; }
#rc-captcha-question { display: flex; align-items: center; font-weight: bold; color: var(--c-blue); cursor: pointer; white-space: nowrap; font-size: 16px; padding: 0 10px; }
.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: 12px 30px; border-radius: 8px; font-weight: 600; cursor: pointer; margin-top: 15px; transition: 0.2s; font-size: 1rem; }
.btn-submit:hover { background: #0f172a; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.c-item { display: flex; gap: 15px; margin-bottom: 15px; animation: fadeIn 0.4s ease; }
.c-ava { width: 44px; height: 44px; background: #cbd5e1; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 18px; flex-shrink: 0; }
.c-body { flex: 1; background: #fff; padding: 16px; border-radius: 0 16px 16px 16px; border: 1px solid #e2e8f0; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.c-meta { font-size: 0.85rem; color: #94a3b8; margin-bottom: 8px; display: flex; justify-content: space-between; }
.c-reply { margin-top: 12px; background: #eff6ff; padding: 12px 16px; border-radius: 8px; color: #1e40af; font-size: 0.95rem; border-left: 3px solid #3b82f6; }

@keyframes fadeIn { from{opacity:0;transform:translateY(10px);} to{opacity:1;transform:translateY(0);} }
@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; }
  .rc-home-hero { height: 280px; }
  .rc-detail-hero { height: 240px; margin-bottom: -50px; }
  .rc-hero-inner h2 { font-size: 1.8rem; }
  .ridecards-grid { grid-template-columns: 1fr; }
  .form-row { flex-wrap: wrap; } .rc-input.short { width: 100%; }
}