/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header Styles */
.guide-header {
    background: linear-gradient(135deg, #f7941f 0%, #e67e22 100%);
    color: white;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(247, 148, 31, 0.3);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.back-link {
    display: flex;
    align-items: center;
    color: white;
    font-size: 14px;
    transition: opacity 0.3s;
}

.back-link:hover {
    opacity: 0.8;
}

.back-icon {
    font-size: 18px;
    margin-right: 5px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
}

/* Guide Title Section */
.guide-title-section {
    background: white;
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.guide-main-title {
    font-size: 28px;
    color: #f7941f;
    font-weight: bold;
    margin-bottom: 10px;
}

.guide-meta-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #999;
}

.meta-divider {
    color: #ddd;
}

/* Quick Navigation */
.quick-nav {
    position: fixed;
    top: 180px;
    left: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.nav-toggle {
    width: 50px;
    height: 50px;
    background: #f7941f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(247, 148, 31, 0.3);
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    transform: scale(1.05);
}

.nav-toggle:active {
    transform: scale(0.95);
}

.nav-toggle-text {
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.nav-list {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.nav-list.show {
    display: block;
}

.nav-item {
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 36px;
    display: flex;
    align-items: center;
}

.nav-item:hover {
    background: rgba(247, 148, 31, 0.1);
}

.nav-item.active {
    background: rgba(247, 148, 31, 0.8);
}

.nav-item.active .nav-item-text {
    color: white;
    font-weight: 600;
}

.nav-item-text {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}

/* Main Content */
.guide-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 60px;
}

/* Info Section Styles */
.info-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-header {
    margin-bottom: 15px;
}

.section-title-wrap {
    display: inline-flex;
    align-items: center;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background-color: #f7941f;
    border-radius: 2px;
}

.section-icon {
    width: 24px;
    height: 24px;
    margin-left: 8px;
}

/* Unified Image Width Styles */
.rich-content img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 8px 0 !important;
    border-radius: 6px !important;
}

.rich-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.rich-content p {
    margin: 0;
    padding: 0;
}

.rich-content .content-placeholder img {
    display: none !important;
}

.stamp-pic-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.section-body {
    color: #666;
    line-height: 1.8;
}

/* Rich Content */
.rich-content {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 15px;
    font-size: 16px;
    line-height: 1.8;
}

.content-placeholder {
    color: #999;
    text-align: center;
    padding: 20px;
}

/* Location Info */
.location-info {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.location-item {
    display: flex;
    align-items: center;
    font-size: 16px;
}

.location-label {
    font-weight: bold;
    color: #333;
    margin-right: 15px;
    white-space: nowrap;
}

.location-value {
    display: flex;
    align-items: center;
    flex: 1;
}

.location-text {
    flex: 1;
}

.location-nav-btn {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    background-color: #f7941f;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    white-space: nowrap;
    transition: opacity 0.3s;
}

.location-nav-btn:hover {
    opacity: 0.9;
}

.nav-arrow {
    margin-right: 4px;
    font-size: 12px;
}

/* Data Grid */
.data-grid-container {
    margin-top: 15px;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.data-item {
    background: white;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80px;
}

.item-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}

.item-value {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.item-value.small {
    font-size: 14px;
}

/* Map Section */
.map-section {
    margin-top: -10px;
    margin-bottom: 20px;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.map-container {
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    color: #999;
    padding: 40px;
}

.map-source {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 8px;
    padding: 5px 0;
}

/* Video Section */
.video-container {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.video-play-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.8);
    background-color: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.play-icon {
    font-size: 30px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.video-placeholder-text {
    color: #999;
    font-size: 14px;
}

/* Facility Sub Section */
.facility-sub-section {
    margin-bottom: 20px;
}

.sub-section-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    border-left: 3px solid #f7941f;
}

.stamp-pics-container {
    margin-top: 15px;
}

.stamp-pics-container .location-label {
    margin-bottom: 10px;
}

.stamp-pics-swiper {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

.swiper-slide {
    width: 100%;
    height: 100%;
}

.pic-placeholder {
    width: 100%;
    height: 100%;
    background: #e0e0e0;
}

/* QR Code Buttons */
.qrcode-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 15px;
    padding: 0 15px;
}

.qrcode-btn {
    flex: none;
    width: 150px;
    height: 44px;
    background: transparent;
    border: 2px solid #f7941f;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    color: #f7941f;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.qrcode-btn:hover {
    background: rgba(247, 148, 31, 0.08);
}

.btn-arrow {
    font-size: 12px;
}

/* Transport Section */
.transport-item {
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.transport-item:last-child {
    margin-bottom: 0;
}

.transport-subtitle {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    padding: 12px 15px;
    background: white;
    border-bottom: 1px solid #f0f0f0;
}

.transport-item .section-body {
    margin: 0;
    padding: 15px;
    border-radius: 0;
}

/* Trail Download */
.trail-download-section {
    margin-top: 15px;
}

.trail-download-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #f7941f;
    color: white;
    border: 1px solid #f7941f;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
}

.trail-download-btn:hover {
    background: #e6840f;
}

/* Footer Styles */
.guide-footer {
    background: #2c3e50;
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-logo-text {
    font-size: 20px;
    font-weight: bold;
}

.footer-tagline {
    opacity: 0.8;
}

.footer-info {
    font-size: 14px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quick-nav {
        left: 10px;
        top: 150px;
    }

    .nav-toggle {
        width: 44px;
        height: 44px;
    }

    .guide-main-title {
        font-size: 24px;
    }

    .guide-content {
        padding: 15px;
    }

    .info-section {
        padding: 15px;
    }

    .section-title {
        font-size: 18px;
    }

    .data-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .qrcode-buttons {
        flex-direction: column;
        align-items: center;
    }

    .qrcode-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .quick-nav {
        display: none;
    }

    .guide-title-section {
        padding: 20px 15px;
    }

    .guide-main-title {
        font-size: 22px;
    }

    .info-section {
        padding: 12px;
    }

    .section-title {
        font-size: 16px;
    }

    .rich-content {
        font-size: 14px;
        padding: 12px;
    }

    .location-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .location-value {
        width: 100%;
    }

    .location-nav-btn {
        margin-left: 10px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.info-section {
    animation: fadeIn 0.5s ease-out;
}
