/* ---------------- 通用样式 ---------------- */
body {
    font-family: 'Poppins', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #e8e8e8;
    color: #333;

    zoom: 0.85; /* 全局缩小15% */
}

h1,
h2,
h3 {
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 600;
    /* 标题加粗 */
}

/* 页眉样式 */
header {
    background-color: #5986d8;
    padding: 20px;
    text-align: center;
    color: white;
}

header h1 {
    font-size: 30px;
    margin-bottom: 10px;
}

header p {
    font-size: 18px;
    line-height: 1.6;
    color: #f0f0f0; /* 白色或浅色，和背景对比 */
    margin: 0;
}

/* 语言切换按钮样式 */
.lang-switch {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1000;
}

.lang-switch a {
    background: rgba(100, 100, 100, 0.6);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.lang-switch a:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Modal background */
.modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.6);
}

/* Modal content box */
.modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 20px 30px;
    border-radius: 12px;
    width: 85%;
    max-width: 700px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    position: relative;
}

blockquote {
    margin: 20px auto;
    padding: 12px 20px;
    border-left: 4px solid #5986d8; /* 左边一条竖线 */
    background: #f9f9f9;
    font-style: italic;
    color: #444;
}

/* Close button */
.close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #555;
    cursor: pointer;
}
.close:hover {
    color: black;
}

/* Info button in header */
.info-btn {
    margin-top: 10px;
    padding: 6px 12px;
    border: none;
    border-radius: 20px;
    background: rgba(100, 100, 100, 0.6);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.info-btn:hover {
    background: rgba(0,0,0,0.8);
}


/* 导航栏样式 */
nav {
    background-color: #3e3e3e;
}

/* 导航链接样式 */
nav a {
    color: white;
    font-size: 20px;
    text-decoration: none;
    padding: 12px 20px;
    display: inline-block;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #555;
}

/* ---------------- 影视类型卡样式 ---------------- */
.type-card {
    background-color: white;
    padding: 20px;
    width: 150px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s;
    margin: 10px;
}

.type-card:hover {
    transform: scale(1.05);
}

/* 影视返回按钮样式 */
.back-btn {
    width: 230px;
    height: 50px;
    cursor: pointer;
    background-color: #5986d8;
    border: none;
    color: white;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s;
    margin-bottom: 20px;

    /* 关键：让文字居中 */
    display: flex;
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
}

.back-btn:hover {
    background-color: #7395d4;
}

/* ---------------- 页面内容区 ---------------- */
section {
    padding: 20px;
    max-width: 1000px;
    margin: auto;
}

h2 {
    border-bottom: 2px solid #5986d8;
    padding-bottom: 5px;
}

/* ---------------- 卡片容器 ---------------- */
.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 15px;
}

/* ---------------- 卡片样式 ---------------- */
.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px;
    width: 200px;
}

/* 卡片内图片样式 */
.card img {
    width: 100%;
    border-radius: 4px;
}

/* ---------------- 文案样式 ---------------- */
.quote-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.quote-card {
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    width: 290px;
    transition: transform 0.2s;
}

.quote-card:hover {
    transform: translateY(-5px);
}

.quote-card .chinese {
    font-weight: 1500px;
    font-size: 18px;
    margin-bottom: 6px;
    margin-top: 1px;
}

.quote-card .english {
    font-style: italic;
    color: #555;
    font-size: 16px;
}

/* ---------------- 音乐样式 ---------------- */
.card a {
    color: inherit;
    /* 继承父元素颜色 */
    text-decoration: none;
    /* 去掉下划线 */
}

/* 可选：悬停效果，让用户知道这是可点击的 */
.card a:hover {
    text-decoration: underline; /* 悬停时显示下划线 */
    color: #5986d8; /* 或你网站主题色 */
}



/* ---------------- 美食样式 ---------------- */
#food .card h3 {
    margin: 6px 0; /* 减小上下间距 */
    font-size: 20px;
}

/* food 卡片里的段落 */
#food .card p {
    margin: 10px 0; /* 再收紧段落间距 */
    line-height: 1.5; /* 保证可读性 */
    font-size: 16px;
}

/* ---------------- 音乐样式 ---------------- */
/* 音乐卡片整体 */
#music .card {
    padding-top: 10px; /* 让文字靠上 */
}

/* 音乐卡片标题 */
#music .card h3 {
    margin: 8px 0; /* 缩小标题间距 */
    font-size: 20px;
}

/* 音乐卡片段落 */
#music .card p {
    margin: 3px 0; /* 缩小段落上下空隙 */
    line-height: 1.5;
    font-size: 16px;
}


/* ---------------- 照片墙样式 ---------------- */
.photo-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: flex-start; /* 每个卡片按内容高度对齐 */
}

.photo-card {
    width: 290px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    background-color: #fff;
    overflow: hidden;
}

.photo-card summary {
    list-style: none; /* 去掉箭头默认样式 */
    cursor: pointer;
}

.photo-card summary img {
    width: 100%;
    display: block;
    border-bottom: 1px solid #ddd;
}

.photo-card summary p {
    text-align: center;
    margin: 1px 0;
    font-size: 18px;
    font-weight: bold;
    padding: 6px 10px;
}

