/*
 * Classic Style - Main CSS
 * Complete migration from 站点模版/folding-bed-website-pc/styles.css
 * DO NOT MODIFY - Keep exact same as original template
 */

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

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #1e293b;
    --accent-color: #10b981;
    --text-color: #334155;
    --text-light: #64748b;
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 8px;
    --radius-lg: 12px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

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

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

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

.btn-success:hover {
    background-color: #059669;
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-text {
    background: none;
    color: var(--primary-color);
    padding: 0;
}

.btn-text:hover {
    color: var(--primary-dark);
}

/* Cart Button */
.cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s;
}

.cart-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.cart-btn i {
    font-size: 16px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #dc2626;
    color: white;
    font-size: 12px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s;
}

.cart-count.show {
    opacity: 1;
    transform: scale(1);
}

/* Flying Cart Animation */
.flying-item {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, left, top, opacity;
}

.flying-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Announcement Bar */
.announcement-bar {
    background-color: #173257;
    color: white;
    padding: 10px 0;
}

.announcement-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
}

.announcement-link {
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.announcement-link:hover {
    text-decoration: underline;
}

.announcement-text {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.announcement-nav {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 12px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.announcement-nav:hover {
    opacity: 1;
}

/* Language Section */
.language-section {
    background-color: var(--bg-light);
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.language-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.language-item {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
}

.language-item:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.language-item:hover .country-slogan {
    color: rgba(255, 255, 255, 0.9);
}

.language-item:hover .trophy-icon {
    color: #fbbf24;
}

.trophy-icon {
    color: #f59e0b;
    font-size: 14px;
}

.flag-icon {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.country-name {
    font-weight: 600;
}

.country-slogan {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 400;
}

/* Header */
.header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
}

.logo i {
    color: var(--primary-color);
    font-size: 24px;
}

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

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

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

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(30, 41, 59, 0.85) 0%, rgba(30, 41, 59, 0.6) 50%, rgba(30, 41, 59, 0.2) 100%);
}

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

.hero-content {
    max-width: 600px;
    margin-left: 0;
    padding-left: 40px;
}

.badge {
    display: inline-block;
    background-color: #fef3c7;
    color: #92400e;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
}

.hero-buttons .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.hero-buttons .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.trust-badges {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.trust-badges span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.trust-badges i {
    color: var(--accent-color);
}

.hero-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-light);
    font-size: 16px;
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

/* Products Section */
.products-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.products-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.product-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background-color: var(--bg-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-row .product-image {
    position: relative;
    height: 100%;
    min-height: 220px;
    overflow: hidden;
}

.product-row .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-row:hover .product-image img {
    transform: scale(1.03);
}

.product-row .product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 1;
}

.product-badge.hot {
    background-color: #ef4444;
    color: white;
}

.product-badge.new {
    background-color: var(--accent-color);
    color: white;
}

.product-row .product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-row .product-info h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-row .product-desc {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.5;
}

.product-row .product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.product-row .product-specs span {
    font-size: 12px;
    color: var(--text-color);
    background-color: var(--bg-light);
    padding: 5px 10px;
    border-radius: 14px;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.product-price .unit {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-light);
}

.product-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

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

.stat-label {
    font-size: 14px;
    color: var(--text-light);
}

/* CTA Banner */
.cta-banner {
    padding: 40px 0;
    background-color: var(--bg-color);
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.cta-info {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-info span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
}

.cta-info i {
    color: var(--accent-color);
}

/* Why Choose Us Section */
.why-choose-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.why-choose-content {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 20px;
    padding: 50px 60px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.why-choose-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 50px;
    position: relative;
}

.why-choose-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #f59e0b;
    border-radius: 2px;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-choose-box {
    text-align: center;
    padding: 20px;
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.why-choose-box:hover {
    border-color: var(--primary-color);
    background-color: #f8fafc;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.box-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-color);
    line-height: 1.5;
    margin-bottom: 20px;
    min-height: 42px;
}

.box-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.box-icon i {
    font-size: 48px;
    color: #1e3a5f;
}

.box-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-row:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-image {
    width: 100%;
    height: 100%;
    min-height: 320px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-content {
    padding: 40px;
}

.service-icon-large {
    width: 72px;
    height: 72px;
    background-color: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-icon-large i {
    font-size: 32px;
    color: var(--primary-color);
}

.service-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 16px;
}

.service-content p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* About Folding Bed Section */
.about-folding-bed-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.about-folding-bed-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-folding-bed-content {
    padding-right: 40px;
}

.about-folding-bed-content h2 {
    font-size: 42px;
    font-weight: 700;
    color: #0d7377;
    margin-bottom: 24px;
    line-height: 1.2;
}

.about-folding-bed-content p {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-folding-bed-content .btn {
    margin-top: 20px;
    background-color: #c75b39;
    border: none;
}

.about-folding-bed-content .btn:hover {
    background-color: #a84a2f;
}

.about-folding-bed-image {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

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

/* News Section */
.news-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background-color: var(--bg-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.news-content {
    padding: 24px;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.news-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-content p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.6;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.read-more:hover {
    color: var(--primary-dark);
}

/* Back to Top Section */
.back-to-top-section {
    background-color: #d4e8e8;
    padding: 20px 0;
    text-align: center;
}

.back-to-top-link {
    color: #0d7377;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.back-to-top-link:hover {
    color: #095c5f;
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-logo i {
    color: var(--primary-color);
}

.footer-description {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-contact li,
.footer-links li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14px;
    color: #94a3b8;
}

.footer-contact i {
    color: var(--primary-color);
    margin-top: 3px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.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: #64748b;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .products-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .products-grid,
    .services-grid,
    .news-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cta-info {
        flex-direction: column;
        gap: 16px;
    }
}

/*
 * WordPress Specific Additions
 * Only add styles for WordPress menu structure
 */

/* WordPress Navigation Menu Support */
.nav ul,
.nav li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav li {
    display: inline-block;
}

.nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

.nav a:hover,
.nav .current-menu-item > a,
.nav .current_page_item > a {
    color: var(--primary-color);
}

/* Screen Reader Text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}