/* 主頁樣式 */

body {
    font-family: "Segoe UI", sans-serif;
    background: #f8f9fa;
    padding: 0;
    line-height: 1.6;
}

input,
select,
textarea,
.workurl-section,
#workurl_section_container,
#shorten_result_message {
    scroll-margin-top: 0;
}

/* 外層容器 */
.container {
    width: 800px;
    margin: 30px auto;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

/* 
**語言切換 
*/
/* 
**主部頁首 
*/
.main-header {
    display: flex;
    justify-content: flex-end;
    /* 將語言切換器推向右側 */
    align-items: center;
    width: 100%;
    /* 全寬配置 */
    margin: 20px 0;
    padding: 10px 40px;
    box-sizing: border-box;
    position: relative;
    /* 為了讓標題絕對定位 */
}

.navbar-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    color: #35359c;
    /* DarkBlue */
    font-size: 42px;
    /* 回復原本 Navbar 的標題大小 */
    white-space: nowrap;
}

.language-switcher {
    display: flex;
    align-items: center;
    color: #333;
    /* 語言文字顏色改為深色，因為背景變淺了 */
}

.language-switcher label {
    margin-right: 10px;
    color: #333;
    font-size: 16px;
}

.language-switcher select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-6.5%200-12.3%203.2-16.1%208.1-3.8%204.9-4.9%2011-3.1%2017.4l130%20140c3.8%204.9%209.6%208.1%2016.1%208.1s12.3-3.2%2016.1-8.1l130-140c1.8-6.4.7-12.5-3.1-17.4z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 30px;
    font-size: 14px;
}

.language-switcher select:focus {
    outline: none;
    border-color: #66afe9;
    box-shadow: 0 0 8px rgba(102, 175, 233, 0.6);
}

/* 
**分頁切換 
*/
.tabs {
    display: flex;
    border-bottom: 1px solid #ccc;
    background: #f1f1f1;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    border-right: 1px solid #ccc;
    transition: background 0.2s;
}

.tab:last-child {
    border-right: none;
}

.tab:hover {
    background: #e8e8e8;
}

.tab.active {
    background: #fff;
    color: #000;
    border-bottom: 2px solid #555;
    font-weight: bold;
}

/* 內容區 */
.tab-content {
    display: none;
    padding: 20px;
}

.tab-content.active {
    display: block;
}

/* 作品網址 */
.workurl-section {
    margin: 20px auto;
    width: 800px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.workurl-section p {
    margin: 20px;
    font-size: 20px;
}

.workurl-section button {
    background-color: #007bff;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}

/* 頁腳 */
.footer {
    background-color: #ddd;
    /* 淺灰色背景 */
    width: 900px;
    margin: 30px auto;
    /* 外邊距 */
    padding: 20px 0;
    /* 內邊距 */
    border-radius: 8px;
}

.footer-text {
    font-size: 14px;
    /* 調整字體大小 */
    color: #888;
    /* 深灰色文字 */
    text-align: center;
    margin: 0px;
}

.footer-copyright {
    font-size: 14px;
    /* 調整字體大小 */
    color: #111;
    /* 深灰色文字 */
    margin: 0px 20px 0px 0px;
    text-align: right;
}

/* FAQ 區塊 */
.faq-section {
    width: 800px;
    margin: 30px auto;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.faq-title {
    font-size: 16px;
    font-weight: bold;
    padding: 20px;
    margin: 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
    color: #333;
}

.faq-list {
    padding: 0;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    padding: 16px 50px 16px 20px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    position: relative;
    list-style: none;
    transition: background 0.2s;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-right: 2px solid #666;
    border-bottom: 2px solid #666;
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.2s;
}

.faq-item[open] .faq-question::after {
    transform: translateY(-30%) rotate(-135deg);
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-answer {
    padding: 16px 50px 16px 20px;
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    background: #fafafa;
}