/* 鳌烨说媒 - 公共样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f0f2f5;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.page-header {
    background: #fff;
    border-bottom: 2px solid #000;
    padding: 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.page-header h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 4px;
}

.page-header .sub {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 16px;
}

.form-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.form-card .card-title {
    background: #fafafa;
    border-bottom: 1px solid #e8e8e8;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.form-card .card-body {
    padding: 20px;
}

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

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-label .required {
    color: #e74c3c;
    margin-right: 4px;
}

.form-hint {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: all 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #bbb;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23999'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 32px;
}

.input-with-unit {
    display: flex;
    align-items: center;
    gap: 0;
}

.input-with-unit .form-input {
    border-radius: 8px 0 0 8px;
    border-right: none;
}

.input-unit {
    padding: 11px 14px;
    background: #fafafa;
    border: 1px solid #d9d9d9;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

.radio-group {
    display: flex;
    gap: 20px;
    padding: 8px 0;
    flex-wrap: wrap;
}

/* 滚轮日期选择器 */
.date-picker-trigger {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.date-picker-trigger .placeholder { color: #bbb; }
.date-picker-trigger .value { color: #333; }
.date-picker-trigger::after {
    content: '';
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #999;
}

.date-picker-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
    align-items: flex-end;
    justify-content: center;
}
.date-picker-overlay.show { display: flex; }

.date-picker-box {
    background: #fff;
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 500px;
    padding: 0;
    animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.date-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}
.date-picker-header .cancel { color: #999; font-size: 15px; cursor: pointer; background: none; border: none; padding: 4px 8px; }
.date-picker-header .confirm { color: #333; font-size: 15px; font-weight: 600; cursor: pointer; background: none; border: none; padding: 4px 8px; }
.date-picker-header .title { font-size: 16px; font-weight: 600; }

.date-picker-body {
    display: flex;
    height: 220px;
    overflow: hidden;
    position: relative;
}
.date-picker-body::before,
.date-picker-body::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 80px;
    z-index: 1;
    pointer-events: none;
}
.date-picker-body::before { top: 0; background: linear-gradient(to bottom, rgba(255,255,255,0.9), transparent); }
.date-picker-body::after { bottom: 0; background: linear-gradient(to top, rgba(255,255,255,0.9), transparent); }

.date-picker-col {
    flex: 1;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.date-picker-col::-webkit-scrollbar { display: none; }

.date-picker-col .item {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #ccc;
    cursor: pointer;
    user-select: none;
    transition: color 0.15s;
}
.date-picker-col .item.active {
    color: #000;
    font-weight: 700;
    font-size: 18px;
}
.date-picker-col .item:hover {
    color: #666;
}

.date-picker-highlight {
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 44px;
    margin-top: -22px;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    pointer-events: none;
    z-index: 0;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    padding: 6px 14px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    transition: all 0.2s;
}

.radio-item:has(input:checked) {
    border-color: #333;
    background: #f5f5f5;
}

.radio-item input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #333;
    cursor: pointer;
}

.location-row {
    display: flex;
    gap: 8px;
}

.location-row .form-select {
    flex: 1;
    min-width: 0;
}

.file-upload-area {
    border: 2px dashed #d9d9d9;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    background: #fafafa;
}

.file-upload-area:hover {
    border-color: #999;
    background: #f5f5f5;
}

.file-upload-area input[type="file"] {
    display: none;
}

.file-upload-area .upload-text {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

.file-upload-area .upload-hint {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.preview-item {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 2px;
    margin-top: 8px;
}

.submit-btn:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 成功页 */
.success-page {
    text-align: center;
    padding: 60px 20px;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: #52c41a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

.success-page h2 {
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 700;
}

.success-page p {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.success-page .user-code {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    letter-spacing: 3px;
    margin: 16px 0;
    padding: 14px 24px;
    background: #f5f5f5;
    border-radius: 10px;
    display: inline-block;
    border: 1px solid #e8e8e8;
}

.back-link {
    display: inline-block;
    margin-top: 24px;
    padding: 10px 28px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.back-link:hover {
    background: #333;
    transform: translateY(-1px);
}

/* 错误提示 */
.error-msg {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    color: #cf1322;
    font-size: 14px;
}

/* 响应式 */
@media (max-width: 480px) {
    .container { padding: 12px; }
    .page-header h1 { font-size: 18px; }
    .location-row { flex-direction: column; gap: 8px; }
    .radio-group { gap: 10px; }
    .radio-item { padding: 5px 10px; font-size: 13px; }
}
