/* Cute Commission Page CSS */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;700&display=swap');

:root {
    --bg-color: #fffafb;
    --primary-color: #f7bbcc;
    --secondary-color: #fce1e8;
    --text-color: #5c4a52;
    --accent-color: #ff9fb4;
    --link-color: #e6839e;
    --warning-bg: #fff3ce;
    --warning-text: #8c7322;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans TC', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image: radial-gradient(var(--secondary-color) 2px, transparent 2px);
    background-size: 30px 30px;
}

.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
}

header.profile-header {
    text-align: center;
    margin-bottom: 30px;
}

.profile-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(247, 187, 204, 0.3);
    border: 2px dashed var(--primary-color);
}

h1 {
    color: var(--accent-color);
    margin-top: 0;
    font-size: 2.2em;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.05);
}

h2 {
    color: var(--accent-color);
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 10px;
    display: inline-block;
    margin-bottom: 20px;
}

.subtitle {
    font-weight: bold;
    color: var(--link-color);
    font-size: 1.1em;
}

.desc {
    line-height: 1.8;
}

.warning-box {
    background-color: var(--warning-bg);
    color: var(--warning-text);
    padding: 15px;
    border-radius: 10px;
    font-weight: bold;
    margin-top: 20px;
    display: inline-block;
    border: 1px solid #fbe59c;
}

.content-section section {
    background: white;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.price-list, .tos-list {
    list-style: none;
    padding: 0;
    line-height: 2;
    font-size: 1.1em;
}

.price-list li, .tos-list li {
    background: var(--bg-color);
    margin-bottom: 10px;
    padding: 10px 15px;
    border-radius: 10px;
    transition: transform 0.2s;
}

.price-list li:hover, .tos-list li:hover {
    transform: translateX(5px);
    background: var(--secondary-color);
}

.section-note {
    color: #999;
    font-size: 0.9em;
    margin-top: -15px;
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn-cute {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(247, 187, 204, 0.4);
    transition: all 0.3s;
}

.btn-cute:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(247, 187, 204, 0.6);
}

.btn-secondary {
    background-color: white;
    color: var(--accent-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--accent-color);
}

.btn-large {
    font-size: 1.2em;
    padding: 15px 40px;
    margin-top: 10px;
}

.time-warning {
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 15px;
    border-radius: 10px;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
    border: 1px solid #fecaca;
}

.footer-action {
    text-align: center;
    margin: 40px 0;
    padding: 30px;
    background: white;
    border-radius: 20px;
    border: 2px dashed var(--accent-color);
}

.footer-action p {
    font-size: 1.2em;
    font-weight: bold;
}

.back-home {
    text-align: center;
    margin-top: 30px;
}

.btn-back {
    color: #999;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.2s;
}

.btn-back:hover {
    color: var(--text-color);
}

/* Portfolio Gallery */
.portfolio-section {
    text-align: center;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
    align-items: center;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 3px solid var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: cover;
}

.gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(247, 187, 204, 0.6);
    border-color: var(--accent-color);
}

/* Modal (Lightbox) 圖片點擊放大浮窗 */
.modal {
    display: none; /* 預設隱藏 */
    position: fixed; 
    z-index: 1000; /* 置於最上層 */
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(43, 30, 36, 0.85); /* 帶有可愛暗紫粉感的半透明黑色 */
    display: flex;
    align-items: center;
    justify-content: center;
}

#imageModal {
    display: none; /* 初始載入時隱藏 flex */
}

/* 顯示放大的圖片 */
.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(247, 187, 204, 0.5); /* 滿滿粉色光暈 */
    border: 4px solid var(--secondary-color);
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Q彈縮放動畫 */
    object-fit: contain;
}

/* 放大動畫 */
@keyframes zoomIn {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* 關閉按鈕 (X) */
.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: var(--secondary-color);
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 1001;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--accent-color);
    text-decoration: none;
    cursor: pointer;
    transform: scale(1.1);
}

/* Language Toggle Support */
body.lang-tw .lang-en {
    display: none !important;
}

body.lang-en .lang-tw {
    display: none !important;
}

.lang-switch-wrapper {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}