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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #e0e0e0;
    line-height: 1.6;
}

/* 头部导航样式 */
header {
    display: flex;
    justify-content: center; /* 整个导航栏居中 */
    align-items: center;
    height: 70px;
    padding: 0 30px;
    background: rgba(10, 25, 35, 0.85);
    backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between; /* Logo和菜单左右分开 */
    align-items: center;
    width: 100%;
    max-width: 1400px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 28px;
    font-weight: 700;
    color: #4fc3f7;
    text-shadow: 0 0 10px rgba(79, 195, 247, 0.5);
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.03);
    text-shadow: 0 0 15px rgba(79, 195, 247, 0.8);
}

.logo i {
    color: #4fc3f7;
}

nav {
    margin-left: auto; /* 将导航菜单推到最右侧 */
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover, nav a.active {
    color: #4fc3f7;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #4fc3f7;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover::after, nav a.active::after {
    width: 70%;
}


.user-actions {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(45deg, #2196F3, #21CBF3);
    color: white;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 主体内容部分 */
.container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

.main-content {
    display: flex;
    gap: 30px;
    background: rgba(25, 40, 55, 0.7);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(79, 195, 247, 0.2);
}

/* 左侧图片区域 */
.left-image {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    padding: 10px;
}

.image-container img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
}

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

.image-actions {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(40, 60, 80, 0.7);
    border-radius: 30px;
    color: #e0e0e0;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.action-btn:hover {
    background: rgba(79, 195, 247, 0.25);
    color: #4fc3f7;
}

/* 右侧文本区域 */
.right-info {
    flex: 0 0 380px;
    padding: 30px;
    background: rgba(20, 35, 50, 0.8);
    border-left: 1px solid rgba(79, 195, 247, 0.15);
    display: flex;
    flex-direction: column;
}

.right-info h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #4fc3f7;
}

.image-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-item {
    flex: 1 0 45%;
}

.meta-label {
    font-size: 14px;
    color: #90a4ae;
    margin-bottom: 5px;
}

.meta-value {
    font-size: 18px;
    font-weight: 500;
    color: #e0e0e0;
}

.description {
    margin-bottom: 25px;
    font-size: 17px;
    line-height: 1.7;
}

.qr-container {
    background: rgba(30, 45, 60, 0.6);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(79, 195, 247, 0.2);
}

.qr-container h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #4fc3f7;
}

.qr-container p {
    margin-bottom: 20px;
    font-size: 15px;
    color: #b0bec5;
}

.qr-code {
    display: inline-block;
    padding: 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.qr-code img {
    width: 160px;
    height: 160px;
}

/* 相关图片展示 */
.section-title {
    font-size: 28px;
    margin: 40px 0 20px;
    color: #4fc3f7;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 相关图片展示区域优化 */
.related-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); /* 调整最小宽度 */
    gap: 20px; /* 调整间距 */
    margin-bottom: 50px;
}

.related-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    aspect-ratio: 9/16; /* 调整为手机壁纸比例 */
    transition: all 0.4s ease;
    background: linear-gradient(135deg, #1a2b3c, #2c3e50); /* 添加渐变背景 */
}

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

.related-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(33, 150, 243, 0.35);
}

.related-image:hover img {
    transform: scale(1.05); /* 减小缩放比例 */
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 20px 15px 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 50%; /* 增加覆盖区域高度 */
}

.related-image:hover .image-overlay {
    opacity: 1;
}

.image-overlay h4 {
    color: white;
    font-size: 18px; /* 增大字体 */
    margin-bottom: 8px;
    text-align: center;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.image-overlay p {
    color: #b0bec5;
    font-size: 14px;
    text-align: center;
    margin-bottom: 10px;
}

/* 添加下载按钮效果 */
.download-btn {
    display: none; /* 默认隐藏 */
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(33, 150, 243, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.related-image:hover .download-btn {
    display: block;
}

.download-btn:hover {
    background: #2196F3;
    transform: scale(1.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .related-images {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .image-overlay h4 {
        font-size: 16px;
    }
}

/* 底部 */
footer {
    background: rgba(10, 25, 35, 0.85);
    padding: 40px 0 20px;
    text-align: center;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    color: #4fc3f7;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

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

.footer-links a:hover {
    color: #4fc3f7;
}

.copyright {
    color: #90a4ae;
    font-size: 14px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

/* 响应式设计 */
@media (max-width: 1100px) {
    .main-content {
        flex-direction: column;
    }

    .right-info {
        border-left: none;
        border-top: 1px solid rgba(79, 195, 247, 0.15);
    }

    .left-image {
        padding-bottom: 10px;
    }
}

@media (max-width: 900px) {
    nav ul {
        gap: 15px;
    }

    nav a {
        font-size: 16px;
        padding: 6px 12px;
    }
}

@media (max-width: 768px) {
    header {
        height: auto;
        padding: 15px;
    }

    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    nav {
        margin-left: 0;
        width: 100%;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 30px;
    background: rgba(15, 30, 45, 0.7);
    font-size: 14px;
    color: #90a4ae;
}

.breadcrumb a {
    color: #4fc3f7;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 微数据优化 */
.seo-content {
    max-width: 1400px;
    margin: 30px auto;
    padding: 20px;
    background: rgba(25, 40, 55, 0.6);
    border-radius: 12px;
    line-height: 1.8;
}

.seo-content h2 {
    color: #4fc3f7;
    margin-bottom: 15px;
    font-size: 24px;
}

/* 重置 ul 和 li 的默认样式 */
ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
li {
    margin: 0;
    padding: 0;
}
