/*
 Theme Name:   Iceberg Child
 Theme URI:    http://themeforest.net/user/nordstudio
 Description:  Child Theme for Iceberg
 Author:       Nord Studio
 Author URI:   http://themeforest.net/user/nordstudio
 Template:     iceberg
 Version:      1.0
 License:      
 License URI:  http://themeforest.net/licenses
 Tags:         black, green, silver, white, dark, light, two-columns, left-sidebar, fixed-layout, fluid-layout, responsive-layout, flexible-header, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, featured-images, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, photoblogging
 Text Domain:  iceberg
*/

@import url("../iceberg/style.css");

/* 卡片基本样式 */
.post-card {
    background-color: #fafafa; /* 浅灰背景，与主题f1f1f1协调 */
    border-radius: 8px; /* 圆角 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* 轻微阴影 */
    padding: 2rem; /* 内部间距 */
    margin-bottom: 2rem; /* 卡片间距 */
    transition: box-shadow 0.3s ease; /* 悬停动画 */
}

/* 悬停效果 */
.post-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 增强阴影 */
}

/* 卡片内的标题 */
.post-card h2,
.post-card h3 {
    margin-top: 0; /* 移除顶部间距 */
    margin-bottom: 1rem; /* 与正文间距 */
    color: var(--global--heading-color); /* 继承主题颜色 */
}

/* 卡片内的段落 */
.post-card p {
    margin: 0 0 1rem; /* 段落间距 */
    color: var(--global--text-color);
}

/* 卡片内的表格 */
.post-card table {
    width: 100%;
    margin: 0; /* 移除默认外边距 */
    border-collapse: collapse;
}

.post-card th,
.post-card td {
    padding: 0.8rem; /* 表格内间距 */
    border: 1px solid rgba(51, 51, 51, 0.15); /* 继承主题边框 */
}

/* 卡片内的图片 */
.post-card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px; /* 图片圆角 */
    margin: 1rem 0;
}

/* 响应式调整 */
@media (max-width: 757px) {
    .post-card {
        padding: 1.5rem; /* 移动端缩小内间距 */
        margin-bottom: 1.5rem;
    }
    .post-card h2 { font-size: 2rem; }
    .post-card h3 { font-size: 1.6rem; }
}

.post-card h2 {
    background: #e8f0e8; /* 浅绿背景 */
    padding: 0.5rem 1rem;
    border-radius: 4px;
}