/* 基本样式 */
body {
    font-family: 'Noto Sans TC', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}

/* Logo样式 */
.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-img {
    height: 2.5rem;
    width: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

@keyframes rgbCycle {
    0% { color: rgb(255, 0, 0); }
    33% { color: rgb(0, 255, 0); }
    66% { color: rgb(252, 248, 5); }
    100% { color: rgb(255, 0, 0); }
}

.logo span {
    font-weight: 700;
    font-size: 1.2rem;
    animation: rgbCycle 3s linear infinite;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .logo-img {
        height: 2rem;
        width: 2rem;
    }
    
    .logo span {
        font-size: 1rem;
    }
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #1a1a2e;
    color: white;
}

.navbar nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }
    
    .navbar nav {
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
    }
    
    .categories {
        flex-direction: column;
        width: 100%;
    }
    
    #promo-button {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .language-toggle {
        width: 100%;
        justify-content: center;
    }
}

.categories {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.language-toggle {
    display: flex;
    gap: 0.5rem;
}

.language-toggle button {
    background: none;
    border: 1px solid white;
    color: white;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
}

.language-toggle button.active {
    background: white;
    color: #1a1a2e;
}

/* 促销按钮样式 */
#promo-button {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
}

#promo-button:hover {
    background: linear-gradient(135deg, #ff5252, #ff7676);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

#promo-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Hero区域样式 */
.hero {
    background-image: url('images/hero-bg.jpg.jpg');
    background-size: cover;
    background-position: center;
    padding: 4rem 1rem;
    text-align: center;
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1, 
.hero h2, 
.hero h3, 
.hero h4 {
    font-size: 2rem;
    margin: 0.5rem 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .hero h3, 
    .hero h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.3rem;
    }
    
    .hero h2 {
        font-size: 1.1rem;
    }
    
    .hero h3, 
    .hero h4 {
        font-size: 1rem;
    }
}

/* 主内容容器 */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 场所卡片容器 */
.venues {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

/* 场所卡片样式 */
.venue-card {
    border: none;
    border-radius: 12px;
    padding: 1.5rem;
    width: calc(33.333% - 1rem);
    max-width: 380px;
    min-width: 300px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

@media (max-width: 900px) {
    .venue-card {
        width: calc(50% - 1rem);
    }
}

@media (max-width: 600px) {
    .venue-card {
        width: 100%;
        min-width: auto;
        padding: 1rem;
    }
    
    .venue-card img {
        height: 180px;
    }
    
    .venue-card h3 {
        font-size: 1.2rem;
    }
    
    .venue-card p {
        font-size: 0.9rem;
    }
    
    .tags span {
        font-size: 0.7rem;
    }
    
    .map-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

.venue-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.venue-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.venue-card:hover img {
    transform: scale(1.03);
}

.venue-card h3 {
    font-size: 1.4rem;
    margin: 0 0 0.5rem 0;
    color: #1a1a2e;
}

.venue-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tags span {
    background: #f0f0f0;
    color: #555;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.map-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #1a73e8;
    color: white;
    font-weight: 500;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.map-link:hover {
    background: #0d5bba;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.map-link::before {
    content: "📍";
    font-size: 1.2rem;
}

/* 详情页样式 */
.detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.detail-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.detail-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
}

.image-gallery img {
    flex: 1 1 300px;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.02);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    overflow: auto;
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: #ccc;
}

.detail-info {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #1a73e8;
    color: white;
    font-weight: 500;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    align-self: flex-start;
}

.back-button:hover {
    background: #0d5bba;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.back-button::before {
    content: "←";
    font-size: 1.2rem;
}

/* detail2.html 移动端优化 */
@media (max-width: 768px) {
    /* 基础字体设置 */
    html {
        font-size: 14px;
    }
    
    /* 导航栏优化 */
    .navbar {
        padding: 0.8rem 5%;
    }
    
    .categories a, .language-toggle button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* 内容区域优化 */
    .detail-content {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .detail-image {
        width: 100%;
        margin-bottom: 1.2rem;
    }
    
    /* 图片画廊优化 */
    .image-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* 文字内容优化 */
    .detail-info p, .detail-info li {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    /* 按钮优化 */
    .back-button, .map-link {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* 超小屏幕优化(480px以下) */
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .detail-info ul {
        padding-left: 1rem;
    }
    
    .tags span {
        font-size: 0.8rem;
    }
    
    .map-link {
        width: 100%;
        text-align: center;
    }
}

/* 页脚样式 */
.contact {
    text-align: center;
    padding: 2rem;
    background-color: #1a1a2e;
    color: white;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-links a {
    color: white;
    text-decoration: none;
}

.social-links a:hover {
    text-decoration: underline;
}
