/* ============================================================
   iMissoft — Global stylesheet
   Extracted from the inline <style> block in index.html
   ============================================================ */

/* Reset and Base Styles */
:root {
    --primary-color: #1e40af;
    --secondary-color: #3b82f6;
    --accent-color: #06b6d4;
    --dark-color: #1e3a8a;
    --light-color: #f0f9ff;
    --gray-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --border-radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--dark-color);
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-color);
    margin-bottom: 3rem;
    max-width: 700px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    color: var(--dark-color);
    border: 2px solid #dbeafe;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: rgba(59, 130, 246, 0.05);
}

/* Header */
header {
    padding: 24px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

/* 页头右侧操作区：按钮与汉堡按钮需横向排列，否则汉堡按钮会换行 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo span {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

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

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

.nav-link.active::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark-color);
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    top: -300px;
    right: -200px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--gray-color);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 90%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Products Section */
.products {
    background-color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.product-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #f1f5f9;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 250px;
    background-color: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.product-image-item {
    height: 100%;
    width: auto;
}

.product-content {
    padding: 32px;
}

.product-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color) 0%, #0ea5e9 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.product-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.product-description {
    color: var(--gray-color);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

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

.product-price span {
    font-size: 1rem;
    color: var(--gray-color);
    text-decoration: line-through;
    margin-left: 8px;
}

/* Benefits Section */
.benefits {
    background-color: #f8fafc;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.benefit-card {
    background-color: white;
    padding: 40px 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid #f1f5f9;
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.benefit-icon i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.benefit-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.benefit-description {
    color: var(--gray-color);
}

/* Testimonials */
.testimonials {
    background-color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background-color: white;
    padding: 40px 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid #f1f5f9;
}

.testimonial-rating {
    color: #fbbf24;
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.testimonial-text {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 24px;
    color: var(--dark-color);
}

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

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-info h4 {
    font-weight: 600;
    margin-bottom: 4px;
}

.author-info p {
    color: var(--gray-color);
    font-size: 0.875rem;
}

/* About Section */
.about {
    background-color: #f8fafc;
}

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

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 24px;
    color: var(--gray-color);
}

.about-features {
    margin-top: 32px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.about-feature i {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.25rem;
    margin-right: 12px;
    margin-top: 4px;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: white;
    text-align: center;
    padding: 100px 0;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.cta p {
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}

.cta .btn {
    background-color: white;
    color: var(--primary-color);
    padding: 16px 40px;
    font-size: 1.125rem;
}

.cta .btn:hover {
    background-color: #f1f5f9;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: #cbd5e1;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 24px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.75rem;
    }
    
    .hero-container,
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    /* 页头紧凑化：窄屏下收紧 logo 与按钮，避免放不下 */
    .logo img {
        height: 34px;
    }

    .header-actions .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    /* 下拉菜单改为相对页头定位：top:100% 永远紧贴页头底部，
       不再写死 80px（页头高度会随换行/字号变化而对不齐） */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        gap: 1.5rem;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    /* 原为 display:block —— 块级元素会强制换行，把汉堡按钮挤到按钮下方 */
    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }
    
    .hero {
        padding-top: 140px;
    }
    
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    section {
        padding: 80px 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .btn {
        w    .btn {
        width: 100%;
        justify-content: center;
    }

    /* 页头按钮不能拉满整行，否则会挤出屏幕 */
    .header-actions .btn {
        width: auto;
    }

    .container {
        padding: 0 20px;
    }
}

/* ============================================================
   Product detail pages
   ============================================================ */

.product-title a:hover {
    color: var(--primary-color);
}

/* ---------- Breadcrumb ---------- */
/* 顶部留白需大于固定页头高度（约 88px），否则面包屑会被遮住 */
.breadcrumb {
    padding: 116px 0 0;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb li + li::before {
    content: "/";
    color: #cbd5e1;
}

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

.breadcrumb [aria-current] {
    color: var(--dark-color);
    font-weight: 600;
}

/* ---------- Product hero ---------- */
.product-hero {
    padding: 42px 0 90px;
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
}

.product-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.product-hero-image {
    background: #eff6ff;
    border-radius: var(--border-radius);
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.product-hero-image img {
    width: 100%;
    max-width: 440px;
    height: auto;
}

.product-hero-info h1 {
    font-size: 2.75rem;
    line-height: 1.15;
    margin-bottom: 18px;
}

.product-hero-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 26px;
}

.product-hero-price span {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--gray-color);
    text-decoration: line-through;
    margin-left: 10px;
}

.product-intro {
    color: var(--gray-color);
    margin-bottom: 26px;
    font-size: 1.05rem;
}

.product-highlights {
    margin-bottom: 34px;
}

.product-highlights li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 13px;
    color: #374151;
    line-height: 1.6;
}

.product-highlights li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 9px;
    width: 7px;
    height: 12px;
    border-right: 2.5px solid var(--success-color);
    border-bottom: 2.5px solid var(--success-color);
    transform: rotate(42deg);
}

.product-cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ---------- Shared detail sections ---------- */
.product-section {
    padding: 84px 0;
}

.product-section.alt {
    background: #f0f9ff;
}

.product-body-text {
    max-width: 900px;
    margin: 0 auto;
    color: #374151;
    line-height: 1.85;
}

/* ---------- Specifications ---------- */
.product-spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 44px;
}

.product-spec {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 26px;
    text-align: center;
}

.product-spec-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-color);
    margin-bottom: 10px;
}

.product-spec-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
}

/* ---------- Target group ---------- */
.target-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.target-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    padding: 26px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--primary-color);
}

.target-card .target-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.3rem;
}

.target-card span {
    font-weight: 600;
    color: var(--dark-color);
}

/* ---------- Related products ---------- */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 44px;
}

.related-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 26px 20px;
    text-align: center;
    transition: var(--transition);
}

.related-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: #dbeafe;
}

.related-card img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    margin-bottom: 16px;
}

.related-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.related-card .related-price {
    color: var(--primary-color);
    font-weight: 700;
}

@media (max-width: 900px) {
    .product-hero-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .product-hero-info h1 {
        font-size: 2rem;
    }

    .product-hero-image {
        padding: 30px;
    }
}
