/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", STHeiti, "Microsoft Yahei", Tahoma, Simsun, sans-serif;
    background-color: #f7f7f7;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    height: 100vh;
    overflow: hidden;
}

/* 页面容器 */
.page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f7f7f7;
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.hidden {
    transform: translateX(100%);
    display: none;
}

/* 导航栏 */
.nav-bar {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    z-index: 100;
    padding: 0 15px;
}

.nav-title {
    font-size: 17px;
    font-weight: 500;
    text-align: center;
    flex: 1;
}

.nav-more {
    font-size: 20px;
    color: #888;
    position: absolute;
    right: 15px;
}

.back-icon {
    position: absolute;
    left: 15px;
    font-size: 18px;
    font-weight: bold;
}

/* 点评页面样式 */
.comment-container {
    padding: 15px;
}

.comment-area {
    position: relative;
    background-color: #fff;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

textarea {
    width: 100%;
    min-height: 150px;
    border: none;
    resize: none;
    font-size: 15px;
    line-height: 1.5;
    outline: none;
    padding: 5px;
}

.word-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 12px;
    color: #999;
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.ai-polish-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f9eb;
    color: #67c23a;
    border: 1px solid #c2e7b0;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 14px;
    outline: none;
}

.ai-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

.submit-btn {
    background-color: #07c160;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 30px;
    font-size: 14px;
    outline: none;
}

/* AI润色页面样式 */
.polish-container {
    padding: 15px;
}

.section-title {
    font-size: 15px;
    font-weight: 500;
    margin: 15px 0 10px;
    color: #333;
}

.original-comment-area {
    background-color: #fff;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.word-limit-selector {
    margin: 20px 0;
}

.word-limit-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.word-limit-option {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 13px;
    color: #666;
}

.word-limit-option.selected {
    background-color: #e8f5e9;
    border-color: #a5d6a7;
    color: #4caf50;
}

.start-polish-btn {
    width: 100%;
    background-color: #07c160;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 0;
    font-size: 15px;
    margin: 20px 0;
    outline: none;
}

.result-section {
    margin-top: 20px;
}

.result-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    min-height: 120px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
    position: relative;
}

.result-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 14px;
    color: #666;
    outline: none;
}

.action-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

.apply-btn {
    background-color: #07c160;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 30px;
    font-size: 14px;
    outline: none;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

/* 响应式调整 */
@media screen and (max-width: 320px) {
    .word-limit-options {
        gap: 5px;
    }
    
    .word-limit-option {
        padding: 5px 10px;
        font-size: 12px;
    }
}