/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Noto Serif SC', 'Microsoft YaHei', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.section {
    padding: 80px 0;
}
.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: #c33;
    font-size: 32px;
    position: relative;
}
.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background-color: #c33;
    margin: 15px auto 0;
}
.center-text {
    text-align: center;
}

/* 顶部导航 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.logo {
    font-size: 24px;
    font-weight: bold;
    color: #c33;
    display: flex;
    align-items: center;
    text-decoration: none;
}
.logo-icon {
    margin-right: 10px;
    font-size: 28px;
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}
.nav-menu {
    display: flex;
    list-style: none;
}
.nav-menu li {
    margin-left: 30px;
}
.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-menu a:hover {
    color: #c33;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><text x="10" y="50" font-family="Arial" font-size="20" fill="rgba(255,255,255,0.05)">翻译</text></svg>');
    background-size: cover;
    color: white;
    padding: 120px 0;
    text-align: center;
}
.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}
.hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 30px;
}
.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: #c33;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}
.btn:hover {
    background-color: #a22;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 服务特色 */
.services {
    background-color: white;
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.service-card {
    background-color: #f9f9f9;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
    text-align: center;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.service-icon {
    font-size: 50px;
    color: #c33;
    margin-bottom: 25px;
}
.service-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}
.service-desc {
    color: #666;
}

/* 翻译流程 */
.process {
    background-color: #f5f5f5;
}
.process-steps {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}
.process-steps::before {
    content: "";
    position: absolute;
    top: 40px;
    left: 50px;
    right: 50px;
    height: 3px;
    background-color: #ddd;
    z-index: 1;
}
.process-step {
    width: 200px;
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}
.step-number {
    width: 80px;
    height: 80px;
    background-color: #c33;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.step-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}
.step-desc {
    color: #666;
    font-size: 14px;
}

/* 案例展示 */
.cases {
    background-color: white;
}
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.case-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
    background-color: white;
}
.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.case-image {
    height: 200px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}
.case-content {
    padding: 25px;
}
.case-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}
.case-meta {
    display: flex;
    margin-bottom: 15px;
    font-size: 14px;
    color: #999;
}
.case-meta span {
    margin-right: 15px;
}
.case-desc {
    color: #666;
    margin-bottom: 20px;
}
.case-link {
    color: #c33;
    text-decoration: none;
    font-weight: bold;
}

/* 客户评价 */
.testimonials {
    background-color: #f5f5f5;
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.testimonial-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
}
.testimonial-card::before {
    content: """;
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 60px;
    color: rgba(195, 51, 51, 0.1);
    font-family: serif;
    line-height: 1;
}
.testimonial-text {
    font-style: italic;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}
.testimonial-author {
    display: flex;
    align-items: center;
}
.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #eee;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 20px;
}
.author-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}
.author-info p {
    color: #999;
    font-size: 14px;
}

/* 权威认证 */
.certification {
    text-align: center;
    background-color: white;
}
.cert-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}
.cert-badge {
    width: 100px;
    height: 100px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #c33;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.cert-desc {
    max-width: 700px;
    margin: 40px auto 0;
    color: #666;
}

/* 翻译结果区域 */
.translation-result {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 60px;
}
.result-header {
    background-color: #c33;
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.result-title {
    font-size: 22px;
    font-weight: bold;
}
.result-meta {
    display: flex;
    font-size: 14px;
}
.result-meta span {
    margin-left: 20px;
}
.result-content {
    display: flex;
}
.original-text, .translated-text {
    flex: 1;
    padding: 30px;
    min-height: 300px;
}
.original-text {
    border-right: 1px solid #eee;
    background-color: #fafafa;
}
.text-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: #c33;
    font-weight: bold;
}
.text-content {
    line-height: 1.8;
    white-space: pre-line;
}
.text-content p {
    margin-bottom: 15px;
}
.result-footer {
    padding: 20px 30px;
    background-color: #f9f9f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.translator-info {
    display: flex;
    align-items: center;
}
.translator-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #eee;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 20px;
}
.translator-details h4 {
    font-size: 16px;
    margin-bottom: 5px;
}
.translator-details p {
    font-size: 14px;
    color: #999;
}
.result-cert-badges {
    display: flex;
    gap: 15px;
}
.result-cert-badge {
    width: 30px;
    height: 30px;
    background-color: #c33;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* 页脚 */
footer {
    background-color: #333;
    color: white;
    padding: 60px 0 30px;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 0 20px;
}
.footer-col h3 {
    font-size: 20px;
    margin-bottom: 25px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #c33;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: white;
}
.contact-info {
    margin-bottom: 20px;
    color: #ccc;
}
.copyright {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #999;
    font-size: 14px;
}
.copyright a {
    color: #ccc;
    text-decoration: none;
}
.copyright a:hover {
    color: white;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    .nav-toggle {
        display: block;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu li {
        margin: 10px 0;
    }
    .hero {
        padding: 80px 0;
    }
    .hero h1 {
        font-size: 32px;
    }
    .hero p {
        font-size: 18px;
        padding: 0 20px;
    }
    .process-steps {
        flex-direction: column;
        align-items: center;
    }
    .process-steps::before {
        display: none;
    }
    .process-step {
        margin-bottom: 30px;
    }
    .cert-badges {
        gap: 20px;
    }
    .cert-badge {
        width: 80px;
        height: 80px;
        font-size: 20px;
    }
    .result-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .result-meta {
        margin-top: 10px;
    }
    .result-meta span {
        margin-left: 0;
        margin-right: 15px;
    }
    .result-content {
        flex-direction: column;
    }
    .original-text {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    .result-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .result-cert-badges {
        margin-top: 15px;
    }
}