* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    overflow-x: hidden;
}

/* 顶部导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-logo img {
    height: 50px;
    width: 50px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.navbar-logo img:hover {
    transform: scale(1.1);
}

.icp-beian {
    font-size: 0.85rem;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: inline-block;
    backdrop-filter: blur(5px);
}

.icp-beian:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.08);
    border-color: rgba(0, 123, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.navbar-menu li {
    position: relative;
}

.navbar-menu a {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
}

.navbar-menu a:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #007bff;
    transform: translateY(-2px);
}

/* 下拉菜单 */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.dropdown-toggle .arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 150px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 8px 0;
    margin: 5px 0 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    padding: 10px 20px;
    display: block;
    color: #333;
    border-radius: 0;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    transform: translateX(5px);
}

/* 导航栏滚动效果 */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* 汉堡菜单按钮 - 默认隐藏 */
.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.navbar-toggle span {
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* 顶部背景容器 - 固定在顶部 */
.header-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 500px;
    z-index: -1;
    background-image: url('./heyu/hetu(1).png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    transition: opacity 0.3s ease;
}

/* 法咨页面背景 */
.header-background.fazhi-bg {
    background-image: url('./Image/法咨.png');
}

/* 智能庭页面背景 */
.header-background.zhinengting-bg {
    background-image: url('./Image/智能庭.png');
}

/* 小记事页面背景 */
.header-background.xiaojishi-bg {
    background-image: url('./Image/小记事.png');
}

/* 编码测试仪页面背景 */
.header-background.bianmaceshiyi-bg {
    background-image: url('./Image/编码测试仪.png');
}

/* HubHub页面背景 */
.header-background.hubhub-bg {
    background-image: url('./hubhub/hubhub.png');
}

/* 简单邮箱页面背景 */
.header-background.jiandanyouxiang-bg {
    background-image: url('./Image/简单邮箱.png');
}

/* 无他乎页面背景 */
.header-background.wutahu-bg {
    background-image: url('./无他乎/wutahu.png');
}

/* 小说页面背景 */
.header-background.xiaoshuo-bg {
    background-image: url('./小说/我花-红.png');
}

/* 渐变遮罩层 - 从顶部30%透明度到底部100%透明 */
.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.5) 30%,
        rgba(255, 255, 255, 0.7) 60%,
        rgba(255, 255, 255, 1) 100%
    );
}

/* 内容包装器 */
.content-wrapper {
    position: relative;
    z-index: 1;
}

/* 主标题区域 */
.main-header {
    padding: 180px 20px 100px;
    text-align: center;
    color: #333;
}

.main-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-header p {
    font-size: 1.2rem;
    color: #666;
}

/* 主要内容区域 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.content-section {
    background: white;
    padding: 60px 40px;
    margin-bottom: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.content-section.heyu-intro {
    min-height: auto;
    overflow: visible !important;
    position: relative;
    background: white; /* 移除背景图片，使用白色背景 */
}

.heyu-intro {
    overflow: visible !important;
}

.heyu-intro::before {
    display: none; /* 隐藏背景遮罩 */
}

.heyu-intro h2,
.heyu-intro p {
    position: relative;
    z-index: 1;
}

.heyu-intro h2 {
    color: #2c3e50;
}

.heyu-intro p {
    color: #333;
    font-weight: 500;
}

/* 委托管理流程图样式 - 长方形布局 */
.task-flow-circle {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
    padding: 30px;
}

.task-flow-step {
    position: relative !important;
    width: 100% !important;
    background: white;
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin: 0 !important;
}

.task-flow-step:hover {
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(184, 149, 106, 0.4);
    border-color: #b8956a;
    z-index: 10;
}

