/* YOGIBO 中国 - 舒适生活，从YOGIBO开始
 * 本地化设计：融合简约美学与中国元素
 */

:root {
    --color-bg: #FEFEFE;
    --color-bg-alt: #F8F6F3;
    --color-text: #1A1A1A;
    --color-text-light: #666666;
    --color-accent: #B8860B;
    --color-accent-light: #DAA520;
    --color-primary: #B8860B;
    --color-secondary: #2C5F2D;
    --color-white: #FFFFFF;
    --color-border: #EAE6E0;
    
    --font-primary: 'Inter', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 12px 48px rgba(184, 134, 11, 0.15);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

img, svg {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-accent);
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: var(--spacing-xs);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-accent-light);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--color-text);
    color: var(--color-text);
}

.btn-outline:hover {
    background: var(--color-text);
    color: var(--color-white);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: transparent;
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-text);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    list-style: none;
}

.nav-menu li a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition);
}

.nav-menu li a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition);
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    margin-left: var(--spacing-sm);
}

.lang-btn {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    min-width: 120px;
    display: none;
    margin-top: 0.5rem;
}

.lang-menu.show {
    display: block;
}

.lang-menu a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.lang-menu a:hover {
    background: var(--color-bg-alt);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FAFAF8 0%, #F5F3EF 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.6) 100%);
    z-index: 1;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: var(--spacing-lg);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    white-space: pre-line;
    line-height: 1.8;
}

/* Hot Products Showcase */
.hot-products {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: var(--spacing-xl) 0;
}

.hot-products .section-title {
    color: #fff;
}

.hot-products .section-label {
    color: rgba(255, 255, 255, 0.85);
}

.hot-product-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hot-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.hot-product-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    overflow: hidden;
}

.hot-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hot-product-card:hover .hot-product-image img {
    transform: scale(1.05);
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e74c3c;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Product Info */
.hot-product-info {
    padding: 20px;
}

.hot-product-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
    line-height: 1.4;
}

.hot-product-info p {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 12px;
    line-height: 1.6;
}

/* Price & Action */
.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e74c3c;
}

.product-link {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.product-link:hover {
    opacity: 0.9;
    color: white;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.product-card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

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

.product-image {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--color-bg-alt);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #B8860B 0%, #DAA520 100%);
    color: white;
    font-size: 3rem;
    font-weight: bold;
}

.product-info {
    padding: var(--spacing-sm);
}

.product-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.product-desc {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

/* Collections Grid */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.collection-card {
    background: var(--color-white);
    padding: var(--spacing-md);
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

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

.collection-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.collection-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.collection-card p {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
}

.collection-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-accent);
}

.collection-link:hover {
    color: var(--color-accent-light);
}

/* About Section */
.about {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg-alt);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content {
    padding: var(--spacing-md);
}

.about-text {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    white-space: pre-line;
    line-height: 1.8;
}

/* Testimonials */
.testimonials {
    padding: var(--spacing-xl) 0;
    background: var(--color-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-md);
}

.testimonial-card {
    background: var(--color-bg-alt);
    padding: var(--spacing-md);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.testimonial-stars {
    color: #FFB800;
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
    font-style: italic;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #B8860B 0%, #DAA520 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
}

.testimonial-author strong {
    font-size: 0.9375rem;
    color: var(--color-text);
}

.testimonial-author span {
    font-size: 0.8125rem;
    color: var(--color-text-light);
    display: block;
}

/* Newsletter */
.newsletter {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, #B8860B 0%, #DAA520 100%);
    color: var(--color-white);
}

.newsletter-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
}

.newsletter-content p {
    opacity: 0.9;
    margin-bottom: var(--spacing-md);
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-sm);
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9375rem;
}

.newsletter-form button {
    padding: 0.875rem 1.5rem;
    background: var(--color-text);
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity var(--transition);
}

.newsletter-form button:hover {
    opacity: 0.9;
}

/* Footer */
.footer {
    background: #1A1A1A;
    color: var(--color-white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-brand {
    padding-right: var(--spacing-lg);
}

.footer-brand .logo {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    margin-bottom: var(--spacing-md);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.footer-column h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-white);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    transition: color var(--transition);
}

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

.footer-bottom {
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.footer-bottom-left p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8125rem;
}

.footer-icp a,
.footer-gongan a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8125rem;
    margin-right: var(--spacing-sm);
}

.footer-icp a:hover,
.footer-gongan a:hover {
    color: var(--color-accent);
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        padding: 80px var(--spacing-md) var(--spacing-md);
        box-shadow: var(--shadow-lg);
        transition: right var(--transition);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .collections-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== YOGIBO UX FIXES - Added by OpenClaw ===== */

/* Hide admin/editor elements for non-logged users */
body:not(.edit-mode) .admin-bar,
body:not(.edit-mode) .hero-image-toolbar,
body:not(.edit-mode) .hero-hotspot-hint {
    display: none !important;
}

body:not(.edit-mode) [contenteditable="true"] {
    contenteditable: "false" !important;
    cursor: default !important;
    outline: none !important;
}

/* Improve image placeholder */
.image-placeholder {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: #999 !important;
    font-size: 14px !important;
    text-align: center !important;
    padding: 20px !important;
    min-height: 200px !important;
}
.image-placeholder èêbefore {
    content: "" !important;
    display: block !important;
    width: 48px !important;
    height: 48px !important;
    margin-bottom: 8px !important;
    opacity: 0.5 !important;
}

/* Hide empty product cards */
.product-card:has(h3:empty),
.product-card:has(.product-price span:empty),
.hot-product-card:has(h3:empty) {
    display: none !important;
}

/* Trust bar styling */
.trust-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 24px 20px;
    background: #fafafa;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin: 0 0 40px 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
}

.trust-icon {
    width: 28px;
    height: 28px;
    background: #B8860B;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
    flex-shrink: 0;
}

/* Enhanced product card hover */
.product-card:hover,
.hot-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.18);
}

/* Fix language selector */
.lang-btn {
    cursor: pointer;
}
