/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo h1 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.logo span {
    font-size: 0.9rem;
    opacity: 0.9;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav a:hover {
    opacity: 0.8;
}

/* 头部小程序二维码样式 - 缩小尺寸 */
.header-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 1rem;
}

.qr-code-header {
    margin-bottom: 0.2rem;
}

.miniprogram-qr-header {
    width: 35px;
    height: 35px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.miniprogram-qr-header:hover {
    transform: scale(1.1);
}

.qr-placeholder-header {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(255,255,255,0.5);
}

.qr-icon-header {
    font-size: 1.2rem;
    color: white;
}

.qr-text-header {
    font-size: 0.65rem;
    color: white;
    opacity: 0.9;
    text-align: center;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
}

/* 主要内容区域 */
main {
    margin-top: 80px;
}

/* 首页横幅 */
.hero {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    padding: 4rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    color: #dc2626;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.btn-primary:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-secondary {
    background: white;
    color: #dc2626;
    border-color: #dc2626;
}

.btn-secondary:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

/* 产品区域 */
.products {
    padding: 4rem 0;
}

.apple-section {
    background: #fafafa;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: #dc2626;
    margin-bottom: 3rem;
    font-weight: bold;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.15);
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image {
    font-size: 4rem;
    opacity: 0.7;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-info p {
    color: #666;
    margin-bottom: 1rem;
}

.price {
    font-size: 1.2rem;
    color: #dc2626;
    font-weight: bold;
}

/* 关于我们 */
.about {
    padding: 4rem 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.5rem;
    color: #dc2626;
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-text p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.features {
    list-style: none;
}

.features li {
    color: #333;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.about-image {
    text-align: center;
}

.about-image .placeholder-image {
    font-size: 8rem;
    color: #dc2626;
    opacity: 0.7;
}

/* 店面照片样式 */
.store-photo {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.store-photo:hover {
    transform: scale(1.05);
}

.image-caption {
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

/* 联系我们 */
.contact {
    padding: 4rem 0;
    background: #fafafa;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #f3f4f6;
}

.contact-item h3 {
    color: #dc2626;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-item p {
    color: #666;
    line-height: 1.6;
}

/* 电话链接样式 */
.contact-item a[href^="tel:"] {
    color: #dc2626;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-item a[href^="tel:"]:hover {
    color: #b91c1c;
    text-decoration: underline;
}

/* 页脚 */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #dc2626;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

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

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

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #dc2626;
}

.footer-section p {
    color: #d1d5db;
    line-height: 1.6;
}

.footer-section a[href^="tel:"] {
    color: #dc2626;
    font-weight: 600;
}

.footer-section a[href^="tel:"]:hover {
    color: #f87171;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

.footer-bottom a {
    color: #dc2626;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #f87171;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .header-qr {
        margin-right: 0.5rem;
    }
    
    .miniprogram-qr-header {
        width: 30px;
        height: 30px;
    }
    
    .qr-placeholder-header {
        width: 30px;
        height: 30px;
    }
    
    .qr-text-header {
        font-size: 0.6rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
        text-align: center;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .store-photo {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .header .container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .logo {
        order: 1;
        flex: 1;
    }
    
    .header-qr {
        order: 2;
        margin-right: 0;
    }
    
    .mobile-menu-toggle {
        order: 3;
    }
    
    .miniprogram-qr-header {
        width: 25px;
        height: 25px;
    }
    
    .qr-placeholder-header {
        width: 25px;
        height: 25px;
    }
    
    .qr-icon-header {
        font-size: 1rem;
    }
    
    .qr-text-header {
        font-size: 0.55rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .products {
        padding: 2rem 0;
    }
    
    .about {
        padding: 2rem 0;
    }
    
    .contact {
        padding: 2rem 0;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .logo span {
        font-size: 0.8rem;
    }
    
    .store-photo {
        max-width: 200px;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.6s ease-out;
}

/* 悬停效果 */
.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(220, 38, 38, 0.15);
}

/* 焦点样式 */
a:focus,
button:focus {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
} 