/* 使用伪元素添加箭头 */
.task-flow-step::after {
    content: '';
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

/* 第一行步骤的箭头（向右） */
.task-step-1::after,
.task-step-2::after,
.task-step-3::after {
    content: '→';
    right: -17px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #b8956a;
    font-weight: bold;
    width: 30px;
    text-align: center;
}

/* 步骤4的箭头（向下） */
.task-step-4::after {
    content: '↓';
    bottom: -17px;
    right: 50%;
    transform: translateX(50%);
    font-size: 2rem;
    color: #b8956a;
    font-weight: bold;
    height: 30px;
    line-height: 30px;
    text-align: center;
}

/* 第二行步骤的箭头（向左） */
.task-step-5::after,
.task-step-6::after,
.task-step-7::after {
    content: '←';
    left: -17px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #b8956a;
    font-weight: bold;
    width: 30px;
    text-align: center;
}

/* 步骤8不需要箭头 */
.task-step-8::after {
    display: none;
}

.task-flow-number {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #b8956a 0%, #9a7a4a 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0 auto 12px;
    box-shadow: 0 3px 10px rgba(184, 149, 106, 0.3);
}

.task-flow-success .task-flow-number {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

.task-flow-content h3 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.task-flow-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: normal;
}

/* 长方形布局 - 蛇形排列 */
.task-step-1 {
    grid-column: 1;
    grid-row: 1;
}

.task-step-2 {
    grid-column: 2;
    grid-row: 1;
}

.task-step-3 {
    grid-column: 3;
    grid-row: 1;
}

.task-step-4 {
    grid-column: 4;
    grid-row: 1;
}

.task-step-5 {
    grid-column: 4;
    grid-row: 2;
}

.task-step-6 {
    grid-column: 3;
    grid-row: 2;
}

.task-step-7 {
    grid-column: 2;
    grid-row: 2;
}

.task-step-8 {
    grid-column: 1;
    grid-row: 2;
}

/* 隐藏HTML中的箭头元素 */
.task-flow-arrow-right,
.task-flow-arrow-down,
.task-flow-arrow-left {
    display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .task-flow-circle {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, auto);
        gap: 15px;
        padding: 20px;
    }
    
    .task-flow-step {
        padding: 20px 15px;
    }
    
    .task-flow-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .task-flow-content h3 {
        font-size: 1rem;
    }
    
    .task-flow-content p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .task-flow-circle {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(8, auto);
        gap: 15px;
        padding: 15px;
    }
    
    .task-flow-step {
        padding: 18px 15px;
    }
    
    .task-flow-number {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .task-flow-content h3 {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }
    
    .task-flow-content p {
        font-size: 0.8rem;
    }
}

/* 应用展示区 - 图片轮播 */
.app-showcase {
    overflow: visible;
}

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

/* 功能卡片网格布局 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
    padding: 0;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #b8956a;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(184, 149, 106, 0.3);
    border-left-color: #9a7a4a;
}

.feature-card h3 {
    margin: 0 0 12px 0;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
}

/* 居中标题样式 */
.section-title-center {
    text-align: center;
}

/* 更新通知区域 */
.content-section.update-notice {
    background-image: url('./Image/背景1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    padding: 60px 40px;
    min-height: 300px;
}

.content-section.update-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 0;
}

.content-section.update-notice h2,
.content-section.update-notice p {
    position: relative;
    z-index: 1;
}

.content-section.update-notice h2 {
    color: #2c3e50;
}

.content-section.update-notice p {
    color: #333;
}

.feature-card p {
    margin: 0;
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
}

/* 日记记录样式 */
.diary-container {
    margin: 30px 0;
}

.diary-entry {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #007bff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.diary-entry:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2);
}

.diary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f4f8;
}

.diary-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
}

.diary-date {
    color: #7f8c8d;
    font-size: 0.95rem;
    font-weight: 500;
}

.diary-content p {
    line-height: 1.9;
    color: #555;
    margin: 15px 0;
    font-size: 1.05rem;
}

.diary-content p:first-child {
    margin-top: 0;
}

.diary-content p:last-of-type {
    margin-bottom: 20px;
}

