/* =========================================================
   CapTrip ドライブレコーダー 公式サイト スタイル
   Brand: 深蓝 #1A3A8F + 黑 + 红 #E53935
   ========================================================= */

:root {
    --ct-blue:        #1A3A8F;
    --ct-blue-dark:   #122866;
    --ct-blue-light:  #E8EEF9;
    --ct-red:         #E53935;
    --ct-red-dark:    #B71C1C;
    --ct-black:       #1A1A1A;
    --ct-text:        #2A2A2A;
    --ct-text-sub:    #5F5F5F;
    --ct-text-mute:   #8A8A8A;
    --ct-bg:          #FFFFFF;
    --ct-bg-soft:     #F6F8FC;
    --ct-bg-section:  #F0F3F9;
    --ct-border:      #E1E5EC;
    --ct-success:     #1F8A4C;
    --ct-danger:      #C0392B;
    --ct-warning:     #E08E00;
    --ct-radius:      12px;
    --ct-radius-lg:   18px;
    --ct-radius-sm:   8px;
    --ct-shadow:      0 4px 18px rgba(26, 58, 143, 0.08);
    --ct-shadow-lg:   0 12px 36px rgba(26, 58, 143, 0.14);
    --ct-font:        "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--ct-font);
    color: var(--ct-text);
    background: var(--ct-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ct-blue); text-decoration: none; }
a:hover { color: var(--ct-blue-dark); text-decoration: underline; }
h1, h2, h3, h4, h5 { font-weight: 700; color: var(--ct-black); line-height: 1.35; margin: 0 0 .6em; }
h1 { font-size: clamp(24px, 3.2vw, 38px); }
h2 { font-size: clamp(22px, 2.6vw, 30px); }
h3 { font-size: clamp(18px, 2vw, 24px); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* =========================================================
   顶部信任徽章条
   ========================================================= */
.ct-trustbar {
    background: var(--ct-blue-dark);
    color: #fff;
    font-size: 13px;
    padding: 10px 0;
}
.ct-trustbar__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 32px;
}
.ct-trustbar__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    letter-spacing: 0.5px;
}
.ct-trustbar .ct-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--ct-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

/* =========================================================
   页面头部
   ========================================================= */
.ct-header {
    background: #fff;
    border-bottom: 1px solid var(--ct-border);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.ct-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.ct-logo img { height: 56px; width: auto; }
.ct-header__cta .ct-btn { white-space: nowrap; }

/* =========================================================
   按钮
   ========================================================= */
.ct-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s ease;
    white-space: nowrap;
    font-family: var(--ct-font);
}
.ct-btn:hover { text-decoration: none; transform: translateY(-1px); }
.ct-btn:active { transform: translateY(0); }

