/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 导航栏样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo h1 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
}

.logo span {
    color: #3498db;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    color: #3498db;
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #3498db;
}

.login-btn button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.login-btn button:hover {
    background-color: #2980b9;
}

/* 主要内容区样式 */
main {
    padding: 40px 0 80px;
}

/* 账户信息显示条样式 */
.account-info-bar {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 16px;
    width: 90%;
}

.account-info-bar .highlight {
    color: #3498db;
    font-weight: 600;
    margin: 0 3px;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 90%;
    background-color: transparent;
    padding: 0;
}

/* 在PC端使用左右布局 */
@media (min-width: 768px) {
    .main-content {
        flex-direction: row;
    }
    
    .submission-section {
        flex: 1;
        margin-right: 5px; /* 减少右侧间距，从8px改为5px */
    }
    
    .faq-section {
        flex: 1;
        margin-left: 5px; /* 减少左侧间距，从8px改为5px */
    }
}

/* 版本选择器样式 */
.version-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.version-option {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.version-option:hover {
    border-color: #3498db;
    background-color: #f8f9fa;
}

.version-option.active {
    border-color: #3498db;
    background-color: #ebf5fb;
}

.version-option input {
    position: absolute;
    opacity: 0;
}

.version-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background-color: #3498db;
    border-radius: 50%;
    color: white;
    margin-right: 10px;
}

.version-text {
    font-weight: 500;
    color: #2c3e50;
}

/* 提交区样式 */
.submission-section, .faq-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 600;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 10px;
}

.submission-box {
    margin-bottom: 20px;
}

.upload-area {
    border: 2px dashed #ccc;
    border-radius: 6px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
}

.upload-area:hover {
    border-color: #3498db;
    background-color: #f8f9fa;
}

.upload-area img {
    width: 60px;
    margin-bottom: 15px;
}

.upload-area p {
    margin: 5px 0;
    color: #555;
}

.upload-area p.small {
    font-size: 14px;
    color: #888;
}

.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}

.file-details p {
    margin: 3px 0;
}

#fileName {
    font-weight: 500;
    color: #2c3e50;
}

#fileSize {
    font-size: 14px;
    color: #7f8c8d;
}

.remove-file {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 20px;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.submit-btn:hover:not([disabled]) {
    background-color: #2980b9;
}

.submit-btn[disabled] {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.submission-info {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
}

.submission-info ul {
    margin-left: 20px;
    margin-top: 10px;
}

.submission-info li {
    margin-bottom: 5px;
    font-size: 14px;
}

/* 常见问题样式 */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
}

.toggle-icon {
    font-size: 18px;
    color: #7f8c8d;
    transition: transform 0.3s;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 15px;
    max-height: 200px;
}

/* 登录弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    padding: 30px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #bbb;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #e74c3c;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group input:focus {
    border-color: #3498db;
    outline: none;
}

.form-actions {
    text-align: center;
}

.login-submit {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
    margin-bottom: 15px;
}

.login-submit:hover {
    background-color: #2980b9;
}

.form-actions p {
    font-size: 14px;
    color: #7f8c8d;
}

.form-actions a {
    color: #3498db;
    text-decoration: none;
}

.form-actions a:hover {
    text-decoration: underline;
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 20px 0;
    text-align: center;
    /*position: fixed;*/
    bottom: 0;
    width: 100%;
    z-index: 99;
}

footer p {
    font-size: 14px;
}

/* 查重结果样式 */
.qr-code-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.result-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.result-card {
    flex: 0 0 100%; /* 两行一列，占据整行宽度 */
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 15px;
    margin-bottom: 15px; /* 增加卡片之间的垂直间距 */
    transition: transform 0.3s, box-shadow 0.3s;
}

.result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.result-title {
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 6px;
}

