/* 礼物独立样式：沿用黑粉品牌，不影响聊天或助教卡片的固定布局。 */
.giftOverlay { position:fixed; inset:0; z-index:85; display:flex; align-items:flex-end; justify-content:center; background:rgba(5,7,12,.62); padding-top:max(16px,env(safe-area-inset-top)); }
.giftDialog { width:100%; max-width:520px; max-height:calc(100% - 8px); margin:0; padding:0; border:1px solid #39303d; border-radius:22px 22px 0 0; display:flex; flex-direction:column; overflow:hidden; background:#19191f; color:#f5f0f7; box-shadow:0 -12px 50px #0006; }
.giftHeader { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:17px 18px 8px; flex:none; }
.giftHeader small { color:#ff91bd; font-size:11px; letter-spacing:2px; }
.giftHeader h2 { font-size:18px; margin:2px 0; overflow-wrap:anywhere; }
.giftHeader .giftClose { border:0; background:#ffffff0c; border-radius:50%; width:36px; height:36px; font-size:25px; padding:0; flex:none; }
.giftTabs { display:flex; gap:4px; padding:4px 14px 10px; border-bottom:1px solid #ffffff0b; flex:none; }
.giftTabs button { flex:1; padding:8px 4px; border:0; border-radius:8px; background:transparent; color:#b0a6b8; white-space:nowrap; }
.giftTabs button.on { background:#ff7eb618; color:#ffacd0; font-weight:600; }
.giftContent { min-height:80px; overflow:auto; overscroll-behavior:contain; padding:12px 16px; -webkit-overflow-scrolling:touch; }
.giftContent h3 { font-size:15px; margin:10px 0; }
.giftRecipient { margin:0 0 12px; color:#b0a6b8; font-size:13px; }
.giftRecipient b { color:#f3edf6; }
.giftCatalog { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.giftCatalog button { min-width:0; display:flex; flex-direction:column; align-items:center; gap:4px; padding:12px 2px 9px; border:1px solid #ffffff0a; border-radius:12px; background:#24222c; }
.giftCatalog button.on { border-color:#ff7eb6; background:#ff7eb615; box-shadow:inset 0 0 0 1px #ff7eb630; }
.giftCatalog b { font-size:12px; overflow-wrap:anywhere; }
.giftCatalog small { color:#eac77e; font-size:11px; }
.giftIcon { display:block; font-size:35px; line-height:1.3; font-family:"Apple Color Emoji","Segoe UI Emoji",sans-serif; }
.giftHint { font-size:12px; color:#aaa1b2; line-height:1.65; margin:10px 0; overflow-wrap:anywhere; }
.giftStatus { color:#f2c888; min-height:0; padding:0 16px; font-size:12px; line-height:1.6; margin:0; flex:none; overflow-wrap:anywhere; }
.giftStatus:not(:empty) { padding-bottom:10px; }
.giftDialog { position:relative; }
.giftNoCoins { position:absolute; inset:0; z-index:2; display:flex; align-items:center; justify-content:center; padding:16px; background:#05070cd9; }
.giftNoCoinsCard { position:relative; width:min(100%,360px); max-height:100%; overflow:auto; overscroll-behavior:contain; padding:24px 18px 16px; text-align:center; background:#25212b; border:1px solid #ff91bd70; border-radius:18px; box-shadow:0 12px 44px #0008; }
.giftNoCoinsCard h3 { margin:8px 0 10px; font-size:23px; color:#ffacd0; }
.giftNoCoinsCard > p:not(.giftHint) { font-size:14px; line-height:1.7; }
.giftNoCoinsCard > button:not(.giftNoCoinsClose) { display:block; width:100%; min-height:40px; margin-top:12px; }
.giftNoCoinsClose { position:absolute; right:10px; top:8px; width:36px; height:36px; padding:0; border:0; background:transparent; font-size:25px; }
.giftFooter { flex:none; border-top:1px solid #ffffff0b; padding:10px 16px max(14px,env(safe-area-inset-bottom)); display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; }
.giftWalletLine,.giftBuyLine { width:100%; display:flex; justify-content:space-between; align-items:center; gap:10px; }
.giftWalletLink { padding:3px 0; background:transparent; border:0; color:#f3d38d; font-size:13px; }
.giftBalance { color:#c2b7c9; font-size:12px; }
.giftBuyLine label { color:#c2b7c9; display:flex; align-items:center; gap:8px; font-size:13px; }
.giftQuantity { width:60px; height:36px; color:#fff; background:#25212b; border:1px solid #4d3d50; border-radius:8px; padding:6px; text-align:center; font:inherit; }
.giftPrimary { border:0; background:linear-gradient(100deg,#f062a2,#ff91bd); color:#29111f; font-weight:700; padding:10px 17px; border-radius:24px; }
.giftPrimary:hover { background:#ffabd0; }
.giftPrimary:disabled { opacity:.5; }
.giftEmpty { color:#aaa1b2; text-align:center; padding:18px 8px; font-size:13px; grid-column:1/-1; }
.giftSummary { text-align:center; padding:10px 0 16px; }
.giftSummary strong { display:block; font-size:34px; line-height:1.2; color:#ffb5d5; font-variant-numeric:tabular-nums; }
.giftSummary span { display:block; font-size:13px; margin:5px 0; }
.giftSummary small { color:#aaa1b2; }
.giftWall { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.giftReceived { min-width:0; background:#ffffff05; text-align:center; padding:9px 2px; border-radius:10px; }
.giftReceived b,.giftReceived small { display:block; font-size:12px; overflow-wrap:anywhere; }
.giftReceived small { color:#d2b172; margin-top:2px; }
.giftLeaders { padding:0; margin:12px 0 0; list-style:none; }
.giftLeaders li { display:flex; align-items:center; gap:9px; padding:12px 0; border-bottom:1px solid #ffffff08; }
.giftRank { width:18px; flex:none; text-align:center; color:#a198aa; font-weight:bold; }
.giftLeaders li:nth-child(-n+3) .giftRank { color:#f7d896; }
.giftLeaders img { width:36px; height:36px; object-fit:cover; border-radius:50%; flex:none; }
.giftLeaders li > div { min-width:0; flex:1; }
.giftLeaders .giftLeaderName { display:block; max-width:100%; padding:0; border:0; background:none; color:inherit; font:inherit; font-weight:700; font-size:13px; text-align:left; overflow-wrap:anywhere; cursor:pointer; text-decoration:underline; text-decoration-color:#ffffff40; text-underline-offset:3px; }
.giftLeaders small { display:block; color:#aaa1b2; font-weight:400; font-size:10px; }
.giftLeaders strong { text-align:right; color:#f5cd83; font-size:14px; }
.giftLoadMore { width:100%; margin:12px 0 0; }
.giftPending,.giftSuccess { text-align:center; padding:24px 6px; }
.giftSuccess .giftIcon { font-size:64px; animation:gift-arrive .65s ease-out; }
.giftSuccess button { margin:10px 4px 0; }
.giftWalletCard { background:linear-gradient(120deg,#503945,#342538); padding:20px; border:1px solid #ffd3e41c; border-radius:16px; }
.giftWalletCard > small,.giftWalletCard > span { display:block; color:#dac4cf; font-size:12px; }
.giftWalletCard strong { display:block; font-size:38px; line-height:1.5; color:#ffe1a0; font-variant-numeric:tabular-nums; }
.giftFunding { margin:15px 0 20px; }
.giftFunding p { color:#b9aabb; font-size:12px; }
.giftRecharge { width:100%; }
.giftRechargeRate { color:#f5cd83; font-weight:600; text-align:center; margin:8px 0 16px; }
.giftRechargePackages { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-bottom:18px; }
.giftRechargePackages button { min-width:0; padding:14px 4px; background:#ff7eb60c; border:1px solid #ff7eb62d; border-radius:10px; }
.giftRechargePackages small { display:block; margin-top:5px; color:#c2a6b6; font-size:11px; }
.giftRechargeCustom { display:flex; flex-direction:column; gap:8px; color:#c2b7c9; font-size:13px; }
.giftRechargeYuan { width:100%; min-width:0; padding:12px; border:1px solid #4d3d50; border-radius:8px; background:#25212b; color:#fff; font:inherit; box-sizing:border-box; }
.giftRechargeAmount { min-height:22px; color:#f5cd83; }
.giftRechargeCreate { width:100%; }
.giftRechargeOrder { text-align:center; padding:12px 0; overflow-wrap:anywhere; }
.giftRechargeOrder strong { display:block; font-size:22px; margin:14px 0; }
.giftRechargeOrder button,.giftPayLink { display:block; width:100%; box-sizing:border-box; margin-top:12px; min-height:42px; }
.giftPayLink { text-decoration:none; text-align:center; }
.giftRechargeHistory { display:flex; flex-direction:column; gap:8px; }
.giftRechargeHistory button { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; padding:14px 10px; text-align:left; background:#ffffff05; border:1px solid #ffffff0a; border-radius:10px; }
.giftRechargeHistory b { overflow-wrap:anywhere; font-size:13px; }
.giftRechargeHistory span { color:#f5cd83; font-size:12px; }
.giftRechargeHistory small { grid-column:1/-1; color:#aaa1b2; font-size:11px; }
.giftLedgerRow { display:flex; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid #ffffff0b; }
.giftLedgerRow > div { min-width:0; }
.giftLedgerRow > div:last-child { text-align:right; flex:none; }
.giftLedgerRow b { font-size:13px; font-weight:500; overflow-wrap:anywhere; }
.giftLedgerRow small { display:block; color:#a69caa; font-size:11px; }
.giftLedgerRow .plus { color:#85d8ae; }
.giftShowcase { margin:14px 0; padding:12px; background:#ff7eb607; border:1px solid #ff7eb620; border-radius:12px; color:inherit; text-align:left; }
.giftSectionHead { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.giftSectionHead h3,.giftShowcase > h3 { margin:0; font-size:14px; }
.giftSectionHead h3 small { color:#a499a9; font-size:11px; font-weight:400; }
.giftShowAll { padding:4px; border:0; background:transparent; color:#ff9bc4; font-size:12px; white-space:nowrap; }
.giftMiniWall { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin:10px 0; }
.giftShowRank { width:100%; border:0; background:#ff7eb60c; border-radius:7px; text-align:left; padding:8px; font-size:12px; }
.giftShowRank span { display:inline-block; float:right; color:#c2a6b6; font-size:11px; max-width:50%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.giftDialog button:focus-visible,.giftShowcase button:focus-visible,.giftQuantity:focus-visible { outline:2px solid #ffd0e6; outline-offset:2px; }
@keyframes gift-arrive { from { transform:scale(.5) translateY(18px); opacity:0; } to { transform:scale(1) translateY(0); opacity:1; } }
@media (prefers-reduced-motion:reduce) { .giftSuccess .giftIcon { animation:none; } }
@media (max-width:340px) { .giftCatalog,.giftWall { grid-template-columns:repeat(3,minmax(0,1fr)); } .giftTabs button { font-size:12px; } .giftPrimary { padding:10px 12px; } }
@media (min-height:760px) { .giftDialog { max-height:min(760px,90%); } }
.giftOwned { color:#9fd6a8 !important; }
.giftStoreActions { display:flex; flex-direction:column; gap:4px; align-items:flex-end; }
.giftStoreActions button { padding:5px 8px; border:1px solid #ffffff1a; border-radius:8px; background:#24222c; color:#eac77e; font-size:12px; }
/* 我的物品 / 礼物面板固定大小（负责人 2026-11-15）：打开后不随内容伸缩，没内容就留白，内容多就在中间滚动 */
.giftDialog { height: min(620px, calc(100% - 8px)); }
.giftDialog .giftContent { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
/* 收到的礼物记录：自己礼物展馆的礼物墙下面（负责人 2026-11-19） */
.giftRecords { margin-top:18px; padding-top:14px; border-top:1px solid #ffffff14; }
.giftRecords h3 { margin:0 0 6px; font-size:14px; }
.giftRecords .giftRecNote { color:#85d8ae; }
.giftRecords .giftRetry { margin-top:6px; }
