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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f5f0;
    color: #333;
    line-height: 1.6;
    max-width: 414px;
    margin: 0 auto;
}

.container {
    max-width: 414px;
    margin: 0 auto;
    padding: 10px;
}

.screen {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.top-nav {
    background: #1a1a2e;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    position: sticky;
    top: 0;
    z-index: 100;
    max-width: 414px;
    margin: 0 auto;
}

.logo {
    font-size: 16px;
    font-weight: bold;
    margin-right: 12px;
    white-space: nowrap;
    color: #d4af37;
}

.top-nav nav {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    flex: 1;
}

.top-nav nav::-webkit-scrollbar {
    display: none;
}

.top-nav nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
}

.top-nav nav a.active,
.top-nav nav a:hover {
    background: #d4af37;
    color: #1a1a2e;
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    color: #1a1a2e;
}

.welfare-detail {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.welfare-image {
    width: 100%;
    height: 180px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.welfare-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welfare-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #27ae60;
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
}

.welfare-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.welfare-name {
    font-size: 17px;
    color: #333;
    font-weight: bold;
}

.welfare-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.welfare-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.meta-item {
    text-align: center;
    padding: 8px;
    background: #f8f8f8;
    border-radius: 6px;
}

.meta-label {
    display: block;
    font-size: 11px;
    color: #999;
    margin-bottom: 4px;
}

.meta-value {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.progress-section {
    margin-top: 8px;
}

.progress-bar {
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #c00, #e74c3c);
    border-radius: 3px;
}

.progress-text {
    font-size: 11px;
    color: #999;
}

.claim-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-title {
    font-size: 15px;
    color: #333;
    font-weight: bold;
}

.form-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 10px;
    font-size: 12px;
    color: #856404;
    display: flex;
    align-items: center;
    gap: 6px;
}

.notice-icon {
    background: #ffc107;
    color: #fff;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

.form-group {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-label {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    width: 60px;
}

.form-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #1a1a2e;
}

.form-textarea {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    resize: none;
    transition: border-color 0.3s;
}

.form-textarea:focus {
    outline: none;
    border-color: #1a1a2e;
}

.form-rules {
    margin: 12px 0;
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-rules input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.link-rules {
    color: #1a1a2e;
    text-decoration: none;
}

.link-rules:hover {
    text-decoration: underline;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #c00 0%, #e74c3c 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a00 0%, #c0392b 100%);
}

.share-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.share-text {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.share-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.share-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    background: #fff;
    transition: all 0.3s;
}

.btn-wechat {
    background: #07c160;
    color: #fff;
    border-color: #07c160;
}

.btn-wechat:hover {
    background: #06ad56;
}

.btn-copy:hover {
    border-color: #1a1a2e;
    color: #1a1a2e;
}

.welfare-rules {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rules-title {
    font-size: 14px;
    color: #333;
    font-weight: bold;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.rules-list {
    list-style: none;
}

.rules-list li {
    padding: 6px 0;
    font-size: 12px;
    color: #666;
    position: relative;
    padding-left: 16px;
}

.rules-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #1a1a2e;
}

#success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.modal-hidden {
    display: none !important;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    max-width: 300px;
    width: 90%;
}

.success-icon {
    width: 50px;
    height: 50px;
    background: #27ae60;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 15px;
}

.success-title {
    font-size: 17px;
    color: #333;
    margin-bottom: 8px;
}

.success-text {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}

#float-btn {
    position: fixed;
    right: 15px;
    bottom: 80px;
    background: linear-gradient(135deg, #8B4513, #D2691E);
    color: #fff;
    padding: 12px 15px;
    border-radius: 25px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
    cursor: pointer;
    z-index: 99;
}
