/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}

body {
    background-color: #ffffff;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 改写须知页面样式 */
.rewrite-notice-page {
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.rewrite-notice-page h1 {
    /* 统一使用 page-title 类样式 */
}
.notice-section {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.notice-section h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}
.notice-section p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 10px 0;
}
.notice-section p:last-child {
    margin-bottom: 0;
}
.notice-section p strong {
    color: #ff4d4f;
}
.loading {
    text-align: center;
    padding: 50px;
    color: #666;
    overflow: auto;
}

/* 侧边栏部分标题样式 */
.menu-section-title {
    font-size: 14px;
    font-weight: bold;
    color: #999;
    padding: 8px 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== 补充：侧边栏核心样式（解决收缩基础缺失） ========== */
.sidebar {
    width: 250px; /* 展开宽度，和sidebar.css保持一致 */
    height: 100vh; /* 占满视口高度 */
    background-color: #fff; /* 侧边栏背景改为白色 */
    color: #333; /* 文字颜色改为深色 */
    border-right: 1px solid #eee; /* 添加右侧边框，增加层次感 */
    flex-shrink: 0; /* 关键：防止flex布局下被挤压变形 */
    transition: width 0.3s ease, box-shadow 0.3s ease; /* 收缩动画和阴影变化 */
    overflow-y: auto; /* 允许垂直滚动 */
    position: fixed; /* 固定定位，不随页面滚动 */
    top: 0;
    left: 0;
    z-index: 999; /* 防止被遮挡 */
    box-shadow: 0 0 14px rgba(0,0,0,0.2); /* 14px阴影，由深到浅 */
}

/* 侧边栏收缩样式 */
.sidebar.collapsed {
    width: 60px; /* 收缩宽度，和main-content联动值匹配 */
    box-shadow: none; /* 隐藏时阴影消失 */
}

/* 可选：收缩后隐藏侧边栏文字，只留图标 */
.sidebar.collapsed .sidebar-text {
    display: none;
}

/* 顶部导航条 */
.top-nav {
    height: 60px;
    background-color: #fff;
    border-bottom: 2px solid #d7e8fc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    position: fixed;
    top: 0;
    left: 250px;
    right: 0;
    z-index: 1001;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* 侧边栏收缩时的顶部导航条样式 */
.sidebar.collapsed + .top-nav {
    left: 60px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    /* 隐藏侧边栏 */
    .sidebar {
        display: none;
    }
    
    /* 顶部导航条宽度100% */
    .top-nav {
        left: 0 !important;
        width: 100%;
    }
    
    /* 登录注册按钮移位至中间 */
    .nav-right {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* 内容区域调整 */
    .content {
        margin-left: 0 !important;
    }
}

/* 调整侧边栏的顶部边距，避免被导航条遮挡 */
/* 移除 margin-top，让侧边栏顶到头 */
.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}
.menu-btn {
    width: 40px;
    height: 40px;
    border: none;
    background-color: transparent;
    font-size: 20px;
    cursor: pointer;
    color: #1677ff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}
.menu-btn:hover {
    background-color: #f0f7ff;
}
.nav-links {
    display: flex;
    gap: 30px;
}
.nav-link {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}
.nav-link:hover {
    color: #1677ff;
    background-color: #f0f7ff;
}
.nav-link.active {
    color: #1677ff;
    background-color: #e8f3ff;
}
.nav-right {
    display: flex;
    gap: 15px;
}
.nav-btn {
    padding: 8px 20px;
    background-color: #fff;
    color: #333;
    border: 2px solid #d7e8fc;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}
.nav-btn:hover {
    border-color: #1677ff;
    color: #1677ff;
}
.login-btn {
    background-color: #1677ff;
    color: #fff;
    border-color: #1677ff;
}
.login-btn:hover {
    background-color: #096dd9;
    border-color: #096dd9;
    color: #fff;
}

/* 顶部标题 */
.page-header {
    margin-bottom: 30px;
}
.main-title {
    font-size: 36px;
    color: #1677ff;
    font-weight: bold;
    margin-bottom: 8px;
}
.run-time {
    font-size: 14px;
    color: #666;
}

/* 功能按钮区 */
.function-section {
    margin-bottom: 40px;
}
.section-title {
    font-size: 22px;
    margin-bottom: 20px;
    color: #333;
}
.function-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 600px;
    margin: 0 auto;
}
.func-btn {
    display: block;
    padding: 20px 0;
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: opacity 0.2s;
}
.func-btn:hover {
    opacity: 0.9;
}
.func-btn.red {
    background-color: #f5222d;
}
.func-btn.blue {
    background-color: #1890ff;
}
.func-btn.green {
    background-color: #52c41a;
}
.btn-title {
    display: block;
    font-size: 20px;
    margin-bottom: 4px;
}
.btn-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

/* 公告区 */
.notice-section {
    width: 600px;
    margin: 0 auto;
    padding: 15px 20px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    background-color: #fafafa;
    text-align: left;
}
.notice-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}
.notice-icon {
    color: #f5222d;
    margin-right: 6px;
}
.notice-list {
    list-style: none;
    margin-bottom: 10px;
}
.notice-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #eee;
}
.notice-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.notice-link {
    color: #1890ff;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}
.notice-desc {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
    line-height: 1.4;
}
.more-notice {
    display: block;
    text-align: right;
    color: #1890ff;
    font-size: 13px;
    text-decoration: none;
}
.more-notice:hover {
    text-decoration: underline;
}

/* 首页样式 */
.home-page {
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: visible; /* 修复：避免嵌套overflow冲突 */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}
.home-header {
    text-align: center;
    margin-bottom: 20px;
}
.home-header .title {
    font-size: 36px;
    color: #1677ff;
    font-weight: 700;
    margin-bottom: 10px;
}
.home-header .running-time {
    font-size: 16px;
    color: #666;
}
#home-timeDisplay {
    color: #1677ff;
    font-weight: 700;
}
.features-title {
    font-size: 24px;
    color: #333;
    margin: 20px 0;
    text-align: center;
}
.feature-buttons-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px;
    border: 1px solid #e8f4ff;
    border-radius: 8px;
    background-color: #fff;
    padding: 20px;
    box-sizing: border-box;
}
.feature-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
}
.feature-btn {
    height: 78px;
    width: 100%;
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-family: "Microsoft Yahei", sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.feature-btn:hover {
    opacity: 0.95;
}
.btn-line1 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 2px;
}
.btn-line2 {
    font-size: 10px;
    font-weight: 600;
    opacity: 0.9;
}
.feature-btn.red {
    background-color: #ff4d4f;
}
.feature-btn.blue {
    background-color: #1677ff;
}
.feature-btn.green {
    background-color: #52c41a;
}
.home-bottom-section {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid #e8f4ff;
    padding-top: 20px;
    box-sizing: border-box;
}
.announcement-container {
    border: 1px solid #e8f4ff;
    border-radius: 8px;
    background-color: #fff;
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
    text-align: left;
}
.announcement-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid #1677ff;
    padding-bottom: 10px;
}
.announcement-icon {
    font-size: 18px;
    margin-right: 8px;
    color: #1677ff;
}
.announcement-title {
    font-size: 18px;
    color: #1677ff;
    font-weight: 700;
}
.announcement-item {
    padding: 15px 0;
    border-bottom: 1px dashed #e8f4ff;
}
.announcement-item:last-child {
    border-bottom: none;
}
.announcement-subtitle {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    text-align: left;
}
.announcement-text {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 10px;
}
.announcement-text:last-child {
    margin-bottom: 0;
}
.checkmark {
    color: #52c41a;
    font-weight: bold;
    margin-right: 5px;
    margin-left: 5px;
}
.activity-link {
    color: #1677ff;
    text-decoration: none;
    font-weight: 500;
}
.activity-link:hover {
    text-decoration: underline;
}

