﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #2c3e50, #4a6491);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    margin-right: 30px;
}

.logo i {
    margin-right: 8px;
    color: #ffd700;
}

.header-left {
    display: flex;
    align-items: center;
    flex: 1;
}

/* 语言切换 */
.language-switcher {
    display: flex;
    align-items: center;
    margin-right: 20px;
    gap: 10px;
}

.language-btn {
    background: linear-gradient(to bottom, #5a7fbb, #3a5f9e);
    border: none;
    color: white;
    padding: 6px 0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 0 #2c3e50, 0 3px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    top: 0;
    width: 60px;
    height: 32px;
    flex-direction: column;
}

.language-btn:hover {
    background: linear-gradient(to bottom, #6a8fcb, #4a6fae);
}

.language-btn:active {
    box-shadow: 0 1px 0 #2c3e50, 0 2px 3px rgba(0, 0, 0, 0.2);
    top: 2px;
}

.language-btn.active {
    background: linear-gradient(to bottom, #ffd700, #e5bf00);
    color: #2c3e50;
    box-shadow: 0 2px 0 #ccaa00, 0 3px 5px rgba(0, 0, 0, 0.2);
}

.language-btn.active:active {
    box-shadow: 0 1px 0 #ccaa00, 0 2px 3px rgba(0, 0, 0, 0.2);
}

.language-btn i {
    font-size: 0.7rem;
    margin-bottom: 2px;
}

.language-btn span {
    line-height: 1;
    font-size: 0.7rem;
    display: block;
}

/* 导航样式 */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 8px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffd700;
}

nav ul li a.active {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

nav ul li a i {
    margin-right: 4px;
    font-size: 0.8rem;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
}

/* 主内容区样式 */
.hero {
    padding: 30px 0 20px;
    text-align: center;
    background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="%234a6491" opacity="0.1" width="50" height="50"/><rect fill="%234a6491" opacity="0.1" x="50" y="50" width="50" height="50"/></svg>');
    background-size: 300px;
    width: 100%;
}

.hero h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

/* 转换工具样式 - 修改容器 */
.converter {
    padding: 10px 0 30px;
    flex-grow: 1;
    width: 100%;
}

.converter-container {
    background: white;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin-bottom: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.converter-layout {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    width: 100%;
    min-height: calc(100vh - 200px);
}

.middle-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
    margin: 0;
}

/* 修改按钮样式 - 电脑端默认高度 */
.converter-btn {
    background: linear-gradient(to bottom, #5a7fbb, #3a5f9e);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 6px 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 0 #2c3e50, 0 3px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    top: 0;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px; /* 电脑端默认高度 */
    line-height: 1.2;
}

.converter-btn:hover {
    background: linear-gradient(to bottom, #6a8fcb, #4a6fae);
}

.converter-btn:active {
    box-shadow: 0 1px 0 #2c3e50, 0 2px 3px rgba(0, 0, 0, 0.2);
    top: 2px;
}

.converter-btn.action-btn {
    background: linear-gradient(to bottom, #6ec1e4, #4a9fcd);
    box-shadow: 0 2px 0 #3a7ea5, 0 3px 5px rgba(0, 0, 0, 0.2);
}

.converter-btn.action-btn:hover {
    background: linear-gradient(to bottom, #7ecbed, #5aafdd);
}

.converter-btn.action-btn:active {
    box-shadow: 0 1px 0 #3a7ea5, 0 2px 3px rgba(0, 0, 0, 0.2);
}

/* 功能菜单样式 */
.menu-container {
    position: relative;
    display: inline-block;
}

.menu-btn {
    background: linear-gradient(to bottom, #6ec1e4, #4a9fcd);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 6px 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 0 #3a7ea5, 0 3px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 32px; /* 电脑端默认高度 */
    line-height: 1.2;
}

.menu-btn:hover {
    background: linear-gradient(to bottom, #7ecbed, #5aafdd);
}

.menu-btn:active {
    box-shadow: 0 1px 0 #3a7ea5, 0 2px 3px rgba(0, 0, 0, 0.2);
    top: 2px;
}

.menu-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    padding: 5px;
    top: 100%;
    left: 0;
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
}

.menu-content .option-label {
    width: 100%;
    margin-bottom: 2px;
    padding: 4px 8px;
    font-size: 13px;
    min-height: auto;
    line-height: 1.2;
}

.menu-container:hover .menu-content {
    display: block;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    white-space: nowrap;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

.option-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.option-label input[type="checkbox"]:disabled {
    opacity: 0.5;
}

/* 修改文本区域样式 - 增大宽度和高度 */
textarea {
    width: 100%;
    height: calc(50vh - 120px);
    min-height: 150px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    resize: vertical;
    margin-bottom: 0;
    background: #f8f9fa;
}

/* 模态框样式 - 改进移动设备显示 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.modal-button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #4a6491;
    color: white;
    box-sizing: border-box;
    font-size: 17.5px; /* 基础字体大小增加25% */
    min-height: 44px; /* 移动设备友好的最小高度 */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    word-break: break-word;
    overflow: hidden;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.modal-button:hover {
    background-color: #5a7fbb;
    transform: translateY(-2px);
}

/* 提示框样式 */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
}

/* 页脚样式 */
footer {
    background: #2c3e50;
    color: white;
    padding: 15px 0 10px;
    text-align: center;
    margin-top: auto;
    width: 100%;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-section {
    text-align: center;
    margin-bottom: 5px;
    width: 100%;
}

.footer-section h3 {
    margin-bottom: 8px;
    color: #ffd700;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-section ul li {
    margin-bottom: 5px;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-section a:hover {
    color: #ffd700;
    background: rgba(255, 255, 255, 0.15);
}

.footer-section a i {
    margin-right: 6px;
}

.copyright {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    nav ul li {
        margin-left: 6px;
    }
    
    nav ul li a {
        font-size: 0.8rem;
        padding: 5px 8px;
    }
}

@media (max-width: 992px) {
    nav ul li {
        margin-left: 5px;
    }
    
    nav ul li a {
        font-size: 0.75rem;
        padding: 4px 6px;
    }
    
    .language-btn {
        width: 55px;
        height: 30px;
        font-size: 0.65rem;
    }
    
    .converter-btn {
        min-width: 0;
        font-size: 13px;
        padding: 5px 6px;
    }
}

@media (max-width: 900px) {
    nav ul li a span.nav-text {
        display: none;
    }
    
    nav ul li a i {
        margin-right: 0;
    }
    
    nav ul li {
        margin-left: 4px;
    }
    
    nav ul li a {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
    
    .option-label {
        font-size: 13px;
        padding: 6px 10px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #2c3e50;
        display: none;
        padding: 15px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 8px 0;
    }
    
    nav ul li a {
        justify-content: center;
        padding: 8px;
        font-size: 0.9rem;
    }
    
    nav ul li a span.nav-text {
        display: inline;
    }
    
    nav ul li a i {
        margin-right: 8px;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero {
        padding: 25px 0 15px;
    }
    
    .converter {
        padding: 10px 0 25px;
    }
    
    .converter-layout {
        padding: 10px;
        gap: 10px;
    }
    
    .middle-controls {
        gap: 6px;
    }
    
    .converter-btn {
        min-width: 0;
        flex: 1;
        font-size: 15px; /* 移动设备上文字放大25% */
        padding: 5px 4px;
        height: 32px; /* 保持按钮高度不变 */
        line-height: 1.1; /* 行距减小一半 */
        word-break: break-word; /* 允许文字换行 */
        white-space: normal; /* 允许文字换行 */
        text-align: center;
    }
    
    .menu-btn {
        font-size: 15px; /* 移动设备上文字放大25% */
        padding: 5px 6px;
        height: 32px; /* 保持按钮高度不变 */
        line-height: 1.1; /* 行距减小一半 */
        word-break: break-word; /* 允许文字换行 */
        white-space: normal; /* 允许文字换行 */
        text-align: center;
    }
    
    .language-btn {
        font-size: 0.6rem;
        width: 50px;
        height: 28px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .header-left {
        order: 1;
        width: 100%;
        justify-content: space-between;
        margin-bottom: 10px;
    }
    
    nav {
        order: 3;
        width: 100%;
    }
    
    .menu-toggle {
        order: 2;
    }
    
    .footer-section ul {
        flex-direction: row;
        gap: 15px;
    }
    
    .footer-section a {
        font-size: 0.85rem;
    }
    
    .menu-content {
        max-width: 95vw;
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* 移动设备上模态框按钮布局 - 单字一行6个 */
    .modal-button {
        flex: 0 0 calc(16.666% - 8px); /* 移动设备上一行6个按钮 */
        max-width: calc(16.666% - 8px);
        font-size: 17.5px; /* 保持字体大小不变 */
        padding: 8px 10px;
    }
    
    /* 移动设备上长词汇按钮样式 */
    .modal-button.long-text {
        flex: 0 0 calc(50% - 8px); /* 长词汇占一半宽度 */
        max-width: calc(50% - 8px);
        font-size: 17.5px; /* 保持字体大小不变 */
    }
    
    /* 移动设备上功能菜单选项文字增大1/8 */
    .menu-content .option-label {
        font-size: 14.625px; /* 增加1/8 */
    }
    
    /* 移动设备上模态框缩小1/3 */
    .modal-content {
        width: 66.67%; /* 缩小1/3 */
        max-width: 333px; /* 缩小1/3 */
    }
}

@media (max-width: 600px) {
    .header-content {
        flex-direction: row;
        align-items: center;
    }
    
    .header-left {
        order: 1;
        width: auto;
        justify-content: flex-start;
        margin-bottom: 0;
        flex-wrap: nowrap;
    }
    
    .logo {
        margin-right: 15px;
        margin-bottom: 0;
        font-size: 1.2rem;
        display: flex;
        align-items: center;
    }
    
    .language-switcher {
        order: 2;
        flex-direction: row;
        justify-content: flex-start;
        margin-right: 0;
        margin-bottom: 0;
        width: auto;
        gap: 8px;
        margin-left: 10px;
    }
    
    .menu-toggle {
        order: 3;
        align-self: center;
        margin-top: 0;
        margin-left: 15px;
        display: flex;
        align-items: center;
        padding: 6px 10px;
    }
    
    .converter-btn {
        font-size: 13.75px; /* 移动设备上文字放大25% */
        padding: 4px 3px;
        height: 32px; /* 保持按钮高度不变 */
        line-height: 1.1; /* 行距减小一半 */
        word-break: break-word; /* 允许文字换行 */
        white-space: normal; /* 允许文字换行 */
        text-align: center;
    }
    
    .option-label {
        min-width: calc(50% - 5px);
        font-size: 11px;
    }
    
    .language-btn {
        width: 45px;
        height: 26px;
        font-size: 0.55rem;
    }
    
    .footer-section ul {
        flex-direction: row;
        gap: 15px;
    }
    
    .menu-btn {
        font-size: 13.75px; /* 移动设备上文字放大25% */
        padding: 4px 5px;
        height: 32px; /* 保持按钮高度不变 */
        line-height: 1.1; /* 行距减小一半 */
        word-break: break-word; /* 允许文字换行 */
        white-space: normal; /* 允许文字换行 */
        text-align: center;
    }
    
    /* 移动设备上模态框按钮布局 - 单字一行6个 */
    .modal-button {
        flex: 0 0 calc(16.666% - 8px); /* 移动设备上一行6个按钮 */
        max-width: calc(16.666% - 8px);
        font-size: 17.5px; /* 保持字体大小不变 */
        padding: 8px 6px;
    }
    
    /* 移动设备上长词汇按钮样式 */
    .modal-button.long-text {
        flex: 0 0 calc(50% - 8px); /* 长词汇占一半宽度 */
        max-width: calc(50% - 8px);
        font-size: 17.5px; /* 保持字体大小不变 */
    }
    
    /* 移动设备上功能菜单选项文字增大1/8 */
    .menu-content .option-label {
        font-size: 14.375px; /* 增加1/8 */
    }
    
    /* 移动设备上模态框缩小1/3 */
    .modal-content {
        width: 66.67%; /* 缩小1/3 */
        max-width: 333px; /* 缩小1/3 */
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.4rem;
    }
    
    .hero {
        padding: 20px 0 10px;
    }
    
    .converter {
        padding: 8px 0 20px;
    }
    
    .converter-layout {
        padding: 8px;
        gap: 8px;
    }
    
    .converter-btn {
        padding: 4px 2px;
        font-size: 12.5px; /* 移动设备上文字放大25% */
        height: 32px; /* 保持按钮高度不变 */
        line-height: 1.1; /* 行距减小一半 */
        word-break: break-word; /* 允许文字换行 */
        white-space: normal; /* 允许文字换行 */
        text-align: center;
    }
    
    .option-label {
        min-width: 100%;
        font-size: 12px;
    }
    
    .language-btn {
        width: 40px;
        height: 24px;
        font-size: 0.5rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .footer-section ul {
        flex-direction: row;
        gap: 10px;
    }
    
    .footer-section ul li {
        margin-bottom: 3px;
    }
    
    .footer-section a {
        font-size: 0.8rem;
    }
    
    .footer-section h3 {
        margin-bottom: 8px;
        font-size: 1.1rem;
    }
    
    .copyright {
        margin-top: 10px;
        padding-top: 10px;
        font-size: 0.8rem;
    }
    
    .menu-btn {
        font-size: 12.5px; /* 移动设备上文字放大25% */
        padding: 4px 3px;
        height: 32px; /* 保持按钮高度不变 */
        line-height: 1.1; /* 行距减小一半 */
        word-break: break-word; /* 允许文字换行 */
        white-space: normal; /* 允许文字换行 */
        text-align: center;
    }
    
    /* 移动设备上模态框按钮布局 - 单字一行6个 */
    .modal-button {
        flex: 0 0 calc(16.666% - 8px); /* 移动设备上一行6个按钮 */
        max-width: calc(16.666% - 8px);
        font-size: 17.5px; /* 保持字体大小不变 */
        padding: 8px 4px;
    }
    
    /* 移动设备上长词汇按钮样式 */
    .modal-button.long-text {
        flex: 0 0 calc(50% - 8px); /* 长词汇占一半宽度 */
        max-width: calc(50% - 8px);
        font-size: 17.5px; /* 保持字体大小不变 */
    }
    
    /* 移动设备上功能菜单选项文字增大1/8 */
    .menu-content .option-label {
        font-size: 14.125px; /* 增加1/8 */
    }
    
    /* 移动设备上模态框缩小1/3 */
    .modal-content {
        width: 66.67%; /* 缩小1/3 */
        max-width: 333px; /* 缩小1/3 */
    }
}

@media (max-width: 360px) {
    .header-left {
        flex-wrap: nowrap;
    }
    
    .logo {
        margin-bottom: 0;
        font-size: 1rem;
    }
    
    .language-switcher {
        width: auto;
        justify-content: flex-start;
        gap: 6px;
        margin-left: 8px;
    }
    
    .menu-toggle {
        margin-left: 12px;
    }
    
    .language-btn {
        width: 38px;
        height: 22px;
        font-size: 0.45rem;
    }
    
    .menu-toggle {
        padding: 5px 8px;
        font-size: 1.3rem;
    }
    
    .converter-btn {
        font-size: 11.25px; /* 移动设备上文字放大25% */
        padding: 3px 2px;
        height: 32px; /* 保持按钮高度不变 */
        line-height: 1.1; /* 行距减小一半 */
        word-break: break-word; /* 允许文字换行 */
        white-space: normal; /* 允许文字换行 */
        text-align: center;
    }
    
    .footer-section ul {
        flex-direction: row;
        gap: 8px;
    }
    
    .menu-btn {
        font-size: 11.25px; /* 移动设备上文字放大25% */
        padding: 3px 2px;
        height: 32px; /* 保持按钮高度不变 */
        line-height: 1.1; /* 行距减小一半 */
        word-break: break-word; /* 允许文字换行 */
        white-space: normal; /* 允许文字换行 */
        text-align: center;
    }
    
    /* 移动设备上模态框按钮布局 - 单字一行6个 */
    .modal-button {
        flex: 0 0 calc(16.666% - 8px); /* 移动设备上一行6个按钮 */
        max-width: calc(16.666% - 8px);
        font-size: 17.5px; /* 保持字体大小不变 */
        padding: 8px 3px;
    }
    
    /* 移动设备上长词汇按钮样式 */
    .modal-button.long-text {
        flex: 0 0 calc(50% - 8px); /* 长词汇占一半宽度 */
        max-width: calc(50% - 8px);
        font-size: 17.5px; /* 保持字体大小不变 */
    }
    
    /* 移动设备上功能菜单选项文字增大1/8 */
    .menu-content .option-label {
        font-size: 13.75px; /* 增加1/8 */
    }
    
    /* 移动设备上模态框缩小1/3 */
    .modal-content {
        width: 66.67%; /* 缩小1/3 */
        max-width: 333px; /* 缩小1/3 */
    }
}

/* 电脑端模态框按钮布局 - 单字一行8个 */
@media (min-width: 769px) {
    .modal-button {
        flex: 0 0 calc(12.5% - 8px); /* 电脑上一行8个按钮 */
        max-width: calc(12.5% - 8px);
        font-size: 17.5px; /* 保持字体大小不变 */
    }
    
    /* 电脑端长词汇按钮样式 */
    .modal-button.long-text {
        flex: 0 0 calc(33.333% - 8px); /* 长词汇占三分之一宽度 */
        max-width: calc(33.333% - 8px);
        font-size: 17.5px; /* 保持字体大小不变 */
    }
}

/* 修复右侧白色块问题 */
html, body {
    overflow-x: hidden;
    width: 100%;
}

main {
    width: 100%;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 多音字按钮宽度自适应样式 */
.modal-button.polyphone {
    height: 44px; /* 固定高度 */
    min-height: 44px; /* 固定最小高度 */
    white-space: nowrap; /* 防止文字换行 */
    overflow: hidden; /* 隐藏溢出内容 */
    text-overflow: ellipsis; /* 显示省略号 */
    flex-grow: 1; /* 允许按钮宽度自适应 */
    flex-shrink: 0; /* 防止按钮缩小 */
    flex-basis: auto; /* 基础宽度自动 */
    max-width: none; /* 取消最大宽度限制 */
}