.email-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.email-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 反馈框样式 */
.feedback-box {
    margin-top: 25px;
    padding: 25px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    border-left: 5px solid #007bff;
}

.feedback-box h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
}

.feedback-box p {
    margin: 10px 0;
    color: #444;
    line-height: 1.8;
}

.feedback-note {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
}

/* API服务列表样式 */
.api-services {
    margin-top: 30px;
    padding: 25px;
    background: white;
    border-radius: 10px;
    border: 2px solid #e0e6ed;
}

.api-services h4 {
    margin: 0 0 25px 0;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

.service-category {
    margin-bottom: 30px;
}

.service-category:last-child {
    margin-bottom: 0;
}

.category-title {
    margin: 0 0 15px 0;
    padding: 10px 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e0e6ed 100%);
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 5px;
    border-left: 4px solid #007bff;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.service-item {
    padding: 20px;
    border-radius: 10px;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item.builtin {
    background: linear-gradient(135deg, #4a90e2 0%, #5ca9e6 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.service-item.builtin:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.25);
}

.service-item.custom {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(74, 144, 226, 0.3);
    backdrop-filter: blur(10px);
}

.service-item.custom:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-item h5 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.service-item p {
    margin: 0 0 15px 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.service-link {
    display: inline-block;
    padding: 10px 24px;
    background: white;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.service-link:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.service-link.disabled {
    background: rgba(255, 255, 255, 0.5);
    cursor: default;
    pointer-events: none;
    box-shadow: none;
}

.api-note {
    margin: 20px 0 0 0;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    border-radius: 5px;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* AI模型按钮列表样式 */
.ai-model-list {
    margin-top: 30px;
    padding: 25px;
    background: white;
    border-radius: 10px;
    border: 2px solid #e0e6ed;
}

.ai-model-list h4 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

.model-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.model-btn {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    border: 2px solid #4a90e2 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    min-height: 60px;
    cursor: pointer;
}

.model-btn:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%);
    border-color: #2c7ac7;
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.25);
}

.model-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50 !important;
    text-decoration: none;
}

.model-desc {
    font-size: 0.9rem;
    color: #6c757d !important;
    text-decoration: none;
}

/* 下载区域样式 */
.download-section {
    margin-top: 30px;
    padding: 25px;
    background: white;
    border-radius: 10px;
    border: 2px solid #e0e6ed;
}

.download-section h4 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

.download-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.download-btn {
    display: block;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #28a745;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    text-align: center;
}

.download-btn:hover {
    background: linear-gradient(135deg, #d4edda 0%, #f8f9fa 100%);
    border-color: #218838;
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.25);
}

.download-btn.folder {
    border-color: #007bff;
}

.download-btn.folder:hover {
    background: linear-gradient(135deg, #cfe2ff 0%, #f8f9fa 100%);
    border-color: #0056b3;
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.25);
}

.btn-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

.btn-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.btn-desc {
    font-size: 0.9rem;
    color: #6c757d;
}

/* 图片展示样式 */
.image-showcase {
    margin: 30px 0;
    width: 100%;
}

.showcase-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-items: center;
}

.showcase-item {
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.showcase-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.showcase-item img {
    width: 100%;
    height: auto;
    display: block;
}

.diary-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e6ed;
}

.diary-tags .tag {
    padding: 6px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.diary-tags .tag:hover {
    transform: scale(1.05);
}

/* 社区头像展示 */
.community-avatars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 40px 0;
    padding: 20px;
}

.avatar-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.2);
    transition: all 0.3s ease;
    border: 3px solid white;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    flex-shrink: 0;
}

.avatar-item:nth-child(1) {
    animation-delay: 0.1s;
}

.avatar-item:nth-child(2) {
    animation-delay: 0.3s;
}

.avatar-item:nth-child(3) {
    animation-delay: 0.5s;
}

.avatar-item:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 12px 32px rgba(0, 123, 255, 0.4);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.avatar-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.community-stats {
    margin-top: 30px;
    font-size: 1.1rem;
    color: #666;
}