.ct-btn--primary {
    background: var(--ct-blue);
    color: #fff;
    border-color: var(--ct-blue);
    box-shadow: 0 4px 14px rgba(26, 58, 143, 0.30);
}
.ct-btn--primary:hover { background: var(--ct-blue-dark); color: #fff; border-color: var(--ct-blue-dark); }

.ct-btn--secondary {
    background: #fff;
    color: var(--ct-blue);
    border-color: var(--ct-blue);
}
.ct-btn--secondary:hover { background: var(--ct-blue-light); color: var(--ct-blue-dark); }

.ct-btn--buy {
    background: var(--ct-red);
    color: #fff;
    border-color: var(--ct-red);
    box-shadow: 0 4px 14px rgba(229, 57, 53, 0.30);
    font-size: 16px;
    padding: 14px 32px;
}
.ct-btn--buy:hover { background: var(--ct-red-dark); color: #fff; border-color: var(--ct-red-dark); }

.ct-btn--success {
    background: var(--ct-success);
    color: #fff;
    border-color: var(--ct-success);
}
.ct-btn--success:hover { background: #156C3A; color: #fff; border-color: #156C3A; }

.ct-btn--danger {
    background: #fff;
    color: var(--ct-text-sub);
    border-color: var(--ct-border);
}
.ct-btn--danger:hover { background: var(--ct-bg-soft); color: var(--ct-text); }

/* =========================================================
   主视觉/产品介绍
   ========================================================= */
.ct-hero {
    background: linear-gradient(180deg, var(--ct-blue-light) 0%, #fff 100%);
    padding: 56px 0 72px;
}
.ct-hero__title { text-align: center; margin-bottom: 48px; }
.ct-hero__title h1 {
    color: var(--ct-blue-dark);
    margin-bottom: 12px;
    font-weight: 900;
}
.ct-hero__sub {
    color: var(--ct-text-sub);
    font-size: 16px;
    margin: 0;
}
.ct-hero__content { display: flex; justify-content: center; }

.ct-product {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: center;
    background: #fff;
    border-radius: var(--ct-radius-lg);
    padding: 40px;
    box-shadow: var(--ct-shadow-lg);
    max-width: 980px;
    width: 100%;
}
.ct-product__img {
    background: var(--ct-bg-soft);
    border-radius: var(--ct-radius);
    padding: 20px;
    text-align: center;
}
.ct-product__img img { max-height: 380px; margin: 0 auto; }
.ct-product__title {
    font-size: 22px;
    color: var(--ct-black);
    margin-bottom: 16px;
    font-weight: 700;
}
.ct-product__desc {
    color: var(--ct-text-sub);
    font-size: 15px;
    margin-bottom: 20px;
}
.ct-product__price {
    margin-bottom: 24px;
}
.ct-price__current {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}
.ct-price__current .ct-price__num {
    font-size: 42px;
    color: var(--ct-red);
    font-weight: 900;
    line-height: 1.1;
}
.ct-price__current .ct-price__tax {
    font-size: 15px;
    color: var(--ct-red);
    font-weight: 700;
}
.ct-price__original {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.ct-price__original .ct-price__num {
    font-size: 19px;
    color: var(--ct-text-sub);
    text-decoration: line-through;
    font-weight: 400;
}
.ct-price__original .ct-price__tax {
    font-size: 14px;
    color: var(--ct-text-sub);
}
.ct-product__btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.ct-product__points {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--ct-border);
    padding-top: 20px;
}
.ct-product__points li {
    padding: 6px 0 6px 24px;
    position: relative;
    font-size: 14px;
    color: var(--ct-text-sub);
}
.ct-product__points li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--ct-blue);
    font-weight: 700;
}

/* =========================================================
   视频区
   ========================================================= */
.ct-video {
    background: var(--ct-blue-dark);
    padding: 72px 0;
    color: #fff;
}
.ct-section__title { text-align: center; margin-bottom: 12px; }
.ct-section__title--light { color: #fff; }
.ct-section__sub {
    text-align: center;
    color: var(--ct-text-sub);
    margin-bottom: 40px;
}
.ct-video__main {
    margin-bottom: 40px;
    text-align: center;
}
.ct-video__main video {
    display: block;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--ct-radius);
    background: #000;
    aspect-ratio: 5 / 4;
    object-fit: contain;
}
.ct-video__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.ct-video__item {
    background: rgba(255,255,255,0.04);
    border-radius: var(--ct-radius);
    padding: 12px;
}
.ct-video__item video {
    width: 100%;
    border-radius: var(--ct-radius-sm);
    background: #000;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.ct-video__item h3 {
    color: #fff;
    text-align: center;
    margin: 16px 0 0;
    font-size: 18px;
}

/* =========================================================
   评价区
   ========================================================= */
.ct-reviews {
    background: var(--ct-bg-soft);
    padding: 72px 0;
}
.ct-testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}
.ct-testimonial {
    background: #fff;
    border-radius: var(--ct-radius);
    padding: 28px 24px;
    box-shadow: var(--ct-shadow);
    position: relative;
    border: 1px solid var(--ct-border);
}
.ct-testimonial__stars {
    color: #FFA500;
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.ct-testimonial__text {
    font-size: 14px;
    color: var(--ct-text);
    line-height: 1.7;
    margin-bottom: 20px;
}
.ct-testimonial__user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px dashed var(--ct-border);
}
.ct-testimonial__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ct-blue);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}
.ct-testimonial__user span {
    font-size: 14px;
    color: var(--ct-text-sub);
    font-weight: 500;
}

/* =========================================================
   页脚
   ========================================================= */
