* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #4a4a4a 0%, #2d2d2d 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

/* ===== 主容器：左右分栏 ===== */
.main-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ===== 左侧面板 ===== */
.left-panel {
    background: rgba(0, 0, 0, 0.2);
    padding: 30px 40px;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 100vh;
    position: relative;
}

.info-section {
    max-width: 500px;
    margin: 0 auto;
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.logo-section h1 {
    font-size: 26px;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.info-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.info-card h2 {
    font-size: 17px;
    color: #2d2d2d;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ffd700;
}

.service-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.detail-item.price-item {
    background: #fffef0;
    border: 2px solid #ffd700;
}

.detail-item .label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.detail-item .value {
    font-size: 15px;
    color: #2d2d2d;
    font-weight: 600;
}

.detail-item .price {
    font-size: 20px;
    color: #ffd700;
    font-weight: 700;
}

.notice-list {
    list-style: none;
    padding: 0;
}

.notice-list li {
    padding: 8px 0 8px 24px;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
    position: relative;
}

.notice-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: 700;
    font-size: 14px;
}

.notice-list li.notice-warning {
    color: #e74c3c;
    font-weight: 600;
}

.notice-list li.notice-warning::before {
    content: "⚠";
    color: #e74c3c;
}

.contact-info {
    margin-bottom: 10px;
}

.contact-info strong {
    color: #2d2d2d;
    font-size: 14px;
}

.contact-desc {
    font-size: 12px;
    color: #555;
}

/* ===== 滚动提示 ===== */
.scroll-hint {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 50%;
    background: linear-gradient(to top, rgba(255, 215, 0, 0.95) 0%, rgba(255, 215, 0, 0.8) 100%);
    color: #2d2d2d;
    text-align: center;
    padding: 15px;
    font-size: 14px;
    font-weight: 600;
    z-index: 1000;
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.scroll-hint.hidden {
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
}

.scroll-hint-arrow {
    display: inline-block;
    margin-left: 8px;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}

/* ===== 右侧面板 ===== */
.right-panel {
    background: white;
    padding: 30px 40px;
    overflow-y: auto;
    height: 100vh;
    position: sticky;
    top: 0;
}

.form-container {
    max-width: 550px;
    margin: 0 auto;
}

.form-container h2 {
    font-size: 22px;
    color: #2d2d2d;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffd700;
}

/* ===== 表单样式 - 紧凑版 ===== */
.form-group.compact {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.multi-select-hint {
    color: #ff0000;
    font-size: 11px;
    font-weight: 600;
    margin-left: 4px;
}

.field-hint {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
    margin-bottom: 0;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group select {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #ffd700;
}

/* 城市多选 - 紧凑版 */
.checkbox-group.compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
}

.checkbox-item:hover {
    background: #fff;
    border-color: #ffd700;
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"]:checked + span {
    color: #ff6347;
    font-weight: 600;
}

.checkbox-item.disabled {
    opacity: 0.6;
    background: #e8e8e8;
    cursor: not-allowed;
}

.checkbox-item.disabled input[type="checkbox"] {
    cursor: not-allowed;
}

.checkbox-item.disabled:hover {
    background: #e8e8e8;
    border-color: #e0e0e0;
}

/* 城市禁用提示 */
.city-disabled-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #ff6347;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.city-disabled-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #ff6347;
}

.city-disabled-tooltip.show {
    opacity: 1;
}

.checkbox-item.disabled-with-tooltip {
    position: relative;
}

/* 账号邮箱校验提示 */
.form-group.half {
    position: relative;
}

.email-error-tooltip {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: #ff6347;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.email-error-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 20px;
    border: 6px solid transparent;
    border-bottom-color: #ff6347;
}

.email-error-tooltip.show {
    opacity: 1;
}

/* 日期范围 */
.date-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-range input {
    flex: 1;
    cursor: pointer;
}

.date-range span {
    font-weight: 600;
    color: #666;
}

/* 回避日期列表 - 紧凑版 */
.avoid-dates-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 6px;
    max-height: 120px;
    overflow-y: auto;
}

.avoid-date-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 12px;
}

