* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    padding-bottom: 70px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
}

/* 头部 */
.header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon {
    font-size: 32px;
}

.logo h1 {
    font-size: 18px;
    font-weight: 600;
}

.logo p {
    font-size: 12px;
    opacity: 0.9;
}

.info-btn, .back-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 统计卡片 */
.stats-card {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: white;
    padding: 20px;
    margin: 15px;
    border-radius: 12px;
}

.stats-card h2 {
    font-size: 20px;
    margin-bottom: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 10px;
}

.stat-item {
    background: rgba(255,255,255,0.15);
    padding: 15px;
    border-radius: 8px;
}

.stat-label {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
}

.can-claim {
    text-align: center;
    padding: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    font-size: 14px;
}

/* AI提示 */
.ai-tip {
    margin: 15px 20px;
    padding: 12px;
    background: #f8f8f8;
    border-radius: 8px;
    font-size: 13px;
}

.ai-icon {
    margin-right: 5px;
}

.ai-tip p {
    color: #999;
    font-size: 12px;
    margin-top: 3px;
}

/* 期待横幅 */
.coming-soon-banner {
    margin: 15px;
    padding: 15px;
    background: #667eea;
    border-radius: 12px;
    text-align: center;
    color: white;
}

.banner-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.5;
}

.banner-subtitle {
    font-size: 12px;
    opacity: 0.95;
}

/* 区块标题 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.section-header h3 {
    font-size: 16px;
}

.section-header a {
    color: #ff5252;
    text-decoration: none;
    font-size: 14px;
}

/* 红包列表 */
.redpacket-list {
    padding: 0 15px;
}

.redpacket-item {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
}

.rp-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 10px;
}

.user-info {
    flex: 1;
}

.username {
    font-weight: 600;
    font-size: 14px;
}

.time {
    font-size: 12px;
    color: #999;
}

.claim-count {
    font-size: 12px;
    color: #ff5252;
    font-weight: 600;
}

.rp-content {
    background: #f8f8f8;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 10px;
    word-break: break-all;
}

.rp-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    padding: 0 5px;
}

.feedback-section {
    margin-bottom: 10px;
}

.feedback-trigger-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.feedback-trigger-btn:hover {
    transform: scale(1.02);
}

.feedback-options {
    margin-top: 10px;
    padding: 12px;
    background: #f8f8f8;
    border-radius: 8px;
}

