/* 标准化暗黑商务风格 - 基于detail1.html的统一设计 */

/* 全局暗黑主题样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* 标准化导航栏样式 */
.navbar {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: #ffffff;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px rgba(255, 107, 53, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: default;
    color: #ff6b35;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.categories ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.categories li {
    display: inline-block;
}

.categories a {
    color: #e0e0e0;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    transition: all 0.3s ease;
    border: 1px solid #444;
    font-weight: 500;
}

.categories a:hover {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    border-color: #ff6b35;
}

.language-toggle button {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border: 1px solid #444;
    color: #e0e0e0;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.language-toggle button:hover, .language-toggle button.active {
    background: linear-gradient(135deg, #ff6b35, #4ecdc4);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
    border-color: #ff6b35;
}

/* 标准化返回按钮 */
.back-button {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid #444;
}

.back-button:hover {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
    color: #ffffff;
    border-color: #ff6b35;
}

/* 标准化主容器 */
.detail-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

.detail-content {
    background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border: 1px solid #333;
}

/* 标准化主图片 */
.detail-image {
    width: 65%;
    border-radius: 12px;
    margin: 0 auto 1.5rem;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
    display: block;
    border: 2px solid #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.detail-image:hover {
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
    transform: translateY(-3px);
}

/* 标准化标题 */
h1 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #ff6b35;
    padding-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

/* 标准化内容列表 */
.detail-content li {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid #ff6b35;
    color: #e0e0e0;
    background: rgba(30, 30, 30, 0.5);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #333;
    line-height: 1.8;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.detail-content li:hover {
    background: rgba(40, 40, 40, 0.7);
    border-color: #ff6b35;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

/* 标准化段落样式 */
.paragraph-section {
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.paragraph-section:last-child {
    margin-bottom: 0;
}

.highlight-text {
    color: #ff6b35;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(255, 107, 53, 0.3);
}

.emoji-icon {
    font-size: 1.2em;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.price-tag {
    background: linear-gradient(135deg, #ff6b35, #e52e71);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9em;
    box-shadow: 0 2px 8px rgba(229, 46, 113, 0.3);
}

.time-highlight {
    color: #4ecdc4;
    font-weight: 600;
    background: rgba(78, 205, 196, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

/* 标准化价格项目 */
.price-item {
    margin-bottom: 0.8rem;
    padding: 0.8rem 1rem;
    background: rgba(40, 40, 40, 0.6);
    border-radius: 8px;
    border-left: 3px solid #4ecdc4;
    transition: all 0.3s ease;
    line-height: 1.6;
}

.price-item:hover {
    background: rgba(50, 50, 50, 0.7);
    transform: translateX(3px);
    box-shadow: 0 3px 12px rgba(78, 205, 196, 0.2);
}

.service-fee-warning {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 107, 53, 0.1);
    border: 2px solid #ff6b35;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

.service-desc {
    color: #b0b0b0;
    font-size: 0.9em;
    margin-left: 0.5rem;
}

/* 标准化图片画廊 */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 2rem 0;
}

.image-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
}

.image-gallery img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    border-color: #ff6b35;
}

.image-container {
    position: relative;
    transition: all 0.3s ease;
}

.image-counter {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff6b35, #4ecdc4);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 10;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.gallery-section-title {
    font-size: 1.6rem;
    color: #ffffff;
    margin: 2rem 0 1rem;
    padding-bottom: 10px;
    border-bottom: 2px dashed #ff6b35;
    text-shadow: 0 0 8px rgba(255, 107, 53, 0.3);
}

/* 标准化媒体切换标签 */
.media-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #333;
}

.tab-button {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #e0e0e0;
    border: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid #444;
    border-bottom: none;
}

.tab-button:hover {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: #ffffff;
}

.tab-button.active {
    background: linear-gradient(135deg, #ff6b35, #4ecdc4);
    color: #ffffff;
    box-shadow: 0 -2px 10px rgba(255, 107, 53, 0.3);
}

.media-content {
    display: none;
}

.media-content.active {
    display: block;
}

/* 标准化视频容器 */
.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
    border: 2px solid #333;
}

.video-player {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.video-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 标准化模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.5);
    border: 2px solid #ff6b35;
}

.modal-content, #caption {
    animation: modalZoom 0.6s;
}

@keyframes modalZoom {
    from {transform: scale(0.1)}
    to {transform: scale(1)}
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.close:hover {
    color: #ff6b35;
    transform: scale(1.1);
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* 標準化頁腳樣式（對齊 detail1） */
.contact {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: #e0e0e0;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    border-top: 2px solid #333;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.social-links a {
    color: #e0e0e0;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 1px solid #444;
    font-weight: 500;
}

.social-links a:hover {
    background: linear-gradient(135deg, #ff6b35, #4ecdc4);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    border-color: #ff6b35;
}

/* 浮窗（隨頁面滑動）顯示 promo 圖片 + 下方文案，與首頁、detail1 一致 */
.promo-float {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    text-align: center;
    /* 卡片化外觀：深色背景 + 圓角 + 邊框 + 陰影 */
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}
.promo-float img {
    width: 180px; /* 可依需求微調 */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    display: block;
    margin: 0 auto;
}
.promo-float .caption {
    margin-top: 6px;
    display: inline-block;
    color: #ff0000; /* 紅色字以匹配首頁/示例 */
    font-size: 0.95rem;
    padding: 0.25rem 0.6rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* 视频模态框特殊样式 */
.video-modal-content {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    margin: 5% auto;
    padding: 20px;
    border: 2px solid #ff6b35;
    width: 80%;
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 3%;
    }
    
    .categories ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }
    
    .categories a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .detail-image {
        width: 90%;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .detail-content {
        padding: 1.5rem;
    }
    
    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .modal-content {
        max-width: 95%;
    }
    /* Footer 響應式調整 */
    .social-links {
        flex-direction: column;
        align-items: center;
    }
}

@media screen and (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }
    
    .detail-image {
        width: 100%;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .detail-content li {
        padding: 1rem;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
    }
    
    .tab-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    /* Footer 在極小屏幕的間距與字級調整 */
    .social-links {
        gap: 10px;
    }
    .social-links a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    /* 浮窗在極小屏幕的圖片與字級縮放 */
    .promo-float img { width: 140px; }
    .promo-float .caption { font-size: 0.85rem; }
}