.community-stats strong {
    color: #007bff;
    font-size: 1.3rem;
}

/* 功能描述区域 */
.feature-description {
    margin: 30px 0 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border-left: 4px solid #007bff;
}

.feature-description p {
    font-size: 1.05rem;
    line-height: 2;
    color: #444;
    margin: 15px 0;
    text-align: justify;
}

.feature-description p:first-child {
    margin-top: 0;
}

.feature-description p:last-child {
    margin-bottom: 0;
}

/* 设计文档按钮区域 */
.guide-docs {
    margin-top: 40px;
    padding: 30px;
    background: rgba(240, 244, 248, 0.5);
    border-radius: 12px;
}

.guide-docs h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.3rem;
}

/* 折叠区域 */
.doc-section {
    margin-bottom: 20px;
}

.section-toggle {
    width: 100%;
    padding: 15px 20px;
    background: white;
    border: 2px solid #007bff;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #007bff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-toggle:hover {
    background: #007bff;
    color: white;
}

.section-toggle.collapsed {
    border-color: #6c757d;
    color: #6c757d;
}

.section-toggle.collapsed:hover {
    background: #6c757d;
    color: white;
}

.toggle-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.section-toggle.collapsed .toggle-icon {
    transform: rotate(0deg);
}

.section-content {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
    opacity: 1;
    margin-top: 15px;
}

.section-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.doc-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.doc-btn {
    padding: 15px 20px;
    background: white;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    color: #2c3e50;
    font-weight: 500;
}

.doc-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* 全屏文档预览器 */
.doc-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 10000;
    display: none;
    flex-direction: column;
}

.doc-viewer.active {
    display: flex;
}

.doc-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #2c3e50;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.doc-viewer-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.doc-close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.doc-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.doc-viewer-content {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
    background: #f8f9fa;
}

.doc-loading {
    text-align: center;
    padding: 50px;
    font-size: 1.2rem;
    color: #666;
}

/* Markdown样式 */
.doc-viewer-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
}

.doc-viewer-content code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
}

.doc-viewer-content pre code {
    background: transparent;
    padding: 0;
}

.doc-viewer-content h1,
.doc-viewer-content h2,
.doc-viewer-content h3,
.doc-viewer-content h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.doc-viewer-content h1 {
    font-size: 2.5rem;
    border-bottom: 3px solid #007bff;
    padding-bottom: 10px;
}

.doc-viewer-content h2 {
    font-size: 2rem;
    border-bottom: 2px solid #e0e6ed;
    padding-bottom: 8px;
}

.doc-viewer-content h3 {
    font-size: 1.5rem;
}

.doc-viewer-content h4 {
    font-size: 1.3rem;
    color: #495057;
}

.doc-viewer-content ul,
.doc-viewer-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.doc-viewer-content li {
    margin: 8px 0;
    line-height: 1.8;
}

.doc-viewer-content .status-icon {
    display: inline-block;
    margin-right: 5px;
    font-size: 0.9em;
}

.doc-viewer-content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 20px;
    margin: 20px 0;
    color: #666;
    font-style: italic;
}

.doc-viewer-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.doc-viewer-content table th,
.doc-viewer-content table td {
    border: 1px solid #e0e6ed;
    padding: 12px;
    text-align: left;
}

.doc-viewer-content table th {
    background: #f4f7fa;
    font-weight: 600;
}

.doc-viewer-content img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.doc-viewer-content a {
    color: #007bff;
    text-decoration: none;
}

.doc-viewer-content a:hover {
    text-decoration: underline;
}

.doc-viewer-content p {
    line-height: 1.8;
    margin: 15px 0;
    color: #333;
}

.doc-viewer-content hr {
    border: none;
    border-top: 2px solid #e0e6ed;
    margin: 30px 0;
}

.doc-viewer-content strong {
    color: #2c3e50;
    font-weight: 600;
}

/* 文档列表样式 - 优化版 */
.doc-list-container {
    margin-top: 30px;
}

