/* 服务页面专属样式 */
.service-main {
    margin-top: 70px;
}

/* 服务页头部 */
.service-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* 标签导航 */
.service-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transition: width 0.6s, height 0.6s;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.tab-btn:hover::before {
    width: 300px;
    height: 300px;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateY(-3px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.tab-btn.active {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #667eea;
    border-color: white;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
    font-weight: 700;
    transform: scale(1.05);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* 标签内容 */
.tab-content-wrapper {
    position: relative;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

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

.service-section {
    padding: 60px 0;
}

.service-section.gray-bg {
    background: #f8f9fa;
}

/* 服务头部 */
.service-header {
    text-align: center;
    margin-bottom: 40px;
}

.service-header h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
}

.service-badge {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 14px;
}

/* 服务内容 */
.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.service-left h3 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.service-left p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.service-qr {
    margin-top: 30px;
}

.qr-placeholder {
    width: 120px;
    height: 120px;
    background: #f0f0f0;
    border: 1px solid #ddd;
}

.service-qr-img {
    width: 120px;
    height: 120px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
}

.service-qr p {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.service-features {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
}

.service-features h4 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
}

.service-features ul {
    list-style: none;
    padding: 0;
}

.service-features li {
    font-size: 16px;
    color: #666;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.service-features li:last-child {
    border-bottom: none;
}

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

/* 章节头部样式 */
.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 36px;
    color: #333;
    margin: 0;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot.green {
    background: #4CAF50;
}

.dot.yellow {
    background: #FFC107;
}

/* 支持的打印机型号样式 */
.supported-printers {
    margin: 20px 0;
}

.supported-printers h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.printer-models {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.model-tag {
    background: #f0f8ff;
    color: #2196F3;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e3f2fd;
}

/* 适用场景样式 */
.use-cases {
    margin: 20px 0;
}

.use-cases h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.case-tag {
    background: #f8f9fa;
    color: #666;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 13px;
    border: 1px solid #e9ecef;
}

/* 技术特色样式 */
.tech-features {
    margin: 20px 0;
}

.tech-features h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: #fff3e0;
    color: #ff9800;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 13px;
    border: 1px solid #ffe0b2;
}

/* 双重功能样式 */
.dual-features {
    margin: 20px 0;
}

.dual-features h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.feature-categories {
    display: flex;
    gap: 15px;
}

.feature-category {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
}

.category-icon {
    font-size: 18px;
}

.category-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* 打印机展示样式 */
.printer-showcase {
    margin-bottom: 20px;
}

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

.printer-placeholder {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.printer-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.printer-placeholder p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* 打印机图片样式 */
.printer-img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

/* 学习特性 */
.learning-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 20px;
    margin: 0 auto;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 20px;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.app-icon {
    aspect-ratio: 1;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.feature-list h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.feature-list ul {
    list-style: none;
}

.feature-list li {
    padding: 10px 0;
    color: #666;
    font-size: 16px;
    position: relative;
    padding-left: 25px;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

/* 海报展示 */
.poster-showcase {
    max-width: 600px;
    margin: 0 auto;
}

.poster-preview {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 30px;
}

.poster-screen {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
}

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

.poster-item {
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

/* 辅导功能 */
.tutoring-features {
    max-width: 600px;
    margin: 0 auto;
}

.calendar-mockup {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 30px;
}

.calendar-header h4 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-day {
    aspect-ratio: 1;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
}

/* 生活功能 */
.lifestyle-features {
    max-width: 500px;
    margin: 0 auto;
}

.lifestyle-mockup {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 40px;
}

.lifestyle-screen {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
}

.feature-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.feature-icon {
    aspect-ratio: 1;
    background: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 考勤功能 */
.attendance-features {
    max-width: 500px;
    margin: 0 auto;
}

.attendance-mockup {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 30px;
}

.attendance-screen {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
}

.attendance-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.attendance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.student-name {
    font-size: 16px;
    color: #333;
}

.status {
    font-size: 20px;
    font-weight: bold;
}

.status.present {
    color: #4CAF50;
}

.status.absent {
    color: #f44336;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .service-tabs {
        gap: 6px;
        padding: 0 20px;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .service-content,
    .learning-features {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .phone-mockup {
        width: 250px;
        height: 500px;
    }

    .poster-grid {
        grid-template-columns: 1fr;
    }

    .feature-icons {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

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

    .section-header h2 {
        font-size: 28px;
    }

    .printer-models,
    .case-tags,
    .tech-tags {
        gap: 6px;
    }

    .feature-categories {
        flex-direction: column;
        gap: 10px;
    }

    .printer-placeholder {
        padding: 20px 15px;
    }

    .printer-icon {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .service-tabs {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .tab-btn {
        width: 200px;
        text-align: center;
    }
}