* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8000ff;
    --primary-hover: #6500b3;
    --dark-color: #333;
    --light-color: #f4f4f4;
    --white-color: #ffffff;
	--accent-color: #9b59b6;
    --font-heading: 'M PLUS Rounded 1c', sans-serif;
    --font-body: 'M PLUS Rounded 1c', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--dark-color);
    background-color: var(--white-color);
}

body.no-scroll {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 5px;
	display: block;
    width: fit-content;
    margin: 0 auto 2.5rem auto;
}

h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 110%;
    height: 5px;
    background: var(--accent-color);
    border-radius: 3px;
    bottom: 0;
    left: -5%;
    transform: rotate(-1.5deg);
}
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 3rem;
}

section {
    padding: 4rem 0;
}

section:nth-child(even) {
    background-color: var(--light-color);
}

/* ===== Header ===== */
header {
    background: var(--white-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

header .logo {
    z-index: 102; 
    display: block;
}

header .logo img {
    max-height: 40px; 
    width: auto;      
    display: block;  
}

header nav ul {
    display: flex;
    list-style: none;
}

header nav ul li {
    margin-left: 1.5rem;
}

header nav ul li a {
    font-family: var(--font-heading);
    color: var(--dark-color);
    font-weight: 600;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: var(--primary-color);
}

header .nav-cta {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
}

header .nav-cta:hover {
    background-color: var(--primary-hover);
    color: var(--white-color);
}

/* ===== 漢堡選單按鈕 (僅手機版) ===== */
#menu-toggle {
    display: none; /* 桌面版隱藏 */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 102; /* 確保按鈕在選單之上 */
}

#menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--dark-color);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* 漢堡選單 "X" 變形動畫 */
#menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
#menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
#menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}


/* ===== 通用 CTA 按鈕樣式 ===== */
.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white-color);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(157, 0, 255, 0.3);
}

.cta-button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(157, 0, 255, 0.4);
}

/* 定義漸變動畫 */
@keyframes gradientAnimation {
 0% {
  background-position: 0% 50%;
 }
 50% {
  background-position: 100% 50%;
 }
 100% {
  background-position: 0% 50%;
 }
}


/* ===== 主視覺 (Hero) ===== */
#hero {
    background: url('img/webbg.png') no-repeat center center/cover;
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    #hero {
        background-position: left top;
    }
}

#banner {
	background: linear-gradient(120deg,#ec9de8,#ffb6ce,#f7948f);
	background-size: 300% 300%;
	animation: gradientAnimation 5s ease infinite;
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
}

#hero h1 {
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px #00000077
}

#hero .subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    text-shadow: 2px 2px #00000077
}

#about .container {
    max-width: 800px;
    text-align: center;
	line-height: 35px;
}

.speaker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.speaker-card {
    background: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.speaker-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.speaker-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--light-color);
}

.speaker-card h3 {
    margin-bottom: 0.25rem;
}

.speaker-card p {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0;
}

.timeline {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--primary-color);
    opacity: 0.2;
}

.timeline li {
    margin-bottom: 2.5rem;
    position: relative;
    display: flex;
    align-items: flex-start;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid var(--white-color);
    margin-left: -9px;
    z-index: 1;
}

.timeline .time {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    min-width: 100px;
    margin-right: 1.5rem;
}

.timeline .event-details h3 {
    margin-bottom: 0.25rem;
}

.timeline .event-details p {
    margin-bottom: 0;
    color: #555;
}

#location .container {
    text-align: center;
}

.map-placeholder {
    height: 400px;
    background: var(--light-color);
    border: 1px dashed #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #888;
    margin-top: 2rem;
    border-radius: 8px;
}

#flow {

}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem 2rem;
    position: relative;
    margin-top: 3rem;
}

.flow-step {
    text-align: center;
    position: relative;
    padding: 1rem;
}

.flow-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4); 
    position: relative;
    z-index: 2;
}

