/* ==============================================
   INNER PAGE 共用版型
   ============================================== */
.inner-page {
    padding: 56px 5% 72px;
    background: #fff;
}

.inner-container {
    max-width: 960px;
    margin: 0 auto;
}

/* 區塊標題 */
.block-title {
    font-size: 18px;
    font-weight: 700;
    color: #004c99;
    padding-bottom: 10px;
    margin-bottom: 24px;
    border-bottom: 2px solid #004c99;
    position: relative;
}

/* ==============================================
   MARKDOWN 內容區
   ============================================== */
.content-block {
    margin-bottom: 56px;
}

.md-content {
    font-size: 15px;
    line-height: 1.9;
    color: #444;
}

.md-content p {
    margin-bottom: 0.3em;
}

.md-content h2 {
    font-size: 17px;
    font-weight: 700;
    color: #1a3a52;
    margin: 28px 0 10px;
    padding-left: 10px;
    border-left: 3px solid #004c99;
}

.md-content h3 {
    font-size: 15px;
    font-weight: 700;
    color: #427096;
    margin: 20px 0 8px;
}

.md-content ul,
.md-content ol {
    padding-left: 24px;
    margin-bottom: 14px;
}

.md-content li {
    margin-bottom: 6px;
}

.md-content a {
    color: #004c99;
    text-decoration: underline;
}

.md-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 16px 0;
}

.md-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    font-size: 14px;
}

.md-content th,
.md-content td {
    border: 1px solid #dde3ec;
    padding: 10px 14px;
    text-align: left;
}

.md-content th {
    background: #f0f4f8;
    font-weight: 700;
    color: #1a3a52;
}

/* ==============================================
   STAFF CARD 人員介紹
   ============================================== */
.staff-block {
    margin-bottom: 40px;
}

/* 原始樣式（照片靠上對齊）
.staff-card {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 40px;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    background: #f8fafc;
    border: 1px solid #e5eaf0;
    border-radius: 10px;
    padding: 32px 36px;
}

.staff-photo {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: 160px;
}

.staff-photo img {
    width: 160px;
    height: 200px;
    -o-object-fit: cover;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    border: 1px solid #dde3ec;
}
*/

/* 新版排版：左欄=照片+聯絡資訊，右欄=介紹文字 */
.staff-card {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 40px;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e5eaf0;
    border-radius: 10px;
    padding: 32px 36px;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.staff-left {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: 350px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    gap: 16px;
}

.staff-photo {
    width: 160px;
}

.staff-photo img {
    width: 160px;
    height: 200px;
    -o-object-fit: cover;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    border: 1px solid #dde3ec;
}

.staff-info {
    -ms-flex: 0 0 350px;
    flex: 0 0 350px;
    max-width: 350px;
    min-width: 0;
    padding-top: 4px;
}

.staff-dept {
    font-size: 13px;
    color: #427096;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.staff-name {
    font-size: 22px;
    font-weight: 700;
    color: #1a3a52;
    margin-bottom: 20px;
    line-height: 1.3;
}

.staff-title {
    font-size: 15px;
    font-weight: 500;
    color: #555;
    margin-left: 6px;
}

.staff-bio {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 0;
}
.staff-bio p { margin: 0 0 0.1em !important; min-height: 1em; }
.staff-bio p:last-child { margin-bottom: 0 !important; }
.staff-bio strong { font-weight: 700; }
.staff-bio em { font-style: italic; }
.staff-bio ul, .staff-bio ol { padding-left: 20px; margin-bottom: 8px; }
.staff-bio span[style] { display: inline; }

.staff-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 240px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 12px;
}

.staff-contact li {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.contact-label {
    display: inline-block;
    min-width: 52px;
    font-weight: 700;
    color: #427096;
    font-size: 13px;
    background: #e8f0f8;
    padding: 2px 8px;
    border-radius: 3px;
    text-align: center;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.staff-contact a {
    color: #004c99;
    text-decoration: none;
    white-space: nowrap;
    -webkit-transition: color 0.15s;
    transition: color 0.15s;
}

.staff-contact a:hover {
    text-decoration: underline;
    color: #427096;
}

.contact-ext {
    color: #666;
    font-size: 13px;
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 768px) {
    .inner-page {
        padding: 40px 5% 56px;
    }

    .staff-card {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 24px;
        padding: 24px 20px;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        text-align: center;
    }

    .staff-left {
        width: 100%;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }

    .staff-photo img {
        width: 140px;
        height: 175px;
    }

    .staff-contact li {
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .staff-photo img {
        width: 120px;
        height: 150px;
    }

    .staff-name {
        font-size: 18px;
    }
}

/* ==============================================
   FEATURE GRID 研發特色
   ============================================== */
.feature-grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 28px 1fr;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.feature-card {
    background: #f8fafc;
    border: 1px solid #e5eaf0;
    border-radius: 10px;
    padding: 28px 30px;
    -webkit-transition: border-color 0.2s, -webkit-box-shadow 0.2s;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    border-color: #427096;
    -webkit-box-shadow: 0 4px 16px rgba(66,112,150,.10);
    box-shadow: 0 4px 16px rgba(66,112,150,.10);
}

.feature-card-num {
    font-size: 11px;
    font-weight: 700;
    color: #427096;
    letter-spacing: 1px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.feature-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a3a52;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #427096;
    line-height: 1.4;
}

.feature-card .md-content {
    font-size: 14px;
    margin-bottom: 0;
}

/* ==============================================
   AWARD LIST 歷年獲獎
   ============================================== */
.award-year-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 3px;
    background: #427096;
    color: #fff;
    white-space: nowrap;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    min-width: 44px;
    text-align: center;
}

.award-org {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.award-title {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #1a3a52;
    line-height: 1.5;
}

.award-row:hover .award-title {
    color: #004c99;
}

/* ==============================================
   PATENT TABLE 專利概況
   ============================================== */
.patent-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e5eaf0;
    border-radius: 8px;
}

.patent-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 720px;
}

.patent-table th {
    background: #427096;
    color: #fff;
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    font-size: 13px;
}

.patent-table th:first-child { border-radius: 8px 0 0 0; }
.patent-table th:last-child  { border-radius: 0 8px 0 0; }

.patent-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #eee;
    color: #333;
    line-height: 1.5;
    vertical-align: middle;
}