.photo-detail {
    padding: 2px 10px;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.photo-detail p {
    margin: 4px 0;
}

.photo-card summary::-webkit-details-marker {
        display: none; /* 专门去掉 Chrome/Safari 的小三角 */
    }

/* ---------------- 页脚样式 ---------------- */
footer {
    text-align: center;
    padding: 15px;
    background-color: #333;
    color: white;
    margin-top: 20px;
}

/* ================== 手机端适配 ================== */
@media only screen and (max-width: 600px) {
    /* 页眉 */
    header {
        padding: 15px;
        text-align: center;
    }

    header h1 {
        font-size: 24px;
    }

    header p {
        font-size: 14px;
    }

    /* 语言切换按钮 */
    .lang-switch a {
        padding: 4px 8px;
        font-size: 0.75rem;
        border-radius: 14px;
    }

    /* 关于本站按钮 */
    .info-btn {
        padding: 4px 8px;
        font-size: 0.75rem;
        border-radius: 14px;
    }

    /* 导航保持一排 */
    nav {
        display: flex;
        justify-content: space-around;
        flex-wrap: nowrap;
        background-color: #3e3e3e;
    }

    nav a {
        font-size: 14px;
        padding: 10px;
        text-align: center;
    }

    /* 影视类型选择：三列 */
    #movie-types .type-card {
        width: 30%;
        margin: 1px;
    }

    #movie-types {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* 三张卡片整体居中 */
    }

    /* 影视返回按钮 */
    .back-btn {
        width: 92.5%;
        height: 40px;
        font-size: 14px;
        margin-bottom: 10px;
        padding: 0;
        display: flex;
        justify-content: center; /* 水平居中 */
        align-items: center; /* 垂直居中 */
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        margin: 0 auto 10px auto;
    }

    /* 影视卡片：两列 */
    #movie-content .card {
        width: 45%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        box-sizing: border-box;
        padding: 14px;
    }

    /* 图片 */
    #movie-content .card img {
        width: 100%;
        height: auto;
        border-radius: 6px;
        margin-bottom: 6px;
    }

    /* 标题 */
    #movie-content .card h3 {
        font-size: 15px;
        margin: 4px 0;
    }

    /* 文本 */
    #movie-content .card p {
        font-size: 13px;
        margin: 2px 0;
        line-height: 1.4;
    }

    /* 文案卡片、音乐卡片、照片墙：两列 */
    .quote-container,
    .card-container:not(#movie-content):not(#movie-types),
    .photo-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .quote-card,
    .card,
    .photo-card {
        width: 40%; /* 两张一排 */
    }

    .quote-card .chinese {
        font-size: 15px;
        margin-bottom: 6px;
        margin-top: 1px;
    }

    .quote-card .english {
        font-size: 13px;
    }

    #food .card h3 {
        margin: 6px 0; /* 减小上下间距 */
        font-size: 16px;
    }

    /* food 卡片里的段落 */
    #food .card p {
        margin: 10px 0; /* 再收紧段落间距 */
        line-height: 1.5; /* 保证可读性 */
        font-size: 13px;
    }

    .photo-detail {
        font-size: 13px;
    }

    /* 音乐类型选择 */
    #music-types .type-card {
        width: 30%;
        margin: 1px;
    }

    
    #music-types .type-card h3 {
        text-align: center;
        width: 100%; /* 保证能居中整个标题 */
    }

    /* 音乐卡片：两列 */
    #music-content .card {
        width: 45%;
        display: flex; /* 弹性布局 */
        flex-direction: column; /* 垂直排列 */
        align-items: flex-start; /* 文本左对齐 */
        box-sizing: border-box;
        padding: 14px;
    }

    /* 音乐卡片标题 */
    #music-content .card h3 {
        font-size: 15px;
        margin: 4px 0;
    }

    /* 文本 */
    #music-content .card p {
        font-size: 13px;
        margin: 2px 0;
        line-height: 1.4;
    }

    .photo-card summary::-webkit-details-marker {
        display: none; /* 专门去掉 Chrome/Safari 的小三角 */
    }

    .photo-card summary p {
        font-size: 16px;
    }

    /* 页脚 */
    footer {
        font-size: 12px;
        padding: 10px;
    }
}

/* ================== ipad端适配portrait/vertical ================== */
@media only screen and (min-width: 601px) and (max-width: 1400px) {

    /* 样式 */
    /* body {
        zoom: 0.85;
    } */

    header h1 {
        font-size: 25px;
        margin-bottom: 10px;
    }

    header p {
        font-size: 16px;
        line-height: 1.6;
        color: #f0f0f0; /* 白色或浅色，和背景对比 */
        margin: 0;
    }

    /* 导航栏样式 */
    nav {
        background-color: #3e3e3e;
    }

    /* 导航链接样式 */
    nav a {
        color: white;
        font-size: 18px;
        text-decoration: none;
        padding: 12px 20px;
        display: inline-block;
        transition: background-color 0.3s;
    }

    .card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 15px;
}

    /* 影视 */
    #movies .card-container {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: flex-start /* 左对齐 */;
    }

    /* 影视返回按钮样式 */
    .back-btn {
        width: 230px;
        height: 50px;
        cursor: pointer;
        background-color: #5986d8;
        border: none;
        color: white;
        border-radius: 5px;
        font-size: 16px;
        transition: background-color 0.3s;
        margin-bottom: 20px;

        /* 关键：让文字居中 */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 美食卡片容器 */
    #food .card-container {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: flex-start;
    }

    /* 音乐 */
    #music .card-container {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: flex-start;
    }

    .photo-card summary::-webkit-details-marker {
        display: none; /* 专门去掉 Chrome/Safari 的小三角 */
    }
}