.flow-step h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.flow-step p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}

.flow-step:nth-child(1)::after,
.flow-step:nth-child(2)::after,
.flow-step:nth-child(4)::after,
.flow-step:nth-child(5)::after {
    content: '›';
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    color: var(--accent-color);
    opacity: 0.3;
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

@media (max-width: 960px) {
    .flow-step:nth-child(2)::after,
    .flow-step:nth-child(5)::after {
        display: none;
    }
}

@media (max-width: 640px) {
    .flow-step:nth-child(1)::after,
    .flow-step:nth-child(4)::after {
        display: none;
    }

    .flow-step {
        margin-bottom: 1rem;
    }
}

#highlights {
    background: var(--dark-color);
    color: var(--white-color);
    padding: 5rem 0;
    text-align: center;
}

#highlights h2 {
    color: var(--white-color);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.highlight-item {
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.05); 
    border-radius: 12px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.1); 
}

.highlight-item i {
    font-size: 3.5rem;
    color: var(--primary-color); 
    margin-bottom: 1.5rem;
}

.highlight-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--white-color);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.highlight-desc {
    font-size: 1.2rem;
    font-weight: 400;
    color: #ddd;
    margin: 0;
}

#register .container {
    max-width: 700px;
    text-align: center;
}

#register form {
    margin-top: 2rem;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(157,0,255,0.3);
}

#register form a.cta-button {
    width: 100%;
    font-size: 1.2rem;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    text-align: center;
}

#register form a.cta-button.disabled {
    background: #ccc;
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    pointer-events: none;
}

.terms-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 2rem;
}

.terms-group input[type="checkbox"] {
    width: auto;
    margin-right: 2rem;
    width: 18px; 
    height: 18px;
}

.terms-group label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 1.4rem;
    color: #555;
}

.terms-group label a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: underline;
}

.terms-group label a:hover {
    color: var(--primary-hover);
}

footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 4rem 0 2rem 0; 
    margin-top: 2rem;
}

footer h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--white-color);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

footer p, footer .footer-contact p {
    margin-bottom: 1rem;
    color: #ccc;
    line-height: 1.6;
}

footer a {
    color: var(--white-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2.5rem;
}

.footer-about {
    flex: 2;
    min-width: 280px;
}

.footer-logo img {
    max-height: 50px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-contact {
    flex: 1;
    min-width: 220px;
}

.footer-contact p {
    display: flex;
    align-items: center;
}
.footer-contact p i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

.footer-social {
    flex: 1;
    min-width: 200px;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
    font-size: 1.2rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: #aaa;
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    #hero {
        min-height: 70vh;
    }
	
	#banner {
        min-height: 25vh;
    }

    .timeline {
        padding-left: 1rem;
    }

    .timeline li::before {
        left: -1rem;
    }
    
    header .container {
        flex-direction: row;
    }

    #menu-toggle {
        display: block;
    }

    #main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(5px);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 101;
    }

    #main-nav.active {
        transform: translateX(0);
    }

    #main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    #main-nav ul li {
        margin: 1.5rem 0;
    }

    #main-nav ul li a {
        font-size: 1.75rem;
        color: var(--dark-color);
    }

    #main-nav ul li a.nav-cta {
        font-size: 1.75rem;
        padding: 0.75rem 1.5rem;
    }
}

.popup-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.popup-container.active {
    display: flex;
}

#popup-modal {
    background: var(--white-color);
    color: var(--dark-color);
    padding: 2rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 450px;
    width: 100%;
    box-sizing: border-box; 
    animation: fadeIn 0.3s ease-out;
}

#popup-modal h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark-color);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    padding-bottom: 0;
    width: auto;
    margin: 0 auto 1rem auto;
}

#popup-modal h2::after {
    display: none;
}

#popup-modal h2 i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

#popup-modal p {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 2rem;
}

