:root { color-scheme: light; font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif; }
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { color: #272727; background: #f6f6f6; }
button { font: inherit; cursor: pointer; }
.tasks-page { max-width: 1054px; min-height: 100vh; margin: 0 auto; padding-bottom: 40px; background: #f6f6f6; }
.tasks-header { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; height: 64px; padding: 0 14px; background: #fff; }
.tasks-header a { color: #222; font-size: 42px; line-height: 1; text-decoration: none; }
.tasks-header h1 { margin: 0; font-size: 22px; text-align: center; }
.gift-period-tabs { display: grid; grid-template-columns: repeat(3, 1fr); height: 54px; background: #fff; }
.gift-period { position: relative; border: 0; color: #888; background: transparent; font-size: 18px; }
.gift-period.active { color: #1fa77e; font-weight: 600; }
.gift-period.active::after { position: absolute; right: 30%; bottom: 0; left: 30%; height: 3px; border-radius: 3px; background: #1fa77e; content: ""; }
.gift-summary { margin: 12px; padding: 24px 20px 18px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #27bd92, #72d8b1); text-align: center; box-shadow: 0 6px 18px rgba(39, 189, 146, .2); }
.gift-summary p { margin: 0 0 4px; font-size: 15px; opacity: .9; }
.gift-summary > strong { display: block; font-size: 36px; line-height: 48px; }
.gift-summary > div { display: flex; justify-content: space-around; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.35); font-size: 14px; }
.gift-summary b { font-size: 17px; }
.gift-rules { display: grid; gap: 5px; margin: 0 12px 12px; padding: 15px 17px; border-radius: 12px; background: #fff9e9; }
.gift-rules strong { font-size: 17px; }
.gift-rules span { color: #777; font-size: 14px; }
.gift-rules em { color: #f07c32; font-size: 14px; font-style: normal; font-weight: 600; }
.gift-records { padding: 4px 12px; }
.gift-records-title { display: flex; align-items: center; justify-content: space-between; margin: 14px 2px 6px; }
.gift-records-title h2 { margin: 0; font-size: 20px; }
.gift-records-title span { color: #999; font-size: 13px; }
.gift-order { margin-top: 12px; padding: 14px 13px 11px; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.gift-order header { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 11px; color: #333; font-size: 13px; }
.gift-order header strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gift-order header em { flex: none; color: #1caa76; font-style: normal; }
.gift-product { display: flex; gap: 12px; padding: 10px; border-radius: 9px; background: #fff8f0; }
.gift-product img { width: 82px; height: 82px; flex: none; border-radius: 9px; object-fit: cover; }
.gift-product h3 { overflow: hidden; margin: 0 0 5px; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.gift-product p, .gift-product span { display: block; margin: 0 0 5px; color: #888; font-size: 13px; }
.gift-order footer { display: flex; align-items: flex-end; justify-content: space-between; padding: 12px 2px 0; }
.gift-order footer > div { display: grid; grid-template-columns: auto auto; gap: 3px 8px; align-items: center; }
.gift-order footer b { font-size: 15px; }
.gift-order footer span { color: #999; font-size: 12px; }
.gift-order footer small { display: block; color: #999; font-size: 12px; }
.gift-order footer > strong { color: #f0643b; font-size: 20px; text-align: right; }
.gift-order footer > strong small { margin-top: 2px; color: #999; font-weight: 400; }
.gift-loading, .gift-end { padding: 18px; color: #999; font-size: 13px; text-align: center; }
.gift-more { display: block; width: 100%; margin-top: 10px; padding: 12px; border: 0; color: #1d9d78; background: transparent; font-size: 14px; }
[hidden] { display: none !important; }
.toast { position: fixed; left: 50%; bottom: 40px; padding: 11px 18px; border-radius: 22px; color: #fff; background: rgba(33,33,33,.84); opacity: 0; transform: translate(-50%, 14px); transition: .2s ease; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 641px) { .tasks-header { height: 92px; } .tasks-header h1 { font-size: 30px; } .gift-period-tabs { height: 82px; } .gift-period { font-size: 28px; } .gift-summary, .gift-rules, .gift-records { margin-right: 40px; margin-left: 40px; } .gift-summary { padding: 38px 30px 28px; } .gift-summary > strong { font-size: 54px; } .gift-order { padding: 20px; } .gift-product img { width: 130px; height: 130px; } .gift-product h3 { font-size: 25px; } }