.feedback-tip {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.feedback-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.feedback-btn {
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.feedback-btn.valid {
    background: #28a745;
    color: white;
}

.feedback-btn.invalid {
    background: #dc3545;
    color: white;
}

.feedback-btn:hover {
    opacity: 0.9;
}

.feedback-done {
    text-align: center;
    padding: 10px;
    background: #d4edda;
    color: #155724;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

/* 口令弹窗 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 20% auto;
    padding: 20px;
    border-radius: 12px;
    width: 85%;
    max-width: 400px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.modal-header {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    color: #ff5252;
}

.modal-code {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-all;
    margin-bottom: 15px;
    border: 2px dashed #ff5252;
    user-select: all;
    -webkit-user-select: all;
    -moz-user-select: all;
    -ms-user-select: all;
    cursor: text;
}

.modal-tip {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin-bottom: 15px;
}

.modal-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.modal-btn {
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.modal-btn-copy {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: white;
}

.modal-btn-close {
    background: #f0f0f0;
    color: #333;
}
.usage-guide {
    margin: 15px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    border: 2px solid #ff5252;
}

.guide-title {
    font-size: 15px;
    font-weight: 600;
    color: #ff5252;
    margin-bottom: 10px;
}

.usage-guide ol {
    margin-left: 20px;
    font-size: 13px;
    line-height: 1.8;
    color: #333;
}

.usage-guide li {
    margin-bottom: 5px;
}

.guide-warning {
    margin-top: 10px;
    padding: 8px;
    background: #fff3cd;
    color: #856404;
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
    font-weight: 600;
}

.claim-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.claim-btn:hover {
    opacity: 0.9;
}

.claim-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    max-width: 600px;
    margin: 0 auto;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #999;
    font-size: 12px;
}

.nav-item.active {
    color: #ff5252;
}

.nav-icon {
    font-size: 24px;
    margin-bottom: 3px;
}

/* 分享页面 */
.share-card {
    margin: 15px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #eee;
}

.share-quota {
    text-align: center;
    padding: 15px;
    background: #fff3f3;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #ff5252;
}

/* 分享步骤说明 */
.share-guide {
    background: #f0f8ff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid #4a90e2;
}

.guide-header {
    font-size: 15px;
    font-weight: 600;
    color: #4a90e2;
    margin-bottom: 12px;
    text-align: center;
}

.guide-steps {
    margin-left: 20px;
    font-size: 13px;
    line-height: 2;
    color: #333;
}

.guide-steps li {
    margin-bottom: 5px;
}

.guide-steps strong {
    color: #ff5252;
    font-weight: 600;
}

.share-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.share-tips {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
}

.share-tips h4 {
    margin-bottom: 10px;
    font-size: 14px;
}

.share-tips ul {
    list-style: none;
    font-size: 13px;
    line-height: 1.8;
    color: #666;
}

.share-tips li:before {
    content: "• ";
    color: #ff5252;
    font-weight: bold;
    margin-right: 5px;
}

/* 我的分享 */
.my-shares {
    margin: 15px;
}

.my-shares h3 {
    font-size: 16px;
    margin-bottom: 12px;
}

.share-item {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.share-item.completed {
    background: #f8f8f8;
    opacity: 0.8;
}

.share-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    margin: 10px 0;
}

.status-badge {
    background: #28a745;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
}

.heat-options {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.heat-quick-btn {
    padding: 8px;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.heat-quick-btn:hover {
    opacity: 0.9;
}

.heat-quick-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.heat-custom-btn {
    grid-column: 1 / -1;
    padding: 10px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.heat-custom-btn:hover {
    transform: scale(1.02);
}

.heat-info {
    margin: 15px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    border: 1px solid #eee;
}

.heat-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.heat-info p {
    font-size: 14px;
    margin-bottom: 10px;
}

.heat-info ul {
    list-style: none;
    font-size: 13px;
    line-height: 1.8;
    color: #666;
}

.heat-info li:before {
    content: "• ";
    color: #ff5252;
    font-weight: bold;
    margin-right: 5px;
}

.share-content {
    font-size: 13px;
    margin-bottom: 8px;
    color: #666;
}

.share-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.share-meta span {
    white-space: nowrap;
}

.heat-btn {
    width: 100%;
    padding: 8px;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.heat-btn:hover {
    opacity: 0.9;
}

/* 加入群组 */
.join-group {
    margin: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    border-radius: 12px;
    text-align: center;
    color: white;
}

.join-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.join-btn {
    display: block;
    padding: 12px 30px;
    background: white;
    color: #ff5252;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s;
    margin: 0 auto;
    max-width: 300px;
}

.join-btn:hover {
    transform: scale(1.05);
}

/* 攻略链接 */
.guide-group {
    margin: 15px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    border: 2px dashed #ff5252;
    text-align: center;
}

.guide-link {
    display: block;
    color: #ff5252;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s;
}

.guide-link:hover {
    transform: scale(1.05);
}

/* 摸好运卡片 */
.lucky-card {
    margin: 15px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 12px;
    text-align: center;
}

.lucky-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.lucky-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.lucky-horse {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.horse-icon {
    font-size: 80px;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.horse-text {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.lucky-result {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.lucky-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    transition: transform 0.2s;
}

.lucky-btn:hover {
    transform: scale(1.02);
}

.lucky-tips {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: left;
}

.lucky-tips p {
    margin: 8px 0;
    font-size: 13px;
    line-height: 1.6;
}

/* 抽奖页面 */
.lottery-card {
    margin: 15px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 12px;
    text-align: center;
}

.lottery-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.lottery-cards {
    font-size: 16px;
    margin-bottom: 20px;
}

.lottery-cards strong {
    font-size: 32px;
    color: #ff5252;
}

.lottery-result {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.result-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.result-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.lottery-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
}

.lottery-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.lottery-tips {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: left;
}

.lottery-tips h4 {
    margin-bottom: 10px;
    font-size: 14px;
}

.lottery-tips ul {
    list-style: none;
    font-size: 13px;
    line-height: 1.8;
}

/* 获取抽奖卡 */
.earn-cards {
    margin: 15px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #eee;
}

.earn-cards h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.earn-method {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.method-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f8f8;
    border-radius: 8px;
}

.method-icon {
    font-size: 32px;
}

.method-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 3px;
}

.method-desc {
    font-size: 12px;
    color: #666;
}

/* 用户统计 */
.user-stats {
    margin: 15px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #eee;
}

.user-stats h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 8px;
}

/* 消息提示 */
.message {
    margin: 15px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.empty-tip {
    text-align: center;
    padding: 30px;
    color: #999;
    font-size: 14px;
}
