/* ===== 全域設定 ===== */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f4f6f9;
}

/* ===== Header ===== */
.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: #1e2a38;
    color: white;
}

.left {
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;

}

.right {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: flex-end;
}

.right_sign {
    cursor: pointer;
}

.right_note2 {
    cursor: pointer;
}

.right_sign img {
    width: 35px;
}

.right_note2 img {
    width: 35px;
}

/* ===== welcome 區 ===== */
.welcome_board {
    /* width: 80%; */
    margin: 60px auto;

}

.line0 {
    text-align: left;
    font-size: 30px;
    font-weight: 700;
    color: #1e2a38;
}

.line1 {
    text-align: left;
    font-size: 25px;
    font-weight: 500;
    margin-top: 10px;
    color: #1e2a38;
}

.line2 {
    text-align: right;
    font-size: 15px;
    font-weight: 400;
    color: #2f3f52;
    text-decoration: underline;

    margin-top: 40px;
}

h2 {
    text-align: center;
}

/* ===== welcome 區 + 輪播區 ===== */
.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto 30px;
    border-radius: 20px;
}

/* 滑動軌道 */
.carousel-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

/* 每一頁 */
.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 360px;
    padding: 40px 20px 60px;
    background: linear-gradient(to right, #f7fbff, #eef6ff);
}

.welcome_board,
.feature_board {
    width: 100%;
    max-width: 900px;
    text-align: center;
}

/* 第二頁功能介紹 */
.feature_board {
    text-align: center;
}

.feature_board h2 {
    font-size: 32px;
    margin-bottom: 24px;
}

.feature_board ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature_board li {
    font-size: 20px;
    margin: 14px 0;
}


/* 圓點 */
.carousel-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #c8d2dc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #2c3e50;
    transform: scale(1.15);
}

.hr {
    width: 60%;
    margin: 40px auto;
}

