/* ========================================
   Naban哪办 - 品牌官网样式
   设计理念: 宇宙星图的人文温度
   ======================================== */

/* CSS Variables */
:root {
    --color-primary: #FF6600;
    --color-secondary: #6B4EE6;
    --color-accent: #00D9C0;
    --color-bg: #F5F5F7;
    --color-bg-warm: #F9EBDF;
    --color-white: #FFFFFF;
    --color-text: #1A1A1A;
    --color-text-secondary: #666666;
    --color-text-muted: #999999;
    
    --font-title: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-hand: 255px 15px 225px 15px / 15px 225px 15px 255px;
    
    --transition: all 0.4s ease-in-out;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.8;
    color: var(--color-text);
    background: var(--color-bg-warm);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Utility Classes
   ======================================== */

.hand-drawn {
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.hand-drawn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.hand-drawn-box {
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-md);
    background: var(--color-white);
    transition: var(--transition);
}

.hand-drawn-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.hand-drawn-circle {
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.floating {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
    background: transparent;
    padding: 16px 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.navbar .logo {
    /* 保持原始颜色 */
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 48px;
}

.logo {
    height: 44px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--color-primary);
    font-size: 18px;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-cta {
    text-decoration: none;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 10px 28px;
    font-size: 15px;
    font-weight: 600;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    padding: 120px 0 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
    width: 100%;
}

.hero-content {
    max-width: 700px;
}

.hero-bottom-row {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
    font-size: 16px;
    color: #FFFFFF;
    font-weight: 500;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 14px;
    color: #FFFFFF;
    line-height: 1.8;
    margin-bottom: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    text-decoration: none;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 6px 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    cursor: pointer;
    border: none;
    line-height: 1.5;
}

.btn-booking {
    transition: var(--transition);
    height: auto;
    margin-bottom: 10px;
}

.btn-booking:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
}

.btn-secondary {
    text-decoration: none;
    background: transparent;
    color: #FFFFFF;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 500;
    border: 2px solid #FFFFFF;
    border-radius: var(--radius-md);
    transition: var(--transition);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
    background: #FFFFFF;
    color: var(--color-text);
}

.hero-right {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-animation-wrapper {
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    line-height: 0;
    border-radius: var(--radius-lg);
}

.hero-animation {
    width: 100%;
    height: auto;
    display: block;
    margin: -13% 0;
}

.qr-card {
    background: var(--color-white);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    text-align: center;
    margin-top: -40px;
    z-index: 10;
    max-width: 220px;
}

.qr-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #f0f0f0 25%, #e0e0e0 25%, #e0e0e0 50%, #f0f0f0 50%, #f0f0f0 75%, #e0e0e0 75%);
    background-size: 20px 20px;
    margin: 0 auto 16px;
    border-radius: var(--radius-sm);
}

.qr-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.qr-subtext {
    font-size: 12px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ========================================
   Pain Points Section
   ======================================== */

.pain-points {
    background: var(--color-bg-warm);
    padding: 100px 0;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--color-text);
}

.pain-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.pain-card {
    padding: 40px 32px;
    text-align: center;
}

.pain-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.pain-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-text);
}

.pain-card p {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* ========================================
   Values Section
   ======================================== */

.values {
    background: var(--color-bg-warm);
    padding: 100px 0;
    position: relative;
}

.values::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 102, 0, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.values-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 28px;
    max-width: 420px;
}

.value-icon {
    width: 80px;
    height: 80px;
    font-size: 36px;
    flex-shrink: 0;
    background: var(--color-white);
}

.value-icon:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-soft);
}

.value-text h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-primary);
}

.value-text p {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.value-connector {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
    position: relative;
}

.value-connector::before,
.value-connector::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--color-primary);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.value-connector::before {
    left: -5px;
}

.value-connector::after {
    right: -5px;
    background: var(--color-secondary);
}

/* ========================================
   Features Section
   ======================================== */

