* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: #f5f0e8; color: #3e3a35; min-height:100vh; }
.container { max-width:960px; margin:0 auto; padding:20px; }
.small { max-width:400px; margin-top:80px; }
header { display:flex; justify-content:space-between; align-items:center; margin-bottom:30px; flex-wrap:wrap; }
nav a, nav span { margin-left:15px; text-decoration:none; color:#5c5347; }
nav .badge { background:#c49a6c; color:white; padding:2px 8px; border-radius:10px; font-size:0.8em; }
.btn-small { font-size:0.85em; padding:4px 10px; background:#8b7355; color:white; border:none; border-radius:4px; cursor:pointer; text-decoration:none; }
.ad-banner, .ad-footer { background:#faf7f2; border:1px dashed #c4b5a5; padding:15px; text-align:center; margin:15px 0; }
.ad-placeholder { color:#b0a090; }

.baskets-container { display:flex; gap:20px; justify-content:center; flex-wrap:wrap; margin-bottom:40px; }
.basket-card { background:white; border-radius:16px; padding:24px; text-align:center; box-shadow:0 4px 12px rgba(0,0,0,0.06); flex:1 1 220px; max-width:280px; transition: transform 0.3s, box-shadow 0.3s; cursor:default; }
.basket-card:hover { transform:translateY(-4px); box-shadow:0 8px 20px rgba(0,0,0,0.1); }
.basket-icon { font-size:2.5em; margin-bottom:10px; }
.basket-count { color:#8b7355; margin:8px 0; font-weight:500; }
.draw-btn { background:#6d8c50; color:white; border:none; padding:10px 20px; border-radius:20px; font-size:1em; cursor:pointer; transition:0.2s; }
.draw-btn:hover { background:#56733d; }

.result-area { position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.5); display:flex; justify-content:center; align-items:center; z-index:1000; }
.result-area.hidden { display:none; }
.paper-ball-animation { background:#fefaf2; border-radius:12px; padding:30px; max-width:500px; width:90%; box-shadow:0 10px 30px rgba(0,0,0,0.2); animation:popIn 0.4s ease; position:relative; }
@keyframes popIn { from{ transform:scale(0.7); opacity:0; } to{ transform:scale(1); opacity:1; } }
.paper-content .text { font-size:1.3em; line-height:1.6; margin-bottom:15px; color:#3e3a35; font-style:italic; }
.meta { font-size:0.85em; color:#8b7355; display:flex; justify-content:space-between; }
.user-content { margin-top:15px; background:#f3ede5; padding:10px; border-radius:8px; font-size:0.9em; }
.close-btn { position:absolute; top:10px; right:15px; background:none; border:none; font-size:1.2em; cursor:pointer; }

.throw-area { background:white; border-radius:16px; padding:24px; margin-top:30px; box-shadow:0 4px 12px rgba(0,0,0,0.06); }
.throw-area textarea { width:100%; padding:10px; border:1px solid #d4c5b2; border-radius:8px; resize:vertical; font-family:inherit; }
.throw-basket-select { margin:10px 0; display:flex; gap:15px; flex-wrap:wrap; }
.throw-btn { background:#b55b3c; color:white; border:none; padding:10px 20px; border-radius:20px; cursor:pointer; }
.throw-btn:hover { background:#96442a; }
.disabled { opacity:0.6; }
.error { color:#b53c3c; }

.history-list .ball-item { background:white; border-radius:12px; padding:15px; margin-bottom:15px; }
.ball-type { display:inline-block; padding:2px 10px; border-radius:12px; font-size:0.8em; color:white; margin-bottom:8px; }
.ball-type.yiyan { background:#6d8c50; } .ball-type.past { background:#8b7355; } .ball-type.public { background:#b55b3c; }
.draw-history-detail ul { margin-top:10px; background:#f5f0e8; padding:10px; border-radius:8px; font-size:0.85em; }
.hidden { display:none; }

.admin-table { width:100%; border-collapse:collapse; background:white; border-radius:8px; overflow:hidden; }
.admin-table th, .admin-table td { padding:12px; border-bottom:1px solid #e5d9cb; text-align:left; }

footer { text-align:center; margin-top:40px; color:#b0a090; }

/* 验证码按钮 */
.code-row { display:flex; gap:10px; align-items:center; }
.btn-code { background:#6d8c50; color:white; border:none; padding:8px 12px; border-radius:6px; cursor:pointer; white-space:nowrap; }
.btn-code:disabled { background:#aaa; cursor:not-allowed; }

/* 一言扩展信息 */
.yiyan-extra { margin-top:10px; background:#faf7f2; padding:10px; border-radius:8px; font-size:0.9em; }
.yiyan-extra p { margin:4px 0; }
.yiyan-extra a { color:#b55b3c; }

/* 抽按钮禁用 */
.draw-btn:disabled { opacity:0.6; cursor:not-allowed; }