.doc-center-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #007bff;
    font-weight: 700;
    text-align: center;
}

.doc-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 文档分类卡片 */
.doc-category-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e0e6ed;
}

.doc-category-card:hover {
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
}

/* 分类头部 - 可点击 */
.doc-category-header {
    padding: 20px 24px;
    background: #2d3748;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: all 0.3s ease;
}

.doc-category-header:hover {
    background: #1a202c;
}

.category-header-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.category-title {
    font-size: 1.4rem;
    color: #ffffff;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
}

.category-count {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.category-toggle-icon {
    font-size: 1.3rem;
    color: #ffffff;
    transition: transform 0.3s ease;
    margin-left: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: bold;
}

.doc-category-card.collapsed .category-toggle-icon {
    transform: rotate(-90deg);
}

/* 分类内容 - 可折叠 */
.doc-category-content {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 1;
}

.doc-category-card.collapsed .doc-category-content {
    max-height: 0;
    opacity: 0;
}

/* 文档项网格布局 */
.doc-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px 24px;
    background: #ffffff;
}

/* 文档项按钮样式 - 完全参考hubhub的doc-btn样式 */
.doc-item-btn {
    padding: 18px 22px;
    background: white;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    color: #2c3e50;
    font-weight: 500;
    text-decoration: none;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.doc-item-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.25);
}

.doc-btn-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.doc-btn-name {
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.4;
}

.doc-btn-desc {
    font-size: 0.85rem;
    opacity: 0.7;
    line-height: 1.4;
}

.doc-item-btn:hover .doc-btn-name,
.doc-item-btn:hover .doc-btn-desc {
    color: white;
    opacity: 1;
}

/* 统一使用中性色调，减少颜色使用 */
.doc-category-card[data-category="overview"] .doc-category-header,
.doc-category-card[data-category="userguide"] .doc-category-header,
.doc-category-card[data-category="technical"] .doc-category-header {
    background: #2d3748;
}

.doc-category-card[data-category="overview"] .doc-category-header:hover,
.doc-category-card[data-category="userguide"] .doc-category-header:hover,
.doc-category-card[data-category="technical"] .doc-category-header:hover {
    background: #1a202c;
}

/* 所有按钮悬停统一使用蓝色，而不是不同颜色 */
.doc-category-card[data-category="overview"] .doc-item-btn:hover,
.doc-category-card[data-category="userguide"] .doc-item-btn:hover,
.doc-category-card[data-category="technical"] .doc-item-btn:hover {
    background: #007bff;
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .doc-center-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .doc-list {
        gap: 15px;
    }
    
    .doc-category-header {
        padding: 16px 18px;
    }
    
    .category-icon {
        font-size: 1.5rem;
    }
    
    .category-title {
        font-size: 1.1rem;
    }
    
    .category-count {
        font-size: 0.75rem;
        padding: 3px 10px;
    }
    
    .doc-items-grid {
        grid-template-columns: 1fr;
        padding: 15px 18px;
        gap: 12px;
    }
    
    .doc-item-btn {
        padding: 14px 18px;
        font-size: 0.95rem;
    }
    
    .doc-btn-name {
        font-size: 1rem;
    }
    
    .doc-btn-desc {
        font-size: 0.85rem;
    }
}

/* 返回顶部按钮 */
.doc-back-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 10001;
}

.doc-back-top.visible {
    opacity: 1;
    visibility: visible;
}

.doc-back-top:hover {
    background: #0056b3;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.image-carousel {
    position: relative;
    width: 100%;
    margin-top: 30px;
}

.carousel-container {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    will-change: transform;
}

.carousel-item {
    flex: 0 0 auto;
    width: 280px;
}

.carousel-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.carousel-item img:hover {
    transform: scale(1.05);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: -20px;
}

.carousel-btn.next {
    right: -20px;
}

