/* =======================================
   页面整体基础样式
======================================= */
body {
    margin: 0;
    padding: 0;
    font-family: "Microsoft YaHei", sans-serif;
    color: #333;
    background-color: #f5f5f5;
}

/* 半透明覆盖层，保持内容可读 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: -1;
}

/* =======================================
   顶部标题 + 广告区 (1/4 高度)
======================================= */
/*.site-header-wrap {*/
/*    display: flex;*/
/*    width: 100%;*/
/*    height: 20vh; !* 1/4 屏幕高度 *!*/
/*    background-color: #101820; !* 深蓝色 *!*/
/*    align-items: center;*/
/*    justify-content: space-between;*/
/*    padding: 0;*/
/*    box-sizing: border-box;*/
/*}*/
.site-header-wrap {
    width: 1400px;
    height: 300px; /* 可调 */
    background-color: #101820;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    position: relative; /* 不随滚动悬浮 */
}

/*.site-header-wrap .header-left,*/
/*.site-header-wrap .header-right {*/
/*    width: 70%;*/
/*    height: 100%;*/
/*    !*width: 486px;*!*/
/*    !*height: 236px;*!*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*}*/
.site-header-wrap .header-left,
.site-header-wrap .header-right {
    width: 1000px;
    height: 300px;
    /*width: 486px;*/
    /*height: 236px;*/
    /*display: flex;*/
    justify-content: center;
    align-items: center;
}

.site-header-wrap .site-title {
    width: 30%;
    height: 100%;
    text-align: center;
    /* 隐藏文字，只用背景图 */
    text-indent: -9999px;
    background-image: url('/static/images/title.png'); /* 替换成你的标题图片路径 */
    background-size: cover; /* 保持比例，自适应高度 */
    background-repeat: no-repeat;
    background-position: center;
}


.site-title img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 保持比例缩放，不裁切 */
}

/* =======================================
   主体布局 (下方 3/4 高度)
======================================= */
/*.container {*/
/*    display: flex;*/
/*    width: 100%;*/
/*    height: 62.5vh; !* 剩余 3/4 高度 *!*/
/*}*/

.container {
    width: 1400px;
    min-height: 800px;
    /*min-width: 1300px; !* 页面不允许再小 *!*/
    margin: 0 auto;
    display: flex;
}


/*!* 左侧侧边栏 *!*/
/*.sidebar {*/
/*    width: 12.5%;*/
/*    background-color: #101820;*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    padding: 1% 0;*/
/*    box-sizing: border-box;*/
/*}*/
/* 左侧侧边栏 */
.sidebar {
    width: 200px;
    background-color: #101820;
    display: flex;
    flex-direction: column;
    padding: 1% 0;
    box-sizing: border-box;
}

.sidebar button {
    width: 90%;
    margin: 5% auto;
    padding: 10px;
    border: none;
    border-radius: 6px;
    background-color: #34495e;
    color: #ecf0f1;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.sidebar button:hover {
    background-color: #3d566e;
}

.sidebar button.active {
    background-color: #1abc9c;
    font-weight: bold;
}

/*!* 中间主体内容 *!*/
/*.content {*/
/*    width: 62.5%;*/
/*    background-color: #DADEF7;*/
/*    !*background-image: url('/static/images/bg.png');*!*/
/*    !*background-size: cover;*!*/
/*    !*background-position: center;*!*/
/*    !*background-repeat: no-repeat;*!*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    padding: 1%;*/
/*    box-sizing: border-box;*/
/*    overflow-y: auto; !* 内容过长出现滚动条 *!*/
/*}*/
.main-container {
    width: 100%;
    min-width: 1400px;
    display: flex;
    background-color: #DADEF7;
    margin: 0 auto;
}
.content {
    width: 900px;
    min-height: 800px;
    background-color: #DADEF7;
    /*overflow-y: auto;*/
    box-sizing: border-box;
}

/*!* 右侧广告区 *!*/
/*.right-ad {*/
/*    width: 25%;*/
/*    background-color: #101820;*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    align-items: flex-start;*/
/*    padding-top: 1%;*/
/*    box-sizing: border-box;*/
/*}*/
/* 右侧广告区 */
.right-ad {
    width: 300px;
    min-height: 800px;
    background-color: #101820;
    /*display: flex;*/
    justify-content: center;
    align-items: flex-start;
    padding-top: 1%;
    box-sizing: border-box;
}

/* =======================================
   公共广告框
======================================= */
.ad-box {
    width: 90%;
    height: 90%;
    background: #e7e7e7;
    border: 1px dashed #aaa;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
    font-size: 1rem;
}

/* =======================================
   公共 Section 样式
======================================= */
.section {
    margin-bottom: 15px;
}

.button-group {
    display: flex;
    gap: 10px;
}

.button-group button {
    flex: 1;
}

.submit-btn,
.primary-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    background-color: #1abc9c;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

.submit-btn:hover,
.primary-btn:hover {
    background-color: #16a085;
}

/* =======================================
   功能更新卡片布局
======================================= */
.updates-section {
    margin: 30px 0;
}

.updates-section h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    border-left: 4px solid #4cafef;
    padding-left: 8px;
}

.updates-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.update-card {
    flex: 1 1 20%;
    min-width: 200px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    padding: 20px;
}

.update-card h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #333;
}

.update-list h4 {
    margin: 10px 0 5px;
    font-size: 0.9rem;
    color: #4cafef;
}

.update-list ul {
    padding-left: 20px;
    margin: 0 0 10px;
}

.update-list ul li {
    list-style: disc;
    margin: 4px 0;
    font-size: 0.85rem;
    line-height: 1.5;
}

.update-list p {
    font-size: 0.75rem;
    color: #888;
    margin: 6px 0;
}

/* =======================================
   页尾样式
======================================= */
/*.footer-ad {*/
/*    display: flex;*/
/*    width: 100%;*/
/*    height: 10vh; !* 1/4 屏幕高度 *!*/
/*    background-color: #101820; !* 深蓝色 *!*/
/*    align-items: center;*/
/*    justify-content: space-between;*/
/*    padding: 0;*/
/*    box-sizing: border-box;*/
/*}*/


.footer-ad {
    /*display: flex;*/
    width: 1400px;
    height: 100px;
    background-color: #101820; /* 深蓝色 */
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    margin: 0 auto; /* 关键，让整个块在页面中居中 */
}

.site-footer {
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    padding: 5px 0;
}

.site-footer a {
    color: #0078d7;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* =======================================
   下拉菜单
======================================= */
.dropdown {
    position: relative;
    display: block;
    width: 100%;
}

.dropdown-btn {
    width: 100%;
    padding: 10px;
    background-color: #f8f8f8;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s;
}

.dropdown-btn:hover {
    background-color: #e6f0ff;
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 10;
    min-width: 160px;
}

.dropdown-content a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f0f6ff;
    color: #0078d7;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-btn.active {
    background-color: #4CAF50;
    color: white;
}

.dropdown-content a.active {
    font-weight: bold;
    color: #0066cc;
}