.ct-footer {
    background: var(--ct-black);
    color: #ccc;
    padding: 48px 0 24px;
    font-size: 14px;
}
.ct-footer__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}
.ct-footer__col h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 12px;
    font-weight: 700;
}
.ct-footer__col p { margin: 0; color: #aaa; }
.ct-footer__col a { color: #fff; }
.ct-footer__col a:hover { color: var(--ct-blue-light); }
.ct-footer__copy {
    border-top: 1px solid #333;
    padding-top: 24px;
    text-align: center;
    color: #888;
    font-size: 13px;
}

/* =========================================================
   LINE 侧边悬浮
   ========================================================= */
.ct-line-float {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 130px;
    background: #fff;
    border-radius: 0 12px 12px 0;
    box-shadow: var(--ct-shadow-lg);
    padding: 12px 8px;
    text-align: center;
    z-index: 40;
}
.ct-line-float img {
    width: 110px;
    height: 110px;
    margin: 0 auto 6px;
}
.ct-line-float p {
    margin: 0;
    font-size: 12px;
    color: var(--ct-text-sub);
    font-weight: 600;
}

/* =========================================================
   返回顶部
   ========================================================= */
.ct-gotop {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ct-blue);
    color: #fff;
    border: none;
    box-shadow: var(--ct-shadow);
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
    z-index: 30;
}
.ct-gotop--show { opacity: 1; visibility: visible; }
.ct-gotop:hover { background: var(--ct-blue-dark); transform: translateY(-2px); }

/* =========================================================
   弹窗（统一）
   ========================================================= */
.ct-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.ct-modal--active { display: flex; }
.ct-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 50, 0.55);
    backdrop-filter: blur(2px);
}
.ct-modal__box {
    position: relative;
    background: #fff;
    border-radius: var(--ct-radius-lg);
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px 28px 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: ctModalIn .25s ease;
}
@keyframes ctModalIn {
    from { opacity: 0; transform: translateY(20px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.ct-modal__box--sm { max-width: 420px; }
/* modal0 礼品弹窗：宽度给到 800px，让 800×800 礼品图清晰显示（原图字号不压缩）*/
.ct-modal__box--lg { max-width: 800px; padding: 24px 24px 22px; }
.ct-modal__box--lg .ct-gift { max-width: 720px; }
.ct-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ct-bg-soft);
    border: none;
    font-size: 20px;
    color: var(--ct-text-sub);
    cursor: pointer;
    line-height: 1;
    transition: all .2s ease;
}
.ct-modal__close:hover { background: var(--ct-border); color: var(--ct-text); }
.ct-modal__title {
    font-size: 18px;
    color: var(--ct-blue-dark);
    margin: 0 0 8px;
    font-weight: 700;
    line-height: 1.5;
    padding-right: 24px;
}
.ct-modal__sub {
    font-size: 14px;
    color: var(--ct-text-sub);
    margin: 0 0 20px;
}
.ct-modal__text {
    text-align: center;
    font-size: 15px;
    color: var(--ct-text);
    margin: 0 0 16px;
    line-height: 1.7;
}
.ct-modal__body { margin: 16px 0; }
.ct-modal__body--center { text-align: center; }
.ct-modal__hint {
    font-size: 13px;
    color: var(--ct-text-mute);
    text-align: center;
    margin: 12px 0 0;
    line-height: 1.6;
}
.ct-modal__btns {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.ct-modal__btns--center { justify-content: center; }
.ct-modal__btns--split { justify-content: space-between; }
.ct-modal__btns--split .ct-btn { flex: 1; }

/* 步骤指示器 */
.ct-step {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}
.ct-step__dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ct-bg-soft);
    color: var(--ct-text-mute);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid var(--ct-border);
    position: relative;
}
.ct-step__dot:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    width: 12px;
    height: 2px;
    background: var(--ct-border);
    transform: translateY(-50%);
}
.ct-step__dot--active {
    background: var(--ct-blue);
    color: #fff;
    border-color: var(--ct-blue);
}
.ct-step__dot--done {
    background: var(--ct-success);
    color: #fff;
    border-color: var(--ct-success);
}
.ct-step__dot--done:not(:last-child)::after { background: var(--ct-success); }

/* =========================================================
   表单
   ========================================================= */
.ct-form { margin-top: 8px; }
.ct-form__group { margin-bottom: 18px; }
.ct-form__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ct-black);
    margin-bottom: 6px;
}
.ct-form__input,
.ct-form__textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--ct-border);
    border-radius: var(--ct-radius-sm);
    font-size: 15px;
    font-family: var(--ct-font);
    background: #fff;
    color: var(--ct-text);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.ct-form__input:focus,
