/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 移动端触摸优化 */
button, .nav-menu a, .buy-button, .cta-button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* 改善移动端滚动 */
html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式（统一 site-header 与 navbar 风格） */
.site-header, .navbar {
    background: #2c3e50;
    color: white;
    padding: 12px 0;
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.site-header .header-inner, .nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1, .logo h2 {
    color: #3498db;
    font-size: 1.6rem;
    font-weight: 700;
}

.main-nav ul, .nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.main-nav a, .nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.18s ease, background 0.18s ease;
    padding: 8px 10px;
    border-radius: 6px;
}

.main-nav a:hover, .nav-menu a:hover {
    color: #3498db;
    background: rgba(52,152,219,0.08);
}

/* 首页横幅 */
/* hero/intro */
.intro, .hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 100px 0 60px; /* 更紧凑的高度 */
    margin-top: 0; /* header 为 sticky，页面不需额外 margin */
}

.intro h2, .hero-content h1 {
    font-size: 2.4rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.intro .lead, .hero-content p {
    font-size: 1.05rem;
    margin-bottom: 1.4rem;
    opacity: 0.95;
}

.btn, .cta-button {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.btn.primary, .cta-button.primary {
    background: linear-gradient(90deg,#667eea,#764ba2);
    color: #fff;
    box-shadow: 0 8px 24px rgba(102,124,234,0.18);
}

.btn.primary:hover, .cta-button.primary:hover {
    transform: translateY(-3px);
}

/* 内容区域（卡片式） */
.section-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(15,23,36,0.06);
    padding: 26px;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    font-weight: 700;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #555;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature {
    background: #fff;
    padding: 1.6rem;
    border-radius: 12px;
    box-shadow: 0 6px 22px rgba(15,23,36,0.06);
    transition: transform 0.22s ease;
}

.feature:hover {
    transform: translateY(-6px);
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.feature p {
    color: #666;
}

/* 产品展示 */
.products {
    padding: 80px 0;
    background: white;
}

.products h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    font-weight: 700;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.product-image {
    height: 250px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 10px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.product-image:hover img {
    transform: scale(1.05);
}

.placeholder-image {
    font-size: 4rem;
    opacity: 0.8;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.price {
    font-size: 1.5rem;
    color: #e74c3c;
    font-weight: 700;
    margin-bottom: 1rem;
}

.description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.buy-button {
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.buy-button:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
}

/* 联系我们 */
.contact {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    font-weight: 700;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.contact-item p {
    color: #666;
    font-size: 1rem;
}


/* 统一并改进页脚样式 */
.site-footer {
    background: #0b1220; /* 更深色，突出可读性 */
    color: #cbd5e1;
    padding: 36px 0;
}

.site-footer .footer-inner {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: center; /* center by default so single copyright centers */
    width: 100%;
}

.site-footer .contact p, .site-footer .copyright p {
    margin: 0;
    color: #cbd5e1;
    opacity: 0.95;
}

.site-footer .contact a {
    color: #93c5fd;
    text-decoration: none;
}

.site-footer .footer-columns {
    width: 100%;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    align-items: center;
}

.site-footer .left, .site-footer .right {
    flex: 1;
}

/* 强制版权区域居中显示 */
.site-footer .copyright {
    text-align: center;
}
/* 如果同时存在 contact 和 copyright，左右布局时让 contact 居左，版权居右 */
.site-footer .footer-inner .contact + .copyright {
    margin-left: auto;
}

@media (max-width: 768px) {
    .site-footer .footer-columns { flex-direction: column; text-align: center; }
    .site-footer .right { text-align: center; }
    .site-footer .footer-inner { flex-direction: column; gap: 10px; }
}

/* 响应式调整（保留简洁规则） */
@media (max-width: 768px) {
    .site-header .header-inner, .nav-container { padding: 10px 16px; }
    .main-nav ul, .nav-menu { gap: 8px; }
    .intro { padding: 60px 12px; }
    .section-card { padding: 18px; }
    .site-footer .footer-inner { padding: 10px 0; }
    .container { padding: 0 14px; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 10px 15px;
    }
    
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-menu a {
        padding: 8px;
        font-size: 0.85rem;
    }
    
    .logo h2 {
        font-size: 1.3rem;
    }
    
    .hero {
        padding: 120px 15px 60px;
        margin-top: 85px;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .about, .products, .contact {
        padding: 50px 0;
    }
    
    .about h2, .products h2, .contact h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .about-text p {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .feature {
        padding: 1.2rem;
    }
    
    .feature h3 {
        font-size: 1.1rem;
    }
    
    .feature p {
        font-size: 0.9rem;
    }
    
    .product-image {
        height: 200px;
        padding: 8px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-info h3 {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }
    
    .price {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .description {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
        line-height: 1.4;
    }
    
    .buy-button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .contact-item {
        padding: 1.2rem;
    }
    
    .contact-item h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .contact-item p {
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 1.5rem 0;
    }
    
    .footer p {
        font-size: 0.9rem;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .nav-menu {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .nav-menu a {
        padding: 6px;
        font-size: 0.8rem;
    }
    
    .hero-content h1 {
        font-size: 1.4rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    .product-card {
        max-width: 100%;
    }
    
    .contact-info {
        gap: 1rem;
    }
}

/* 滚动动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 动画保留 */
.product-card { animation: fadeInUp 0.6s ease forwards; }
.product-card:nth-child(even) { animation-delay: 0.1s; }
.product-card:nth-child(3n) { animation-delay: 0.2s; }
/* -------- 麋鹿测试介绍页样式（参考原始主题） -------- */
.site-header {
    background: #2c3e50; /* 与原始 navbar 颜色一致 */
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.site-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
}

.site-header .logo h1 {
    font-size: 1.25rem;
    color: #3498db;
    font-weight: 700;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 16px;
    align-items: center;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
    background: rgba(52,152,219,0.08);
    color: #3498db;
}

.intro {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-align: center;
    padding: 80px 0;
}

.intro .lead {
    color: rgba(255,255,255,0.95);
    font-size: 1.05rem;
    margin: 12px auto 0;
    max-width: 860px;
    line-height: 1.8;
}

/* 将中间的说明段落采用卡片样式，便于阅读 */
.background, .method, .scope, .privacy, .useful, .faq {
    background: #ffffff;
    padding: 48px 0;
}

.background .container, .method .container, .scope .container, .privacy .container, .useful .container, .faq .container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(15,23,36,0.06);
    padding: 28px;
}

section h2, section h3 {
    color: #2c3e50;
}

.site-footer {
    background: #2c3e50;
    color: #cbd5e1;
    padding: 28px 0;
}

.site-footer a {
    color: #93c5fd;
}

/* 按钮样式参考原站色系 */
.btn.primary {
    background: linear-gradient(90deg,#667eea,#764ba2);
    color: #fff;
}

.btn.secondary {
    background: rgba(52,152,219,0.06);
    color: #2c3e50;
}

@media (max-width: 768px) {
    .main-nav ul { gap: 8px; }
    .site-header .header-inner { padding: 12px 16px; }
    .intro { padding: 60px 12px; }
    .background .container, .method .container { padding: 20px; }
}

@media (min-width: 769px) {
    .container { max-width: 1100px; }
}

/* end 麋鹿介绍页样式 */
/* ------------------ 覆盖修复：避免白色卡片覆盖页脚 ------------------ */
/* 给主要内容卡片增加底部间距，确保与 footer 有间隔 */
.background .container,
.method .container,
.scope .container,
.privacy .container,
.useful .container,
.faq .container {
    margin-bottom: 36px; /* 保证与页脚的视觉间隔 */
}

/* 确保 footer 始终在顶部层级，避免被内容阴影覆盖 */
.site-footer {
    position: relative;
    z-index: 1000;
}

/* footer 内的 container 取消白色背景（以最后规则为准） */
.site-footer .container {
    background: transparent !important;
    padding: 0 20px;
}

/* 如果仍出现白色块，缩短卡片的阴影扩散范围 */
.background .container, .method .container, .privacy .container, .faq .container {
    box-shadow: 0 6px 20px rgba(15,23,36,0.05);
}

/* end 覆盖修复 */
section {
    padding: 40px 0;
}

section h2, section h3 {
    color: #1f2937;
    margin-bottom: 12px;
    font-weight: 700;
}

.container { /* ensure spacing feels right for the intro page */
    max-width: 980px;
    margin: 0 auto;
    padding: 0 16px;
}

.site-footer {
    background: #0f1724;
    color: #cbd5e1;
    padding: 32px 0;
}

.site-footer a {
    color: #93c5fd;
}

/* 简单的按钮风格（展示/链接用） */
.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.btn.primary {
    background: #2563eb;
    color: #fff;
}

.btn.secondary {
    background: #eef2ff;
    color: #3730a3;
    border: 1px solid #e0e7ff;
}

/* 简洁的排版优化 */
.intro .lead {
    font-size: 1.05rem;
}

@media (min-width: 768px) {
    .site-header .logo h1 { font-size: 1.3rem; }
    .main-nav a { font-size: 1rem; }
    section { padding: 60px 0; }
}

/* end 麋鹿介绍页样式 */
