/* 黑白简约风格 - 14ku翻译器网站样式 */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: relative; /* 供移动端下拉菜单绝对定位 */
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
}

.logo i {
    margin-right: 10px;
    color: #333;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 0;
    position: relative;
}

.nav-links a:hover {
    color: #000;
}

.nav-links a.active {
    color: #000;
    font-weight: 600;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #000;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.description {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background-color: #000;
    color: #fff;
}

.btn-primary:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #000;
    border-color: #000;
}

.btn-secondary:hover {
    background-color: #000;
    color: #fff;
    transform: translateY(-2px);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* 图片展示区域 */
.image-showcase {
    padding: 80px 0;
    background-color: #fff;
}

.image-showcase h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #000;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.image-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.image-container {
    width: 100%;
    height: 300px;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.showcase-image {
    width: 100%;
    height: 100%;
    /* 用 contain 避免截图在不同屏幕比例下被“裁掉一半” */
    object-fit: contain;
    transition: transform 0.3s;
}

.image-card:hover .showcase-image {
    transform: scale(1.05);
}

/* 放大查看模态框 */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #ccc;
}

.modal-caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 1.2rem;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
}

/* 模态框导航按钮 */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    z-index: 2001;
}

.modal-nav:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #ccc;
}

.image-placeholder {
    height: 250px;
    background-color: #e0e0e0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #666;
    padding: 20px;
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 15px;
    color: #999;
}

.image-placeholder p {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.image-placeholder small {
    font-size: 0.9rem;
    text-align: center;
}

.image-info {
    padding: 25px;
}

.image-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #000;
}

.image-info p {
    color: #555;
    line-height: 1.7;
}

/* 功能区域 */
.features {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 2rem;
    color: #333;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #000;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* 页脚 */
.footer {
    background-color: #000;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-logo i {
    margin-right: 10px;
    color: #fff;
}

.footer-description {
    color: #aaa;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ccc;
}

/* 支持我们页面 */
.support-section {
    padding: 80px 0;
    background-color: #fff;
}

.support-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    text-align: left;
}

.support-card {
    background: #f9f9f9;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 18px;
}

.support-card-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-weight: 700;
    color: #000;
}

.support-card-title i {
    font-size: 1.2rem;
    color: #333;
}

.support-qr img {
    /* 避免手机端“付款码”占比过大：随屏幕自适应缩放，桌面端保持上限 */
    width: clamp(120px, 52vw, 180px);
    height: auto;
    max-width: 100%;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px;
    display: block;
    object-fit: contain;
}

.support-hint {
    margin-top: 12px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.channel-id {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin: 6px 0 0;
    color: #000;
}

.copyright {
    color: #777;
    font-size: 0.9rem;
    margin-top: 30px;
}

/* 页面标题 */
.page-header {
    background-color: #f5f5f5;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.8rem;
    color: #000;
    margin-bottom: 15px;
}

/* 详细功能页面 */
.detailed-features {
    padding: 80px 0;
}

.feature-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

.feature-detail.reverse {
    direction: rtl;
}

.feature-detail.reverse .feature-detail-content {
    direction: ltr;
}

.feature-detail.reverse .feature-detail-image {
    direction: ltr;
}

.feature-detail-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #000;
}

.feature-detail-content h2 i {
    margin-right: 10px;
    color: #333;
}

.feature-detail-content p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.7;
}

.feature-detail-content ul {
    list-style-position: inside;
    color: #555;
}

.feature-detail-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.feature-detail-image {
    display: flex;
    justify-content: center;
}

.image-placeholder-large {
    width: 100%;
    height: 300px;
    background-color: #e0e0e0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    color: #666;
}

.image-placeholder-large i {
    margin-bottom: 20px;
    color: #999;
}

.image-placeholder-large p {
    font-size: 1.2rem;
    font-weight: 600;
}

