:root {
    --color-primary: #c47043;
    --color-primary-hover: #b36238;
    --color-dark: #0f1c2e;
    --color-text: #2d3748;
    --color-muted: #718096;
    --color-bg: #faf7f2;
    --color-white: #ffffff;
    --color-border: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

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

html, body {
    height: 100%;
}

html {
    overflow: hidden;
    background: linear-gradient(to right, #faf7f2 0%, #f5f0e9 35%, #ece6dd 70%, #e8e2d8 100%);
}

body {
    /* 自适应流式布局：铺满窗口，随窗口平滑缩放 */
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--color-text);
    background: linear-gradient(to right, #faf7f2 0%, #f5f0e9 35%, #ece6dd 70%, #e8e2d8 100%);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Logo（位于左侧内容顶部） ===== */
.logo-image {
    height: clamp(36px, 5vh, 46px);
    width: auto;
    display: block;
    margin-bottom: clamp(22px, 4vh, 34px);
}

/* 移动端顶部 logo 栏：桌面端隐藏 */
.mobile-header {
    display: none;
}

/* ===== 主布局：左右分栏，填满剩余视口高度 ===== */
.split-layout {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: stretch;
    background: linear-gradient(to right,
        #faf7f2 0%,
        #f5f0e9 35%,
        #ece6dd 70%,
        #e8e2d8 100%);
}

.left-panel {
    flex: 4;
    padding: clamp(18px, 3.5vh, 32px) clamp(24px, 3vw, 44px) clamp(20px, 4vh, 32px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    min-width: 0;
    overflow: hidden;
}

.left-inner {
    width: 100%;
}

.right-panel {
    flex: 6;
    position: relative;
    overflow: hidden;
    line-height: 0;
}

.right-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    /* 图片左边缘渐隐到背景，自然融合 */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%);
}

.corner-tag {
    display: none;
}

/* ===== 左侧内容 ===== */
.welcome-label {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 18px;
}

.welcome-label::before {
    content: '';
    width: 26px;
    height: 2px;
    background: var(--color-primary);
    margin-right: 10px;
}

.left-panel h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(30px, 3.6vw, 52px);
    line-height: 1.12;
    color: var(--color-dark);
    font-weight: 700;
    margin-bottom: 16px;
    max-width: 460px;
}

.left-panel h1 em {
    font-style: italic;
    color: var(--color-primary);
}

.subtitle {
    font-size: clamp(15px, 1.2vw, 17px);
    color: var(--color-muted);
    margin-bottom: 28px;
    max-width: 440px;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.text-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    transition: opacity 0.2s;
}

.text-link:hover {
    opacity: 0.7;
}

.btn-primary {
    background: var(--color-dark);
    color: var(--color-white);
    border: none;
    padding: 12px 26px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
    background: #1a2b3c;
    transform: translateY(-1px);
}

/* 保修注册卡片 */
.warranty-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 26px 28px 24px;
    box-shadow: 0 4px 24px rgba(15, 28, 46, 0.08);
    border-top: 3px solid var(--color-primary);
    width: 100%;
}

.warranty-head {
    margin-bottom: 18px;
}

.warranty-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.warranty-head h2 {
    font-size: clamp(18px, 1.6vw, 22px);
    color: var(--color-dark);
    font-weight: 700;
}

.warranty-form {
    display: flex;
    gap: 10px;
}

.warranty-form input {
    flex: 1;
    min-width: 0;
    padding: 12px 18px;
    border: 1.5px solid var(--color-border);
    border-radius: 999px;
    font-size: 14px;
    background: #fbfaf8;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.warranty-form input:focus {
    border-color: var(--color-primary);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(196, 112, 67, 0.15);
}

.register-btn {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 12px 28px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.register-btn:hover {
    background: var(--color-primary-hover);
}

.register-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--color-muted);
    cursor: pointer;
}

.checkbox-wrap input {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

#ml-message {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    display: none;
}


/* ===== 移动端适配（≤768px）：切换为上下流式布局 ===== */
@media (max-width: 768px) {
    html {
        overflow: auto;
    }

    html, body {
        height: auto;
    }

    .mobile-header {
        display: flex;
        align-items: center;
        background: var(--color-white);
        padding: 12px 20px;
    }

    .mobile-logo {
        height: 28px;
        width: auto;
    }

    .left-panel .logo-image {
        display: none;
    }

    .split-layout {
        flex: none;
        flex-direction: column;
    }

    .left-panel {
        padding: 40px 24px 28px;
        order: 2;
        overflow: visible;
    }

    .right-panel {
        order: 1;
        flex: none;
        width: 100%;
    }

    .right-panel img {
        height: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .left-panel h1 {
        font-size: 34px;
    }

    .warranty-card {
        padding: 22px 20px;
    }

    .action-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .action-buttons button {
        width: 100%;
    }

    .text-link {
        text-align: center;
        padding: 4px 0;
    }

    .warranty-form {
        flex-direction: column;
    }

    .warranty-form input {
        width: 100%;
    }
}