/* 改写效果展示页面样式 */
.showcase-page {
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: visible; /* 修复：避免嵌套overflow冲突 */
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    margin: 0 auto;
}
.showcase-page .home-header {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}
.showcase-page .title {
    font-size: 28px;
    color: #333;
    margin: 10px 0;
}
.showcase-page .running-time {
    font-size: 16px;
    color: #666;
    margin: 5px 0;
}
.showcase-page .features-title {
    font-size: 22px;
    color: #333;
    margin: 20px 0;
    text-align: center;
    width: 100%;
}
.showcase-page .feature-buttons-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.showcase-page .feature-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
}
.showcase-page .feature-btn {
    width: 280px;
    height: 100px;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
}
.showcase-page .feature-btn.red {
    background-color: #e63946;
}
.showcase-page .feature-btn.blue {
    background-color: #1d3557;
}
.showcase-page .feature-btn.green {
    background-color: #457b9d;
}
.showcase-page .btn-line1 {
    font-size: 18px;
    margin-bottom: 5px;
}
.showcase-page .btn-line2 {
    font-size: 14px;
    opacity: 0.9;
}
.showcase-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
    padding: 10px 0;
    box-sizing: border-box;
}
.showcase-card {
    border: 1px solid #e8f3ff;
    border-radius: 8px;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(22, 119, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    height: 100%;
}
.showcase-img-container {
    width: 100%;
    height: 180px;
    border: 1px solid #e8f3ff;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    background-color: #f8fbff;
    box-sizing: border-box;
}
.showcase-img-placeholder {
    color: #999;
    font-size: 14px;
    text-align: center;
    padding: 10px;
}
.showcase-card-info {
    width: 100%;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
}
.showcase-date {
    font-size: 12px;
    color: #999;
}
.showcase-tag {
    display: inline-block;
    font-size: 10px;
    color: #1677ff;
    background-color: #e8f3ff;
    padding: 2px 8px;
    border-radius: 4px;
}
.showcase-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    flex-grow: 1;
}
.showcase-detail-btn {
    padding: 6px 12px;
    background-color: #1677ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    align-self: center;
}
.showcase-detail-btn:hover {
    background-color: #096dd9;
}

