/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* 头部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

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

.logo img {
    height: 45px;
    width: auto;
}

.logo span {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
}

.nav ul {
    display: flex;
    gap: 40px;
}

.nav a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f39c12, #e74c3c);
    transition: width 0.3s ease;
}

.nav a:hover,
.nav a.active {
    color: #fff;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

/* Banner轮播 */
.banner {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.banner-slider {
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(22, 33, 62, 0.6) 100%);
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 10;
}

.banner-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 8px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.banner-content p {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 4px;
    opacity: 0.9;
}

.banner-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #fff;
    transform: scale(1.2);
}

.banner-prev,
.banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 18px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
}

.banner-prev:hover,
.banner-next:hover {
    background: rgba(255, 255, 255, 0.4);
}

.banner-prev {
    left: 30px;
}

.banner-next {
    right: 30px;
}

/* 通用标题样式 */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
    letter-spacing: 4px;
}

.section-header .subtitle {
    font-size: 18px;
    color: #666;
    font-weight: 400;
}

.section-header.light h2,
.section-header.light .subtitle {
    color: #fff;
}

/* Living Platform 专注打造高校生活平台 */
.living-platform {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.living-platform .section-header h2,
.living-platform .section-header .subtitle {
    color: #fff;
}

/* 多端展示 */
.multi-terminal {
    padding: 60px 0 80px;
    background: #fff;
}

/* 多端展示 - 左右分栏布局 */
.multi-terminal .panel-layout {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    flex-wrap: wrap;
}

.multi-terminal .features-list {
    flex: 0 0 350px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-right: 30px;
}

.multi-terminal .phone-mockups {
    flex: 1;
    min-width: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
    position: relative;
    min-height: 550px;
}

/* 多端展示 - 手机模型样式优化 */
.multi-terminal .phone-center {
    width: 260px;
    height: 520px;
    border-radius: 35px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    z-index: 2;
    transition: all 0.3s ease;
}

.multi-terminal .phone-center img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 35px;
}

.multi-terminal .phone-center:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
}

/* 统一所有终端的布局为左右分栏 */
.multi-terminal .tab-panel {
    overflow-x: hidden;
}

.multi-terminal .tab-panel.active .panel-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 0;
}

/* 隐藏非活动面板的手机 */
.multi-terminal .tab-panel:not(.active) {
    display: none;
}

/* 为非用户端也应用相同布局 */
.multi-terminal #merchant-panel .panel-layout,
.multi-terminal #rider-panel .panel-layout,
.multi-terminal #admin-panel .panel-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 0;
}

/* 调整非用户端的手机展示为单个居中 */
.multi-terminal #merchant-panel .phone-mockups,
.multi-terminal #rider-panel .phone-mockups,
.multi-terminal #admin-panel .phone-mockups {
    flex: 1;
    min-width: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
    position: relative;
    min-height: 550px;
}

.multi-terminal #merchant-panel .phone,
.multi-terminal #rider-panel .phone,
.multi-terminal #admin-panel .phone {
    opacity: 0.7;
    transition: all 0.3s ease;
}

.multi-terminal #merchant-panel .phone-center,
.multi-terminal #rider-panel .phone-center,
.multi-terminal #admin-panel .phone-center {
    opacity: 1;
    width: 260px;
    height: 520px;
    border-radius: 35px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    z-index: 2;
    transition: all 0.3s ease;
}

.multi-terminal #merchant-panel .phone-center:hover,
.multi-terminal #rider-panel .phone-center:hover,
.multi-terminal #admin-panel .phone-center:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
}

.multi-terminal .section-header {
    margin-bottom: 30px;
}

.multi-terminal .section-header h2 {
    margin-bottom: 12px;
}

.section-underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #F7931E, #FFB800);
    margin: 0 auto;
    border-radius: 2px;
}

/* 标签切换 */
.terminal-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 28px;
    border: none;
    background: #f5f5f5;
    color: #666;
    font-size: 15px;
    font-weight: 500;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: #e8e8e8;
}