.result-time {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 12px;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.action-btn {
    padding: 6px 8px;
    border-radius: 4px;
    border: none;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 70px;
    transition: background-color 0.3s;
}

.action-btn i {
    font-size: 12px;
}

.report-btn {
    background-color: #3498db;
    color: white;
}

.report-btn:hover {
    background-color: #2980b9;
}

.ai-btn {
    background-color: #4CAF50;
    color: white;
}

.ai-btn:hover {
    background-color: #388E3C;
}

.reduce-btn {
    background-color: #9C27B0;
    color: white;
}

.reduce-btn:hover {
    background-color: #7B1FA2;
}

.delete-btn {
    background-color: #F44336;
    color: white;
}

.delete-btn:hover {
    background-color: #D32F2F;
}

/* 自定义弹窗样式 */
.custom-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.custom-alert.show {
    opacity: 1;
    visibility: visible;
}

.custom-alert-content {
    background-color: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.custom-alert-image {
    max-width: 140px;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.custom-alert-content p {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 16px;
}

.custom-alert-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.custom-alert-btn:hover {
    background-color: #2980b9;
}

/* 降AI功能区样式 */
#jiang {
    padding: 40px 0;
    background-color: #f8f9fb;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 10px;
}

.section-desc {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.ai-content {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.input-section, .result-section {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

.input-circle {
    width: 30px;
    height: 30px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: absolute;
    top: -15px;
    left: 20px;
}

.text-area {
    width: 100%;
    height: 200px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px;
    margin: 15px 0;
    resize: none;
    font-size: 14px;
}

.input-controls, .result-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mode-selector {
    display: flex;
    align-items: center;
}

.mode-select {
    padding: 5px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-left: 5px;
}

.input-word-count {
    color: #7f8c8d;
    font-size: 14px;
}

.ai-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.ai-button:hover {
    background-color: #2980b9;
}

.free-trial-btn, .history-btn, .copy-btn {
    background-color: #f5f7fa;
    color: #2c3e50;
    border: 1px solid #e0e0e0;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.free-trial-btn:hover, .history-btn:hover, .copy-btn:hover {
    background-color: #e0e0e0;
}

/* 用户评价区域样式 */
.user-reviews {
    margin-top: 40px;
}

.reviews-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
}

/* 价格卡片区域样式 */
#price {
    padding: 40px 0;
    background-color: #f8f9fb;
}

/* 人工降AI服务区域样式 */
#rengong {
    padding: 40px 0;
    background-color: #fff;
}

.rengong-content {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.qrcode-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qrcode-image {
    max-width: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.service-features {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-number {
    width: 30px;
    height: 30px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.feature-content {
    flex: 1;
}

.feature-title {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 18px;
}

.feature-desc {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.5;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .rengong-content {
        flex-direction: column;
    }
    
    .qrcode-section {
        margin-bottom: 30px;
    }
}

.price-title {
    text-align: center;
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 30px;
    margin-top: 40px;
}

.price-cards {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.price-card {
    flex: 1;
    min-width: 200px;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.price-word-count {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    font-weight: 500;
}

.price {
    font-size: 28px;
    color: #e74c3c;
    margin-bottom: 10px;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

.currency {
    font-size: 16px;
    vertical-align: super;
}

.amount {
    font-weight: bold;
}

.unit {
    font-size: 14px;
    color: #7f8c8d;
}

.usage-info {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 20px;
}

.buy-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
    width: 100%;
}

.buy-btn:hover {
    background-color: #2980b9;
}

/* 支付弹窗样式 */
.payment-modal-content {
    max-width: 400px;
}

.payment-info {
    margin: 20px 0;
}

.payment-qrcode {
    text-align: center;
    margin: 20px 0;
}

.payment-image {
    width: 200px;
    height: 200px;
    margin-bottom: 10px;
}

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

.cancel-btn {
    background-color: #95a5a6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cancel-btn:hover {
    background-color: #7f8c8d;
}

.confirm-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.confirm-btn:hover {
    background-color: #27ae60;
}

.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-row {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.review-card {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.user-info {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 10px;
}

.review-content {
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.5;
}

/* 降AI历史记录样式 */
#jilu {
    padding: 40px 0;
    background-color: #f8f9fb;
}

.ai-history {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.history-item {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.history-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.history-header {
    margin-bottom: 10px;
}

.operation-time {
    color: #7f8c8d;
    font-size: 14px;
}

.history-content {
    display: flex;
    gap: 20px;
}

.original-text, .ai-text {
    flex: 1;
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
}

.original-text h4, .ai-text h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 500;
}

.original-text p, .ai-text p {
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.breadcrumb-nav {
    margin-bottom: 20px;
}

.history-breadcrumb {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    color: #3498db;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.breadcrumb-item.active {
    color: #2c3e50;
}

.record-count {
    color: #7f8c8d;
    font-size: 14px;
}

.toggle-btn {
    cursor: pointer;
    color: #3498db;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    cursor: pointer;
}

.content-wrapper {
    display: flex;
    gap: 20px;
}
.filter-settings {
    margin: 15px 0;
    display: flex;
    gap: 20px;
}
.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.filter-option input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.filter-option span {
    color: #2c3e50;
    font-size: 14px;
}
/* 响应式调整 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .result-card {
        flex: 0 0 100%;
    }
    
    nav ul {
        margin: 15px 0;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .ai-content {
        flex-direction: column;
    }
    
    .review-row {
        flex-direction: column;
    }
    
    .history-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .original-text, .ai-text {
        width: 100%;
    }
}

@media (max-width: 480px) {
    nav ul li {
        margin: 0 5px;
    }
    
    .upload-area {
        padding: 20px;
    }
    
    .upload-area img {
        width: 50px;
    }
}
.highlight {
    color: #3498db;
    font-weight: 600;
    margin: 0 3px;
}