/* 改写须知样式 */
.rewrite-notice-page {
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: visible; /* 修复：避免嵌套overflow冲突 */
    padding: 20px;
    margin: 0 auto;
    max-width: 1000px;
}
.rewrite-notice-page h1 {
    /* 统一使用 page-title 类样式 */
}

/* 代理须知样式 */
.agent-notice-page {
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: visible; /* 修复：避免嵌套overflow冲突 */
    padding: 20px;
    margin: 0 auto;
    max-width: 1000px;
}
.agent-notice-page h1 {
    /* 统一使用 page-title 类样式 */
}

.notice-section {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.notice-section h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}
.notice-section p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
    margin-bottom: 10px;
}
.notice-section p:last-child {
    margin-bottom: 0;
}
.notice-section p strong {
    color: #ff4d4f;
}
.notice-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    color: #333;
    line-height: 1.8;
}
.notice-table th {
    background-color: #e8f3ff;
    color: #1677ff;
    font-size: 18px;
    font-weight: 700;
    padding: 16px 20px;
    text-align: left;
    border-bottom: 2px solid #d7e8fc;
}
.notice-table td {
    padding: 20px;
    border-bottom: 1px solid #f0f7ff;
    background-color: #fff;
}
.notice-table td p {
    margin: 0 0 8px 0;
}
.notice-table td p:last-child {
    margin: 0;
}
.notice-table .important {
    color: #ff4d4f;
    font-weight: 700;
}