/* 大屏幕：优化显示 */
@media (min-width: 1600px) {
    .carousel-item {
        width: 300px;
    }
    
    .carousel-btn {
        opacity: 0.7;
    }
    
    .carousel-btn:hover {
        opacity: 1;
    }
}

/* 中等屏幕优化 */
@media (max-width: 1024px) and (min-width: 769px) {
    .avatar-item {
        width: 90px;
        height: 90px;
    }
    
    .community-avatars {
        gap: 20px;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-container {
        padding: 10px 20px;
        flex-wrap: wrap;
    }

    .navbar-logo img {
        height: 40px;
        width: 40px;
    }

    .icp-beian {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, box-shadow 0.3s ease;
        box-shadow: none;
    }

    .navbar-menu.active {
        max-height: 500px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .navbar-menu > li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .navbar-menu a {
        font-size: 1rem;
        padding: 15px 20px;
        border-radius: 0;
        width: 100%;
    }

    .navbar-menu a:hover {
        background: rgba(0, 123, 255, 0.1);
    }

    /* 移动端下拉菜单 */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.02);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        max-height: 200px;
    }

    .dropdown-toggle .arrow {
        margin-left: auto;
    }

    .dropdown-menu a {
        padding: 12px 30px;
        font-size: 0.95rem;
    }

    .main-header {
        padding: 140px 20px 80px;
    }

    .main-header h1 {
        font-size: 2rem;
    }

    .main-header p {
        font-size: 1rem;
    }

    .content-section {
        padding: 40px 20px;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .content-section p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        padding: 8px 15px;
    }

    .navbar-logo img {
        height: 35px;
        width: 35px;
    }

    .navbar-logo {
        gap: 10px;
    }

    .icp-beian {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .navbar-menu a {
        font-size: 0.95rem;
        padding: 12px 15px;
    }

    .main-header {
        padding: 120px 15px 60px;
    }

    .main-header h1 {
        font-size: 1.75rem;
    }

    .content-section {
        padding: 30px 15px;
    }
    
    .heyu-intro::before {
        background: rgba(255, 255, 255, 0.9);
    }
    
    .heyu-intro p {
        font-size: 0.95rem;
    }
    
    .carousel-item {
        width: 220px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
    
    .carousel-btn.prev {
        left: -10px;
    }
    
    .carousel-btn.next {
        right: -10px;
    }
    
    .doc-buttons {
        grid-template-columns: 1fr;
    }
    
    .doc-btn {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .guide-docs {
        padding: 20px;
    }
    
    .doc-viewer-header {
        padding: 15px 20px;
    }
    
    .doc-viewer-header h2 {
        font-size: 1.2rem;
    }
    
    .doc-viewer-content {
        padding: 20px;
    }
    
    .doc-viewer-content h1 {
        font-size: 1.8rem;
    }
    
    .doc-viewer-content h2 {
        font-size: 1.5rem;
    }
    
    .doc-viewer-content h3 {
        font-size: 1.2rem;
    }
    
    .doc-back-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .feature-description {
        padding: 20px;
        margin: 20px 0 30px;
    }
    
    .feature-description p {
        font-size: 1rem;
        line-height: 1.8;
        text-align: left;
    }
    
    .community-avatars {
        gap: 12px;
        padding: 10px;
        margin: 30px 0;
    }
    
    .avatar-item {
        width: 70px;
        height: 70px;
        border: 2px solid white;
    }
    
    .community-stats {
        font-size: 1rem;
        margin-top: 20px;
    }
    
    .community-stats strong {
        font-size: 1.2rem;
    }
}

/* 专业团队部分 */
.team-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.team-item {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
}

.team-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.15);
}

.team-item h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.team-item p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 12px;
}

.team-item strong {
    color: #007bff;
    font-weight: 600;
}

.contact-email {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    text-align: center;
}