.ct-form__textarea:focus {
    outline: none;
    border-color: var(--ct-blue);
    box-shadow: 0 0 0 3px rgba(26, 58, 143, 0.12);
}
.ct-form__input[readonly] {
    background: var(--ct-bg-soft);
    cursor: pointer;
}
.ct-form__textarea { resize: vertical; min-height: 100px; }
.ct-form__email {
    display: flex;
    gap: 8px;
    align-items: center;
}
.ct-form__email .ct-form__input { flex: 1; }
.ct-form__email span { color: var(--ct-text-sub); font-weight: 600; }
.ct-form__radio {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.ct-form__radio label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: var(--ct-text);
}
.ct-form__radio input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--ct-blue);
    cursor: pointer;
}
.ct-form__error {
    display: none;
    font-size: 13px;
    color: var(--ct-red);
    margin-top: 4px;
}
.ct-form__error--active { display: block; }
.ct-form__dropdown {
    display: none;
    position: absolute;
    z-index: 10;
    background: #fff;
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius-sm);
    box-shadow: var(--ct-shadow);
    margin-top: 4px;
    max-height: 240px;
    overflow-y: auto;
    width: 100%;
}
.ct-form__dropdown--open { display: block; }
.ct-form__option {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    color: var(--ct-text);
    border-bottom: 1px solid var(--ct-bg-soft);
}
.ct-form__option:last-child { border-bottom: none; }
.ct-form__option:hover { background: var(--ct-blue-light); color: var(--ct-blue-dark); }

/* 星级评分 */
.ct-stars {
    display: inline-flex;
    gap: 4px;
    font-size: 36px;
    line-height: 1;
}
.ct-stars--readonly { font-size: 24px; }
.ct-star {
    color: #ddd;
    cursor: pointer;
    transition: color .15s ease;
    user-select: none;
}
.ct-stars--readonly .ct-star { cursor: default; }
.ct-star--active { color: #FFB300; }

/* 礼品图（≥500×500）*/
.ct-gift {
    max-width: 520px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: var(--ct-radius);
    box-shadow: var(--ct-shadow);
}

/* LINE QR */
.ct-qr {
    max-width: 260px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: var(--ct-radius);
    border: 4px solid #06C755;
    padding: 8px;
    background: #fff;
}

/* 复选框 */
.ct-check {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    cursor: pointer;
    font-size: 13px;
    color: var(--ct-text-sub);
    margin: 16px 0;
    line-height: 1.6;
}
.ct-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--ct-blue);
    flex-shrink: 0;
    cursor: pointer;
}

/* 评论预览 */
.ct-review-preview {
    background: var(--ct-bg-soft);
    border-radius: var(--ct-radius-sm);
    padding: 14px 16px;
    font-size: 14px;
    color: var(--ct-text);
    margin: 12px 0;
    border-left: 3px solid var(--ct-blue);
}

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 960px) {
    .ct-product { grid-template-columns: 1fr; gap: 32px; padding: 28px; }
    .ct-product__img img { max-height: 280px; }
    .ct-video__grid { grid-template-columns: 1fr; }
    .ct-testimonials { grid-template-columns: repeat(2, 1fr); }
    .ct-footer__grid { grid-template-columns: 1fr; gap: 24px; }
    .ct-line-float { width: 96px; }
    .ct-line-float img { width: 80px; height: 80px; }
    .ct-trustbar__list { gap: 6px 18px; font-size: 12px; }
}
@media (max-width: 600px) {
    .ct-header { padding: 12px 0; }
    .ct-logo img { height: 42px; }
    .ct-header__cta .ct-btn { padding: 10px 18px; font-size: 13px; }
    .ct-hero { padding: 32px 0 48px; }
    .ct-product { padding: 20px; }
    .ct-product__btns { flex-direction: column; }
    .ct-product__btns .ct-btn { width: 100%; }
    .ct-testimonials { grid-template-columns: 1fr; }
    .ct-line-float { display: none; }
    .ct-modal__box { padding: 24px 18px 18px; }
    .ct-modal__title { font-size: 16px; }
    .ct-stars { font-size: 32px; }
    .ct-trustbar__list { gap: 4px 12px; font-size: 11px; }
    .ct-trustbar__item { font-size: 11px; }
}