#close-popup {
    width: 100%;
    font-size: 1.1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#features {
    background-color: var(--light-color);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white-color);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.feature-card img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.feature-card-content {
    padding: 1.5rem 1.75rem;
}

.feature-card-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.feature-card-content p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

#booth-list {
    background-color: var(--white-color);
    padding: 4rem 0;
}

.booth-flex-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 20px;
    margin-top: 2rem;
}

.booth-name-card {
    background: var(--light-color);
    padding: 1.2rem 1.5rem;
    border-radius: 10px;
    border-left: 5px solid var(--accent-color);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark-color);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.booth-name-card:hover {
    background: var(--white-color);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.15);
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .booth-flex-grid {
        grid-template-columns: 1fr;
    }
    
    .booth-name-card {
        padding: 1rem;
        font-size: 1rem;
    }
}

#performers {
    background-color: var(--light-color);
    padding: 5rem 0;
}

.performer-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 3rem;
}

.performer-card {
    width: calc(20% - 24px); 
    background: var(--white-color);
    padding: 0 0 1.5rem 0; 
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.performer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(155, 89, 182, 0.2);
}

.avatar-wrapper {
    width: 100%;
    height: 200px;
    margin: 0;
    border-radius: 0;
    border: none;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 75%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 75%, transparent 100%);

    -webkit-mask-size: cover;
    mask-size: cover;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.performer-info {
    padding: 1.5rem 1rem 0 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.performer-info h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    display: inline-block; 
}

.perform-time {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    font-weight: 700;
}

.perform-time i {
    color: var(--accent-color);
    margin-right: 5px;
}

.performer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: auto;
}

.performer-social a {
    color: #bbb;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.performer-social a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

@media (max-width: 992px) {
    .performer-card {
        width: calc(33.33% - 20px);
    }
}

@media (max-width: 768px) {
    .performer-card {
        width: calc(50% - 15px);
        gap: 15px;
    }
    
    .avatar-wrapper {
        height: 150px;
    }

    .performer-info h3 {
        font-size: 1.2rem;
    }
}

/* ==================================== */
/* ===== 互動攤位圖樣式 (Booth Map) ===== */
/* ==================================== */

#interactive-map {
    background-color: var(--white-color);
    padding: 5rem 0;
}

/* 頂部場地圖 */
.venue-map-container {
    width: 100%;
    margin-bottom: 4rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.venue-map {
    width: 100%;
    height: auto;
    display: block;
}

/* 攤位網格佈局 (沿用 5/4 邏輯) */
.booth-interactive-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.booth-card {
    /* PC 一行 5 個 */
    width: calc(20% - 20px);
    background: var(--light-color);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    padding-bottom: 1rem;
}

.booth-card:hover {
    transform: translateY(-8px);
    background: var(--white-color);
    box-shadow: 0 10px 20px rgba(155, 89, 182, 0.15);
}

/* 攤位 Icon/圖片區域 (修改版：正方形) */
.booth-icon-wrapper {
    width: 100%;
    /* height: 120px; <-- 已移除 */
    
    /* ↓↓↓ 關鍵：強制容器保持 1:1 正方形比例 ↓↓↓ */
    aspect-ratio: 1 / 1; 
    
    background: #eef2f7;
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* 如果裡面是 Icon */
    font-size: 3rem;
    color: var(--accent-color);
    
    /* 表演者版本的淡出遮罩 (保留) */
    /* 注意：遮罩現在是作用在正方形上，淡出效果會從正方形底部開始 */
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
    /* (我微調了 60% -> 70%，讓淡出在正方形上看起來更自然) */
    
    overflow: hidden;
    position: relative; /* 確保遮罩定位正確 */
}

/* 漸變文字 (沿用表演者版本) */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.booth-info h3 {
    font-size: 1.1rem;
    margin: 1rem 0 0.5rem 0;
}

/* 彈窗內容微調 */
.booth-modal {
    max-width: 400px !important;
}

#booth-detail-icon {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.booth-divider {
    height: 3px;
    width: 50px;
    background: var(--accent-color);
    margin: 1rem auto;
    border-radius: 2px;
}

