| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989 |
- /* 邀请活动入口页专属样式 */
- * {
- margin: 0;
- padding: 0;
- box-sizing: border-box;
- -webkit-tap-highlight-color: transparent;
- -webkit-touch-callout: none;
- -webkit-user-select: none;
- user-select: none;
- }
- html,
- body {
- background: var(--bex-page-bg-welfare, #0e0e0e);
- color: var(--bex-text-primary, #ffffff);
- min-height: 100vh;
- }
- body {
- font-family:
- "PingFang SC",
- -apple-system,
- BlinkMacSystemFont,
- "Segoe UI",
- Roboto,
- "Helvetica Neue",
- Arial,
- sans-serif;
- font-size: 14px;
- line-height: 1.4;
- }
- .container {
- position: relative;
- width: 100%;
- min-height: 100vh;
- overflow-x: hidden;
- padding-bottom: env(safe-area-inset-bottom);
- }
- .main-view {
- position: relative;
- z-index: 1;
- padding: 12px 16px 90px;
- max-width: 410px;
- margin: 0 auto;
- }
- /* ===== 遮罩 ===== */
- .loading-overlay,
- .error-overlay,
- .modal-overlay {
- position: fixed;
- inset: 0;
- z-index: 1000;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .loading-overlay,
- .error-overlay {
- background: var(--bex-page-bg-welfare, #0e0e0e);
- flex-direction: column;
- gap: 16px;
- }
- .loading-spinner {
- width: 40px;
- height: 40px;
- border: 3px solid var(--bex-border, #2c2c2c);
- border-top-color: var(--bex-brand, #fd6f23);
- border-radius: 50%;
- animation: spin 1s linear infinite;
- }
- @keyframes spin {
- to {
- transform: rotate(360deg);
- }
- }
- .loading-text,
- .error-text {
- color: var(--bex-text-secondary, #888888);
- font-size: 14px;
- }
- .error-content {
- display: flex;
- flex-direction: column;
- align-items: center;
- gap: 24px;
- padding: 32px;
- text-align: center;
- }
- .error-actions {
- display: flex;
- gap: 12px;
- }
- .error-retry {
- padding: 12px 32px;
- background: #ffffff;
- border: none;
- border-radius: 8px;
- color: #121212;
- font-size: 14px;
- font-weight: 500;
- cursor: pointer;
- }
- .modal-overlay {
- background: rgba(0, 0, 0, 0.8);
- align-items: flex-end;
- padding: 0;
- }
- .modal-overlay.centered {
- align-items: center;
- padding: 24px;
- }
- /* ===== 底部面板 / 弹窗 ===== */
- .modal-panel {
- width: 100%;
- max-height: 80vh;
- background: var(--bex-page-bg-welfare, #0e0e0e);
- border-radius: 16px 16px 0 0;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- animation: slideUp 0.25s ease-out;
- }
- .panel-drag-handle {
- width: 32px;
- height: 4px;
- background: #2f2f2f;
- border-radius: 40px;
- margin: 8px auto 0;
- flex-shrink: 0;
- }
- @keyframes slideUp {
- from {
- transform: translateY(100%);
- }
- to {
- transform: translateY(0);
- }
- }
- @keyframes fadeIn {
- from {
- opacity: 0;
- transform: scale(0.96);
- }
- to {
- opacity: 1;
- transform: scale(1);
- }
- }
- /* ===== Hero 卡片 ===== */
- .hero-card {
- position: relative;
- width: 100%;
- border-radius: 8px;
- padding: 1px;
- margin-bottom: 40px;
- }
- .hero-card-inner {
- position: relative;
- width: 100%;
- border-radius: 7px;
- background: rgba(255, 255, 255, 0.02);
- border: 2px solid #fd7723;
- padding: 24px 16px 0;
- padding-bottom: 20px;
- }
- .hero-bg {
- position: absolute;
- right: 0;
- top: 0;
- width: 292px;
- height: 194px;
- opacity: 1;
- border-radius: 0 0 50% 50%;
- pointer-events: none;
- background: url("/images/unblock-bg-round1.png") no-repeat center center;
- background-size: cover;
- }
- .hero-title {
- position: relative;
- z-index: 1;
- font-size: 15px;
- font-weight: 500;
- color: var(--bex-text-primary, #ffffff);
- text-align: center;
- margin-bottom: 4px;
- line-height: 21px;
- }
- .hero-subtitle {
- position: relative;
- z-index: 1;
- font-size: 28px;
- font-weight: 600;
- color: #fd8523;
- text-align: center;
- margin-bottom: 16px;
- line-height: 39px;
- }
- .hero-rights {
- position: relative;
- z-index: 1;
- display: flex;
- align-items: center;
- justify-content: center;
- gap: 8px;
- margin-bottom: 18px;
- }
- .hero-rights-line {
- width: 88px;
- height: 2px;
- border-radius: 1px;
- background: linear-gradient(
- 90deg,
- rgba(253, 111, 35, 1),
- rgba(253, 111, 35, 0.144)
- );
- }
- .hero-rights-line.left {
- transform: scaleX(-1);
- }
- .hero-rights-text {
- font-size: 15px;
- font-weight: 500;
- line-height: 22px;
- color: #fd8523;
- }
- .hero-stats {
- position: relative;
- z-index: 1;
- display: flex;
- justify-content: space-around;
- padding: 0 40px;
- margin-bottom: 18px;
- }
- .hero-stat {
- display: flex;
- flex-direction: column;
- align-items: center;
- gap: 2px;
- }
- .hero-stat-value {
- font-family:
- "HarmonyOS Sans",
- "DIN Alternate",
- "SF Pro Display",
- -apple-system,
- BlinkMacSystemFont,
- sans-serif;
- font-size: 26px;
- font-weight: 500;
- color: #fd8523;
- line-height: 22px;
- }
- .hero-stat-unit {
- font-size: 12px;
- font-weight: 500;
- color: #fd8523;
- margin-left: 2px;
- line-height: 17px;
- }
- .hero-stat-label {
- font-size: 11px;
- color: var(--bex-text-secondary, #888888);
- line-height: 15px;
- }
- .hero-activate-btn {
- position: absolute;
- z-index: 10;
- bottom: -6px;
- left: 50%;
- transform: translateX(-50%);
- width: 90%;
- height: 42px;
- border: none;
- border-radius: 8px;
- background: linear-gradient(
- 90deg,
- rgba(253, 111, 35, 1) 0%,
- rgba(253, 148, 35, 1) 100%
- );
- color: #ffffff;
- font-size: 14px;
- font-weight: 500;
- cursor: pointer;
- display: flex;
- align-items: center;
- justify-content: center;
- margin-top: 4px;
- margin-bottom: -16px;
- }
- .hero-activate-btn:disabled {
- background: linear-gradient(
- 90deg,
- rgb(212, 212, 212) 0%,
- rgb(204, 204, 204) 100%
- );
- color: #000;
- cursor: default;
- }
- /* ===== 收益估算区 ===== */
- .commission-section {
- position: relative;
- width: 100%;
- height: 80px;
- margin-bottom: 16px;
- display: flex;
- align-items: center;
- background-image: url(/images/group-470833-bg.png);
- background-position: center center;
- background-repeat: no-repeat;
- background-size: 100% 80px;
- }
- .commission-section .info {
- font-size: 10px;
- }
- .commission-tag-label {
- font-size: 10px;
- position: absolute;
- font-style: normal;
- left: 0;
- top: 6px;
- background: #393939;
- width: 108px;
- height: 21px;
- border-radius: 8px 0 8px 0;
- text-align: center;
- line-height: 21px;
- color: #121212;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .commission-right .commission-tag-label {
- right: 0;
- left: auto;
- top: 0;
- border-radius: 0 8px 0 8px;
- background: linear-gradient(90deg, #fd6f23 0%, #fd9423 100%);
- }
- .commission-left,
- .commission-right {
- display: flex;
- flex-direction: column;
- justify-content: space-around;
- padding-top: 28px;
- padding-bottom: 10px;
- align-items: center;
- }
- .commission-left .info {
- color: #888;
- }
- .commission-left .meny {
- font-size: 12px;
- font-weight: 500;
- color: #fff;
- }
- .commission-left {
- position: relative;
- left: 0;
- top: 0;
- width: 40%;
- height: 100%;
- }
- .commission-right .info {
- color: #fd8523;
- }
- .commission-right .meny {
- font-size: 18px;
- font-weight: 500;
- color: #fd8523;
- }
- .commission-right {
- position: relative;
- right: 0;
- top: 0;
- width: 60%;
- height: 100%;
- }
- /* ===== 好友交易量滑块 ===== */
- .volume-section {
- width: 100%;
- margin-bottom: 30px;
- }
- .volume-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: 12px;
- }
- .volume-title {
- font-size: 11px;
- width: 70px;
- color: var(--bex-text-secondary, #888888);
- margin-right: 8px;
- }
- .volume-tx {
- font-size: 11px;
- }
- .volume-slider-wrap {
- display: flex;
- align-items: center;
- width: 100%;
- height: 24px;
- }
- .volume-box {
- position: relative;
- flex: 1;
- margin: 0 16px;
- height: 24px;
- cursor: pointer;
- display: flex;
- align-items: center;
- }
- .volume-track {
- width: 100%;
- height: 4px;
- border-radius: 2px;
- background: #2b2b2b;
- position: relative;
- overflow: hidden;
- }
- .volume-progress {
- position: absolute;
- top: 0;
- left: 0;
- height: 4px;
- border-radius: 2px;
- background: linear-gradient(
- 90deg,
- rgba(253, 111, 35, 1) 0%,
- rgba(253, 159, 35, 1) 100%
- );
- width: 0;
- }
- .volume-thumb-box {
- position: absolute;
- top: 50%;
- left: 0;
- width: 24px;
- height: 14px;
- margin-top: -7px;
- margin-left: -12px;
- z-index: 2;
- border-radius: 4px;
- cursor: pointer;
- }
- .volume-thumb-box::before {
- content: "";
- position: absolute;
- inset: -2px;
- border-radius: 6px;
- background: rgba(253, 111, 35, 0.45);
- filter: blur(4px);
- z-index: -1;
- }
- .volume-thumb {
- display: block;
- width: 100%;
- height: 100%;
- border-radius: 4px;
- background: linear-gradient(180deg, rgba(253, 111, 35, 0.5) 0%, #967563 100%);
- border: 1px solid #e7e7e7;
- box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
- }
- .volume-current {
- position: absolute;
- top: 22px;
- left: 0;
- font-size: 11px;
- font-weight: 500;
- color: #fd6f23;
- transform: translateX(-50%);
- white-space: nowrap;
- }
- /* ===== 邀请活动列表 ===== */
- .activity-list-section {
- width: 100%;
- margin-bottom: 16px;
- }
- .activity-list-title {
- font-size: 19px;
- font-weight: 600;
- color: var(--bex-text-primary, #ffffff);
- margin-bottom: 18px;
- }
- .activity-card {
- position: relative;
- width: 100%;
- border-radius: 8px;
- margin-bottom: 16px;
- overflow: hidden;
- min-height: 179px;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- border-radius: 8px;
- background: rgba(255, 255, 255, 0.03);
- }
- .activity-card-bg {
- position: absolute;
- left: 0;
- top: 0;
- width: 141px;
- height: 153px;
- background: url(/images/unblock-bg-left-round.png) no-repeat left center;
- background-size: contain;
- border-radius: 0 0 100% 0;
- pointer-events: none;
- }
- .activity-card-image {
- position: absolute;
- right: 24px;
- top: 28px;
- width: 76px;
- height: 82px;
- border-radius: 8px;
- background-image: url(/images/unblock-right.png);
- background-size: cover;
- background-position: center center;
- background-repeat: no-repeat;
- pointer-events: none;
- overflow: hidden;
- }
- .activity-card-title {
- position: relative;
- z-index: 1;
- font-size: 17px;
- font-weight: 600;
- color: var(--bex-text-primary, #ffffff);
- line-height: 24px;
- max-width: 174px;
- flex: 1;
- display: flex;
- align-items: center;
- margin: 0 24px;
- }
- .activity-card-footer {
- position: relative;
- z-index: 1;
- display: flex;
- align-items: center;
- justify-content: space-between;
- height: 44px;
- padding: 0 24px;
- background: #ffffff08;
- /* background-color: #FFFFFF08; */
- /* margin-top: auto; */
- }
- .activity-countdown {
- display: flex;
- align-items: center;
- gap: 4px;
- }
- .activity-countdown-label,
- .activity-countdown-unit {
- font-size: 10px;
- font-weight: 600;
- color: var(--bex-text-secondary, #888888);
- line-height: 14px;
- }
- .activity-countdown-days,
- .activity-countdown-time {
- font-family:
- "HarmonyOS Sans",
- "DIN Alternate",
- "SF Pro Display",
- -apple-system,
- BlinkMacSystemFont,
- sans-serif;
- font-size: 16px;
- font-weight: 700;
- color: var(--bex-text-primary, #ffffff);
- line-height: 1;
- }
- .activity-btn {
- height: 24px;
- padding: 0 12px;
- border: none;
- border-radius: 6px;
- background: var(--bex-text-primary, #ffffff);
- color: #121212;
- font-size: 11px;
- font-weight: 500;
- cursor: pointer;
- display: flex;
- align-items: center;
- line-height: 1;
- gap: 4px;
- }
- .activity-btn:disabled {
- opacity: 0.5;
- cursor: not-allowed;
- }
- .activity-empty {
- padding: 48px 16px;
- text-align: center;
- color: var(--bex-text-secondary, #888888);
- font-size: 12px;
- }
- /* ===== 底部邀请链接区 ===== */
- .invite-link-section {
- display: flex;
- align-items: center;
- gap: 10px;
- border-top: 1px solid #171717;
- position: fixed;
- bottom: -2px;
- width: 100%;
- left: 0;
- z-index: 100;
- padding: 4px 16px 26px;
- background: #0e0e0e;
- height: 80px;
- transform: translateY(100%);
- transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
- }
- .invite-link-section.visible {
- transform: translateY(0);
- }
- .invite-link-card {
- flex: 1;
- display: flex;
- align-items: center;
- justify-content: space-between;
- background: #161616;
- border-radius: 8px;
- padding: 10px 12px;
- }
- .invite-link-info {
- flex: 1;
- min-width: 0;
- display: flex;
- align-items: center;
- }
- .invite-link-label {
- font-size: 14px;
- font-weight: 500;
- color: var(--bex-text-primary, #ffffff);
- min-width: 80px;
- }
- .invite-link-url {
- max-width: 158px;
- font-size: 12px;
- color: var(--bex-text-secondary, #888888);
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .invite-link-actions {
- display: flex;
- align-items: center;
- gap: 12px;
- flex-shrink: 0;
- }
- .invite-link-copy-btn,
- .invite-link-share-btn {
- /* width: 42px; */
- /* height: 42px; */
- cursor: pointer;
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 0;
- }
- .invite-link-share-btn {
- background: #161616;
- border-radius: 8px;
- padding: 12px;
- }
- .invite-link-copy-btn svg,
- .invite-link-share-btn svg {
- width: 18px;
- height: 18px;
- }
- /* ===== 激活弹窗 ===== */
- .activate-modal {
- width: 100%;
- max-width: 300px;
- background: #0f0f0f;
- border: 1px solid #191919;
- border-radius: 8px;
- padding: 20px 16px 16px;
- animation: fadeIn 0.2s ease-out;
- }
- .activate-modal-title {
- font-size: 14px;
- font-weight: 600;
- color: var(--bex-text-primary, #ffffff);
- margin-bottom: 20px;
- }
- .activate-modal-row {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: 20px;
- cursor: pointer;
- }
- .activate-modal-row-text {
- font-size: 14px;
- font-weight: 500;
- color: var(--bex-text-primary, #ffffff);
- }
- .activate-modal-row-action {
- display: flex;
- align-items: center;
- gap: 4px;
- font-size: 14px;
- font-weight: 500;
- color: var(--bex-brand, #fd6f23);
- }
- .activate-modal-btn {
- width: 100%;
- height: 42px;
- border: none;
- border-radius: 8px;
- background: linear-gradient(
- 90deg,
- rgba(253, 111, 35, 1) 0%,
- rgba(253, 148, 35, 1) 100%
- );
- color: #ffffff;
- font-size: 14px;
- font-weight: 500;
- cursor: pointer;
- margin-bottom: 12px;
- }
- .activate-modal-note {
- font-size: 9px;
- line-height: 1.5;
- color: var(--bex-text-secondary, #888888);
- }
- /* ===== Toast ===== */
- .toast {
- position: fixed;
- left: 50%;
- bottom: 80px;
- transform: translateX(-50%);
- background: rgba(0, 0, 0, 0.85);
- color: #ffffff;
- padding: 10px 20px;
- border-radius: 20px;
- font-size: 14px;
- z-index: 2000;
- opacity: 0;
- transition: opacity 0.3s;
- pointer-events: none;
- }
- .toast.show {
- opacity: 1;
- }
- /* ===== 浅色主题 ===== */
- html.theme-light .container {
- background: #ffffff;
- }
- html.theme-light .commission-section {
- background-image: url(/images/group-470833-bg-light.png);
- }
- html.theme-light .hero-card-inner {
- background: rgba(255, 255, 255, 0.6);
- }
- html.theme-light .hero-bg {
- opacity: 0.8;
- }
- html.theme-light .activity-card-footer {
- background-color: transparent;
- border-top: #e8e8e8 1px solid;
- }
- html.theme-light .hero-title {
- color: #121212;
- }
- html.theme-light .hero-subtitle {
- color: #fd8523;
- }
- html.theme-light .hero-rights-text {
- color: #fd8523;
- }
- html.theme-light .hero-stat-value,
- html.theme-light .hero-stat-unit {
- color: #fd8523;
- }
- html.theme-light .hero-activate-btn {
- color: #ffffff;
- }
- html.theme-light .hero-stat-label,
- html.theme-light .volume-title,
- html.theme-light .volume-minmax,
- html.theme-light .commission-label {
- color: #888888;
- }
- html.theme-light .commission-status-card.inactive {
- background: #f3f3f3;
- }
- html.theme-light .commission-status-card.inactive .commission-status-tag {
- background: #e8e8e8;
- color: #121212;
- }
- html.theme-light .commission-status-card.active {
- background: linear-gradient(
- 180deg,
- rgba(255, 245, 235, 1) 0%,
- rgba(255, 235, 220, 1) 100%
- );
- }
- html.theme-light .commission-left .meny {
- color: #121212;
- }
- html.theme-light .volume-track {
- background: #e7e7e7;
- }
- html.theme-light .commission-left .commission-tag-label {
- background: #e4cfbe;
- }
- html.theme-light .commission-right .meny,
- html.theme-light .commission-right .info {
- color: #93471e;
- }
- html.theme-light .commission-right .commission-tag-label {
- background: linear-gradient(90deg, #ff965f 0%, #ffb36c 100%);
- }
- html.theme-light .commission-watermark span {
- color: rgba(18, 18, 18, 0.03);
- }
- html.theme-light .activity-card {
- background: #ffffff08;
- border: 1px solid #e8e8e8;
- }
- html.theme-light .activity-list-title,
- html.theme-light .activity-card-title,
- html.theme-light .activity-countdown-days,
- html.theme-light .activity-countdown-time {
- color: #121212;
- }
- html.theme-light .activity-btn {
- background: #121212;
- color: #ffffff;
- }
- html.theme-light .invite-link-section {
- border-top-color: #efefef;
- background: #ffffff;
- }
- html.theme-light .invite-link-card,
- html.theme-light .invite-link-share-btn {
- background: #f3f3f3;
- }
- html.theme-light .invite-link-label {
- color: #121212;
- }
- html.theme-light .invite-link-url {
- color: #888888;
- }
- html.theme-light .activate-modal {
- background: #ffffff;
- border-color: #e8e8e8;
- }
- html.theme-light .activate-modal-title,
- html.theme-light .activate-modal-row-text {
- color: #121212;
- }
- html.theme-light .error-retry {
- background: #121212;
- color: #ffffff;
- }
- html.theme-light .loading-overlay,
- html.theme-light .error-overlay {
- background: #ffffff;
- }
- html.theme-light .modal-panel {
- background: #ffffff;
- }
- html.theme-light .activate-modal-btn {
- color: #121212;
- }
- html.theme-light .panel-drag-handle {
- background: #e6e6e6;
- }
|