*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
body{
    background-color:#f8fafc;
    color:#1e293b;
    line-height:1.6;
}
.layout{
    display:flex;
    min-height:100vh;
}
/* 左侧侧边栏 */
.sidebar{
    width:260px;
    background:#ffffff;
    border-right:1px solid #e2e8f0;
    padding:24px 16px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}
.sidebar-top h2{
    font-size:22px;
    margin-bottom:24px;
    color:#2563eb;
}
.nav{
    display:flex;
    flex-direction:column;
    gap:6px;
}
.nav-item{
    padding:10px 12px;
    border-radius:8px;
    text-decoration:none;
    color:#475569;
    transition:0.2s;
}
.nav-item:hover{
    background:#eff6ff;
    color:#2563eb;
}
.sidebar-bottom{
    margin-top:30px;
    padding-top:16px;
    border-top:1px solid #e2e8f0;
}
.user-info{
    font-size:14px;
    color:#334155;
    margin-bottom:12px;
    line-height:1.5;
}
.lang-switch{
    margin-top:12px;
    font-size:14px;
}
.lang-switch a{
    color:#2563eb;
    text-decoration:none;
}
.lang-switch a:hover{
    text-decoration:underline;
}
/* 右侧主内容区域 */
.main-content{
    flex:1;
    padding:32px;
    overflow:auto;
}
h1{
    font-size:36px;
    margin-bottom:12px;
}
h2{
    font-size:22px;
    margin:20px 0 8px;
}
p{
    margin-bottom:8px;
}
.btn{
    display:inline-block;
    background:#2563eb;
    color:#fff !important;
    padding:10px 18px;
    border-radius:6px;
    text-decoration:none;
    margin:10px 0;
}
.btn:hover{
    background:#1d4ed8;
}
/* 简单响应式，小屏幕侧边栏折叠 */
@media(max-width:768px){
    .layout{
        flex-direction:column;
    }
    .sidebar{
        width:100%;
        border-right:none;
        border-bottom:1px solid #e2e8f0;
    }
}
/* 表单组件美化 */
input[type="text"], textarea, select {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}
input[type="text"]:focus, textarea:focus, select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
button {
    padding: 8px 16px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}
button:hover {
    background-color: #1d4ed8;
}
/* 内容卡片，把TTS区域包起来更好看 */
.card {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
/* TTS页面样式 */
.page-tts h2{
    margin-bottom:24px;
    font-size:26px;
}
.tts-wrap{
    display:flex;
    gap:32px;
    flex-wrap:wrap;
}
.tts-left{
    flex:1;
    min-width:320px;
}
.tts-right{
    flex:1;
    min-width:320px;
}
.tts-left textarea{
    width:100%;
    min-height:140px;
    resize:vertical;
    margin-bottom:14px;
}
.tts-left select{
    width:100%;
    margin-bottom:14px;
}
.btn-blue{
    width:100%;
    padding:10px;
    background:#2563eb;
    color:#fff;
    border:none;
    border-radius:6px;
    font-size:15px;
    cursor:pointer;
    transition:0.2s;
}
.btn-blue:hover{
    background:#1d4ed8;
}
.tab-voice{
    display:flex;
    gap:12px;
    margin-bottom:16px;
    border-bottom:1px solid #e2e8f0;
}
.tab-voice span{
    padding:8px 4px;
    cursor:pointer;
    color:#64748b;
    position:relative;
}
.tab-voice span.active{
    color:#2563eb;
    font-weight:bold;
}
.tab-voice span.active::after{
    content:"";
    position:absolute;
    bottom:-1px;
    left:0;
    width:100%;
    height:2px;
    background:#2563eb;
}
.voice-list{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(140px,1fr));
    gap:12px;
}
.page-home .hero-section{
    padding: 60px 0;
    text-align: left;
}
.page-home .hero-section h1{
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}
.page-home .hero-sub{
    font-size: 18px;
    color: #64748b;
    margin-bottom: 32px;
}
.btn-primary{
    background: #2563eb;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
}
.feature-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}
.feature-card{
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.feature-card h3{
    font-size: 18px;
    margin-bottom: 8px;
}
.feature-card p{
    color: #64748b;
    font-size: 14px;
}
@media(max-width: 768px){
    .feature-grid{
        grid-template-columns: 1fr;
    }
}