/* 改写提交页面样式 */
.rewrite-submit-page {
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: visible; /* 修复：避免嵌套overflow冲突 */
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.rewrite-submit-header h2 {
    font-size: 22px;
    color: #1677ff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d7e8fc;
}
.method-select-group {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
}
.method-btn {
    flex: 1;
    min-width: 120px;
    padding: 14px 8px;
    background-color: #fff;
    color: #222;
    border: 2px solid #1677ff;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    white-space: nowrap;
}
.method-btn.active {
    background-color: #1677ff;
    color: #fff;
    border-color: #1677ff;
}
.method-btn:hover:not(.active) {
    background-color: #f0f7ff;
    border-color: #096dd9;
}
.btn-title {
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 15px;
}
.btn-desc {
    display: block;
    font-size: 12px;
    color: #888;
}
.input-output-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
    height: 400px;
    box-sizing: border-box;
}
.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.form-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.form-label {
    font-size: 15px;
    color: #333;
    font-weight: 700;
}
.char-count {
    font-size: 14px;
    color: #666;
}
.opt-btn {
    padding: 4px 10px;
    background-color: #fff;
    color: #1677ff;
    border: 1px solid #1677ff;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.opt-btn:hover {
    background-color: #1677ff;
    color: #fff;
}
.form-textarea {
    flex: 1;
    width: 100%;
    padding: 12px;
    border: 2px solid #d7e8fc;
    border-radius: 6px;
    resize: none;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
    overflow-y: auto;
}
.form-textarea:focus {
    outline: none;
    border-color: #1677ff;
    box-shadow: 0 0 8px rgba(22, 119, 255, 0.2);
}
.action-group {
    width: 100%;
    text-align: center;
}
.submit-btn {
    width: 100%;
    max-width: 500px;
    padding: 12px;
    background-color: #1677ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
}
.submit-btn:hover {
    background-color: #096dd9;
}
.submit-btn:disabled {
    background-color: #999;
    cursor: not-allowed;
}
.tips-container {
    font-size: 14px;
}
.loading-tip {
    color: #1677ff;
    display: none;
}
.error-tip {
    color: #ff4d4f;
    display: none;
}
.copy-success-tip {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(22, 119, 255, 0.9);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
}
.copy-success-tip.show {
    opacity: 1;
}

/* 空白页面样式 */
.empty-content {
    width:100%;
    height:100%;
    display:flex;
    flex-direction: column;
    justify-content:center;
    align-items:center;
    color:#999;
    font-size:18px;
}

/* 客服页面样式 */
.kefu-center {
    width: 90%;
    max-width: 600px;
    padding: 30px;
    border: 2px solid #d7e8fc;
    border-radius: 10px;
    background: #fff;
}
.kefu-center h2 {
    color: #1677ff;
    margin-bottom: 25px;
    padding-bottom:10px;
    border-bottom: 2px solid #d7e8fc;
}
.kefu-item {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    border-bottom: 1px solid #f0f7ff;
    font-size: 15px;
}
.kefu-item label {
    color: #333;
    font-weight:700;
    margin-bottom: 10px;
}
.kefu-item .wechat-input {
    width: 280px;
    height: 46px;
    padding: 0 15px;
    border: 2px solid #d7e8fc;
    border-radius: 6px;
    font-size: 15px;
    color: #222;
    font-weight:600;
    outline: none;
    margin-bottom: 10px;
}
.copy-btn {
    width: 120px;
    height: 40px;
    background-color: #1677ff;
    color: #fff;
    border: none;
    border-radius:6px;
    font-size:14px;
    font-weight:700;
    cursor: pointer;
    transition: all 0.2s;
}
.copy-btn:hover {
    background-color: #096dd9;
}
.qrcode-img {
    width: 220px;
    height: 300px;
    border: 2px solid #d7e8fc;
    border-radius: 6px;
    margin-top: 10px;
}
.qrcode-placeholder {
    width: 220px;
    height: 300px;
    border: 2px solid #d7e8fc;
    border-radius: 6px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    color: #666;
    font-size: 16px;
    font-weight: bold;
}
.qrcode-tip {
    color: #999;
    font-size: 14px;
    margin-top: 8px;
}



