/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background-color: #f5f5f5;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 头部样式 */
.header {
    background-color: #E60012; /* 模仿有道红 */
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo-text {
    color: white;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-right: 20px;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: white;
    font-weight: 500;
}

.user-area a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid white;
    padding: 5px 15px;
    border-radius: 20px;
}

/* 主体容器 */
.main-container {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* ================== 新增顶部区域样式 ================== */

/* 页面标题 */
.page-header-section {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
}

.main-title {
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
    font-weight: normal;
}

.sub-title {
    color: #888;
    font-size: 14px;
}

/* 下载引导条 */
.app-download-bar {
    background: linear-gradient(135deg, #ff5e5e 0%, #E60012 100%);
    border: none;
    border-radius: 12px;
    padding: 30px 40px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 25px rgba(230, 0, 18, 0.25);
    color: white;
    transform: scale(1.02); /* 微微放大以示突出 */
}

.app-info {
    display: flex;
    align-items: center;
    gap: 25px;
}

.app-icon-box {
    font-size: 32px;
    color: white;
    display: flex;
    gap: 20px;
    border-right: 1px solid rgba(255,255,255,0.3);
    padding-right: 25px;
}

.app-text h3 {
    font-size: 20px;
    color: white;
    margin-bottom: 8px;
    font-weight: bold;
}

.app-text p {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

.download-btn-sm {
    background-color: white;
    color: #E60012;
    border: none;
    padding: 12px 35px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.download-btn-sm:hover {
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* 语言选择栏 */
.trans-options {
    background: white;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.02);
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-selector select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    background: transparent;
    font-size: 14px;
}

.lang-selector select:hover {
    border-color: #E60012;
}

.swap-btn {
    cursor: pointer;
    color: #666;
    transition: transform 0.3s;
}

.swap-btn:hover {
    color: #E60012;
    transform: rotate(180deg);
}

.trans-btn {
    background-color: #E60012;
    color: white;
    border: none;
    padding: 8px 30px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.trans-btn:hover {
    background-color: #c70010;
}

/* 翻译框容器 */
.trans-box-container {
    display: flex;
    height: 400px;
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* 输入框区域 */
.input-box-wrapper {
    flex: 1;
    border-right: 1px solid #f0f0f0;
    position: relative;
    padding: 20px;
}

textarea {
    width: 100%;
    height: 100%;
    border: none;
    resize: none;
    font-size: 18px;
    line-height: 1.6;
    outline: none;
    padding-bottom: 30px; /* 为底部工具留出空间 */
}

.input-tools {
    position: absolute;
    bottom: 15px;
    right: 20px;
    display: flex;
    gap: 15px;
    color: #999;
    font-size: 14px;
}

.clear-btn {
    cursor: pointer;
    display: none; /* 默认隐藏，有内容时显示 */
}

.clear-btn:hover {
    color: #666;
}

/* 输出框区域 */
.output-box-wrapper {
    flex: 1;
    background-color: #fbfbfb;
    position: relative;
    padding: 20px;
}

.output-area {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    height: 100%;
    overflow-y: auto;
}

.placeholder-text {
    color: #aaa;
}

.output-tools {
    position: absolute;
    bottom: 15px;
    left: 20px;
    display: flex;
    gap: 10px;
}

.tool-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
}

.tool-btn:hover {
    color: #666;
}

/* 底部特色区 */
.features-section {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 20px;
}

.feature-card {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 32px;
    color: #E60012;
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.feature-card p {
    color: #666;
    font-size: 14px;
}

/* ================== 新增内容模块样式 ================== */

/* 通用模块容器 */
.content-module {
    margin-top: 60px;
    padding: 40px 20px;
    border-radius: 12px;
}

.bg-white {
    background-color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.module-header {
    text-align: center;
    margin-bottom: 40px;
}

.module-header h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.module-header p {
    color: #666;
    font-size: 16px;
}

/* Grid 网格布局 (AI 黑科技) */
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.info-card {
    text-align: center;
    padding: 20px;
    transition: all 0.3s;
    border-radius: 8px;
}

.info-card:hover {
    background: #f9f9f9;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: white;
}

.color-red { background-color: #ff6b6b; }
.color-blue { background-color: #4dabf7; }
.color-green { background-color: #51cf66; }
.color-orange { background-color: #fcc419; }

.info-card h4 {
    margin-bottom: 10px;
    font-size: 18px;
}

.info-card p {
    color: #777;
    font-size: 14px;
    line-height: 1.5;
}

/* 学习生态布局 (左右图文) */
.ecosystem-box {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.eco-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.eco-item.reverse {
    flex-direction: row-reverse;
}

.eco-content {
    flex: 1;
    padding: 60px;
}

.eco-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.eco-content p {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.link-btn {
    display: inline-block;
    color: #E60012;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: transform 0.2s;
}

.link-btn:hover {
    transform: translateX(5px);
}

.eco-img {
    flex: 1;
    background-color: #f0f0f0;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.eco-img i {
    font-size: 120px;
    color: #ddd;
}

/* 企业服务 banner */
.bg-dark {
    background: linear-gradient(135deg, #2b2b2b 0%, #1a1a1a 100%);
    color: white;
}

.biz-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.biz-text h2 {
    color: white;
    margin-bottom: 15px;
}

.biz-text p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 25px;
}

.biz-btn {
    background-color: #E60012;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.biz-btn:hover {
    background-color: #ff1f33;
}

.biz-icons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.biz-icons span {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
}

.biz-icons i {
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .eco-item, .eco-item.reverse {
        flex-direction: column;
    }
    
    .eco-img {
        width: 100%;
        height: 200px;
    }

    .biz-banner {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .biz-icons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* 漂浮 Logo 容器 */
.floating-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.float-item {
    position: absolute;
    color: rgba(230, 0, 18, 0.1); /* 淡淡的有道红 */
    font-size: 24px;
    font-weight: bold;
    user-select: none;
    animation: floatUp 10s linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 12px;
    margin-top: auto;
}

/* 链接样式修复 */
.feature-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex: 1;
}

/* ================== 专业翻译详情页样式 ================== */

/* 详情页 Banner */
.detail-banner {
    background: linear-gradient(135deg, #E60012 0%, #ff4d4d 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.banner-content h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.banner-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-btn {
    background-color: white;
    color: #E60012;
    border: none;
    padding: 12px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* 详情页容器 */
.detail-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.detail-section {
    margin-bottom: 80px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #E60012;
}

/* 优势网格 */
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.adv-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.adv-item:hover {
    transform: translateY(-5px);
}

.adv-item i {
    font-size: 40px;
    color: #E60012;
    margin-bottom: 20px;
}

.adv-item h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.adv-item p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

/* 行业列表 */
.industry-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ind-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.ind-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.ind-info {
    padding: 20px;
}

.ind-info h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.ind-info p {
    color: #666;
    font-size: 13px;
}

/* 服务流程 */
.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 20px;
}

.step {
    text-align: center;
    flex: 1;
    position: relative;
}

.step-num {
    width: 50px;
    height: 50px;
    background-color: #f5f5f5;
    color: #E60012;
    font-size: 20px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    border: 2px solid #E60012;
}

.step-line {
    flex: 1;
    height: 2px;
    background-color: #ddd;
    margin-top: 25px;
}

.step h4 {
    margin-bottom: 10px;
}

.step p {
    font-size: 14px;
    color: #666;
}

/* 价格表 */
.pricing-table {
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: center;
}

.price-col {
    background: white;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    width: 300px;
    transition: all 0.3s;
    position: relative;
}

.price-col:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.price-col.featured {
    border: 2px solid #E60012;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(230, 0, 18, 0.15);
}

.price-col .tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #E60012;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
}

.price-header {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
}

.price-num {
    font-size: 36px;
    color: #E60012;
    font-weight: bold;
    margin-bottom: 30px;
}

.price-num span {
    font-size: 14px;
    color: #999;
    font-weight: normal;
}

.price-features {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.price-features li {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.price-features i {
    color: #E60012;
    margin-right: 10px;
}

.price-btn {
    width: 100%;
    padding: 12px;
    border: 1px solid #E60012;
    background: white;
    color: #E60012;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.price-col.featured .price-btn {
    background: #E60012;
    color: white;
}

.price-btn:hover {
    background: #E60012;
    color: white;
}

/* 响应式 */
@media (max-width: 768px) {
    .advantage-grid, .industry-list, .pricing-table {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    
    .price-col {
        width: 100%;
    }
    
    .process-steps {
        flex-direction: column;
        gap: 20px;
    }
    
    .step-line {
        display: none;
    }

    .ai-demo-section {
        flex-direction: column;
    }

    .ai-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
    }

    .compare-box {
        flex-direction: column;
    }

    .compare-arrow {
        transform: rotate(90deg);
        margin: 20px 0;
    }
}

/* ================== 文档翻译页独有样式 ================== */

.upload-section {
    background: white;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    border: 2px dashed #ddd;
    margin-bottom: 60px;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-section:hover {
    border-color: #228be6;
    background-color: #f8f9fa;
}

.upload-box i {
    font-size: 64px;
    color: #228be6;
    margin-bottom: 20px;
}

.upload-box h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.upload-box p {
    color: #999;
}

.compare-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.compare-item {
    flex: 1;
    text-align: center;
}

.compare-item h4 {
    margin-bottom: 15px;
    color: #555;
}

.compare-img {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.compare-arrow {
    font-size: 30px;
    color: #228be6;
}

/* 模拟文档 */
.mock-doc {
    width: 80%;
    height: 80%;
    border: 1px solid #eee;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.line {
    height: 10px;
    background: #e9ecef;
    border-radius: 4px;
}

.w-80 { width: 80%; }
.w-60 { width: 60%; }
.w-90 { width: 90%; }

.chart-box {
    height: 100px;
    background: #e7f5ff;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #228be6;
    border-radius: 4px;
}

/* ================== AI 助手页独有样式 ================== */

.ai-demo-section {
    display: flex;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    height: 500px;
    margin-bottom: 60px;
}

.ai-sidebar {
    width: 250px;
    background: #f8f9fa;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.ai-option {
    padding: 20px;
    cursor: pointer;
    color: #555;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-option:hover, .ai-option.active {
    background: white;
    color: #7950f2;
    font-weight: bold;
    border-left: 4px solid #7950f2;
}

.ai-workspace {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.ai-input {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.ai-input textarea {
    flex: 1;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    resize: none;
    font-family: inherit;
}

.ai-run-btn {
    align-self: flex-end;
    background: #7950f2;
    color: white;
    border: none;
    padding: 8px 25px;
    border-radius: 20px;
    cursor: pointer;
}

.ai-output {
    flex: 1;
    background: #f3f0ff;
    border-radius: 8px;
    padding: 15px;
    color: #5f3dc4;
}