/* =============== 使用流程教學區塊 ============== */
.guide-board {
    width: 90%;
    max-width: 1200px;
    margin: 50px auto;
    padding: 30px 25px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.guide-board h2 {
    text-align: center;
    font-size: 30px;
    margin-bottom: 30px;
    color: #1f2937;
}

/* Step 流程列 */
.guide-steps {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 16px 14px;
    margin-bottom: 30px;
    box-sizing: border-box;
}

.guide-step {
    min-width: 140px;
    /* max-width: 260px; */
    text-align: center;
    padding: 12px 10px;
    border-radius: 14px;
    background: #e5e7eb;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.55;
    flex-shrink: 0;
    white-space: normal;
    word-break: break-word;
    box-sizing: border-box;
}

.guide-step.active {
    background: #2563eb;
    color: white;
    opacity: 1;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.guide-step.done {
    background: #93c5fd;
    color: white;
    opacity: 1;
}

.step-line {
    width: 55px;
    height: 6px;
    background: #d1d5db;
    border-radius: 999px;
    /* overflow: visible; */
    flex-shrink: 0;
    position: relative;
}

.step-line-fill {
    width: 0%;
    height: 100%;
    background: #2563eb;
    border-radius: 999px;
    transition: width 0.2s linear;
}

.step-number {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.step-label {
    font-size: 14px;
    line-height: 1.4;
}


/* 內容區 */
.guide-content {
    display: flex;
    gap: 30px;
    align-items: stretch;
    justify-content: space-between;
    flex-wrap: wrap;
}

.guide-text {
    flex: 1;
    min-width: 280px;
    background: #f8fafc;
    border-radius: 16px;
    padding: 25px;
}

.guide-text h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #111827;
}

.guide-text p {
    font-size: 17px;
    line-height: 1.9;
    color: #374151;
}

.guide-video {
    flex: 1.6;
    min-width: 420px;
    background: #f8fafc;
    border-radius: 16px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-video video {
    width: 100%;
    aspect-ratio: 16 / 9;
    /* height: auto;
    min-height: 700px; */
    border-radius: 12px;
    background: rgb(218, 233, 237);
    object-fit: contain;
}

/* RWD */
@media (max-width: 768px) {
    .guide-board {
        padding: 20px 15px;
    }

    .guide-board h2 {
        font-size: 24px;
    }

    .guide-content {
        flex-direction: column;
    }

    .guide-text h3 {
        font-size: 20px;
    }

    .guide-text p {
        font-size: 15px;
    }

    .guide-step {
        min-width: 120px;
        padding: 10px 8px;
    }

    .step-label {
        font-size: 13px;
    }
}

/* =============== 使用流程教學區塊 ============== */


/* ===== 巡檢卡片 ===== */
.note {
    background: white;
    width: 400px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.location,
.item,
.description,
#modalUsername,
#modalEmail,
#modalPassword {
    margin: 10px 0;
    padding: 8px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.description {
    height: 80px;
    resize: none;
}

.submit {
    margin-top: 15px;
    padding: 10px;
    border: none;
    border-radius: 6px;
    background-color: #1e2a38;
    color: white;
    cursor: pointer;

    align-self: flex-end;
}

.submit:hover {
    background-color: #2f3f52;
}

/* ===== 結果顯示 ===== */
#result {
    text-align: center;
    margin-top: 20px;
}


/* ===== Modal 背景 ===== */
.modalbackdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* ===== Modal 盒子 ===== */
.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #1e2a38;

}

.form-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.form-row label {
    width: 90px;
}

.modal {
    position: fixed;
    top: 18%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    width: 350px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.modal h2 {
    margin-top: 0;
    text-align: center;
}

.modal button {
    margin-top: 15px;
    padding: 8px;
    border: none;
    border-radius: 6px;
    background-color: #1e2a38;
    color: white;
    cursor: pointer;
}

.modal button:hover {
    background-color: #2f3f52;
}

.modal p {
    text-align: center;
    font-size: 14px;
}

.modal a {
    color: #1e2a38;
    font-weight: bold;
    text-decoration: none;
}

.modal a:hover {
    text-decoration: underline;
}

/* ===== Footer ===== */
footer {
    margin-top: 80px;
    padding: 20px;
    background-color: #1e2a38;
    color: white;
}

.footer_text {
    display: flex;
    justify-content: center;
}

/* =================公佈欄==================== */
.osha-board {
    margin: 30px auto;
    padding: 20px;
    width: 90%;
    max-width: 900px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.osha-board h2 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.osha-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.osha-items li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.osha-items li a {
    text-decoration: none;
    color: #1a73e8;
}

.osha-items li a:hover {
    text-decoration: underline;
}

.osha-more {
    margin-top: 15px;
    text-align: right;
}

/* 手機版 */
@media (max-width:480px) {

    /* ==================防止爆版設定=============== */
    html,
    body {
        overflow-x: hidden;
        max-width: 100%;
    }

    * {
        box-sizing: border-box;
    }

    /* ==================防止爆版設定=============== */
    .top {
        padding: 10px;
    }

    .left {
        font-size: 18px;
    }

    .right img {
        width: 24px;
        height: 24px;
    }

    .tag {
        top: 65px;
        left: 10px;
    }

    .welcome_board {
        margin-top: 30px;
        text-align: center;
        padding: 10px;
    }

    .line0 {
        font-size: 22px;
    }

    .line1 {
        font-size: 16px;
    }

    .line2 {
        font-size: 14px;
    }

    /* sidebar 手機版 */
    .sidebar {
        width: 220px;
    }

    .sidebar-content a {
        font-size: 14px;
    }

    /*================= 影片導覽區塊====================== */
    .guide-board {
        width: calc(100% - 20px);
        margin: 24px auto;
        padding: 16px 12px;
        border-radius: 14px;
    }

    .guide-board h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .guide-steps {
        gap: 8px;
        padding: 8px 6px 12px;
        margin-bottom: 20px;
    }

    .guide-step {
        min-width: 100px;
        padding: 8px 6px;
        border-radius: 12px;
    }

    .step-number {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .step-label {
        font-size: 11px;
        line-height: 1.35;
    }

    .step-line {
        width: 28px;
        height: 4px;
    }

    .guide-content {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .guide-text,
    .guide-video {
        max-width: 100%;
        min-width: 0;
        width: 100%;

    }

    .guide-text {
        padding: 16px;
        border-radius: 12px;
    }

    .guide-text h3 {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .guide-text p {
        font-size: 13px;
        line-height: 1.7;
    }

    .guide-video {
        padding: 10px;
        border-radius: 12px;
    }

    .guide-video video {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16 / 9;
        border-radius: 10px;
        object-fit: contain;
    }

    footer {
        font-size: 12px;
        padding: 10px;
    }

}