/* ========== 最高优先级：强制表格内容居中 ========== */
.new_css table td,
.new_css table th,
.new_css .quill-better-table td,
.new_css .quill-better-table th,
table.quill-better-table td,
table.quill-better-table th {
    text-align: center !important;
}

.new_css table td p,
.new_css table th p,
.new_css .qlbt-cell-line,
.new_css .ql-align-center,
p.qlbt-cell-line,
p.ql-align-center {
    text-align: center !important;
    display: block !important;
    margin: 0 !important;
}
/* ========== 结束：强制居中样式 ========== */

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

/* 颜色方案 */
:root {
    --primary-color: #007aff;
    --secondary-color: #002aff;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --border-color: #bdc3c7;
    --background-color: #FFF8DC; /* 内容区域背景色 */
    --body-background: #8B4513; /* 页面背景色 - 木色 */
}

/* 全局样式 */
body {
    background-color: #ab6736 ;
    font-family: 'Arial', sans-serif;
}

/* 内容容器 */
.content-wrapper {
    max-width: 1000px;
    margin: 2px auto;
    padding: 10px;

}

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.3s ease;
    margin-top: -12px; !important;
    border: 0px solid var(--border-color);
    border-bottom: none !important;
    position: relative;
    padding: 5px !important;

}


/* 卡片悬停效果 */
.card:hover {
    transform: translateY(-1px);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

/* 卡片头部装饰条 */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

/* 卡片内容 */
.card-content {
    padding: 5px;
}

/* 模块间距样式 - 已禁用 */
.module-spacing {
    display: none;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
    font-size: 16px;
}

h1::after, h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

/* 表格样式 */
table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 auto !important;
    margin-bottom: -10px;
    background-color: white;
    border: 2px solid #ddd !important;
    border-radius: 0px;
    overflow: hidden;
}

th, td {
    padding: 8px 10px !important;
    text-align: center !important;
    border: 1px solid #ddd !important;
}

/* 特别针对 Quill 表格 */
.quill-better-table {
    border: 2px solid #fff !important;
}

.quill-better-table td,
.quill-better-table th {
    border: 1px solid #fff !important;
    text-align: center !important;
}

.quill-better-table p,
.quill-better-table td p,
.qlbt-cell-line,
p.ql-align-center {
    text-align: center !important;
    margin: 0 !important;
}

/* 确保所有表格内容居中 */
td p,
th p {
    text-align: center !important;
}

/* 按钮样式 */
button, .btn {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border:none;
    border-radius: 1px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 图片容器样式 */
.img-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top:-25px;
}

.img-container img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

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

/* 背景条样式 */
#dh-card-container .mk-h1 {
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%) !important;
    padding: 0.4rem 0 !important;
    margin: -5px -35px 10px -35px !important;
    border-radius: 0 !important;
    width: calc(100% + 90px) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    z-index: 1 !important;
    position: relative !important;
    left: -35px !important;
    color: white !important;
    text-align: center !important;
    font-size: 16px !important;
    font-weight: bold !important;
    font-family: 'Arial', sans-serif !important;

}

/* 头部链接区域样式 */
#image-href-container {
    background-color: #ab6736 !important;
    padding: 0px;
    margin-top: 0 !important;
}

/* 确保image_href.php中的表格容器背景色生效 */
#image-href-container .table-container {
    background-color: #ab6736 !important;
}

/* 针对tmzs_fsfc.php中的image_href.php容器样式 */
#tmzs-image-href {
    background-color: #ab6736 !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#tmzs-image-href .table-container {
    background-color: #ab6736 !important;
    border: none !important;
    padding: 10px !important;
    margin: 10px !important;
    box-sizing: border-box !important;
}

/* 额外添加：确保.main-buttons不会影响#tmzs-image-href */
#tmzs-image-href.main-buttons {
    border: none !important;
    background-color: #ab6736 !important;
    padding: 0 !important;
    margin: 0 !important;
}

#tmzs-image-href .image-table {
    background-color: #ab6736 !important;
    border: none !important;
    border-collapse: collapse !important;
    margin: 0 !important;
}

#tmzs-image-href .image-table td {
    background-color: #ab6736 !important;
    border: none !important;
    padding: 0 !important;
}

#tmzs-image-href img {
    border: none !important;
    box-shadow: none !important;
    background-color: #ab6736 !important;
}

#tmzs-image-href a {
    display: inline-block !important;
    background-color: #ab6736 !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
/* 响应式调整 */
@media (max-width: 768px) {
    img {
        margin: 0.1rem auto;
        border-radius: 10px;
    }
}

@media (max-width: 608px) {
    .content-wrapper {
        padding: 2px;
    }

    .card-content {
        padding: 3px;
    }

    th, td {
        padding: 6px 8px;
    }

    .header-bar, .new-header-div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
 
    .gsgllist_css, .newslist_css {
        padding: 0 5px;
    }
}

@media (max-width: 480px) {
    img {
        margin: 0.01rem auto;
        border-radius: 8px;
    }
}


  #recordIframe {
    height: 240px;
}

@media (max-width: 375px) {
  #recordIframe {
    height: 230px;
}
  #xtopframe {
    height: 80px;
  }
 #linkframe{
    height: 430px;
}


}

@media (max-width: 480px) {
  #recordIframe {
    height: 230px;
}
  #xtopframe {
    height: 80px;
  }
 #linkframe{
    height: 430px;
}


}


@media (min-width: 481px) and (max-width: 768px) {
  #recordIframe {
    height: 230px;
  }
  #xtopframe {
    height: 100px;
  }
 #linkframe{
    height: 650px;
}

}


@media (min-width: 769px) {
  #recordIframe {
    height: 450px;
  }
  #xtopframe {
    height: 120px;
  }
 #linkframe{
    height: 650px;
}

}