.patent-table tr:last-child td {
    border-bottom: none;
}

.patent-table tr:nth-child(even) td {
    background: #f8fafc;
}

.patent-table tr:hover td {
    background: #f0f5fb;
}

.patent-status {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    white-space: nowrap;
}

.patent-status.granted { background: #e4f5ea; color: #2e7d32; }
.patent-status.pending { background: #fff3e0; color: #e65100; }
.patent-status.filed   { background: #e3f0fb; color: #1565c0; }

/* ==============================================
   YEAR SELECT 下拉年份篩選
   ============================================== */
.year-filter-wrap {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.year-filter-label {
    font-size: 13px;
    font-weight: 600;
    color: #427096;
    white-space: nowrap;
}

.year-select {
    padding: 8px 36px 8px 14px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23427096' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1.5px solid #c8d8e8;
    border-radius: 6px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    min-width: 140px;
    -webkit-transition: border-color 0.18s;
    transition: border-color 0.18s;
}

.year-select:hover,
.year-select:focus {
    border-color: #427096;
    outline: none;
}

/* 目前筆數提示 */
.year-count {
    font-size: 13px;
    color: #888;
    margin-left: auto;
}

/* ==============================================
   ACCORDION 依年度分組
   ============================================== */
.accordion-list {
    border-top: 2px solid #004c99;
}

.accordion-year {
    border-bottom: 1px solid #e5eaf0;
}

.accordion-header {
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: #f8fafc;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    -webkit-transition: background 0.18s;
    transition: background 0.18s;
}

.accordion-header:hover {
    background: #eef3f8;
}

.accordion-year.open > .accordion-header {
    background: #eef3f8;
}

.accordion-year-label {
    font-size: 16px;
    font-weight: 700;
    color: #1a3a52;
}

.accordion-count {
    font-size: 12px;
    color: #fff;
    background: #427096;
    padding: 2px 9px;
    border-radius: 10px;
    font-weight: 600;
}

.accordion-icon {
    margin-left: auto;
    font-size: 13px;
    color: #427096;
    font-weight: 700;
    -webkit-transition: -webkit-transform 0.25s;
    transition: transform 0.25s;
    display: inline-block;
    line-height: 1;
}

.accordion-year.open > .accordion-header .accordion-icon {
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    -webkit-transition: max-height 0.3s ease;
    transition: max-height 0.3s ease;
}

.accordion-year.open > .accordion-body {
    max-height: 2000px;
}

/* 內層 reg-list 去掉頂邊框（已由 accordion 分隔） */
.accordion-body .reg-list .reg-item:first-child {
    border-top: none;
}

/* ==============================================
   INTERN ACCORDION 實習主題內容 + 附件
   ============================================== */

/* 文章介紹區 */
.intern-body {
    padding: 24px 24px 0;
}

/* 附件下載區 */
.intern-attach {
    margin: 16px 24px 24px;
    padding-top: 16px;
    border-top: 1px solid #e5eaf0;
}

.intern-attach-heading {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #427096;
    margin-bottom: 10px;
}

.intern-attach-heading svg {
    width: 14px;
    height: 14px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.intern-attach-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 6px;
}

.intern-attach-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    background: #f8fafc;
    border: 1px solid #e5eaf0;
    border-radius: 5px;
    -webkit-transition: background 0.15s, border-color 0.15s;
    transition: background 0.15s, border-color 0.15s;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.intern-attach-item:hover {
    background: #eef3f8;
    border-color: #c0d4e8;
}

.intern-attach-name {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    min-width: 120px;
}

/* ==============================================
   DATA QUERY 資料查詢分區段
   ============================================== */
.data-section {
    margin-bottom: 40px;
}

.data-section-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    background: #427096;
    color: #fff;
    padding: 12px 18px;
    border-radius: 6px 6px 0 0;
    margin-bottom: 0;
}

.data-section-icon {
    font-size: 16px;
    line-height: 1;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.data-section-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0;
}

.data-section-count {
    margin-left: auto;
    font-size: 11px;
    background: rgba(255,255,255,0.25);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
}

/* 區段內的 reg-list 去掉上邊框，改由 header 銜接 */
.data-section .reg-list {
    border: 1px solid #e5eaf0;
    border-top: none;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
}

.data-section .reg-item {
    border-bottom: 1px solid #eee;
}

.data-section .reg-item:first-child {
    border-top: none;
}

.data-section .reg-item:last-child {
    border-bottom: none;
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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