html {
    scroll-behavior: smooth;
}

/* 基础样式 - 简约风格 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f7fa;
    color: #2c3e50;
    line-height: 1.6;
}

.container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    background-color: #ffffff;
    min-height: 100vh;
}

/* 头部区域 - 简约设计 */
.header {
    text-align: center;
    padding: 40px 20px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 0;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin: 0 auto 20px;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.title {
    font-size: 28px;
    margin: 15px 0 10px;
    font-weight: 700;
    color: white;
}

.subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-weight: 400;
}

/* 广告横幅 */
.ad-banner-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.ad-banner {
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 8px 0;
    position: relative;
}

.ad-close-btn {
    position: absolute;
    top: -25px;
    right: 10px;
    background-color: rgba(0,0,0,0.6);
    color: #fff;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    z-index: 1001;
}

.ad-banner img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 图片容器 */
.image-container {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* 按钮基础样式 - 简约风格 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #5a6fd8;
    transform: translateY(-1px);
}

/* 微信提示 */
.wxTip {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.8);
}

.wxTip .test {
    display: flex;
    justify-content: flex-end;
    padding: 20px 5%;
}

.wxTip .test img {
    width: 200px;
    height: auto;
    margin-top: 20px;
    margin-right: 20px;
}

/* 主页分类网格 - 移动优先设计 */
.category-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    margin: 0;
}

.category-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e1e8ed;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.category-icon {
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
}

.category-content {
    padding: 20px;
    position: relative;
}

.category-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    line-height: 1.3;
}

.category-desc {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.5;
    margin-bottom: 16px;
}

.category-count {
    display: inline-block;
    background-color: #ecf0f1;
    color: #667eea;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 8px;
    float: left;
}

/* 介绍部分 */
.intro-section {
    text-align: center;
    padding: 30px 20px;
    background-color: white;
}

.intro-title {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 600;
}

.intro-desc {
    font-size: 16px;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 教程列表 - 简约卡片设计 */
.tutorial-list {
    padding: 20px;
    margin: 0;
}

.tutorial-item {
    background-color: white;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    border: 1px solid #e1e8ed;
}

.tutorial-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.tutorial-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background-color: #f8f9fa;
    cursor: pointer;
    border-bottom: 1px solid #e1e8ed;
}

.tutorial-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-right: 16px;
    flex-shrink: 0;
}

.tutorial-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    flex-grow: 1;
    line-height: 1.3;
}

.tutorial-duration {
    background-color: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.tutorial-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tutorial-desc {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #7f8c8d;
    font-size: 14px;
}

.tutorial-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tutorial-btn:hover {
    background-color: #5a6fd8;
    transform: translateY(-1px);
}

/* 返回按钮 */
.back-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    background-color: #f8f9fa;
    color: #667eea;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin: 20px;
    transition: all 0.2s ease;
    border: 1px solid #e1e8ed;
}

.back-btn:hover {
    background-color: #e9ecef;
    transform: translateY(-1px);
}

.back-btn:before {
    content: "←";
    margin-right: 6px;
    font-size: 16px;
}

/* 客服页面样式 */
.service-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 0;
}

.service-title {
    font-size: 24px;
    margin: 0;
    font-weight: 600;
}

.service-content {
    background-color: white;
    padding: 30px 20px;
    margin-bottom: 20px;
}

.service-message {
    margin-bottom: 24px;
}

.greeting {
    font-weight: 600;
    margin-bottom: 12px;
    color: #2c3e50;
}

.message-text {
    line-height: 1.6;
    color: #7f8c8d;
    text-indent: 2em;
}

.service-buttons {
    text-align: center;
    margin: 24px 0;
}

.service-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin: 8px 0;
}

.service-btn:hover {
    background-color: #5a6fd8;
    transform: translateY(-1px);
}

.service-contact {
    text-align: center;
    margin-top: 20px;
}

.service-contact p {
    margin: 16px 0;
    line-height: 1.6;
    color: #7f8c8d;
}

.phone-number {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 20px 0;
    padding: 16px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: inline-block;
}

.thank-note {
    font-style: italic;
    margin-top: 20px;
    color: #95a5a6;
}

.service-commitment {
    margin: 30px 0;
    padding: 0 20px;
}

.commitment-title {
    text-align: center;
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 24px;
    font-weight: 600;
}

