﻿:root {
    --primary: #005BAC;
    --primary-light: #CEE4F2;
    --secondary: #CEE4F2;
    --accent: #3197FA;
    --muted: #4F4F4F;
    --border: #E8E8E8;
    --white: #FFFFFF;
    --bg: #F9F9FA;
    --max-width: 1280px;
    --radius: 20px;
    font-family: "Noto Sans TC", "Noto Sans", sans-serif;
}

.download-body {
    font-size: 16px;
}

ol {
    list-style: decimal;
    ;
}

.body-container {
    width: 100%;
    max-width: var(--max-width);
    padding-top: 80px;
    margin: 0 auto;
    line-height: 1.5;
}

.download {
    display: flex;
    justify-content: center;
    background: transparent;
    padding-top: 50px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.download-container {
    max-width: 1024px;
}

.title {
    font-weight: 700;
    font-size: 30px;
    color: var(--text);
    text-align: center;
    margin: 0 0 50px 0;
    line-height: 1.5;
}

.tips {
    gap: 10px;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
}

.tip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.tip .icon img {
    width: 14px;
    height: 19px;
    display: block;
}

.icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 24px;
}

.tip p {
    margin: 0;
    color: var(--text);
    text-align: justify;
    width: 100%;
}


.banner {
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 24px;
    gap: 24px;
    background: var(--secondary);
    border-left: 12px solid var(--primary);
    justify-content: center;
    margin-bottom: 40px;
}

.banner p {
    margin: 0;
    font-weight: 700;
    color: var(--primary);
    font-size: 18px;
    text-align: center;
    width: 100%;
}


.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

.tabs .swiper {
    width: 100%;
}
.swiper-wrapper{
    display: flex;
    justify-content: center;
}
.tab-container{
    position: relative;
    height:80px;
}

.tab-wrapper{
    position: absolute;
    width: 100%;
}

.tabs .tab {
    min-width: 136px;
    width: 25%;
    padding: 8px 10px;
    border-radius: 50px;
    border: 1px solid #B2B2B2;
    background: var(--white);
    color: #B2B2B2;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.tab.active {
    background: var(--primary);
    color: var(--white);
    border-color: transparent;
}

.car-tips {
    padding-bottom: 10px;
}

.car-tips ol {
    list-style: decimal;
    padding-left: 24px;
}

/* cards grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    background: #fff;
}

.card-title {
    color: var(--primary);
    font-weight: 700;
    margin: 0;
    font-size: 16px
}

.card ul {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    font-size: 15px;
}

.card ul li {
    margin: 0;
    list-style: disc;
}

/* tables */
.table-container {
    margin-top: 8px;
    border: 1px solid var(--primary);
    border-radius: 20px;
    overflow: hidden;
}

/* Updated table-heading per Figma: full-width block label, centered white text, larger padding */
.table-heading {
    color: var(--primary);
    font-weight: 700;
    margin: 0 0 8px;
    font-size: 16px
}

.info-table,
.download-table {
    width: 100%;
    font-size: 16px;
    color: var(--muted);
}

.info-table thead th,
.download-table thead th {
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    text-align: center;
    font-weight: 700;
}

.info-table td,
.download-table td {
    padding: 10px 20px;
    border: 1px solid var(--border);
    vertical-align: top;
    text-align: justify;
    border-right: none;
    border-bottom: none;
}

.info-table tr:first-child td,
.download-table tr:first-child td {
    border-top: none;
}

.info-table tbody tr:nth-child(even),
.download-table tbody tr:nth-child(even) {
    background: #fff;
}

.info-table thead th,
.download-table thead th {
    border-right: 1px solid #e8e8e8;
}

.info-table thead th:last-child,
.download-table thead th:last-child {
    border-right: 0px solid #e8e8e8;
}

.info-table td:first-child,
.download-table td:first-child{
    border-left:none;
}

.download-list {
    margin-top: 40px;
}

.download-list .tips {
    margin-top: 10px;
}

.file {
    width: 40%;
}

.download-type {
    width: 70%;
}

.download-table td.file-link {
    text-align: center;
}

/* links */
a {
    color: var(--accent);
    text-decoration: underline
}

@media (max-width: 1280px) {
    .body-container {
        padding: 80px 20px 0px 20px;
    }

}

@media (max-width: 1024px) {
    .body-container {
        padding: 80px 20px 0px 20px;
    }

    .download-container {
        max-width: 768px;
    }
}

@media (max-width: 768px) {
    .body-container {
        padding: 40px 10px 0px 10px;
        width: 100%;
    }

    .download {
        border: 0px solid var(--muted);
    }

    .card-grid {
        grid-template-columns: 1fr
    }

    .dl-title {
        font-size: 22px
    }

    .tabs {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        align-items: center;
    }

    .tabs .tab {
        width: auto;
    }

    .table-heading {
        padding: 10px 12px;
        font-size: 15px;
        margin: 0 0 10px;
    }

    .file {
        width: 50%;
    }

    .download-type {
        width: 55%;
    }
}