/**
 * help.css
 * 帮助中心页面独立样式
 * 复用 trade.css 的双栏布局与 notices.css 的基础组件样式
 */

/* =========================================
   1. 基础布局 (复用自 trade.css)
   ========================================= */
.trade-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    width: 1300px;
    margin: 0 auto;
}

.trade-layout .subpage-card {
    width: auto;
    flex: 1;
    min-width: 0;
    margin: 0;
}

.trade-sidebar {
    width: 220px;
    background: transparent;
    border-radius: 8px;
    box-shadow: 0px 2px 12px rgba(4, 44, 101, 0.1);
    overflow: hidden;
}

.trade-sidebar-header {
    height: 100px;
    background-image: url('../images/left_title.png');
    background-size: cover;
    background-position: center;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 30px;
}

.trade-sidebar-header h2 {
    font-size: 22px;
    font-weight: normal;
    margin: 0 0 2px 0;
}

.trade-sidebar-header p {
    font-size: 12px;
    opacity: 0.4;
    margin: 0;
    line-height: 1.5;
}

.trade-sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #FFFFFF;
}

.trade-menu-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 24px 0 20px;
    text-decoration: none;
    color: #333333;
    background-color: #FFFFFF;
    font-size: 16px;
    border-bottom: 1px solid rgba(153, 153, 153, 0.1);
    transition: background-color 0.2s, color 0.2s;
}

.trade-menu-item:last-child a {
    border-bottom: none;
}

.trade-menu-item:not(.current) a:hover {
    color: #FE9900;
}
.trade-menu-item:not(.current) a:hover svg path {
    stroke: #FE9900;
}

.trade-menu-item.current a {
    color: #FFFFFF;
    background-color: transparent;
    background-image: url('../images/left_selected.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: none;
}

.trade-menu-item.current a svg path {
    stroke: #FFFFFF;
}

/* =========================================
   2. 基础组件 (复用自 notices.css)
   ========================================= */
.subpage-banner {
    position: relative;
    width: 100%;
    height: 276px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subpage-banner-container {
    width: 1300px;
    margin: 0 auto;
    padding-left: 0;
    margin-top: -20px;
}

.subpage-banner-title {
    font-family: 'Source Han Sans CN', sans-serif;
    font-weight: 700;
    font-size: 50px;
    color: #FFFFFF;
    letter-spacing: 5px;
    margin: 0;
    margin-bottom: 24px;
}

.subpage-banner-subtitle {
    font-family: 'Source Han Sans CN', sans-serif;
    font-size: 20px;
    color: #FFFFFF;
    margin: 0;
}

.bg-gray {
    background-color: #F3F3F3;
}

.subpage-container {
    width: 100%;
    background-color: #F3F3F3;
    padding: 32px 0;
}

.subpage-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0px 2px 12.25px rgba(4, 44, 101, 0.1);
    padding: 16px 24px 24px 24px;
    box-sizing: border-box;
}

.subpage-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.subpage-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.subpage-title-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
}

.subpage-card-title h2 {
    font-family: 'Source Han Sans CN', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #333333;
    margin: 0;
}

.subpage-card-search {
    display: flex;
    align-items: center;
    width: 248px;
    height: 34px;
    border-radius: 44px;
    border: 1px solid rgba(153, 153, 153, 0.2);
    padding: 0 12px;
    box-sizing: border-box;
    background-color: #FFFFFF;
}

.subpage-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 13px;
    color: #333333;
    background: transparent;
}
.subpage-search-input::placeholder {
    color: #BAC4CE;
}

.subpage-search-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subpage-list-container {
    display: flex;
    flex-direction: column;
    height: 560px;
}

.subpage-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
    border-bottom: 1px solid rgba(153, 153, 153, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.subpage-list-item:hover {
    border-bottom-color: #FE9900;
}
.subpage-list-item:hover .subpage-list-title {
    color: #FE9900;
}
.subpage-list-item:hover .subpage-list-date {
    color: #FE9900;
}

.subpage-list-item-left {
    display: flex;
    align-items: center;
    flex: 1;
    overflow: hidden;
}

.subpage-list-icon {
    position: relative;
    width: 15px;
    height: 15px;
    margin-right: 10px;
    background-image: url('../images/list_icon.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.subpage-list-title {
    font-size: 14px;
    color: #333333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.subpage-list-item-right {
    margin-left: 20px;
    flex-shrink: 0;
}

.subpage-list-date {
    font-size: 14px;
    color: #999999;
    transition: color 0.2s;
}

.subpage-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}

.pagination-pagesize {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    font-size: 14px;
    color: #666666;
    border: 2px solid #ECEDF2;
    background: #FFFFFF;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 16px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #FFFFFF;
    border: 2px solid #ECEDF2;
    border-radius: 4px;
    cursor: pointer;
}

.pagination-btn.disabled {
    cursor: not-allowed;
    opacity: 0.3;
}

.pagination-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    background: #FFFFFF;
    border: 2px solid #ECEDF2;
    color: #666666;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box;
}

.pagination-num.current {
    border-color: #FE9900;
    color: #FE9900;
    font-weight: bold;
}

.pagination-ellipsis {
    color: #666666;
    padding: 0 5px;
}

.pagination-goto {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666666;
    margin-left: 10px;
}

.goto-input {
    width: 40px;
    height: 34px;
    border: 2px solid #ECEDF2;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    color: #333333;
    outline: none;
}
.goto-input:focus {
    border-color: #FE9900;
}

/* =========================================
   3. 帮助中心特定修改 (如果有)
   ========================================= */
/* 隐藏筛选器（如页面需求不展示，则可通过此隐藏，
   但根据“不改动任何结构”原则，HTML 中仍保留结构） */
/* .subpage-filter-container { display: none; } */

.empty-data {
    text-align: center;
    padding: 60px 0;
    color: #999;
    font-size: 14px;
}