/* ── Download Page — download_sonel.css ─────────────────────────── */

/* ── Hero ────────────────────────────────────────────────────────── */
.dl-hero {
    background: linear-gradient(135deg, var(--cn-navy, #092c40) 0%, #0d4060 100%);
    padding: 64px 0 56px;
    text-align: center;
}
.dl-hero h1 {
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px;
    letter-spacing: -.5px;
}
.dl-hero p {
    font-size: 16px;
    color: rgba(255,255,255,.72);
    margin: 0;
}

/* ── Main content wrapper ────────────────────────────────────────── */
.download_main_box {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

/* ── Column header row ───────────────────────────────────────────── */
.download_box_view_box {
    display: flex;
    align-items: center;
    background: #f0f4f8;
    border: 1px solid #e2e8f0;
    border-radius: 8px 8px 0 0;
    height: 44px;
    margin-bottom: 0;
    position: sticky;
    top: 83px;
    z-index: 10;
}
.download_box_70 { width: 64%; } /* matches box_1(10)+box_2(14)+box_3(40) */
.download_box_10 {
    width: 12%; /* matches box_4 / box_5 / box_6 */
    display: flex;
    justify-content: center;
    align-items: center;
}
.download_box_10 h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--cn-navy, #092c40);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ── Category header ─────────────────────────────────────────────── */
.download_box_title {
    width: 100%;
    display: flex;
    align-items: center;
    background: var(--cn-navy, #092c40);
    border-left: 4px solid var(--cn-blue, #00a1e9);
    padding: 10px 18px;
    margin-top: 28px;
    border-radius: 0 6px 6px 0;
}
.download_box_title:first-of-type { margin-top: 16px; }
.download_box_title h4 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    letter-spacing: .2px;
}

/* ── Product row ─────────────────────────────────────────────────── */
.download_box_nav {
    width: 100%;
    display: flex;
    align-items: center;
    min-height: 60px;
    border: 1px solid #e8edf2;
    border-top: none;
    background: #ffffff;
    transition: background .18s ease;
}
.download_box_nav:hover { background: #f5f9fd; }
.download_box_nav:last-of-type { border-bottom-radius: 6px; }

/* Columns */
.download_box_1 {
    width: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px;
    flex-shrink: 0;
}
.download_box_2 {
    width: 14%;
    display: flex;
    align-items: center;
    padding: 0 8px;
    flex-shrink: 0;
}
.download_box_3 {
    width: 40%;
    display: flex;
    align-items: center;
    padding: 8px 12px;
}
.download_box_4,
.download_box_5 {
    width: 12%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px;
    flex-shrink: 0;
}
.download_box_6 {
    width: 12%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px 8px;
    flex-shrink: 0;
}

/* Product image — zoomable */
.download_box_1 img {
    max-height: 52px;
    max-width: 100%;
    object-fit: contain;
    cursor: zoom-in;
    border-radius: 4px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.download_box_1 img:hover {
    transform: scale(1.12);
    box-shadow: 0 4px 14px rgba(0,0,0,.15);
}

/* Model name */
.download_box_2 h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--cn-navy, #092c40);
    margin: 0;
}

/* Description */
.download_box_3 h4 {
    font-size: 12px;
    color: #4a5568;
    margin: 0;
    line-height: 1.5;
}

/* Download/view button pairs */
.download_box_4_button_,
.download_box_5_button_ {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
    align-items: center;
}
.download_box_4_button_1,
.download_box_4_button_2,
.download_box_5_button_1,
.download_box_5_button_2 {
    width: 100%;
}
.download_box_4_button_ button,
.download_box_4_button_ a,
.download_box_5_button_ button,
.download_box_5_button_ a,
.download_box_6_button_ button {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 4px 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--cn-blue, #00a1e9);
    background: transparent;
    border: 1px solid var(--cn-blue, #00a1e9);
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    text-decoration: none;
    transition: background .18s ease, color .18s ease;
}
.download_box_4_button_ button:hover,
.download_box_4_button_ a:hover,
.download_box_5_button_ button:hover,
.download_box_5_button_ a:hover,
.download_box_6_button_ button:hover {
    background: var(--cn-blue, #00a1e9);
    color: #ffffff;
}
.download_box_4_button_ button:disabled,
.download_box_5_button_ button:disabled {
    opacity: .4;
    cursor: not-allowed;
    pointer-events: none;
}
.download_box_4_button_ button:disabled:hover,
.download_box_5_button_ button:disabled:hover {
    background: transparent;
    color: var(--cn-blue, #00a1e9);
}

/* "了解更多" link */
.dl-more-link {
    display: inline-block;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cn-blue, #00a1e9) 0%, #0070a8 100%);
    border-radius: 5px;
    text-decoration: none;
    white-space: nowrap;
    transition: box-shadow .2s ease, transform .2s ease;
    box-shadow: 0 2px 6px rgba(0,161,233,.3);
}
.dl-more-link:hover {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,161,233,.45);
}

/* ── Image Zoom Modal ────────────────────────────────────────────── */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(0,0,0,.85);
    backdrop-filter: blur(4px);
}
.modal-content {
    display: block;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 480px;
    max-height: 480px;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    cursor: zoom-out;
}
.close {
    position: absolute;
    top: 20px;
    right: 32px;
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color .2s;
}
.close:hover { color: var(--cn-blue, #00a1e9); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .dl-hero h1       { font-size: 30px; }
    .download_main_box { padding: 24px 16px 48px; }
    .download_box_view_box { display: none; }
    .download_box_3 { width: 38%; }
    .download_box_4,
    .download_box_5 { width: 14%; }
}

@media (max-width: 600px) {
    .dl-hero          { padding: 44px 0 36px; }
    .dl-hero h1       { font-size: 24px; }
    .dl-hero p        { font-size: 13px; }
    .download_box_nav { flex-wrap: wrap; min-height: auto; }
    .download_box_1   { width: 18%; }
    .download_box_2   { width: 22%; font-size: 11px; }
    .download_box_3   { width: 60%; padding: 6px 8px; order: 1; }
    .download_box_3 h4 { font-size: 11px; }
    .download_box_4,
    .download_box_5   { width: 16%; }
    .download_box_6   { width: 100%; justify-content: flex-start; padding: 4px 8px 8px; }
    .download_box_4_button_ button,
    .download_box_4_button_ a,
    .download_box_5_button_ button,
    .download_box_5_button_ a { font-size: 10px; padding: 3px 4px; }
    .dl-more-link     { font-size: 11px; padding: 4px 10px; }
}