/* 功能对比表格 */
.feature-comparison {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.comparison-table {
    overflow-x: auto;
    margin-top: 40px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
}

th, td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background-color: #f9f9f9;
    font-weight: 600;
    color: #000;
}

td i.fa-check-circle {
    color: #000;
}

td i.fa-times-circle {
    color: #999;
}

/* 下载页面 */
.download-options {
    padding: 80px 0;
}

.download-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 60px;
}

.download-icon {
    display: flex;
    align-items: center;
}

.download-info h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #000;
}

.version, .release-date, .file-size {
    color: #666;
    margin-bottom: 10px;
}

.system-requirements {
    margin: 25px 0;
}

.system-requirements h3 {
    margin-bottom: 10px;
    color: #000;
}

.system-requirements ul {
    list-style-position: inside;
    color: #555;
}

.download-note {
    margin-top: 20px;
    color: #777;
    font-style: italic;
}

.coming-soon {
    text-align: center;
    padding: 40px 0;
}

.platforms {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.platform {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.platform i {
    margin-bottom: 10px;
    color: #999;
}

.badge {
    background-color: #e0e0e0;
    color: #666;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* 安装指南 */
.installation-guide {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step {
    display: flex;
    align-items: flex-start;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: #000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 10px;
    color: #000;
}

.step-content p {
    color: #555;
    line-height: 1.6;
}

/* 常见问题 */
.faq {
    padding: 80px 0;
}

.faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.2rem;
    color: #000;
}

.faq-answer {
    padding-top: 15px;
    color: #555;
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* 关于页面 */
.about-content {
    padding: 80px 0;
}

.about-intro {
    max-width: 800px;
    margin: 0 auto 60px;
}

.about-intro h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #000;
}

.about-intro p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.7;
}

.team-section {
    margin-bottom: 60px;
}

.team-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #000;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.team-member {
    display: flex;
    align-items: flex-start;
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
}

.member-avatar {
    width: 60px;
    height: 60px;
    background-color: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.member-info h3 {
    margin-bottom: 5px;
    color: #000;
}

.member-role {
    color: #666;
    font-weight: 500;
    margin-bottom: 10px;
}

.timeline-section {
    margin-bottom: 60px;
}

.timeline-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #000;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
}

.timeline-date {
    width: 150px;
    font-weight: 600;
    color: #000;
    flex-shrink: 0;
}

.timeline-content {
    flex-grow: 1;
    padding-left: 30px;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 10px;
    height: 10px;
    background-color: #000;
    border-radius: 50%;
}

.timeline-content h3 {
    margin-bottom: 10px;
    color: #000;
}

.contact-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #000;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
}

.contact-item i {
    font-size: 1.5rem;
    margin-right: 20px;
    color: #333;
    margin-top: 5px;
}

.contact-item h3 {
    margin-bottom: 10px;
    color: #000;
}

.contact-item p {
    color: #555;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* 汉堡菜单展开态 */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 12px 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
        z-index: 1500;
    }

    .nav-links.active li {
        margin: 10px 0;
    }

    .nav-links.active a {
        padding: 10px 0;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-detail {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 50px;
    }
    
    .feature-detail.reverse {
        direction: ltr;
    }
    
    .download-card {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px;
    }
    
    .platforms {
        flex-direction: column;
        gap: 20px;
    }
    
    .guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .team-members {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    .support-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .support-card-title {
        justify-content: center;
    }

    .support-qr img {
        margin: 0 auto;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .support-qr img {
        width: clamp(110px, 46vw, 150px);
        padding: 8px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .image-showcase h2,
    .features h2,
    .feature-comparison h2,
    .installation-guide h2,
    .faq h2,
    .team-section h2,
    .timeline-section h2,
    .contact-section h2 {
        font-size: 1.8rem;
    }
    
    .timeline-item {
        flex-direction: column;
    }
    
    .timeline-date {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .timeline-content {
        padding-left: 0;
    }
    
    .timeline-content::before {
        display: none;
    }
}