.tab-btn.active {
    background: linear-gradient(135deg, #4A90D9 0%, #357ABD 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(74, 144, 217, 0.4);
}

/* 内容面板 */
.terminal-content {
    position: relative;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

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

/* 面板布局 */
.panel-layout {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

/* 功能列表 */
.features-list {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding-right: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateX(5px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.feature-text span {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 手机模型展示 */
.phone-mockups {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    padding: 20px;
    position: relative;
    min-height: 450px;
}

.phone {
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: all 0.4s ease;
    border: 8px solid #1a1a2e;
}

.phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.phone-left {
    width: 180px;
    height: 360px;
    transform: translateY(20px) rotate(-5deg);
    z-index: 1;
}

.phone-center {
    width: 180px;
    height: 360px;
    z-index: 3;
    transform: translateY(-10px);
}

.phone-right {
    width: 180px;
    height: 360px;
    transform: translateY(20px) rotate(5deg);
    z-index: 1;
}

.phone:hover {
    transform: scale(1.05) translateY(-15px);
    z-index: 10;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.phone-left:hover,
.phone-right:hover {
    transform: scale(1.05) translateY(-15px) rotate(0deg);
}

/* 响应式 - 多端展示 */
@media screen and (max-width: 992px) {
    .panel-layout {
        flex-direction: column;
    }
    
    .features-list {
        flex: none;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .feature-item {
        flex: 0 0 calc(50% - 10px);
        max-width: 200px;
    }
    
    .phone-mockups {
        min-height: 350px;
    }
    
    .phone-left, .phone-right {
        width: 100px;
        height: 200px;
    }
    
    .phone-center {
        width: 140px;
        height: 280px;
    }
}

@media screen and (max-width: 576px) {
    .terminal-tabs {
        gap: 8px;
    }
    
    .tab-btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .features-list {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-item {
        flex: none;
        width: 100%;
        max-width: 250px;
    }
    
    .phone-mockups {
        min-height: 280px;
        gap: 10px;
    }
    
    .phone-left, .phone-right {
        width: 80px;
        height: 160px;
        border-width: 5px;
        border-radius: 20px;
    }
    
    .phone-center {
        width: 110px;
        height: 220px;
        border-width: 6px;
        border-radius: 25px;
    }
    
    /* 小屏设备上的DIY页面优化 */
    .demo-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
        padding: 0 10px;
    }
    
    .demo-item {
        padding: 20px 15px;
        margin: 10px;
    }
    
    .demo-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 15px;
    }
    
    .demo-icon img {
        width: 50%;
        height: 50%;
    }
    
    .demo-item span {
        font-size: 15px;
    }
    
    /* 调整其他元素适应小屏幕 */
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-header h2 {
        font-size: 24px;
        letter-spacing: 2px;
    }
    
    .section-header .subtitle {
        font-size: 16px;
    }
    
    .banner {
        height: 80vh;
        min-height: 500px;
    }
    
    .banner-content h1 {
        font-size: 28px;
        letter-spacing: 2px;
        margin-bottom: 10px;
    }
    
    .banner-content p {
        font-size: 16px;
        letter-spacing: 2px;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 15px;
    }
}

/* DIY页面展示 */
.diy-pages {
    padding: 80px 0;
    background: #fff;
}

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

.demo-item {
    display: block;
    text-align: center;
    padding: 25px;
    background: linear-gradient(145deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.demo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.demo-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.demo-item:hover::before {
    transform: scaleX(1);
}

.demo-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.demo-icon img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.demo-item:hover .demo-icon {
    transform: scale(1.15) rotate(5deg);
}

.demo-item span {
    font-size: 16px;
    color: #1a1a2e;
    font-weight: 600;
    display: block;
}

/* 企业优势 */
.enterprise-advantages {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* 品牌经历时间线 */
.brand-history {
    padding: 80px 0;
    background: #f8f9fa;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: calc(100% - 40px);
    top: 20px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
    min-height: 60px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-year {
    flex: 0 0 calc(50% - 40px);
    text-align: right;
    padding-right: 30px;
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timeline-item:nth-child(odd) .timeline-year {
    text-align: left;
    padding-right: 0;
    padding-left: 30px;
}

.timeline-content {
    flex: 0 0 calc(50% - 40px);
    padding-left: 30px;
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    background: #fff;
    padding: 15px 20px 15px 70px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
}

.timeline-item:nth-child(odd) .timeline-content {
    padding-left: 20px;
    padding-right: 70px;
    text-align: right;
}

.timeline-item:nth-child(odd) .timeline-content:hover {
    transform: translateX(-5px);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 4px solid #fff;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

/* 知识产权 */
.intellectual-property {
    padding: 80px 0;
    background: #fff;
}

.ip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.ip-item {
    text-align: center;
    padding: 40px 30px;
    border-radius: 16px;
    background: linear-gradient(145deg, #f8f9fa 0%, #fff 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.ip-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.ip-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f39c12 0%, #e74c3c 100%);
    border-radius: 50%;
}

.ip-icon i {
    font-size: 32px;
    color: #fff;
}

.ip-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.ip-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

/* 保姆式创业扶持 */
.nanny-support {
    padding: 80px 0;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.nanny-support .section-header h2,
.nanny-support .section-header .subtitle {
    color: #fff;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.support-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 35px 25px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.support-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.support-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-radius: 50%;
}

.support-icon i {
    font-size: 28px;
    color: #fff;
}

.support-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.support-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

/* 企业资质 */
.enterprise-qualification {
    padding: 80px 0;
    background: linear-gradient(135deg, #2c3e50 0%, #4ca1af 100%);
}

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

.qual-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

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

.qual-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* 联系我们 */
.contact-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.contact-info {
    display: flex;
    gap: 50px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-item i {
    font-size: 24px;
    color: #667eea;
}

.contact-item span {
    font-size: 16px;
    color: #333;
}

.btn {
    display: inline-block;
    padding: 14px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* 底部 */
.footer {
    background: #1a1a2e;
    padding: 40px 0;
    color: #fff;
}

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

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 25px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.lang-switch {
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.copyright p {
    margin-bottom: 5px;
}

.tech-support {
    font-size: 12px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

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

.back-to-top:hover {
    transform: translateY(-5px);
}

/* 响应式设计 */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .terminal-grid,
    .support-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ip-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ip-item:last-child {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
    }

    .qualification-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .qual-item:last-child {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* 中等屏幕设备上的DIY页面优化 */
    .demo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .banner-content h1 {
        font-size: 42px;
    }
    
    .banner-content p {
        font-size: 20px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
}

@media screen and (max-width: 768px) {
    .header .container {
        height: 60px;
    }

    .logo span {
        font-size: 18px;
    }

    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .banner-content h1 {
        font-size: 36px;
        letter-spacing: 4px;
    }

    .banner-content p {
        font-size: 18px;
    }

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

    .terminal-grid,
    .support-grid,
    .ip-grid,
    .demo-grid,
    .qualification-content {
        grid-template-columns: 1fr;
    }

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

    .demo-item {
        padding: 20px 15px;
    }

    .demo-icon {
        width: 60px;
        height: 60px;
    }

    .demo-item span {
        font-size: 14px;
    }

    .ip-item:last-child,
    .qual-item:last-child {
        max-width: 100%;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 45px;
        margin-bottom: 30px;
    }

    .timeline-year,
    .timeline-item:nth-child(odd) .timeline-year {
        flex: none;
        text-align: left;
        padding: 0;
        margin-bottom: 10px;
        font-size: 18px;
    }

    .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        flex: none;
        width: 100%;
        text-align: left;
        padding: 12px 15px;
        font-size: 14px;
    }

    .timeline-content:hover,
    .timeline-item:nth-child(odd) .timeline-content:hover {
        transform: translateX(0) translateY(-3px);
    }

    .timeline-item::after {
        left: 15px;
        width: 16px;
        height: 16px;
        top: 5px;
    }

    .contact-info {
        flex-direction: column;
        gap: 20px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    /* 移动端菜单样式 */
    .nav.mobile-active {
        display: block;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        z-index: 999;
    }
    
    .nav.mobile-active ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav.mobile-active a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .nav.mobile-active a:hover {
        background: rgba(255,255,255,0.1);
        padding-left: 10px;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.terminal-item,
.demo-item,
.ip-item,
.support-item,
.timeline-item {
    animation: fadeInUp 0.6s ease forwards;
}

/* 滚动显示动画 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* DIY页面悬停动画 */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.diy-pages .demo-item {
    animation: float 3s ease-in-out infinite;
    animation-delay: calc(var(--delay) * 0.2s);
}

.diy-pages .demo-item:hover {
    animation-play-state: paused;
}
