Files
gitlab-instance-0a899031_no…/app/vip/components/vip.module.css
2026-03-30 10:36:08 -05:00

1633 lines
31 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* VIP 会员中心 - 深色主题优先,会员感、控制台感、资产感 */
.root {
min-height: 100vh;
background: var(--background);
color: var(--foreground);
}
.header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem 1.5rem;
max-width: 1200px;
margin: 0 auto;
}
@media (max-width: 640px) {
.header {
padding: 0.75rem 1rem;
}
}
.logo {
font-size: 1.25rem;
font-weight: 700;
color: var(--foreground);
text-decoration: none;
}
.logo:hover {
color: var(--accent);
}
.nav {
display: flex;
align-items: center;
gap: 0.75rem;
}
.loginLink {
font-size: 0.9rem;
color: var(--muted-foreground);
text-decoration: none;
}
.loginLink:hover {
color: var(--accent);
}
.userBadge {
font-size: 0.875rem;
color: var(--accent);
font-weight: 500;
}
.vipTag {
position: absolute;
right: -4px;
top: -2px;
font-size: 0.6rem;
font-weight: 700;
padding: 0.1rem 0.35rem;
background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
color: white;
border-radius: 4px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
letter-spacing: 0.02em;
}
.main {
max-width: 1200px;
margin: 0 auto;
padding: 0 1.5rem 2rem;
}
@media (max-width: 640px) {
.main {
padding: 0 1rem 1.5rem;
}
}
/* 区块通用 */
.section {
padding: 1.5rem 0;
}
/* PC 首页Hero + 统计 模块上方 */
.heroSection {
padding-top: 2rem;
padding-bottom: 1rem;
}
@media (min-width: 768px) {
.heroSection {
padding-top: 3rem;
padding-bottom: 1.5rem;
}
.heroSection p:first-of-type {
margin-bottom: 1.25rem;
}
.heroSection h1 {
font-size: clamp(2.25rem, 4vw, 3.25rem) !important;
margin-bottom: 0.75rem;
}
.heroSection p:last-of-type {
font-size: 1.25rem;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
}
@media (min-width: 1024px) {
.heroSection {
padding-top: 4rem;
padding-bottom: 2rem;
}
}
/* ========== 首页 · 沉浸式背景(透视网格 / 光晕 · 轻 3D 感,无 WebGL 依赖) ========== */
.landingScene {
position: relative;
isolation: isolate;
margin-left: -1.5rem;
margin-right: -1.5rem;
width: calc(100% + 3rem);
padding-left: 1.5rem;
padding-right: 1.5rem;
box-sizing: border-box;
}
@media (max-width: 640px) {
.landingScene {
margin-left: -1rem;
margin-right: -1rem;
width: calc(100% + 2rem);
padding-left: 1rem;
padding-right: 1rem;
}
}
.landingSceneBg {
position: absolute;
z-index: 0;
left: 0;
right: 0;
top: 0;
height: min(118vh, 1400px);
overflow: hidden;
pointer-events: none;
}
.landingSceneInner {
position: relative;
z-index: 1;
}
.landingOrb {
position: absolute;
border-radius: 50%;
filter: blur(52px);
pointer-events: none;
}
.landingOrb:nth-child(1) {
width: min(42vw, 380px);
height: min(42vw, 380px);
top: -4%;
left: -10%;
background: radial-gradient(circle, rgba(245, 158, 11, 0.38) 0%, transparent 68%);
animation: landingOrbA 22s ease-in-out infinite;
}
.landingOrb:nth-child(2) {
width: min(48vw, 420px);
height: min(48vw, 420px);
top: 10%;
right: -16%;
background: radial-gradient(circle, rgba(245, 158, 11, 0.14) 0%, transparent 72%);
animation: landingOrbB 26s ease-in-out infinite;
}
.landingOrb:nth-child(3) {
width: min(34vw, 300px);
height: min(34vw, 300px);
top: 36%;
left: 14%;
background: radial-gradient(circle, rgba(251, 191, 36, 0.22) 0%, transparent 72%);
animation: landingOrbC 19s ease-in-out infinite alternate;
}
.dark .landingOrb:nth-child(2) {
background: radial-gradient(circle, rgba(129, 140, 248, 0.22) 0%, transparent 72%);
}
@keyframes landingOrbA {
0%, 100% { transform: translate(0, 0) scale(1); }
50% { transform: translate(5%, 5%) scale(1.06); }
}
@keyframes landingOrbB {
0%, 100% { transform: translate(0, 0) scale(1); }
50% { transform: translate(-4%, 6%) scale(1.04); }
}
@keyframes landingOrbC {
0% { transform: translate(0, 0); }
100% { transform: translate(4%, -3%); }
}
.landingMesh {
position: absolute;
left: -20%;
width: 140%;
top: 0;
height: min(64vh, 580px);
pointer-events: none;
perspective: 520px;
opacity: 0.88;
}
.landingMesh::before {
content: "";
display: block;
width: 100%;
height: 100%;
background-image:
linear-gradient(rgba(245, 158, 11, 0.1) 1px, transparent 1px),
linear-gradient(90deg, rgba(245, 158, 11, 0.1) 1px, transparent 1px);
background-size: 52px 52px;
transform-origin: 50% 0%;
transform: rotateX(74deg) translateY(-5%) scale(1.06);
mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.62) 0%, transparent 92%);
-webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.62) 0%, transparent 92%);
animation: landingMeshScroll 28s linear infinite;
}
.dark .landingMesh::before {
background-image:
linear-gradient(rgba(245, 158, 11, 0.15) 1px, transparent 1px),
linear-gradient(90deg, rgba(245, 158, 11, 0.15) 1px, transparent 1px);
}
@keyframes landingMeshScroll {
from {
background-position: 0 0, 0 0;
}
to {
background-position: 0 52px, 52px 0;
}
}
.landingNoise {
position: absolute;
inset: 0;
opacity: 0.04;
pointer-events: none;
mix-blend-mode: overlay;
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.dark .landingNoise {
opacity: 0.08;
mix-blend-mode: soft-light;
}
.heroSection3d {
position: relative;
}
.heroEyebrow {
display: inline-block;
font-size: 0.8125rem;
font-weight: 500;
color: var(--muted-foreground);
padding: 0.4rem 0.95rem;
border-radius: 9999px;
border: 1px solid rgba(245, 158, 11, 0.22);
margin-bottom: 1rem;
background: rgba(255, 255, 255, 0.5);
backdrop-filter: blur(12px) saturate(1.2);
box-shadow:
0 10px 36px rgba(0, 0, 0, 0.07),
0 0 0 1px rgba(255, 255, 255, 0.55) inset;
}
.dark .heroEyebrow {
background: rgba(255, 255, 255, 0.05);
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.heroTitle {
font-size: clamp(2rem, 6vw, 3rem);
font-weight: 700;
margin: 0 0 0.5rem;
letter-spacing: -0.03em;
line-height: 1.18;
}
.heroTitleAccent {
background: linear-gradient(120deg, var(--foreground) 0%, var(--accent) 42%, #fbbf24 100%);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.heroTitleRest {
color: var(--foreground);
font-weight: 700;
}
.heroLead {
font-size: clamp(1rem, 2.8vw, 1.125rem);
color: var(--muted-foreground);
max-width: 540px;
margin: 0 auto;
line-height: 1.65;
text-align: center;
}
.landingStatCard {
position: relative;
backdrop-filter: blur(12px) saturate(1.15);
background: rgba(255, 255, 255, 0.52);
border-color: rgba(245, 158, 11, 0.2);
transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.2s;
}
.dark .landingStatCard {
background: rgba(255, 255, 255, 0.04);
border-color: rgba(245, 158, 11, 0.24);
}
.landingStatCard:hover {
transform: translateY(-3px) perspective(880px) rotateX(5deg);
box-shadow:
0 18px 44px rgba(0, 0, 0, 0.1),
0 0 0 1px rgba(245, 158, 11, 0.14);
}
.dark .landingStatCard:hover {
box-shadow:
0 22px 52px rgba(0, 0, 0, 0.48),
0 0 0 1px rgba(245, 158, 11, 0.22);
}
.statsSection {
padding-top: 2rem;
padding-bottom: 2rem;
}
@media (min-width: 768px) {
.statsSection {
padding-top: 2.5rem;
padding-bottom: 2.5rem;
}
}
@media (min-width: 1024px) {
.statsSection {
padding-top: 3rem;
padding-bottom: 3rem;
}
}
.topicsSection .sectionTitle {
margin-bottom: 1.25rem;
}
@media (min-width: 768px) {
.topicsSection {
padding-top: 2.5rem;
}
.topicsSection .sectionTitle {
font-size: 1.5rem;
margin-bottom: 1.5rem;
}
}
.sectionTitle {
font-size: 1.25rem;
font-weight: 600;
color: var(--foreground);
margin: 0 0 1rem;
}
.sectionDesc {
font-size: 0.9rem;
color: var(--muted-foreground);
margin: 0 0 1rem;
line-height: 1.5;
}
/* 卡片 */
.card {
background: var(--card);
border: 1px solid var(--border);
border-radius: 12px;
padding: 1rem 1.25rem;
transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
border-color: rgba(245, 158, 11, 0.3);
}
.freeBadge {
font-size: 0.7rem;
padding: 0.15rem 0.5rem;
border-radius: 9999px;
background: var(--muted);
color: var(--accent);
font-weight: 500;
}
/* 星球登录信息卡片 */
.loginCard {
margin-top: 1.25rem;
padding: 1.25rem 1.5rem;
background: linear-gradient(135deg, rgba(245, 158, 11, 0.06) 0%, rgba(245, 158, 11, 0.02) 100%);
border: 1px solid rgba(245, 158, 11, 0.2);
border-radius: 10px;
max-width: 380px;
}
.loginCardTitle {
font-size: 0.8rem;
font-weight: 600;
color: var(--muted-foreground);
text-transform: uppercase;
letter-spacing: 0.05em;
margin-bottom: 1rem;
}
.loginCardRow {
display: flex;
align-items: center;
gap: 0.75rem;
font-size: 0.9rem;
padding: 0.5rem 0;
border-bottom: 1px solid var(--border);
}
.loginCardRow:last-of-type {
border-bottom: none;
}
.loginCardLabel {
flex-shrink: 0;
width: 2.5em;
color: var(--muted-foreground);
}
.loginCardValue {
font-family: ui-monospace, monospace;
font-size: 0.9rem;
padding: 0.15rem 0.5rem;
background: var(--muted);
border-radius: 6px;
}
.loginCardLink {
margin-left: auto;
font-size: 0.85rem;
color: var(--accent);
text-decoration: none;
}
.loginCardLink:hover {
text-decoration: underline;
}
/* 大数字 */
.bigNumber {
font-size: 2rem;
font-weight: 700;
color: var(--accent);
line-height: 1.2;
}
@media (min-width: 640px) {
.bigNumber {
font-size: 2.5rem;
}
}
.bigNumberLabel {
font-size: 0.8rem;
color: var(--muted-foreground);
margin-top: 0.25rem;
}
/* 按钮 */
.btnPrimary {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.75rem 1.75rem;
font-size: 1rem;
font-weight: 600;
color: var(--accent-foreground);
background: var(--accent);
border: none;
border-radius: 12px;
cursor: pointer;
text-decoration: none;
transition: opacity 0.2s, transform 0.15s;
}
.btnPrimary:hover {
opacity: 0.95;
transform: translateY(-1px);
}
.btnSecondary {
display: inline-flex;
align-items: center;
padding: 0.75rem 1.5rem;
font-size: 0.95rem;
font-weight: 500;
color: var(--muted-foreground);
background: transparent;
border: 1px solid var(--border);
border-radius: 12px;
text-decoration: none;
cursor: pointer;
transition: border-color 0.15s, color 0.15s;
}
.btnSecondary:hover {
border-color: var(--accent);
color: var(--accent);
}
.btnLarge {
padding: 1rem 2.5rem;
font-size: 1.1rem;
}
/* 资产统计网格 */
.statsGrid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
}
@media (min-width: 640px) {
.statsGrid {
grid-template-columns: repeat(4, 1fr);
}
}
.statsGrid4 {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
}
@media (min-width: 640px) {
.statsGrid4 {
grid-template-columns: repeat(4, 1fr);
}
}
/* 模块网格 */
.topicGrid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
}
@media (min-width: 640px) {
.topicGrid {
grid-template-columns: repeat(4, 1fr);
}
}
.topicCard {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 0.5rem;
padding: 1.25rem 1rem;
background: var(--card);
border: 1px solid var(--border);
border-radius: 12px;
text-decoration: none;
color: inherit;
transition: border-color 0.2s, transform 0.2s;
}
.topicCardInner {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.5rem;
width: 100%;
}
.topicCard:hover {
border-color: rgba(245, 158, 11, 0.4);
transform: translateY(-2px);
}
.topicIcon {
font-size: 2rem;
line-height: 1;
}
.topicTitle {
font-size: 1rem;
font-weight: 600;
color: var(--foreground);
}
.topicDesc {
font-size: 0.8rem;
color: var(--muted-foreground);
}
.topicLock {
position: absolute;
top: 0.75rem;
right: 0.75rem;
font-size: 0.85rem;
opacity: 0.85;
}
/* Loading */
.loading {
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 1rem;
background: var(--background);
color: var(--foreground);
}
.loadingSpinner {
width: 40px;
height: 40px;
border: 3px solid var(--border);
border-top-color: var(--accent);
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* 私密社群 · 登录信息弹窗 */
.communityModalBackdrop {
position: fixed;
inset: 0;
z-index: 100;
display: flex;
align-items: center;
justify-content: center;
padding: 1rem;
background: rgba(15, 23, 42, 0.65);
backdrop-filter: blur(10px);
}
.communityModalPanel {
position: relative;
width: 100%;
max-width: 420px;
padding: 1.75rem 1.5rem 1.5rem;
border-radius: 16px;
border: 1px solid rgba(245, 158, 11, 0.25);
background: var(--card);
box-shadow:
0 24px 48px rgba(0, 0, 0, 0.35),
0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
.communityModalGlow {
pointer-events: none;
position: absolute;
inset: -1px;
border-radius: 16px;
background: radial-gradient(
ellipse 80% 60% at 50% -20%,
rgba(245, 158, 11, 0.18),
transparent 55%
);
opacity: 0.9;
}
.communityModalClose {
position: absolute;
top: 0.65rem;
right: 0.65rem;
width: 2rem;
height: 2rem;
display: flex;
align-items: center;
justify-content: center;
border: none;
border-radius: 8px;
background: transparent;
color: var(--muted-foreground);
font-size: 1.35rem;
line-height: 1;
cursor: pointer;
transition: color 0.15s, background 0.15s;
}
.communityModalClose:hover {
color: var(--foreground);
background: var(--muted);
}
.communityModalIconWrap {
display: flex;
justify-content: center;
margin-bottom: 0.5rem;
}
.communityModalIcon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 3.25rem;
height: 3.25rem;
border-radius: 14px;
font-size: 1.75rem;
background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.06));
border: 1px solid rgba(245, 158, 11, 0.25);
}
.communityModalTitle {
margin: 0 0 0.35rem;
font-size: 1.2rem;
font-weight: 700;
text-align: center;
color: var(--foreground);
position: relative;
}
.communityModalDesc {
margin: 0 0 1.25rem;
font-size: 0.85rem;
line-height: 1.5;
text-align: center;
color: var(--muted-foreground);
position: relative;
}
.communityModalRows {
display: flex;
flex-direction: column;
gap: 0.65rem;
margin-bottom: 1.25rem;
position: relative;
}
.communityModalRow {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.65rem 0.85rem;
border-radius: 10px;
background: var(--muted);
border: 1px solid var(--border);
}
.communityModalLabel {
flex-shrink: 0;
width: 2.75rem;
font-size: 0.8rem;
font-weight: 600;
color: var(--muted-foreground);
}
.communityModalValueWrap {
flex: 1;
min-width: 0;
display: flex;
align-items: center;
gap: 0.5rem;
justify-content: flex-end;
}
.communityModalCopyable {
flex: 1;
min-width: 0;
justify-content: flex-end !important;
}
.communityModalMono {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-size: 0.85rem;
word-break: break-all;
text-align: right;
color: var(--foreground);
}
.communityModalOpenLink {
flex-shrink: 0;
font-size: 0.8rem;
font-weight: 600;
color: var(--accent);
text-decoration: none;
padding: 0.2rem 0.5rem;
border-radius: 6px;
transition: background 0.15s;
}
.communityModalOpenLink:hover {
background: rgba(245, 158, 11, 0.12);
}
.communityModalDone {
width: 100%;
padding: 0.75rem 1rem;
border: none;
border-radius: 10px;
font-size: 0.95rem;
font-weight: 600;
cursor: pointer;
color: var(--accent-foreground);
background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
transition: transform 0.15s, box-shadow 0.15s;
position: relative;
}
.communityModalDone:hover {
transform: translateY(-1px);
box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
}
/* ========== 首页 · 常见问题 ========== */
.faqSection {
padding: 2rem 0 2.5rem;
}
@media (min-width: 768px) {
.faqSection {
padding: 2.5rem 0 3rem;
}
}
.faqInner {
max-width: 720px;
margin: 0 auto;
}
.faqEyebrow {
display: inline-flex;
align-items: center;
gap: 0.4rem;
font-size: 0.75rem;
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--accent);
margin-bottom: 0.5rem;
}
.faqEyebrowDot {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--accent);
box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}
.faqHeadline {
font-size: clamp(1.35rem, 3.5vw, 1.75rem);
font-weight: 700;
color: var(--foreground);
margin: 0 0 0.35rem;
letter-spacing: -0.02em;
}
.faqSub {
font-size: 0.9rem;
color: var(--muted-foreground);
margin: 0 0 1.5rem;
line-height: 1.55;
max-width: 36rem;
}
.faqList {
display: flex;
flex-direction: column;
gap: 0.65rem;
}
.faqItem {
border-radius: 14px;
border: 1px solid var(--border);
background: var(--card);
overflow: hidden;
transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.faqItem:hover {
border-color: rgba(245, 158, 11, 0.35);
}
.faqItemOpen {
border-color: rgba(245, 158, 11, 0.45);
box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(245, 158, 11, 0.08);
}
.dark .faqItemOpen {
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(245, 158, 11, 0.12);
}
.faqTrigger {
display: flex;
width: 100%;
align-items: center;
gap: 0.85rem;
padding: 1rem 1.1rem;
border: none;
background: transparent;
cursor: pointer;
text-align: left;
font: inherit;
color: var(--foreground);
transition: background 0.15s ease;
}
.faqTrigger:hover {
background: var(--muted);
}
.faqTrigger:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.faqIndex {
flex-shrink: 0;
width: 1.75rem;
height: 1.75rem;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.75rem;
font-weight: 700;
color: var(--accent);
background: rgba(245, 158, 11, 0.12);
border-radius: 8px;
}
.faqQuestionText {
flex: 1;
font-size: 0.95rem;
font-weight: 600;
line-height: 1.4;
padding-right: 0.25rem;
}
.faqChevron {
flex-shrink: 0;
width: 1.75rem;
height: 1.75rem;
display: flex;
align-items: center;
justify-content: center;
border-radius: 8px;
color: var(--muted-foreground);
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s, background 0.2s;
}
.faqItemOpen .faqChevron {
transform: rotate(180deg);
color: var(--accent);
background: rgba(245, 158, 11, 0.1);
}
.faqPanel {
display: grid;
grid-template-rows: 0fr;
transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.faqPanelOpen {
grid-template-rows: 1fr;
}
.faqPanelInner {
overflow: hidden;
min-height: 0;
}
.faqAnswer {
padding: 0 1.1rem 1.1rem 3.65rem;
margin: 0;
font-size: 0.9rem;
line-height: 1.65;
color: var(--muted-foreground);
}
@media (max-width: 480px) {
.faqAnswer {
padding-left: 1.1rem;
}
}
/* ========== 首页 · 立即加入 CTA ========== */
.ctaSection {
padding: 0 0 2.75rem;
}
.ctaInner {
max-width: 640px;
margin: 0 auto;
position: relative;
}
.ctaGlow {
pointer-events: none;
position: absolute;
inset: -20% -10% auto;
height: 70%;
background: radial-gradient(
ellipse 70% 80% at 50% 0%,
rgba(245, 158, 11, 0.22),
transparent 65%
);
opacity: 0.85;
filter: blur(2px);
}
.ctaCard {
position: relative;
border-radius: 20px;
padding: 1.75rem 1.5rem 1.65rem;
text-align: center;
background: rgba(255, 255, 255, 0.7);
backdrop-filter: blur(16px) saturate(1.25);
border: 1px solid rgba(245, 158, 11, 0.24);
box-shadow:
0 20px 50px rgba(0, 0, 0, 0.08),
0 0 0 1px rgba(255, 255, 255, 0.45) inset;
}
.dark .ctaCard {
background:
radial-gradient(90% 70% at 50% -10%, rgba(251, 191, 36, 0.12) 0%, rgba(251, 191, 36, 0) 58%),
linear-gradient(180deg, #0b1220 0%, #0a0f1a 100%);
border-color: rgba(251, 191, 36, 0.18);
box-shadow:
0 24px 60px rgba(0, 0, 0, 0.52),
0 0 0 1px rgba(251, 191, 36, 0.08) inset,
0 1px 0 rgba(255, 255, 255, 0.04) inset;
}
.dark .ctaGlow {
opacity: 0.55;
filter: blur(10px);
}
.dark .ctaPromoLine {
color: rgba(255, 255, 255, 0.92);
}
.dark .ctaHighlight {
background: linear-gradient(120deg, #f59e0b 0%, #fcd34d 100%);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
@media (min-width: 640px) {
.ctaCard {
padding: 2rem 2.25rem 1.85rem;
}
}
/* 与主标题同一行的限时标签 */
.ctaPromoLine {
display: flex;
flex-wrap: nowrap;
align-items: center;
justify-content: center;
gap: 0.5rem;
width: 100%;
min-width: 0;
margin: 0 0 0.85rem;
font-size: clamp(0.8125rem, 3.4vw, 1.125rem);
font-weight: 700;
letter-spacing: -0.02em;
line-height: 1.25;
}
.ctaBadgeInline {
flex-shrink: 0;
display: inline-flex;
align-items: center;
gap: 0.35rem;
padding: 0.28rem 0.65rem;
font-size: 0.7em;
font-weight: 600;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--accent);
background: rgba(245, 158, 11, 0.12);
border: 1px solid rgba(245, 158, 11, 0.28);
border-radius: 9999px;
}
.ctaPromoDivider {
flex-shrink: 0;
color: var(--muted-foreground);
opacity: 0.55;
font-weight: 500;
user-select: none;
}
.ctaPromoMain {
display: inline-flex;
flex-wrap: nowrap;
align-items: baseline;
gap: 0.25em;
min-width: 0;
white-space: nowrap;
}
.ctaPromoSuffix {
flex-shrink: 0;
color: var(--foreground);
font-weight: 700;
}
.ctaBadgePulse {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--accent);
animation: ctaPulse 2s ease-in-out infinite;
}
@keyframes ctaPulse {
0%, 100% { opacity: 1; transform: scale(1); }
50% { opacity: 0.65; transform: scale(0.92); }
}
.ctaHighlight {
background: linear-gradient(120deg, var(--accent) 0%, #fbbf24 100%);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.ctaChips {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
justify-content: center;
margin-bottom: 0.85rem;
opacity: 0.92;
}
.ctaChip {
font-size: clamp(0.5625rem, 2.1vw, 0.6875rem);
font-weight: 500;
color: var(--muted-foreground);
padding: 0.2rem 0.45rem;
border-radius: 9999px;
border: 1px solid var(--border);
background: var(--muted);
opacity: 0.68;
}
/* 与 SHOW_CTA_AUDIENCE_BOUNDARY 配合:隐藏时不删 DOM仅不占布局 */
.ctaBoundaryHidden {
display: none;
}
.ctaBoundary {
position: relative;
margin: 0 auto 1.4rem;
max-width: 26rem;
border-radius: 14px;
overflow: hidden;
text-align: left;
border: 1px solid rgba(245, 158, 11, 0.22);
background:
linear-gradient(125deg, rgba(245, 158, 11, 0.1) 0%, transparent 45%),
linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(248, 248, 250, 0.94) 100%);
box-shadow:
0 12px 40px rgba(0, 0, 0, 0.06),
0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}
.dark .ctaBoundary {
background:
linear-gradient(125deg, rgba(245, 158, 11, 0.14) 0%, transparent 48%),
linear-gradient(180deg, rgba(32, 32, 40, 0.92) 0%, rgba(16, 16, 20, 0.96) 100%);
border-color: rgba(245, 158, 11, 0.28);
box-shadow:
0 16px 48px rgba(0, 0, 0, 0.38),
0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}
.ctaBoundarySheen {
position: absolute;
top: 0;
left: -50%;
width: 42%;
height: 100%;
background: linear-gradient(
100deg,
transparent 0%,
rgba(255, 255, 255, 0.28) 48%,
transparent 72%
);
animation: ctaBoundaryShine 8s ease-in-out infinite;
pointer-events: none;
}
.dark .ctaBoundarySheen {
background: linear-gradient(
100deg,
transparent 0%,
rgba(251, 191, 36, 0.1) 48%,
transparent 72%
);
}
@keyframes ctaBoundaryShine {
0%, 100% {
transform: translateX(-20%);
opacity: 0;
}
40% {
opacity: 0.85;
}
55% {
transform: translateX(380%);
opacity: 0;
}
}
.ctaBoundaryInner {
position: relative;
z-index: 1;
padding: 0.85rem 1rem 0.95rem;
display: flex;
flex-direction: column;
gap: 0.55rem;
}
.ctaBoundaryPos {
margin: 0;
display: flex;
align-items: flex-start;
gap: 0.5rem;
font-size: clamp(0.75rem, 2.4vw, 0.875rem);
line-height: 1.52;
color: var(--foreground);
}
.ctaBoundaryNeg {
margin: 0;
display: flex;
align-items: flex-start;
gap: 0.5rem;
font-size: clamp(0.7rem, 2.15vw, 0.8125rem);
line-height: 1.52;
color: var(--muted-foreground);
padding-top: 0.5rem;
border-top: 1px dashed rgba(245, 158, 11, 0.28);
}
.ctaBoundaryMark {
flex-shrink: 0;
width: 1.4rem;
height: 1.4rem;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.62rem;
line-height: 1;
color: var(--accent);
background: rgba(245, 158, 11, 0.16);
border-radius: 8px;
border: 1px solid rgba(245, 158, 11, 0.28);
}
.ctaBoundaryMarkNeg {
flex-shrink: 0;
width: 1.4rem;
text-align: center;
font-weight: 800;
font-size: 1rem;
line-height: 1.4rem;
color: rgba(220, 80, 80, 0.88);
}
.dark .ctaBoundaryMarkNeg {
color: rgba(252, 165, 165, 0.88);
}
.ctaBoundaryStrong {
font-weight: 600;
color: var(--accent);
}
.ctaBoundaryStrongNeg {
font-weight: 600;
color: rgba(220, 80, 80, 0.95);
}
.dark .ctaBoundaryStrongNeg {
color: rgba(254, 202, 202, 0.92);
}
.ctaActions {
display: flex;
flex-direction: column;
gap: 0.75rem;
align-items: stretch;
}
@media (min-width: 480px) {
.ctaActions {
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
align-items: center;
}
}
.ctaBtnPrimary {
flex: 1;
min-width: 0;
max-width: 280px;
margin: 0 auto;
box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
position: relative;
overflow: hidden;
}
@media (min-width: 480px) {
.ctaBtnPrimary {
margin: 0;
flex: 0 1 auto;
}
}
.ctaBtnPrimary::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(
120deg,
transparent 40%,
rgba(255, 255, 255, 0.18) 50%,
transparent 60%
);
transform: translateX(-100%);
transition: transform 0.6s ease;
}
.ctaBtnPrimary:hover::after {
transform: translateX(100%);
}
.ctaBtnSecondary {
flex: 1;
min-width: 0;
max-width: 280px;
margin: 0 auto;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 1rem 1.75rem;
font-size: 1rem;
font-weight: 600;
border-radius: 12px;
color: var(--foreground);
background: transparent;
border: 1px solid var(--border);
cursor: pointer;
font-family: inherit;
transition: transform 0.15s, border-color 0.15s, color 0.15s, background 0.15s;
}
@media (min-width: 480px) {
.ctaBtnSecondary {
margin: 0;
flex: 0 1 auto;
}
}
.ctaBtnSecondary:hover {
transform: translateY(-1px);
background: var(--muted);
}
.ctaPromoClickable {
appearance: none;
-webkit-appearance: none;
flex-shrink: 0;
display: inline-flex;
align-items: center;
gap: 0.35rem;
padding: 0.28rem 0.65rem;
font-size: 0.7em;
font-weight: 600;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--accent);
background: rgba(245, 158, 11, 0.12);
border: 1px solid rgba(245, 158, 11, 0.35);
border-radius: 9999px;
cursor: pointer;
font-family: inherit;
transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.ctaPromoClickable:hover {
transform: translateY(-1px);
background: rgba(245, 158, 11, 0.18);
box-shadow: 0 8px 20px rgba(245, 158, 11, 0.18);
}
.ctaPromoClickable:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.dark .ctaPromoClickable {
color: #fbbf24;
background: rgba(245, 158, 11, 0.16);
border-color: rgba(251, 191, 36, 0.42);
box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.1) inset;
}
.dark .ctaPromoClickable:hover {
background: rgba(245, 158, 11, 0.24);
box-shadow:
0 12px 28px rgba(0, 0, 0, 0.42),
0 0 0 1px rgba(251, 191, 36, 0.18) inset;
}
.dark .ctaPromoDivider {
color: rgba(251, 191, 36, 0.58);
}
.dark .ctaPromoSuffix {
color: rgba(255, 255, 255, 0.88);
}
.dark .ctaChip {
color: rgba(255, 255, 255, 0.82);
border-color: rgba(255, 255, 255, 0.12);
background: rgba(255, 255, 255, 0.06);
}
.dark .ctaBtnSecondary {
color: rgba(255, 255, 255, 0.92);
border-color: rgba(251, 191, 36, 0.26);
background: rgba(255, 255, 255, 0.03);
}
.dark .ctaBtnSecondary:hover {
background: rgba(251, 191, 36, 0.1);
border-color: rgba(251, 191, 36, 0.42);
color: #fde68a;
}
/* 促销识别弹窗 */
.promoModalPanel {
position: relative;
width: 100%;
max-width: 520px;
padding: 1.4rem 1.2rem 1.2rem;
border-radius: 16px;
border: 1px solid rgba(245, 158, 11, 0.25);
background: var(--card);
box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}
.promoModalTop {
padding-right: 1.25rem;
}
.promoModalTag {
display: inline-block;
font-size: 0.72rem;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--accent);
border: 1px solid rgba(245, 158, 11, 0.3);
background: rgba(245, 158, 11, 0.12);
border-radius: 999px;
padding: 0.18rem 0.58rem;
margin-bottom: 0.65rem;
}
.promoModalTitle {
margin: 0 0 0.35rem;
font-size: 1.1rem;
color: var(--foreground);
}
.promoModalDesc {
margin: 0 0 0.55rem;
line-height: 1.55;
font-size: 0.9rem;
color: var(--muted-foreground);
}
.promoModalHint {
margin: 0 0 0.9rem;
font-size: 0.78rem;
color: var(--muted-foreground);
}
.promoModalActions {
margin-top: 0.5rem;
}
.promoPrimaryBtn {
width: 100%;
}
.promoUploadArea {
margin-top: 0.4rem;
border: 1px dashed rgba(245, 158, 11, 0.34);
border-radius: 12px;
padding: 0.9rem;
background: rgba(245, 158, 11, 0.04);
}
.promoFileInput {
display: none;
}
.promoUploadBtn {
width: 100%;
border: 1px solid rgba(245, 158, 11, 0.42);
background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.08));
color: var(--foreground);
font-size: 0.92rem;
font-weight: 600;
border-radius: 10px;
padding: 0.72rem 0.9rem;
cursor: pointer;
}
.promoUploadBtn:disabled {
opacity: 0.65;
cursor: not-allowed;
}
.promoUploadTip {
margin: 0.45rem 0 0;
color: var(--muted-foreground);
font-size: 0.76rem;
}
.promoError {
margin: 0.75rem 0 0;
font-size: 0.82rem;
color: #ef4444;
}
.promoResultCard {
margin-top: 0.85rem;
border: 1px solid var(--border);
border-radius: 12px;
background: var(--muted);
padding: 0.8rem;
}
.promoResultTitle {
margin: 0 0 0.5rem;
font-size: 0.83rem;
color: var(--muted-foreground);
}
.promoResultRow {
display: flex;
align-items: center;
gap: 0.72rem;
}
.promoAvatarWrap {
width: 64px;
height: 64px;
border-radius: 12px;
overflow: hidden;
border: 1px solid var(--border);
background: var(--card);
display: flex;
align-items: center;
justify-content: center;
}
.promoAvatarImg {
width: 100%;
height: 100%;
object-fit: cover;
}
.promoAvatarEmpty {
font-size: 0.72rem;
color: var(--muted-foreground);
}
.promoResultMeta {
min-width: 0;
}
.promoNicknameLabel {
margin: 0 0 0.15rem;
font-size: 0.76rem;
color: var(--muted-foreground);
}
.promoNicknameValue {
margin: 0;
font-size: 1rem;
font-weight: 600;
color: var(--foreground);
}