body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto; 
    padding: 20px;
    position: relative;
    background: white;
}

.top-bar {
    /* position: block; */
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px 10px 5px 11px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.left-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.right-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-link {
    text-decoration: none;
    transition: transform 0.3s ease;
    display: block;
}

.logo-link:hover {
    transform: translateY(-1px);
}

.logo {
    height: 36px;
    width: auto;
    display: block;
}

.hero-logo {
    font-family: 'Courier New', monospace;
    font-size: 2.8em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.language-selector {
    position: relative;
}

.lang-btn {
    padding: 8px 16px;
    min-width: 36px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.lang-btn .icon {
    width: 16px;
    height: 16px;
}

.lang-btn span {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

.lang-btn:hover {
    background-color: #fff;
    border-color: #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 100px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1001;
}

.lang-menu.show {
    display: block;
}

.lang-option {
    padding: 8px 16px;
    cursor: pointer;
    white-space: nowrap;
    color: #495057;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.lang-option:hover {
    background-color: #f8f9fa;
    color: #212529;
}

.hero {
    text-align: center;
    padding: 20px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
    margin-top: 20px;
}

h1 {
    font-size: 1.8em;
    color: #666;
    margin-bottom: 10px;
    font-weight: normal;
}

.description {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 20px;
}

.features {
    margin: 20px 0;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.feature .icon {
    width: 24px;
    height: 24px;
    margin-bottom: 10px;
}

.feature span {
    color: #666;
    font-size: 1.1em;
}

.feature-desc {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
    opacity: 0.8;
}

.tool-intro {
    margin: 40px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.tool-intro h2 {
    font-size: 1.4em;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 500;
}

.main-intro {
    font-size: 1.1em;
    color: #2c3e50;
    margin-bottom: 25px;
    line-height: 1.6;
}

.use-cases {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.use-case {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.use-case .icon {
    width: 18px;
    height: 18px;
}

.use-case span {
    color: #2c3e50;
    font-size: 1em;
}

.enter-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #3498db;
    color: white;
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.enter-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.enter-btn .icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

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

.top-enter-btn {
    order: 2;  /* 调整顺序，让它在语言选择器后面 */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #3498db;
    color: white;
    padding: 6px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
}

.top-enter-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.top-enter-btn .icon {
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
}

.top-enter-btn:hover .icon {
    transform: translateX(3px);
}

/* 反馈栏样式 */
.feedback-section {
    background-color: #f8f9fa;
    padding: 5px 0;
    margin-top: 60px;
    border-top: 1px solid #e9ecef;
}

.feedback-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.feedback-container h3 {
    font-size: 18px;
    margin-bottom: 2px;
    color: #333;
}

.feedback-items {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 0px;
}

.feedback-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.feedback-item .icon {
    width: 14px;
    height: 14px;
    color: #3498db;
}

.feedback-item a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.feedback-item a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.copyright {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

@media (max-width: 768px) {
    body {
        align-items: flex-start;  /* 改为从顶部开始布局 */
        padding-top: 60px;  /* 为固定顶栏留出空间 */
    }

    .container {
        padding: 10px;
        margin: 0;
    }
    
    .hero {
        padding: 20px 15px;
        margin: 10px;
        border-radius: 8px;
    }

    /* 语言选择按钮在移动端的样式 */
    .lang-btn {
        padding: 6px;
        min-width: 36px;
        justify-content: center;
        border: none;
        background-color: transparent;
    }

    .lang-btn .icon {
        width: 14px;
        height: 14px;
    }

    .lang-btn span {
        display: none;
    }

    .lang-btn:hover {
        background-color: #f8f9fa;
        border: 1px solid #e9ecef;
    }

    .lang-menu {
        right: 0;
        left: auto;
    }

    .features {
        display: grid;
        grid-template-columns: 1fr;  /* 单列布局 */
        gap: 20px;
        padding: 15px 0;
    }

    .feature {
        padding: 15px;
        background: rgba(255, 255, 255, 0.5);
        border-radius: 8px;
    }

    .use-cases {
        display: grid;
        grid-template-columns: 1fr;  /* 单列布局 */
        gap: 10px;
    }

    .use-case {
        width: auto;
        margin: 0;
    }

    .top-bar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        padding: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 1000;
    }

    .top-enter-btn {
        padding: 6px 12px;
        font-size: 14px;
    }

    .feedback-items {
        flex-direction: column;
        align-items: center;
    }
}

/* 添加小屏幕的样式 */
@media (max-width: 480px) {
    .logo {
        font-size: 2em;
    }

    .feature .icon {
        font-size: 24px;
    }

    .feature-desc {
        font-size: 0.85em;
    }

    .use-case {
        padding: 8px 15px;
        font-size: 0.9em;
    }

    .enter-btn {
        padding: 10px 25px;
        font-size: 1em;
    }

    .hero-logo {
        font-size: 2em;
    }
}

/* 案例展示区域 */
.examples-section {
    margin: 40px 0;
    padding: 20px 0;
    text-align: center;
}

.examples-title {
    font-size: 1.4em;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 500;
}

.examples-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 0 auto;
}

.example-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    cursor: pointer;
}

.example-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.example-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px 8px 0 0;
}

.example-title {
    padding: 12px;
    font-size: 14px;
    color: #333;
    text-align: center;
    background: rgba(255,255,255,0.95);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.examples-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 15px;
}

.pagination-btn {
    padding: 8px 16px;
    background: #f5f7fa;
    border: 1px solid #e4e7eb;
    border-radius: 4px;
    cursor: pointer;
    color: #4a5568;
    font-size: 14px;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background: #edf2f7;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 14px;
    color: #718096;
}

/* 媒体查询适配 */
@media (max-width: 768px) {
    .examples-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* ... existing code ... */
}

@media (min-width: 769px) and (max-width: 1200px) {
    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1201px) {
    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 图片预览覆层 */
.image-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.image-overlay.show {
    display: flex;
}

.image-overlay img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.example-item {
    cursor: zoom-in;
}

.example-name {
    padding: 12px;
    font-size: 16px;
    color: #2c3e50;
    text-align: center;
    background: white;
    border-bottom: 1px solid #edf2f7;
    font-weight: 500;
}

.article-link {
    color: #2c3e50;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.article-link:hover {
    color: #3498db;
}

.external-link-icon {
    width: 14px;
    height: 14px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.article-link:hover .external-link-icon {
    opacity: 1;
} 