/* Global Variables & Colors */
:root {
    --bg-color: #FAF9F5;
    --text-primary: #2d332f;
    --text-secondary: #5c6660;
    
    /* Forest Theme Color Palette */
    --forest-green: #2c5e43;
    --forest-light: #e8f0eb;
    --forest-hover: #1e4530;
    --gold-accent: #d4a373;
    --gold-light: #faedcd;
    
    /* Layout Tokens */
    --card-bg: rgba(255, 255, 255, 0.9);
    --border-color: rgba(44, 94, 67, 0.12);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 20px -3px rgba(44, 94, 67, 0.06), 0 4px 6px -2px rgba(44, 94, 67, 0.02);
    --shadow-lg: 0 20px 25px -5px rgba(44, 94, 67, 0.1), 0 10px 10px -5px rgba(44, 94, 67, 0.04);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    padding: 20px 15px;
    background-image: 
        radial-gradient(at 0% 0%, rgba(44, 94, 67, 0.06) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(212, 163, 115, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 600px; /* Constrained width for premium mobile display */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Card Styling */
.card {
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    padding: 25px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Hero Section (Landscape image with overlay) */
.hero-card {
    position: relative;
    border-radius: 28px;
    height: 260px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 2s ease;
}

.hero-card:hover .preview-image {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 20%, rgba(44, 94, 67, 0.85) 100%);
}

.header-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: white;
}

.tag {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 4px 12px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 8px;
    border: 1px solid rgba(255,255,255,0.2);
}

.header-text h1 {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.subtitle {
    font-size: 0.85rem;
    opacity: 0.85;
    letter-spacing: 0.5px;
}

/* About / Intro Section */
.intro-card h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.4rem;
    color: var(--forest-green);
    margin-bottom: 15px;
    position: relative;
}

.intro-card h2::after {
    content: '';
    display: block;
    width: 35px;
    height: 3px;
    background: var(--gold-accent);
    margin-top: 6px;
    border-radius: 2px;
}

.story-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: justify;
}

.story-text:last-of-type {
    margin-bottom: 25px;
}

/* Highlights Grid */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.highlight-item {
    background: rgba(44, 94, 67, 0.04);
    border-radius: 16px;
    padding: 12px 10px;
    text-align: center;
    border: 1px solid rgba(44, 94, 67, 0.04);
    transition: background 0.2s ease;
}

.highlight-item:hover {
    background: rgba(44, 94, 67, 0.08);
}

.hl-icon {
    font-size: 1.4rem;
    display: block;
    margin-bottom: 4px;
}

.highlight-item h4 {
    font-size: 0.85rem;
    color: var(--forest-green);
    font-weight: 600;
    margin-bottom: 2px;
}

.highlight-item p {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* Address Card & Main Button */
.action-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: linear-gradient(135deg, #ffffff 60%, rgba(212, 163, 115, 0.06) 100%);
}

.address-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--forest-light);
    border-radius: 16px;
    padding: 12px 16px;
    border: 1px solid rgba(44, 94, 67, 0.08);
}

.loc-icon {
    font-size: 1.25rem;
}

.address-details {
    flex: 1;
}

.addr-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
}

.addr-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--forest-green);
}

.copy-btn {
    background: rgba(44, 94, 67, 0.1);
    color: var(--forest-green);
    border: none;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: var(--forest-green);
    color: white;
}

.copy-btn.copied {
    background: var(--gold-accent);
    color: white;
}

/* Primary WeChat Launch Button with Glow & Pulse Effect */
.nav-action-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 5px;
}

.primary-nav-btn {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--forest-green);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 16px 24px;
    border-radius: 18px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(44, 94, 67, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border: none;
    overflow: hidden;
    animation: buttonPulse 2s infinite;
}

.primary-nav-btn:hover {
    background-color: var(--forest-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(44, 94, 67, 0.3);
}

.primary-nav-btn:active {
    transform: translateY(1px);
    box-shadow: 0 4px 8px rgba(44, 94, 67, 0.2);
}

.wechat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: none;
    animation: shine 3.5s infinite;
}

.btn-tip {
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.4;
    max-width: 90%;
}

/* Backup Navigation section */
.backup-section h3 {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
    letter-spacing: 0.5px;
}

.app-launch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.app-btn {
    padding: 10px 6px;
    border-radius: 12px;
    border: 1px solid rgba(44, 94, 67, 0.1);
    background: white;
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.app-btn:hover {
    background: var(--forest-light);
    color: var(--forest-green);
    border-color: rgba(44, 94, 67, 0.2);
}

/* Toast styles */
.toast {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(44, 94, 67, 0.95);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2000;
    transition: bottom 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    opacity: 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.toast.show {
    bottom: 30px;
    opacity: 1;
}

/* Footer styling */
footer {
    text-align: center;
    padding: 15px 10px 30px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--forest-green);
}

.footer-sub {
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.copyright {
    font-size: 0.65rem;
    color: #b0b8b3;
    margin-top: 10px;
}

/* Animations */
@keyframes buttonPulse {
    0% {
        box-shadow: 0 8px 16px rgba(44, 94, 67, 0.2);
    }
    50% {
        box-shadow: 0 8px 24px rgba(44, 94, 67, 0.45);
    }
    100% {
        box-shadow: 0 8px 16px rgba(44, 94, 67, 0.2);
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }
    20%, 100% {
        left: 150%;
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    body {
        padding: 12px 10px;
    }
    
    .card {
        padding: 20px;
    }
    
    .hero-card {
        height: 200px;
    }
    
    .header-text h1 {
        font-size: 1.8rem;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .highlight-item {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 12px;
        padding: 12px 16px;
    }
    
    .hl-icon {
        font-size: 1.6rem;
        margin-bottom: 0;
    }
    
    .highlight-item div {
        flex: 1;
    }
    
    .app-launch-grid {
        grid-template-columns: 1fr;
    }
    
    .app-btn {
        padding: 12px;
    }
}
