/* ========================================
   CSS Variables
   ======================================== */
:root {
    --color-primary: #E53935;
    --color-accent: #FFD600;
    --color-text: #1A1A2E;
    --color-bg-light: #FFF8E1;
    --color-bg-gradient-start: #FF8F00;
    --color-border: #1565C0;
    --color-success: #43A047;
    --color-error: #D32F2F;
    --font-stack: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}

/* ========================================
   Reset
   ======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========================================
   Base
   ======================================== */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-stack);
    color: var(--color-text);
    background: var(--color-bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ========================================
   Section Images
   ======================================== */
.section-hero img,
.section-features img,
.section-attractions img,
.section-hotels img,
.section-food img,
.section-itinerary img,
.section-details img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   Form Section
   ======================================== */
.section-form {
    background: linear-gradient(180deg, var(--color-bg-gradient-start) 0%, var(--color-bg-light) 100%);
    padding: 40px 20px 60px;
}

.form-container {
    max-width: 480px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.form-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.form-subtitle {
    text-align: center;
    font-size: 14px;
    color: #666666;
    margin-bottom: 24px;
}

/* ========================================
   Form Fields
   ======================================== */
.form-group {
    margin-bottom: 18px;
}

.form-group > label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: var(--font-stack);
    color: var(--color-text);
    background: #ffffff;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: border-color 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="date"]:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    padding-right: 36px;
}

/* ========================================
   Contact Type Radio
   ======================================== */
.contact-type-group {
    display: flex;
    flex-direction: row;
    gap: 24px;
}

.contact-type-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    cursor: pointer;
}

.contact-type-label input[type="radio"] {
    accent-color: var(--color-primary);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ========================================
   Privacy Note
   ======================================== */
.privacy-note {
    text-align: center;
    font-size: 12px;
    color: #999999;
    margin: 16px 0;
}

/* ========================================
   Submit Button
   ======================================== */
.btn-submit {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-stack);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-submit:hover {
    background: #C62828;
}

.btn-submit:active {
    transform: scale(0.98);
}

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

/* ========================================
   Validation States
   ======================================== */
.form-group input[type="text"]:invalid:not(:placeholder-shown),
.form-group input[type="date"]:invalid:not(:placeholder-shown),
.form-group select:invalid:not([value=""]):not(:focus) {
    border-color: var(--color-error);
}

.form-group input[type="text"]:valid:not(:placeholder-shown),
.form-group input[type="date"]:valid:not(:placeholder-shown),
.form-group select:valid {
    border-color: var(--color-success);
}

/* ========================================
   Error Message
   ======================================== */
.error-message {
    text-align: center;
    background: #FFF3E0;
    border: 1px solid #FFB74D;
    color: #E65100;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-top: 16px;
}

/* ========================================
   Success Modal
   ======================================== */
.modal-overlay {
    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: 1000;
}

.modal-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 24px;
    max-width: 340px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.modal-text {
    font-size: 14px;
    color: #666666;
    margin-bottom: 24px;
    line-height: 1.6;
}

.btn-modal-close {
    display: inline-block;
    padding: 12px 40px;
    background: var(--color-success);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-stack);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-modal-close:hover {
    background: #2E7D32;
}

/* ========================================
   Price Section
   ======================================== */
.section-price {
    background: linear-gradient(135deg, #1A1A2E 0%, #2D1B3D 100%);
    padding: 32px 20px 36px;
}

.price-container {
    max-width: 440px;
    margin: 0 auto;
    text-align: center;
}

.price-badge {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-text);
    font-size: 14px;
    font-weight: 700;
    padding: 4px 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.price-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 12px;
}

.price-divider {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
}

.price-item {
    flex: 1;
}

.price-label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.price-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.price-currency {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-accent);
    margin-right: 2px;
}

.price-number {
    font-size: 42px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -1px;
}

.price-item--child .price-number {
    font-size: 32px;
}

.price-item--child .price-currency {
    font-size: 16px;
}

.price-unit {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 4px;
}

.price-note {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
}

.price-cta {
    display: inline-block;
    width: 100%;
    padding: 14px;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-stack);
    text-align: center;
    border-radius: 12px;
    text-decoration: none;
    transition: background-color 0.2s;
    box-shadow: 0 4px 16px rgba(229, 57, 53, 0.4);
}

.price-cta:hover {
    background: #C62828;
}

/* ========================================
   Why Choose Us Section
   ======================================== */
.section-why {
    background: var(--color-bg-white, #ffffff);
    padding: 36px 20px 40px;
}

.why-container {
    max-width: 440px;
    margin: 0 auto;
}

.why-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 28px;
    position: relative;
    padding-bottom: 12px;
}

.why-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
}

.why-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
}

.why-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    background: var(--color-bg-light);
    border-radius: 14px;
    border: 1px solid rgba(229, 57, 53, 0.08);
}

.why-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.why-number {
    font-size: 36px;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1.1;
}

.why-number-unit {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
}

.why-desc {
    font-size: 13px;
    color: var(--color-text);
    line-height: 1.6;
    margin-top: 8px;
    max-width: 280px;
}

.why-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.why-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-text);
    padding: 10px 12px;
    background: var(--color-bg-light);
    border-radius: 10px;
}

.why-trust-icon {
    font-size: 14px;
    flex-shrink: 0;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    text-align: center;
    padding: 20px 16px;
    background: var(--color-text);
}

.footer-company {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
}

/* ========================================
   Scroll Buttons (右下角上下滚动)
   ======================================== */
.scroll-buttons {
    position: fixed;
    right: 12px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 999;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.scroll-buttons.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.scroll-btn:active {
    transform: scale(0.9);
}

.scroll-btn--top {
    background: var(--color-primary);
    color: #ffffff;
}

.scroll-btn--top:hover {
    background: #C62828;
}

.scroll-btn--bottom {
    background: rgba(26, 26, 46, 0.8);
    color: #ffffff;
}

.scroll-btn--bottom:hover {
    background: var(--color-text);
}

/* ========================================
   Desktop (min-width 768px) — 居中适配H5
   ======================================== */
@media (min-width: 768px) {
    /* PC 端两侧背景 */
    html {
        background: #e8e8e8;
    }

    body {
        max-width: 480px;
        margin: 0 auto;
        min-height: 100vh;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.12);
        position: relative;
    }

    .form-container {
        padding: 40px 36px;
    }

    .form-title {
        font-size: 26px;
    }
}