/* 客服页面样式 */
.kefu-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}
.kefu-page h1 {
    /* 统一使用 page-title 类样式 */
}
.kefu-container {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}
.kefu-left, .kefu-right {
    flex: 1;
    border: 2px solid #d7e8fc;
    border-radius: 10px;
    padding: 20px;
    background-color: #fff;
}
.kefu-left h2, .kefu-right h2 {
    color: #1677ff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d7e8fc;
}
.wechat-info .info-item {
    margin-bottom: 20px;
}
.wechat-info label {
    display: block;
    color: #333;
    font-weight: bold;
    margin-bottom: 10px;
}
.wechat-input {
    width: 280px;
    height: 46px;
    padding: 0 15px;
    border: 2px solid #d7e8fc;
    border-radius: 6px;
    font-size: 15px;
    color: #222;
    font-weight: 600;
    outline: none;
    margin-bottom: 10px;
}
.feedback-form .form-item {
    margin-bottom: 20px;
}
.feedback-form label {
    display: block;
    color: #333;
    font-weight: bold;
    margin-bottom: 10px;
}
.feedback-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #d7e8fc;
    border-radius: 6px;
    resize: none;
    font-size: 14px;
    line-height: 1.5;
    outline: none;
}
.feedback-input:focus {
    border-color: #1677ff;
    box-shadow: 0 0 8px rgba(22, 119, 255, 0.2);
}
.feedback-tip {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
    text-align: right;
}
.submit-btn {
    padding: 10px 30px;
    background-color: #1677ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}
.submit-btn:hover {
    background-color: #096dd9;
}
.feedback-records {
    border: 2px solid #d7e8fc;
    border-radius: 10px;
    padding: 20px;
    background-color: #fff;
}
.feedback-records h2 {
    color: #1677ff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d7e8fc;
}
.records-table {
    margin-bottom: 20px;
    overflow-x: auto;
}
.records-table table {
    width: 100%;
    border-collapse: collapse;
}
.records-table th, .records-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #e8f4ff;
}
.records-table th {
    background-color: #e8f3ff;
    color: #1677ff;
    font-weight: bold;
}
.records-table .no-records {
    height: 100px;
    vertical-align: middle;
    color: #999;
}
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pagination span {
    font-size: 14px;
    color: #666;
}
.page-buttons {
    display: flex;
    gap: 5px;
}
.page-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #d7e8fc;
    border-radius: 4px;
    background-color: #fff;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.page-btn:hover:not(.disabled) {
    background-color: #e8f3ff;
    border-color: #1677ff;
    color: #1677ff;
}
.page-btn.active {
    background-color: #1677ff;
    color: #fff;
    border-color: #1677ff;
}
.page-btn.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .kefu-container {
        flex-direction: column;
    }
    .kefu-left, .kefu-right {
        width: 100%;
    }
    .wechat-input {
        width: 100%;
    }
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .showcase-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 900px) {
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .input-output-container {
        flex-direction: column;
        height: 600px;
    }
    .method-select-group {
        gap: 8px;
    }
    .method-btn {
        min-width: 100px;
        padding: 10px 4px;
    }
    .btn-title {
        font-size: 14px;
    }
    .btn-desc {
        font-size: 11px;
    }
}
@media (max-width: 600px) {
    .showcase-grid {
        grid-template-columns: 1fr;
    }
    .showcase-page .feature-btn {
        width: 100%;
        max-width: 280px;
    }
}

/* ========== 优化：主内容区样式（解决相邻兄弟选择器依赖） ========== */
.main-content {
    flex: 1; /* 占满剩余宽度，避免被遮挡 */
    overflow-y: auto; /* 内容超出可滚动 */
    padding: 20px 0;
    margin-top: 60px; /* 避开导航条的高度 */
    z-index: 1; /* 确保内容区域在导航条和侧边栏之下 */
}

