/* 生成頁面樣式 */
.work-page {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #E0E0E0;
    margin: 0;
    padding: 0px;
}

.work-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: center/cover no-repeat;
    filter: blur(20px) opacity(0.25);
    z-index: -1;
}

.work-container {
    max-width: 560px;
    margin: auto;
    background: #1E1E1E;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.work-container h2,
.work-container h3 {
    color: #FFFFFF;
}

.work-container a {
    color: #FFFFFF;
    text-decoration: none;
}

.work-container a:hover {
    text-decoration: underline;
}

.sales-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.sales-button {
    display: inline-block;
    /* height: 40px; Removed to let content define height */
    /* margin: 5px; Replaced by gap in container */
    padding: 5px;
    background-color: white;
    color: black;
    border-radius: 5px;
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    vertical-align: middle;
}

.footer {
    text-align: center;
    font-size: 10px;
    color: #888;
    margin-top: 20px;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 6px 12px;
    border-radius: 4px;
    font-size: 20px;
    line-height: 1;
    white-space: nowrap;
    color: white;
}

.age-badge {
    background-color: red;
}

.type-badge {
    background-color: #BB86FC;
}

.circle-badge {
    background-color: #03DAC6;
}

/* 手機版響應式設計 */
@media (max-width: 768px) {
    .work-page {
        padding: 10px;
    }

    .work-container {
        max-width: 100%;
        padding: 15px;
        margin-top: 20px;
    }

    /* 標籤區域在手機上換行 */
    .work-container h3 {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        align-items: center;
    }

    /* SNS icons在手機上調整大小 */
    .sns-icons {
        display: flex;
        gap: 5px;
    }

    .sns-icons img {
        width: 16px !important;
        height: 16px !important;
        margin-left: 0 !important;
    }

    /* 配信按鈕在手機上優化 */
    .sales-buttons a {
        flex-direction: column;
        text-align: center;
        padding: 8px;
    }

    .sales-buttons img {
        height: 100%;
        margin: 5px 0;
    }

    /* 作品介紹文字在手機上調整 */
    .work-container p {
        font-size: 14px;
        line-height: 1.5;
    }

    /* クレジット在手機上調整 */
    .credit-item {
        font-size: 14px;
        margin-bottom: 8px;
    }
}

/* 
**語言切換器容器 
*/
.language-switcher-container {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    /* 全寬配置 */
    margin: 10px 0;
    padding: 0 40px;
    box-sizing: border-box;
}

.language-switcher {
    display: flex;
    align-items: center;
    color: #E0E0E0;
}

.language-switcher label {
    margin-right: 10px;
    font-size: 14px;
}

.language-switcher select {
    padding: 6px 10px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #2A2A2A;
    color: #E0E0E0;
    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%23E0E0E0%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: 10px;
    padding-right: 25px;
    font-size: 13px;
}

.language-switcher select:focus {
    outline: none;
    border-color: #BB86FC;
}

.language-switcher select:focus {
    outline: none;
    border-color: #66afe9;
    box-shadow: 0 0 8px rgba(102, 175, 233, 0.6);
}