.features {
    background: var(--color-bg-warm);
    padding: 100px 0;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 40px 32px;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card-flexible {
    background-image: url('flexible-bg.png');
}

.feature-card-comfort {
    background-image: url('comfort-bg.png');
}

.feature-card-community {
    background-image: url('community-bg.png');
}

.feature-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.feature-card:hover .feature-card-overlay {
    background: rgba(20, 30, 48, 0.7);
}

.feature-card-content {
    position: relative;
    z-index: 1;
}

.feature-card-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-primary);
    transition: var(--transition);
}

.feature-card:hover .feature-card-title {
    color: #FFFFFF;
}

.feature-description {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.8;
    transition: var(--transition);
}

.feature-card:hover .feature-description {
    color: #FFFFFF;
}

/* ========================================
   Constellation Section
   ======================================== */

.constellation {
    background: var(--color-bg-warm);
    padding: 100px 0;
    position: relative;
}

.constellation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(107, 78, 230, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 102, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.section-subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
    text-align: center;
    margin-top: -40px;
    margin-bottom: 60px;
}

.constellation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.city-card {
    background: var(--color-white);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 2px solid transparent;
}

.city-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--color-primary);
}

.city-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.city-card h4 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.city-card p {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.constellation-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 64px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.stat-unit {
    font-size: 24px;
    color: var(--color-primary);
    font-weight: 500;
}

.stat-label {
    display: block;
    font-size: 16px;
    color: var(--color-text-secondary);
    margin-top: 8px;
}

/* ========================================
   Testimonials Section
   ======================================== */

.testimonials {
    background: var(--color-bg-warm);
    padding: 60px 0 100px;
}

.testimonial-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.testimonial-card {
    padding: 40px;
    position: relative;
}

.quote-mark {
    font-size: 80px;
    color: var(--color-primary);
    opacity: 0.3;
    line-height: 1;
    position: absolute;
    top: 20px;
    left: 30px;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.9;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
    padding-top: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
}

.author-title {
    font-size: 14px;
    color: var(--color-text-secondary);
}

/* ========================================
   Bottom CTA Section
   ======================================== */

.bottom-cta {
    background: var(--color-bg);
    padding: 100px 0;
    text-align: center;
}

.cta-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 48px;
    color: var(--color-text);
}

.qr-section {
    margin-bottom: 40px;
}

.qr-large {
    display: inline-block;
    padding: 32px;
    margin-bottom: 24px;
}

.qr-placeholder-large {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #f0f0f0 25%, #e0e0e0 25%, #e0e0e0 50%, #f0f0f0 50%, #f0f0f0 75%, #e0e0e0 75%);
    background-size: 20px 20px;
    border-radius: var(--radius-sm);
}

.qr-cta-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.qr-subtitle {
    font-size: 16px;
    color: var(--color-text-secondary);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--color-text);
    color: var(--color-white);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-slogan {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-white);
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: var(--transition);
}

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

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

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
    .hero-container {
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .values-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .value-connector {
        width: 3px;
        height: 60px;
        background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
    }
    
    .value-connector::before,
    .value-connector::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .value-connector::before {
        top: -5px;
    }
    
    .value-connector::after {
        bottom: -5px;
        top: auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-bottom: 40px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-bottom-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-tagline {
        font-size: 16px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .pain-cards {
        grid-template-columns: 1fr;
    }
    
    .value-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
    }
    
    .constellation-grid {
        grid-template-columns: 1fr;
    }
    
    .constellation-stats {
        flex-direction: column;
        gap: 40px;
    }
    
    .testimonial-cards {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: 32px;
    }
    
    .cta-buttons {
        flex-direction: column;
        padding: 0 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 32px;
    }
}

/* ========================================
   QR Modal
   ======================================== */

.qr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.qr-modal-content {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    color: #999999;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.close-modal:hover {
    color: #333333;
    transform: rotate(90deg);
}

.qr-modal-body {
    margin-top: 20px;
}

.qr-code-large {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #f0f0f0 25%, #e0e0e0 25%, #e0e0e0 50%, #f0f0f0 50%, #f0f0f0 75%, #e0e0e0 75%);
    background-size: 20px 20px;
    border-radius: var(--radius-sm);
    margin: 0 auto 24px;
}

.qr-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
}

.qr-modal-subtitle {
    font-size: 15px;
    color: var(--color-text-secondary);
}