.commitment-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.commitment-item {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    border: 1px solid #e1e8ed;
}

.commitment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.commitment-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.commitment-item h4 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 600;
}

.commitment-item p {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.5;
}

/* 客服入口样式 */
.service-entry {
    margin: 16px 20px;
}

.service-link {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e8ed;
}

.service-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 36px;
    margin-right: 20px;
}

.service-text h3 {
    font-size: 18px;
    color: #2c3e50;
    margin: 0 0 6px 0;
    font-weight: 600;
}

.service-text p {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
    line-height: 1.4;
}

/* 下滑提示 */
.scroll-tip {
    text-align: center;
    margin: 20px 0;
    animation: bounce 2s infinite;
}

.scroll-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.scroll-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 400;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* 点击提示 */
.click-tip {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    opacity: 0.8;
    animation: pulse 2s infinite;
}

.category-card, .service-link {
    position: relative;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.category-card:hover .click-tip,
.service-link:hover .click-tip {
    background: rgba(0, 0, 0, 0.8);
}

/* 首页按钮 */
.view-btn {
    float: right;
    background-color: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    margin-top: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    width: auto;
    min-width: auto;
    max-width: none;
    display: block;
}

.view-btn:hover {
    background-color: #5a6fd8;
    transform: translateY(-1px);
}

.category-content {
    flex-direction: column;
    align-items: center;
}

.category-content::after {
    content: '';
    display: table;
    clear: both;
}

/* 客服悬浮按钮 - 简约设计 */
.float-customer-service {
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 1000;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background-color: white;
    padding: 12px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    border: 1px solid #e1e8ed;
}

.float-customer-service:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.float-service-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.float-service-text {
    font-size: 11px;
    font-weight: 500;
    color: #2c3e50;
    text-align: center;
    margin: 0;
    line-height: 1.2;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .container {
        padding: 0;
    }
    
    .header {
        padding: 30px 16px 24px;
    }
    
    .logo {
        width: 64px;
        height: 64px;
        font-size: 20px;
    }
    
    .title {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .category-grid {
        padding: 16px;
        gap: 12px;
    }
    
    .category-content {
        padding: 16px;
    }
    
    .category-title {
        font-size: 18px;
    }
    
    .category-desc {
        font-size: 13px;
    }
    
    .tutorial-list {
        padding: 16px;
    }
    
    .tutorial-header {
        padding: 12px 16px;
    }
    
    .tutorial-content {
        padding: 16px;
    }
    
    .tutorial-title {
        font-size: 16px;
    }
    
    .tutorial-desc {
        font-size: 13px;
    }
    
    .service-content {
        padding: 24px 16px;
    }
    
    .service-commitment {
        padding: 0 16px;
    }
    
    .commitment-item {
        padding: 16px;
    }
    
    .service-entry {
        margin: 12px 16px;
    }
    
    .service-link {
        padding: 16px;
    }
    
    .service-icon {
        font-size: 32px;
        margin-right: 16px;
    }
    
    .float-customer-service {
        right: 16px;
        top: 16px;
        padding: 10px;
    }
    
    .float-service-icon {
        width: 40px;
        height: 40px;
    }
    
    .float-service-text {
        font-size: 10px;
    }
    
    .back-btn {
        margin: 16px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .header {
        padding: 24px 12px 20px;
    }
    
    .category-grid {
        padding: 12px;
        gap: 10px;
    }
    
    .category-content {
        padding: 14px;
    }
    
    .tutorial-list {
        padding: 12px;
    }
    
    .tutorial-header {
        padding: 10px 14px;
    }
    
    .tutorial-content {
        padding: 14px;
    }
    
    .service-content {
        padding: 20px 12px;
    }
    
    .service-commitment {
        padding: 0 12px;
    }
    
    .service-entry {
        margin: 10px 12px;
    }
    
    .service-link {
        padding: 14px;
    }
    
    .float-customer-service {
        right: 12px;
        top: 12px;
        padding: 8px;
    }
    
    .back-btn {
        margin: 12px;
    }
}

/* Cookie提示样式 */
.cookie-notice {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #667eea;
    color: white;
    padding: 12px 50px 12px 20px;
    z-index: 3000;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cookie-notice-text {
    margin: 0;
}

.cookie-notice-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: white;
    padding: 4px;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cookie-notice-close:hover {
    background: rgba(255, 255, 255, 0.3);
}