.contact-email a {
    color: #007bff;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-email a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 响应式设计 - 手机端 */
@media (max-width: 768px) {
    .team-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .team-item {
        padding: 20px;
    }
    
    .team-item h3 {
        font-size: 1.3rem;
    }
    
    .team-item p {
        font-size: 1rem;
    }
}
.core-features-section {
    margin: 40px 0;
    padding: 30px 0;
    clear: both;
}

.flow-title {
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

.flow-container {
    display: flex !important;
    align-items: center;
    justify-content: flex-start; /* 改为从左边开始，而不是居中 */
    flex-wrap: wrap;
    gap: 20px;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    width: 100%;
    box-sizing: border-box;
}

.flow-node {
    flex: 0 0 auto;
    width: 180px;
    padding: 25px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    display: block !important;
}

.flow-node:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.25);
    border: 2px solid #007bff;
}

.flow-thumbnail {
    display: none; /* 隐藏图标区域，因为已移除emoji */
}

.flow-icon {
    display: none; /* 隐藏图标 */
}

.flow-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.flow-subtitle {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 8px;
}

.flow-click-hint {
    font-size: 0.75rem;
    color: #007bff;
    opacity: 0.8;
    margin-top: 8px;
}

.flow-arrow {
    font-size: 2rem;
    color: #cbd5e0;
    font-weight: 300;
    flex: 0 0 auto;
}

/* 文档链接按钮 */
.doc-link-section {
    margin-top: 50px;
    text-align: center;
}

.doc-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.doc-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.doc-link-icon {
    font-size: 1.5rem;
}

/* 流程图详情模态框 */
.flow-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.flow-detail-modal.active {
    display: flex;
}

.flow-detail-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.flow-detail-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: #e2e8f0;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2d3748;
}

.flow-detail-close:hover {
    background: #cbd5e0;
    transform: rotate(90deg);
}

.flow-detail-title {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 30px;
    padding-right: 60px;
}

.flow-detail-flow {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-detail-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: #4a5568;
}

.flow-detail-desc h3 {
    font-size: 1.3rem;
    color: #2d3748;
    margin-top: 25px;
    margin-bottom: 15px;
}

.flow-detail-desc ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.flow-detail-desc li {
    margin-bottom: 10px;
}

.flow-detail-desc .highlight {
    background: #fff3cd;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.flow-detail-desc .rule-box {
    background: #e7f3ff;
    border-left: 4px solid #007bff;
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 4px;
}

/* 详细流程图样式 */
.detail-flow-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.detail-flow-step {
    background: white;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    text-align: center;
    position: relative;
}

.detail-flow-step::after {
    content: '↓';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: #cbd5e0;
}

.detail-flow-step:last-child::after {
    display: none;
}

.detail-flow-step-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
}

.detail-flow-step-desc {
    font-size: 0.95rem;
    color: #718096;
}

