@font-face {
    font-family: 'huninn';
    src: url('fonts/huninn.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'ChiayiCity';
    src: url('fonts/ChiayiCity.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Iansui-Regular';
    src: url('fonts/Iansui-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}


body, ul {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
	height: 100%;
}
body {
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    font-family: 'ChiayiCity', sans-serif;
	min-height: 100%;
    margin: 0;
}

.main-header {
    background: #fff;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    max-width: 1200px;
    margin: 0 auto;
}


.logo a img {
    height: 60px;
}


.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav li {
    margin-left: 20px;
}

.main-nav a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
    padding: 10px 15px;
    transition: color 0.3s;
    font-family: 'Iansui-Regular', sans-serif;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 2px;
    background-color: #D6A560;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a:hover {
    color: #D6A560;
}


.main-content {
    padding: 100px 20px 20px;
    max-width: 1000px;
    margin: 0 auto;
	flex-grow: 1;
}

.project-content {
    padding: 100px 20px 20px;
    max-width: 1000px;
    margin: 0 auto;
	flex-grow: 1;
}

h1 {
    color: #2c3e50;
}


footer {
    text-align: center;
    padding: 20px 0;
    background: #B5733B;
    color: #000000;
    margin-top: auto;
}

/* 關於我頁面樣式 */
.about-content {
    padding: 100px 20px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.about-container {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.about-text {
    flex: 2;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* --- RWD --- */
@media (max-width: 1024px) {
    .header-container {
        flex-direction: column;
        align-items: center;
    }

    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 10px;
    }

    .logo img {
        height: 40px;
    }

    .main-nav li {
        margin: 0 5px;
    }

    .main-nav a {
        font-size: 14px;
        padding: 8px 10px;
        font-family: 'Iansui-Regular', sans-serif;
    }

    .about-container {
        flex-direction: column-reverse;
        align-items: center;
    }

    .about-image {
        margin-top: 20px;
    }
}

.contact-content {
    padding: 100px 20px 20px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
	/* padding-bottom: 230px; */
}

.link-list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.link-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 15px 20px;
    text-decoration: none;
    color: #555;
    font-weight: bold;
    font-size: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.social-icon {
    font-size: 24px;
    margin-right: 15px;
    color: #007bff;
}

.link-item span {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.link-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.social-icon {
    font-size: 24px;
    margin-right: 15px;
    color: #007bff;
}

.link-item:nth-child(1) .social-icon { color: #1877f2; }
.link-item:nth-child(2) .social-icon { color: #ff6a00; }
.link-item:nth-child(4) .social-icon { color: #1B92CD; }

.custom-icon {
    width: 25px;
    height: 25px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    .main-header {
        position: static;
    }
    
    .main-nav {
        display: flex;
        justify-content: flex-end;
        width: 100%;
        z-index: 1000;
        font-family: 'Iansui-Regular', sans-serif;
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
    }
    
    .main-nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        padding: 20px 0;
        text-align: center;
        position: absolute;
        top: 60px;
        left: 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        z-index: 999;
    }
    
    .main-nav.active ul {
        display: flex;
    }
    
    .main-nav li {
        margin: 10px 0;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
    }
}

.portfolio-container {
    display: flex;
    gap: 40px;
}

.artist-nav {
    flex-basis: 200px;
}

.artist-nav ul {
    list-style: none;
    padding: 0;
}

.artist-nav a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #555;
    font-weight: bold;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.artist-nav a:hover {
    color: #007bff;
    border-left: 3px solid #007bff;
}

@media (max-width: 768px) {
    .portfolio-container {
        flex-direction: column;
    }

    .artist-nav {
        flex-basis: auto;
        margin-bottom: 20px;
    }

    .artist-nav ul {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        justify-content: space-between;
    }
    
    .artist-nav li {
        flex-shrink: 0;
    }
}

.portfolio-content {
    padding: 100px 20px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-container {
    display: flex;
    gap: 40px;
}

.artist-nav {
    flex-basis: 200px;
    flex-shrink: 0;
}

.artist-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    position: sticky;
    top: 100px;
}

.artist-nav li {
    margin-bottom: 5px;
}

.artist-nav a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #555;
    font-weight: bold;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.artist-nav a:hover {
    color: #D6A560;
    border-left: 3px solid #D6A560;
}

.artist-section {
    flex-grow: 1;
    margin-bottom: 50px;
}

.artist-name {
    font-size: 2.5em;
    color: #2c3e50;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

.work-item {
    width: calc(50% - 10px);
    height: 300px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.work-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 10px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.work-item:hover .work-caption {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .portfolio-container {
        flex-direction: column;
    }

    .artist-nav {
        display: block;
        margin-bottom: 20px;
    }

    .artist-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
        
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .artist-nav li {
        margin: 0;
    }

    .artist-nav a {
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-radius: 5px;
        text-align: center;
        text-decoration: none;
        color: #555;
        font-weight: bold;
    }
}

.photo-caption {
    margin-top: 10px;
    font-size: 16px;
    color: #555;
}

.photo-container {
    text-align: center;
    display: block;
    margin: 20px auto;
}

#main-photo {
    border-radius: 20px;
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

#project-photo {
    border-radius: 10px;
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

footer {
    padding: 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    flex-grow: 1;
    text-align: left;
}

.language-switcher {
}

.lang-link {
    text-decoration: none;
    color: #000000;
    font-weight: bold;
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.lang-link:hover {
    background-color: #f0f0f0;
}

.lang-link.active {
    color: #000;
    background-color: #e0e0e0;
}

.about-list {
    list-style-type: none;
    margin: 20px 0;
    padding: 0;
}

.about-list li {
    margin-bottom: 10px;
}

.about-list li h3 {
    display: inline-block;
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.indented-text {
    margin-left: 20px;
    line-height: 1.5;
    font-size: 1.2em;
    color: #555;
}

#backToTopBtn {
    position: fixed;
    bottom: 100px;
    right: 10px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #D6A560;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 10px;
    font-size: 20px;
    transition: all 0.3s ease;
}

#backToTopBtn:hover {
    background-color: #AB6430;
}

/* === 下拉式選單 === */

.main-nav .has-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none !important;
    position: absolute;
    top: 120%;
    left: 0;
    min-width: 120px;
    background-color: #fff;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-menu li {
    display: block;
    margin: 0;
}

.dropdown-menu a {
    color: #333;
    padding: 12px 16px;
    display: block;
    text-decoration: none;
    transition: background-color 0.3s;
    font-family: 'Iansui-Regular', sans-serif;
}

.dropdown-menu a:hover {
    background-color: #f1f1f1;
}

.main-nav > ul > li.has-dropdown:hover > .dropdown-menu {
    display: block !important;
}

.main-nav .has-dropdown span {
    text-decoration: none;
    color: #555;
    font-weight: bold;
    padding: px 15px;
    font-family: 'Iansui-Regular', sans-serif;
    position: relative;
    cursor: default;
}


.links-grid {
    display: flex;
    flex-wrap: wrap; 
    gap: 20px;
    justify-content: center;
}

.link-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    position: relative;
    

    flex: 1 1 calc(50% - 10px);
    max-width: 300px;
    min-width: 250px;
}

/* 滑鼠懸停效果 */
.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.link-image {
    width: 70px;
    height: 70px;
    border-radius: 10%;
    object-fit: cover;
    margin-right: 15px;
}

.link-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.link-info h3 {
    margin: 0;
    font-size: 1.2em;
    color: #333;
}

.link-info p {
    margin: 0;
    font-size: 0.9em;
    color: #777;
}

.link-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.main-fursuit {
    padding: 100px 20px 20px;
	max-width: 1500px;
    margin: 0 auto;
	flex-grow: 1;
}

/* RWD 樣式 */
@media (max-width: 768px) {
    .link-card {
        flex: 1 1 100%;
        max-width: none;
    }
}

/* 控制區塊的樣式 */
.controls {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

label {
    font-weight: bold;
    color: #555;
}

select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-family: 'ChiayiCity', sans-serif;
}


.spotify-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: 1500px;
    margin: 0 auto;
}

.main-spotify {
    padding: 100px 20px 20px;
    max-width: 2000px;
    margin: 0 auto;

@media (max-width: 768px) {
    .spotify-grid {
        grid-template-columns: 1fr;
    }
}

/* OC 選擇頁面的標題樣式 */
.oc-selection-title {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-size: 2em;
}

/* 圖片容器：用於並排排版 */
.gallery-grid.oc-selection-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    /* 這裡使用 center 讓圖片整體居中 */
    justify-content: center; 
}

/* 圖片連結項目：即 work-item，現在它是一個 A 標籤 */
.work-item {
    /* 保持並排所需寬度 (50% - gap/2) */
    width: calc(50% - 10px); 
    max-width: 100px; /* 限制最大寬度，避免在大螢幕上圖片過大 */
    height: 300px;
    position: relative;
    overflow: hidden;
    
    /* 確保連結本身是塊級元素，並移除預設的連結樣式 */
    display: block; /* 讓 width 生效 */
    text-decoration: none; /* 移除超連結底線 */
    color: inherit; /* 繼承文字顏色 */

    /* 確保內容 (img + caption) 居中 */
    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

/* 圖片樣式 */
.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    transition: transform 0.3s ease;
}

/* 圖片標題/OC 名稱 */
.work-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.7); /* 稍微深一點，文字更清晰 */
    color: #fff;
    padding: 15px 10px; /* 增加上下內距 */
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    font-size: 3.0em;
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.work-item:hover .work-caption {
    transform: translateY(0);
}

/* RWD 調整 */
@media (max-width: 768px) {
    .work-item {
        /* 在手機上讓圖片佔滿寬度，變成上下堆疊 */
        width: 100%; 
        max-width: none;
    }
}

/* styles.css */
body {
    font-family: sans-serif;
    margin: 20px;
    background-color: #f4f4f9;
}

.container {
    max-width: 1200px;
    margin: auto;
}

#card-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-item {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    background-color: #fafafa;
}

.card-item img {
    max-width: 100%;
    height: auto;
    max-height: 150px;
    display: block;
    margin: 0 auto 8px;
    border-radius: 3px;
}

#upload-section {
    background-color: #e9e9ff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

#upload-form input[type="text"],
#upload-form input[type="file"] {
    padding: 8px;
    margin: 5px 0;
    width: 100%;
    box-sizing: border-box;
}

button {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

button:hover {
    background-color: #0056b3;
}