.avoid-date-item input,
.avoid-date-item select {
    padding: 4px 8px;
    font-size: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.avoid-date-item .date-type-select {
    width: 110px;
}

.avoid-date-item .date-input {
    flex: 1;
}

.avoid-date-item .btn-remove {
    padding: 4px 10px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    transition: background 0.2s;
}

.avoid-date-item .btn-remove:hover {
    background: #c0392b;
}

/* 表单行（账号密码并排） */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group.half {
    margin-bottom: 0;
}

/* 三列布局 */
.form-row.three-cols {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-group.third {
    margin-bottom: 0;
}

/* 价格显示框 */
.price-display-box {
    width: 100%;
    padding: 8px 12px;
    font-size: 18px;
    font-weight: 700;
    color: #27ae60;
    background: #eafaf1;
    border: 2px solid #27ae60;
    border-radius: 6px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
}

.total-price {
    font-size: 18px;
    font-weight: 700;
    color: #27ae60;
}

/* 提交行 */
.submit-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    justify-content: space-between;
}

.agree-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #2d2d2d;
    cursor: pointer;
    flex: 0 0 auto;
    padding: 8px 12px;
    background: #fff9e6;
    border: 2px solid #ffd700;
    border-radius: 6px;
    transition: all 0.2s;
    position: relative;
}

.agree-checkbox:hover {
    background: #fff5cc;
    border-color: #ffed4e;
}

.agree-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #ffd700;
}

.agree-checkbox span {
    line-height: 1.4;
    font-weight: 500;
}

/* 同意条款提示框 */
.agree-checkbox-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ff6347;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.agree-checkbox-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 20px;
    border: 6px solid transparent;
    border-bottom-color: #ff6347;
}

.agree-checkbox-tooltip.show {
    opacity: 1;
}

/* 按钮 */
.btn-primary {
    width: auto;
    min-width: 160px;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 700;
    color: #2d2d2d;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    flex-shrink: 0;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-add {
    padding: 6px 12px;
    background: #95a5a6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
    width: 100%;
}

.btn-add:hover {
    background: #7f8c8d;
}

/* 结果区域 - 紧凑版 */
.result-section {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #27ae60;
}

.result-section.hidden {
    display: none;
}

.result-section h3 {
    font-size: 16px;
    color: #27ae60;
    margin-bottom: 12px;
}

.result-card {
    background: white;
    border-radius: 6px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.result-card:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.2);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.result-header span {
    font-size: 13px;
    font-weight: 600;
    color: #27ae60;
}

.btn-copy {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #ff6347;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-copy span {
    color: #ffffff;
}

.btn-copy svg {
    flex-shrink: 0;
}

.btn-copy:hover {
    background: #ff4500;
    transform: translateY(-1px);
}

.hex-display {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    line-height: 1.4;
    color: #2d2d2d;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    word-break: break-all;
    max-height: 150px;
    overflow-y: auto;
}

.result-notice {
    margin-top: 10px;
    padding: 8px;
    background: #d5f4e6;
    border: 1px solid #27ae60;
    border-radius: 4px;
    color: #27ae60;
    font-size: 12px;
    text-align: center;
    font-weight: 600;
}

/* 复制提示 */
.copy-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #27ae60;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.copy-toast.error {
    background: #e74c3c;
}

.copy-toast.show {
    opacity: 1;
}

/* 滚动条 */
.left-panel::-webkit-scrollbar,
.right-panel::-webkit-scrollbar,
.avoid-dates-list::-webkit-scrollbar,
.hex-display::-webkit-scrollbar {
    width: 6px;
}

.left-panel::-webkit-scrollbar-track,
.right-panel::-webkit-scrollbar-track,
.avoid-dates-list::-webkit-scrollbar-track,
.hex-display::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.left-panel::-webkit-scrollbar-thumb,
.right-panel::-webkit-scrollbar-thumb,
.avoid-dates-list::-webkit-scrollbar-thumb,
.hex-display::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

/* 响应式 */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .left-panel,
    .right-panel {
        max-height: none;
        height: auto;
        position: relative;
        overflow-y: visible;
    }

    .scroll-hint {
        display: none;
    }

    .checkbox-group.compact {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .left-panel,
    .right-panel {
        padding: 20px;
    }

    .checkbox-group.compact {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .form-group.half,
    .form-group.third {
        margin-bottom: 12px;
    }

    .form-row.three-cols {
        grid-template-columns: 1fr;
    }

    .submit-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .btn-primary {
        width: 100%;
    }
}