.detail-flow-branch {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.detail-flow-branch-item {
    flex: 1;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* 响应式设计 - 电脑端 */
@media (min-width: 769px) {
    .flow-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 40px 20px; /* 减少左右padding，确保从左边开始 */
        justify-content: flex-start; /* 确保从左边开始 */
    }

    .flow-container::-webkit-scrollbar {
        height: 8px;
    }

    .flow-container::-webkit-scrollbar-track {
        background: #e2e8f0;
        border-radius: 4px;
    }

    .flow-container::-webkit-scrollbar-thumb {
        background: #cbd5e0;
        border-radius: 4px;
    }

    .flow-container::-webkit-scrollbar-thumb:hover {
        background: #a0aec0;
    }

    .flow-node {
        flex-shrink: 0;
    }

    .flow-arrow {
        flex-shrink: 0;
    }
}

/* 响应式设计 - 手机端 */
@media (max-width: 768px) {
    .core-features-section {
        margin: 30px 0;
        padding: 20px 0;
    }

    .flow-title {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .flow-container {
        flex-direction: column;
        gap: 15px;
        padding: 20px 15px;
    }

    .flow-node {
        width: 100%;
        max-width: 280px;
        padding: 20px 15px;
    }

    .flow-thumbnail {
        display: none; /* 隐藏图标区域 */
    }

    .flow-icon {
        display: none; /* 隐藏图标 */
    }

    .flow-label {
        font-size: 1rem;
    }

    .flow-subtitle {
        font-size: 0.85rem;
    }

    .flow-click-hint {
        font-size: 0.7rem;
    }

    .flow-arrow {
        transform: rotate(90deg);
        font-size: 1.5rem;
        margin: 5px 0;
    }

    .flow-detail-content {
        padding: 30px 20px;
        max-height: 95vh;
    }

    .flow-detail-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .flow-detail-flow {
        padding: 20px;
        min-height: 200px;
    }

    .doc-link-btn {
        padding: 14px 24px;
        font-size: 1rem;
        flex-direction: column;
        gap: 8px;
    }

    .detail-flow-step {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .flow-node {
        max-width: 100%;
    }

    .flow-detail-content {
        padding: 20px 15px;
    }

    .flow-detail-title {
        font-size: 1.3rem;
        padding-right: 40px;
    }

    .flow-detail-close {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
        top: 15px;
        right: 15px;
    }
}

.section-content {
    margin-top: 10px;
}

.feedback-box {
    padding: 20px;
}

.feedback-box h4 {
    font-size: 1.1rem;
}

.feedback-box p {
    font-size: 0.95rem;
}
    
    .feedback-note {
        font-size: 0.9rem;
    }
    
    .api-services {
        padding: 20px;
    }
    
    .api-services h4 {
        font-size: 1.1rem;
    }
    
    .service-category {
        margin-bottom: 25px;
    }
    
    .category-title {
        font-size: 1rem;
        padding: 8px 12px;
    }
    
    .service-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .service-item {
        padding: 15px;
    }
    
    .service-item h5 {
        font-size: 1.1rem;
    }
    
    .service-item p {
        font-size: 0.9rem;
    }
    
    .service-link {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .api-note {
        font-size: 0.9rem;
        padding: 12px;
    }
    
    .showcase-images {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .showcase-item {
        max-width: 100%;
    }
    
    .ai-model-list {
        padding: 20px;
    }
    
    .ai-model-list h4 {
        font-size: 1.1rem;
    }
    
    .model-buttons {
        gap: 12px;
    }
    
    .model-btn {
        padding: 15px 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .model-btn:hover {
        transform: translateY(-2px);
    }
    
    .model-name {
        font-size: 1rem;
    }
    
    .model-desc {
        font-size: 0.85rem;
    }
    
    .download-section {
        padding: 20px;
    }
    
    .download-section h4 {
        font-size: 1.1rem;
    }
    
    .download-buttons {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .download-btn {
        padding: 18px 20px;
    }
    
    .btn-title {
        font-size: 1rem;
    }
    
    .btn-desc {
        font-size: 0.85rem;
    }
    
    .diary-entry {
        padding: 20px;
    }
    
    .diary-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .diary-header h3 {
        font-size: 1.2rem;
    }
    
    .diary-date {
        font-size: 0.85rem;
    }
    
    .diary-content p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .diary-tags .tag {
        font-size: 0.85rem;
        padding: 5px 12px;
    }
}

/* 不支持预览样式 */
.preview-disabled {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-disabled-content {
    text-align: center;
    padding: 60px 40px;
    max-width: 600px;
}

.preview-disabled-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.7;
}

.preview-disabled-title {
    font-size: 2rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: 600;
}

.preview-disabled-description {
    font-size: 1.1rem;
    color: #999;
    line-height: 1.8;
    margin: 0;
}

/* 虚化内容样式 */
.blurred-content {
    position: relative;
    filter: blur(3px);
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}

.blurred-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .preview-disabled-icon {
        font-size: 3rem;
    }
    
    .preview-disabled-title {
        font-size: 1.5rem;
    }
    
    .preview-disabled-description {
        font-size: 1rem;
    }
    
    .preview-disabled-content {
        padding: 40px 20px;
    }
}