/* 主容器样式 */
.main-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* 内容容器样式 */
.main-container .content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* 确保页面容器不会被过度拉伸 */
.home-page,
.showcase-page,
.rewrite-notice-page,
.agent-notice-page,
.rewrite-submit-page,
.kefu-page,
.personal-center-page,
.app-container {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    
    .main-container .content {
        flex: 1;
        min-height: 0;
        padding-bottom: 20px !important; /* 恢复默认的底部 padding */
    }
    
    /* 移除所有页面容器的底部 padding */
    .home-page,
    .showcase-page,
    .rewrite-notice-page,
    .agent-notice-page,
    .rewrite-submit-page,
    .kefu-page,
    .personal-center-page,
    .app-container {
        padding-bottom: 20px !important; /* 恢复默认的底部 padding */
    }
    
    .mobile-nav {
        order: 1;
    }
    
    .mobile-nav-second {
        order: 0;
    }
}

/* 内容区域 */
.content {
    flex: 1;
    padding: 20px 40px;
    overflow-y: auto;
    text-align: center;
    margin-left: 250px; /* 避开侧边栏的宽度 */
    margin-top: 60px; /* 避开导航条的高度 */
    transition: margin-left 0.3s ease; /* 与侧边栏收缩动画同步 */
    z-index: 1; /* 确保内容区域在导航条和侧边栏之下 */
    min-height: 0;
}

/* 侧边栏收缩时的内容区域样式 */
.sidebar.collapsed + .top-nav + .content {
    margin-left: 60px; /* 避开收缩后的侧边栏宽度 */
}

/* 内容居中容器：解决右侧页面不居中 */
.content-wrapper {
    max-width: 1200px; /* 固定最大宽度，适配大屏 */
    margin: 0 auto; /* 左右自动居中 */
    padding: 0 20px; /* 左右内边距，避免贴边 */
    width: 100%; /* 小屏自适应 */
}

/* 登录页面样式 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    background-color: #f5f7fa;
    padding: 40px;
}
.login-box {
    width: 400px;
    padding: 40px 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.login-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
    font-weight: bold;
}
.login-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}
.form-group {
    margin-bottom: 20px;
    position: relative;
}
.form-group input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}
.form-group input:focus {
    outline: none;
    border-color: #1677ff;
    box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.1);
}
.form-group .icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}
.agreement-group {
    margin-bottom: 30px;
    text-align: left;
}
.agreement-group input {
    margin-right: 8px;
}
.agreement-group label {
    font-size: 14px;
    color: #666;
    cursor: pointer;
}
.login-btn {
    width: 100%;
    padding: 14px;
    background-color: #1677ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}
.login-btn:hover {
    background-color: #096dd9;
}
.login-links {
    margin-top: 20px;
}
.login-links a {
    font-size: 14px;
    color: #1677ff;
    text-decoration: none;
    margin: 0 10px;
}
.login-links a:hover {
    text-decoration: underline;
}
.err-msg {
    color: #ff4d4f;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

/* A类页面标题样式 - 用于主要页面标题，具有蓝色字体、居中对齐和灰色分割线，方便以后复用 */
.page-title {
    font-size: 24px !important; /* 与客服&反馈页面标题大小一致 */
    color: #1677ff !important; /* 与客服&反馈页面标题颜色一致 */
    text-align: center !important; /* 居中处理 */
    margin-bottom: 20px !important; /* 底部间距 */
    padding-bottom: 10px !important; /* 分割线上方间距 */
    border-bottom: 2px solid #d7e8fc !important; /* 灰色分割线 */
    font-weight: bold !important; /* 加粗效果 */
    width: 100% !important; /* 确保标题宽度为100%，使分割线显示完整 */
    display: block !important; /* 确保标题以块级元素显示 */
    max-width: 1000px !important; /* 与其他页面保持一致的最大宽度 */
    margin-left: auto !important; /* 水平居中 */
    margin-right: auto !important; /* 水平居中 */
}