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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #ffffff; /* 改为白色背景 */
    color: #000000; /* 文字颜色改为黑色 */
    line-height: 1.6;
    padding: 10px;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    background: #ffffff;
}

/* 顶部导航栏 */
.navbar {
    background: #f5f5f5; /* 改为浅灰色背景 */
    border-radius: 12px;
    padding: 12px 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 50px;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 100%;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: #333333; /* 改为深灰色文字 */
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 5px;
    position: relative;
}

.nav-links a:hover {
    color: #4f46e5;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4f46e5;
    transition: width 0.3s ease;
}

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

.nav-links a.active {
    color: #4f46e5;
    font-weight: bold;
}

.nav-links a.active::after {
    width: 100%;
    background-color: #4f46e5;
}

/* Banner区域 */
.banner {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 37.5%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-text {
    text-align: center;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.banner-text h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.banner-text p {
    font-size: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 二维码联系方式区块 */
.contact-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 1.8rem;
}

.qr-codes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
    justify-content: center;
}

.qr-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 10px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.qr-label {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
    text-align: center;
    word-break: break-all;
}

/* 底部联系信息 */
.bottom-contact {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.contact-call {
    font-size: 1.8rem;
    color: #FFD700;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.hotline {
    font-size: 1.5rem;
    color: #FF1493;
    font-weight: 600;
    margin: 15px 0;
}

.features {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed #ced4da;
}

.features p {
    font-size: 1.4rem;
    color: #e63757;
    font-weight: 600;
    margin: 12px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* 图片区块标题 */
.gallery-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 0 10px;
    position: relative;
}

.gallery-title {
    font-size: 1.8rem;
    font-weight: 600;
    display: inline-block;
    padding-bottom: 8px;
    position: relative;
}

.gallery-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #4f46e5, #8b5cf6);
    border-radius: 3px;
}

/* 栏目区块 - 使用lanmu.jpg作为背景 */
.category-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 30px;
}

.category-section .gallery-title {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.category-section .gallery-title::after {
    background: linear-gradient(to right, #ffc107, #ff6b6b) !important;
}

/* 图片网格布局 */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 40px;
}

.image-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.image-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.image-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

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

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

/* 水印样式 */
.watermark {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #4f46e5, #8b5cf6);
    color: white;
    padding: 5px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: auto;
    width: auto;
}

.watermark.off {
    background: linear-gradient(135deg, #999, #666);
    padding: 5px 8px;
    min-width: auto;
    width: auto;
}

.image-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 50px;
}

.image-info h3 {
    font-size: 1.1rem;
    color: #222222;
    text-align: center;
    margin: 0;
    line-height: 1.2;
}

/* 图片计数徽章 */
.image-count-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* 响应式设计 - 平板 */
@media (min-width: 768px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .qr-codes {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
    
    .banner-text h1 {
        font-size: 5.5rem;
    }
    
    .banner-text p {
        font-size: 1.8rem;
    }
    
    .image-container {
        height: 350px;
    }
    
    .image-info h3 {
        font-size: 1.2rem;
    }
}

/* 响应式设计 - 桌面 */
@media (min-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .banner {
        padding-bottom: 30%;
    }
    
    .image-container {
        height: 350px;
    }
    
    .image-info h3 {
        font-size: 1.25rem;
    }
}

/* 响应式设计 - 手机端 */
@media (max-width: 767px) {
    .banner {
        padding-bottom: 56.25%;
    }
    
    .banner-text h1 {
        font-size: 3rem;
    }
    
    .banner-text p {
        font-size: 1.2rem;
        max-width: 90%;
    }
    
    .navbar {
        padding: 15px 15px;
        flex-direction: column;
        gap: 20px;
    }
    
    .logo {
        height: 60px;
    }
    
    .nav-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links a {
        font-size: 1rem;
        padding: 10px 8px;
    }
    
    .contact-call {
        font-size: 1.4rem;
    }
    
    .hotline {
        font-size: 1.2rem;
    }
    
    .features p {
        font-size: 1.1rem;
        text-align: center;
    }
    
    /* 手机端图集显示优化 - 每行2个，99.99%宽度铺满 */
    .gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 4px !important;
        padding: 2px !important;
        width: 99.99% !important;
        margin: 0 auto !important;
    }
    
    .image-card {
        margin: 1px !important;
        border-radius: 8px !important;
    }
    
    .image-container {
        height: 280px !important;
    }
    
    .image-info {
        padding: 6px !important;
        min-height: 36px !important;
    }
    
    .image-info h3 {
        font-size: 0.85rem !important;
    }

    .category-section {
        padding: 10px !important;
        border-radius: 12px !important;
        margin-bottom: 15px !important;
    }
}

/* 超小屏幕手机优化 */
@media (max-width: 480px) {
    .logo {
        height: 70px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-links a {
        font-size: 0.95rem;
    }
    
    .qr-codes {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .qr-image {
        width: 120px;
        height: 120px;
    }
    
    .qr-label {
        font-size: 0.8rem;
    }
    
    /* 超小屏幕图集显示优化 - 每行2个，99.99%宽度铺满 */
    .gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 3px !important;
        padding: 1px !important;
        width: 99.99% !important;
        margin: 0 auto !important;
    }
    
    .image-card {
        margin: 1px !important;
        border-radius: 6px !important;
    }
    
    .image-container {
        height: 240px !important;
    }
    
    .image-info {
        padding: 4px !important;
        min-height: 32px !important;
    }
    
    .image-info h3 {
        font-size: 0.75rem !important;
    }

    .category-section {
        padding: 6px !important;
        border-radius: 8px !important;
    }
}

/* 超大屏幕手机优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .gallery {
        gap: 8px !important;
        padding: 5px !important;
    }

    .image-container {
        height: 320px !important;
    }
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #666666;
    font-size: 0.9rem;
    border-top: 1px solid #e0e0e0;
}

/* 苹果设备优化 */
@supports (-webkit-touch-callout: none) {
    .image-card {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
}

/* 后台管理样式 */
.status-available {
    color: green;
    font-weight: bold;
}

.status-off {
    color: #999;
    background-color: #f0f0f0;
    padding: 3px 8px;
    border-radius: 4px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #4f46e5;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    z-index: 999;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.back-to-top.visible {
    opacity: 1;
}

.back-to-top:hover {
    background: #4338ca;
    transform: translateY(-3px);
}

/* 联系区块高亮 */
.contact-section.highlight,
.bottom-contact.highlight {
    animation: highlight 2s ease;
    border: 2px solid #4f46e5;
}

@keyframes highlight {
    0% { background-color: rgba(79, 70, 229, 0.1); }
    100% { background-color: transparent; }
}

/* iOS设备详情页图片显示优化 */
.ios-device .slider-main {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.ios-device .main-image {
    max-width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
}

.ios-device .detail-container {
    padding: 10px 5px;
}

.image-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #fff;
    font-size: 16px;
}

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

/* 栏目定位标识 */
.category-section {
    scroll-margin-top: 100px;
}