/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c5aa0;
    text-decoration: none;
}

.nav-logo i {
    margin-right: 10px;
    font-size: 1.8rem;
    color: #ff6b35;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2c5aa0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #ff6b35;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: 0.3s;
}

/* 产品简介 */
.introduction {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.introduction::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.introduction-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.introduction-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.highlight {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.introduction-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.introduction-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.btn {
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.introduction-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff6b35;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 手机模型 */
.app-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: linear-gradient(45deg, #333, #555);
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.app-interface {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
}

.app-header {
    text-align: center;
    margin-bottom: 30px;
}

.app-title {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.exercise-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.exercise-card {
    background: white;
    border-radius: 15px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.exercise-card.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.exercise-icon {
    font-size: 1.5rem;
}

.exercise-name {
    font-weight: 600;
    flex: 1;
}

.exercise-progress {
    font-size: 0.8rem;
    opacity: 0.7;
}

.ai-indicator {
    background: rgba(255, 107, 53, 0.1);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.ai-icon {
    font-size: 1.2rem;
}

.ai-text {
    font-size: 0.9rem;
    color: #ff6b35;
    font-weight: 600;
}

/* 部分标题 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* 功能特色 */
.features {
    padding: 100px 0;
    background: #f8fafc;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* 功法介绍 */
.exercises {
    padding: 100px 0;
    background: white;
}

.exercises-content {
    max-width: 1000px;
    margin: 0 auto;
}

.exercise-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.tab-button {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #666;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active,
.tab-button:hover {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-color: transparent;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.exercise-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.exercise-desc h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.exercise-desc p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.exercise-benefits h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.exercise-benefits ul {
    list-style: none;
}

.exercise-benefits li {
    color: #666;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.exercise-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ff6b35;
    font-weight: bold;
}

.exercise-moves h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.moves-grid {
    display: grid;
    gap: 15px;
}

.move-item {
    background: #f8fafc;
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    border-left: 4px solid #e2e8f0;
}

.move-item:hover {
    background: #fff;
    border-left-color: #ff6b35;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.move-number {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.move-name {
    font-weight: 500;
    color: #333;
}

/* 技术特点 */
.technology {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.technology .section-header h2,
.technology .section-header p {
    color: white;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.tech-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.tech-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 107, 53, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #ff6b35;
    font-size: 1.8rem;
    border: 2px solid rgba(255, 107, 53, 0.3);
}

.tech-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.tech-item p {
    opacity: 0.9;
    line-height: 1.6;
}

/* 下载区域 */
.download {
    padding: 100px 0;
    background: #f8fafc;
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.download-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.download-info p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.download-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-item i {
    color: #ff6b35;
    font-size: 1.2rem;
}

.feature-item span {
    font-weight: 500;
    color: #333;
}

.download-buttons {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #333;
    color: white;
    padding: 15px 25px;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px;
}

.download-btn:hover {
    background: #555;
    transform: translateY(-2px);
}

.download-btn i {
    font-size: 2rem;
}

.download-btn .platform {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
}

.download-btn .store {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
}

.qr-code {
    width: 120px;
    height: 120px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.qr-placeholder i {
    font-size: 2rem;
    color: #666;
}

.qr-placeholder p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

.system-requirements h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.system-requirements p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* 应用截图 */
.app-screens {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    position: relative;
}

.screen {
    width: 150px;
    height: 280px;
    background: #333;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.screen-2 {
    transform: scale(1.1);
    z-index: 2;
}

.screen-1,
.screen-3 {
    transform: scale(0.9);
    opacity: 0.7;
}

.screen:hover {
    transform: scale(1.05) !important;
    opacity: 1 !important;
}

.screen-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    padding: 10px;
    overflow: hidden;
}

.screen-header {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.exercise-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list-item {
    background: white;
    padding: 8px;
    border-radius: 5px;
    font-size: 0.7rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress {
    color: #ff6b35;
    font-weight: 600;
}

.camera-view {
    background: #333;
    height: 120px;
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pose-points {
    width: 80px;
    height: 80px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="20" r="8" fill="%23ff6b35"/><circle cx="50" cy="40" r="4" fill="%23ff6b35"/><circle cx="30" cy="50" r="4" fill="%23ff6b35"/><circle cx="70" cy="50" r="4" fill="%23ff6b35"/><circle cx="40" cy="80" r="4" fill="%23ff6b35"/><circle cx="60" cy="80" r="4" fill="%23ff6b35"/></svg>') no-repeat center;
    background-size: contain;
}

.score-display {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 107, 53, 0.9);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: 600;
}

.history-chart {
    height: 120px;
    display: flex;
    align-items: end;
    justify-content: center;
    padding: 20px 0;
}

.chart-bars {
    display: flex;
    gap: 8px;
    align-items: end;
    height: 80px;
}

.bar {
    width: 15px;
    background: linear-gradient(to top, #ff6b35, #f7931e);
    border-radius: 2px 2px 0 0;
    animation: grow 1s ease-out;
}

@keyframes grow {
    from { height: 0; }
    to { height: var(--height, 50%); }
}

/* 页脚 */
.footer {
    background: #1a202c;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-logo i {
    margin-right: 10px;
    font-size: 1.5rem;
    color: #ff6b35;
}

.footer-section p {
    color: #a0aec0;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ff6b35;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b35;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #ff6b35;
    color: white;
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #a0aec0;
    margin: 0;
}

.footer-bottom a {
    color: #ff6b35;
    text-decoration: none;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        gap: 0;
        backdrop-filter: blur(10px);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        padding: 15px 0;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    /* 产品简介移动端 */
    .introduction {
        padding: 120px 0;
    }
    
    .introduction-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .introduction-text h1 {
        font-size: 2.5rem;
    }
    
    .introduction-subtitle {
        font-size: 1rem;
    }
    
    .introduction-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .introduction-stats {
        justify-content: center;
        gap: 30px;
    }
    
    .phone-frame {
        width: 240px;
        height: 480px;
    }
    
    /* 其他部分移动端适配 */
    .section-header h2 {
        font-size: 2rem;
    }
    
    .features-grid,
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .exercise-tabs {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .tab-button {
        width: 200px;
        text-align: center;
    }
    
    .exercise-intro {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .download-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .download-info h2 {
        font-size: 2rem;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .app-screens {
        flex-direction: row;
        gap: 10px;
    }
    
    .screen {
        width: 100px;
        height: 200px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .introduction {
        padding: 120px 0;
    }
    
    .introduction-text h1 {
        font-size: 2rem;
    }
    
    .phone-frame {
        width: 200px;
        height: 400px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .download-info h2 {
        font-size: 1.8rem;
    }
    
    .app-screens {
        gap: 5px;
    }
    
    .screen {
        width: 80px;
        height: 160px;
        padding: 8px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.6s ease-out;
}

/* 滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}