.close-text-btn {
    background: none;
    border: none;
    color: #999;
    margin-top: 1.5rem;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 700;
}

/* 響應式：手機每行 2 個 */
@media (max-width: 768px) {
    .booth-card {
        width: calc(50% - 10px);
    }
    .booth-icon-wrapper {
        /* height: 100px; <-- 已移除 */
        
        /* aspect-ratio: 1/1 會自動在手機版生效 */
        font-size: 2.5rem; /* Icon 大小縮小 (保留) */
    }
}

/* 社交圖示容器 (沿用 Centering 邏輯) */
/* ==================================== */
/* ===== 修改：社群文字按鈕樣式 ===== */
/* ==================================== */

.booth-social-icons {
    display: flex;
    flex-wrap: wrap; /* 如果按鈕太多會自動換行 */
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.booth-social-icons a {
    display: inline-block;
    /* 移除固定寬高，改用內距 (Padding) 撐開 */
    padding: 0.5rem 1.2rem; 
    width: auto; 
    height: auto;
    
    background: rgba(0, 0, 0, 0.06); 
    color: var(--dark-color);
    font-size: 0.9rem;
    font-weight: 700;
    /* 改為膠囊型圓角 */
    border-radius: 25px; 
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.booth-social-icons a:hover {
    background: var(--accent-color); 
    color: var(--white-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.2);
    border-color: transparent;
}

/* ==================================== */
/* ===== 修改：攤位圖片樣式 (保留遮罩) ===== */
/* ==================================== */

/* 1. 微調圖片容器，確保它能限制圖片，並保留遮罩 */
.booth-icon-wrapper {
    /* 沿用原本的尺寸、背景、Flex 佈局和淡出遮罩 */
    
    /* ↓↓↓ 關鍵：加入此行，確保圖片超出 wrapper 時被裁切，遮罩才有效 ↓↓↓ */
    overflow: hidden; 
}

/* 2. 定義圖片本身的樣式 (盡量使用原有的圖片控制代碼) */
.booth-icon-wrapper img.booth-image {
    width: 100%; /* 寬度佔滿容器 */
    height: 100%; /* 高度佔滿容器 */
    
    /* ↓↓↓ 關鍵：沿用表演者齊平頭像的 object-fit 設定 ↓↓↓ */
    /* 這會確保圖片填滿空間而不變形，多餘部分會被自動裁切 (像 Cover) */
    object-fit: cover; 
    
    display: block; /* 移除圖片底部的預設空白 */
}

/* ==================================== */
/* ===== 修改：彈窗頭像/圖片樣式 (保留遮罩) ===== */
/* ==================================== */

/* 找到之前定義彈窗 icon 的位置 #booth-detail-icon */
/* 我們保留它的定位和 margin */

/* ↓↓↓ 加入新的圖片樣式 ↓↓↓ */
#booth-detail-icon img.booth-detail-image {
    max-width: 150px; /* 限制彈窗圖片最大寬度 */
    height: 150px;    /* 固定高度，使其保持正方形 */
    
    /* ↓↓↓ 關鍵：沿用表演者齊平頭像的 object-fit 設定 ↓↓↓ */
    object-fit: cover; /* 確保圖片填滿空間而不變形 */
    
    border-radius: 12px; /* 圓角效果 */
    display: block;
    margin: 0 auto; /* 水平置中 */
    
    /* ↓↓↓ 關鍵：沿用表演者版本的底部線性漸變淡出遮罩 (保留) ↓↓↓ */
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 80%, transparent 100%);
    
    /* 遮罩其他設定，確保填滿 wrapper */
    -webkit-mask-size: cover;
    mask-size: cover;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}