/**
 * 动静自交 - 静态展示页面样式
 * 严格按照设计图实现响应式布局
 * 支持320px到1920px屏幕尺寸
 */

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

/* 基础字体和颜色设置 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Source Han Sans SC', sans-serif;
    line-height: 1.6;
    color: #514F4E;
    background-color: #ffffff;
    font-size: 16px;
}

/* 顶部横幅区域 */
.top-banner {
    width: 100%;
    height: 300px;
    background-image: url('assets/top_banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.banner-container {
    text-align: center;
}

.logo {
    width: 300px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* 主要内容区域 */
.main-content {
    padding: 40px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.content-container {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.content-section {
    margin-bottom: 40px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section p {
    font-size: 18px;
    line-height: 1.8;
    color: #514F4E;
    text-align: justify;
    text-indent: 0;
}

/* 资源卡片区域 */
.resource-cards {
    padding: 0px 20px 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 扫码提示默认隐藏，平板与移动端显示 */
.scan-tip {
    display: none;
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 10px;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    align-items: stretch;
}

.resource-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.card-image {
    flex-shrink: 0;
}

.card-image img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 4px;
}

.card-content {
    flex: 1;
}

.card-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #514F4E;
    margin-bottom: 4px;
}

.card-content p {
    font-size: 14px;
    color: #999;
    line-height: 1.6;
}

/* 页脚区域 */
.footer {
    background-color: #fafafa;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
}

.footer p {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.5;
}

.footer p:last-child {
    margin-bottom: 0;
}

.copyright {
    font-weight: 500;
}

.address {
    color: #777;
}

.icp {
    color: #888;
    font-size: 13px;
}

/* 备案链接颜色继承正文颜色，避免默认蓝色/紫色 */
.icp a,
.icp a:visited,
.icp a:hover,
.icp a:active {
    color: inherit;
}

/* 响应式设计 - 平板设备 (768px-1024px) */
@media screen and (max-width: 1024px) {
    .top-banner {
        height: 250px;
    }
    
    .logo {
        width: 250px;
    }
    
    .content-container {
        padding: 0;
    }
    
    .content-section p {
        font-size: 17px;
    }
    
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .resource-card {
        padding: 25px 18px;
    }
    
    .card-image img {
        width: 80px;
        height: 80px;
    }
    
    .card-content h3 {
        font-size: 18px;
    }
    .scan-tip {
        display: block;
    }
}

/* 响应式设计 - 移动设备 (375px-768px) */
@media screen and (max-width: 768px) {
    .top-banner {
        height: 250px;
    }
    
    .logo {
        width: 200px;
    }
    
    .main-content {
        padding: 40px 24px;
    }
    
    .content-container {
        padding: 0;
        border-radius: 0;
    }
    
    .content-section {
        margin-bottom: 30px;
    }
    
    .content-section p {
        font-size: 16px;
        line-height: 1.7;
    }
    
    .resource-cards {
        padding: 30px 24px;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .resource-card {
        padding: 20px 15px;
        gap: 15px;
    }
    
    .card-image img {
        width: 80px;
        height: 80px;
    }
    
    .card-content h3 {
        font-size: 18px;
        margin-bottom: 4px;
    }
    
    .card-content p {
        font-size: 13px;
    }
    
    .footer {
        padding: 30px 15px;
    }
    
    .footer p {
        font-size: 13px;
        margin-bottom: 6px;
    }
    .scan-tip {
        display: block;
        font-size: 12px;
        color: #888;
        margin-top: 12px;
    }
}

/* 响应式设计 - 小屏移动设备 (320px-375px) */
@media screen and (max-width: 375px) {
    .top-banner {
        height: 250px;
    }
    
    .logo {
        width: 180px;
    }
    
    .main-content {
        padding: 30px 20px;
    }
    
    .content-container {
        padding: 0;
    }
    
    .content-section p {
        font-size: 15px;
        text-indent: 0;
    }
    
    .resource-cards {
        padding: 20px 12px;
    }
    
    .resource-card {
        padding: 18px 12px;
        gap: 12px;
    }
    
    .card-image img {
        width: 55px;
        height: 55px;
    }
    
    .card-content h3 {
        font-size: 16px;
    }
    
    .card-content p {
        font-size: 12px;
    }
    
    .footer {
        padding: 25px 12px;
    }
    
    .footer p {
        font-size: 12px;
    }
    .scan-tip {
        display: block;
        font-size: 12px;
        color: #888;
        margin-top: 12px;
    }
}

/* 响应式设计 - 超大屏设备 (1920px以上) */
@media screen and (min-width: 1920px) {
    .top-banner {
        height: 400px;
    }
    
    .logo {
        width: 400px;
    }
    
    .main-content {
        max-width: 1400px;
    }
    
    .content-container {
        padding: 0;
    }
    
    .content-section p {
        font-size: 20px;
        line-height: 1.9;
    }
    
    .resource-cards {
        max-width: 1400px;
    }
    
    .cards-container {
        gap: 15px;
    }
    
    .resource-card {
        padding: 40px 30px;
    }
    
    .card-image img {
        width: 100px;
        height: 100px;
    }
    
    .card-content h3 {
        font-size: 22px;
    }
    
    .card-content p {
        font-size: 16px;
    }
}