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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 导航栏样式 */
nav {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 60px;
    transition: height 0.3s ease;
    vertical-align: middle;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: #007bff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 当前激活的导航项 */
.nav-links a.active {
    color: #007bff;
}

.nav-links a.active::after {
    width: 100%;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

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

/* 移动端菜单展开时的动画 */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* 主内容区域 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80" width="80" height="80"%3E%3Cpath fill="%23ffffff" fill-opacity="0.05" d="M14 16H9v-2h5V9.87a4 4 0 1 1 2 0V14h5v2h-5v15.95A10 10 0 0 0 23.66 27l-3.46-2 8.2-2.2-2.9 5a12 12 0 0 1-21 0l-2.89-5 8.2 2.2-3.47 2A10 10 0 0 0 14 31.95V16zm40 40h-5v-2h5v-4.13a4 4 0 1 1 2 0V54h5v2h-5v15.95A10 10 0 0 0 63.66 67l-3.47-2 8.2-2.2-2.88 5a12 12 0 0 1-21.02 0l-2.88-5 8.2 2.2-3.47 2A10 10 0 0 0 54 71.95V56zm-39 6a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm40-40a2 2 0 1 1 0-4 2 2 0 0 1 0 4zM15 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm40 40a2 2 0 1 0 0-4 2 2 0 0 0 0 4z"%3E%3C/path%3E%3C/svg%3E');
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

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

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
}

/* 特性区域 */
.features {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 2px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background-color: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    /* border-top: 4px solid #007bff; */
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.feature-card h3 {
    color: #007bff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.feature-card h3::before {
    content: '✓';
    margin-right: 10px;
    color: #007bff;
    font-weight: bold;
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 0 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-content p {
    margin: 0.8rem 0;
    font-size: 1rem;
    line-height: 1.6;
}

.footer-content a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: #007bff;
    text-decoration: none;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}
.footer-bottom a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #007bff;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .feature-grid,
    .tennis-feature-grid,
    .advantages-grid,
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    /* 移动端导航菜单 */
    .menu-toggle {
        display: flex;
    }
    
    .nav-container {
        padding: 1rem;
        flex-wrap: wrap;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        max-height: 300px;
        padding: 1rem 0;
    }
    
    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    /* 英雄区域响应式 */
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* 容器响应式 */
    .container {
        padding: 1rem;
    }
    
    /* 区块响应式 */
    .section {
        margin: 2rem 0;
        padding: 2rem 1.5rem;
    }
    
    .section h2 {
        font-size: 1.8rem;
    }
    
    /* 特性卡片响应式 */
    .feature-card,
    .tennis-feature-item,
    .advantage-item,
    .category-item {
        padding: 1.5rem;
    }
    
    /* 图片响应式 */
    .img-center {
        max-width: 90%;
    }
    
    /* 二维码响应式 */
    .qr-code-section img {
        max-width: 200px;
    }
    
    .wechat-consult img {
        max-width: 150px;
    }
    
    /* 标题响应式 */
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    /* 超小屏幕响应式 */
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .logo img {
        height: 50px;
    }
    
    .result-section h3 {
        font-size: 1.5rem;
    }
    
    .result-section p {
        font-size: 1.5rem;
    }
    
    .custom-section h2 {
        font-size: 1.5rem;
    }
    
    .custom-section h3 {
        font-size: 1.3rem;
    }
    
    .feature-card h3,
    .tennis-feature-item h3,
    .advantage-item h3,
    .category-item h3 {
        font-size: 1.2rem;
    }
}

/* 页面特定样式 */
.section {
    margin: 4rem 0;
    background-color: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.section h2 {
    color: #007bff;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.section p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.section ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.section li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
    position: relative;
    padding-left: 0.5rem;
}

.section li::marker {
    color: #007bff;
    font-weight: bold;
}

/* 强调文字 */
.highlight {
    color: #007bff;
    font-weight: 600;
}

.text-red {
    color: red;
}

/* 图片样式 */
.img-center {
    display: block;
    margin: 2rem auto;
    max-width: 100%;
    height: auto;
}

/* 微信咨询部分 */
.wechat-consult {
    text-align: center;
    margin: 3rem 0;
}

.wechat-consult img {
    max-width: 200px;
    margin: 1rem auto;
}