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

body {
    font-family: Arial, "微软雅黑", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* 移动端菜单按钮 */
#menu {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#menu img {
    width: 24px;
    height: 24px;
}

/* 菜单列表 */
#menu_list {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 999;
    display: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 20px 10px;
    max-height: 80vh;
    overflow-y: auto;
}

#menu_list div {
    margin: 5px 10px;
    flex: 0 0 auto;
}

#menu_list a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 15px;
    display: block;
    border-radius: 3px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
}

#menu_list a:hover {
    color: white;
    background-color: #00a0e9;
    transform: none;
}

/* 顶部Logo */
#top {
    background-color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#logo {
    max-width: 200px;
    height: auto;
}

/* 轮播图 */
#banner {
    width: 100%;
    overflow: hidden;
}

#banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* 通用区块样式 */
section {
    padding: 40px 0;
    background-color: white;
    margin-bottom: 20px;
}

section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 28px;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #00a0e9;
}

/* 关于我们 */
.about-content {
    text-align: center;
    margin-bottom: 40px;
}

.about-content img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 5px;
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

.module {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    display: flex;
    align-items: flex-start;
}

.module-header {
    width: 80px;
    margin-right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.module-header h3 {
    color: #00a0e9;
    font-size: 20px;
    margin-bottom: 20px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;
}

.module-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 30px;
}

.module-content img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 0;
}

.module-content ul {
    flex: 1;
    list-style: none;
    margin: 0;
    padding: 0;
}

.module-content li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.module-content li::before {
    content: '〉';
    position: absolute;
    left: 0;
    color: #00a0e9;
    font-weight: bold;
}

.strengths, .quality, .price {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

/* 服务项目 */
.service-item {
    margin-bottom: 40px;
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    transition: all 0.3s ease;
}

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

.service-item h3 {
    color: #00a0e9;
    margin-bottom: 20px;
    font-size: 20px;
}

.service-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 5px;
}

.service-item p {
    color: #666;
    line-height: 1.8;
}

/* 玩球通在线(中国)唯一官方网站 */
.contact-info {
    text-align: center;
    margin-bottom: 40px;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #666;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form button {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #00a0e9;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background-color: #0080c6;
    transform: scale(1.02);
}

/* 页脚 */
footer {
    background-color: #333;
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer-content p {
    margin-bottom: 10px;
    font-size: 14px;
    opacity: 0.8;
}

/* 响应式设计 - 小屏幕 */
@media (max-width: 767px) {
    .module {
        flex-direction: column;
        align-items: center;
    }
    
    .module-header {
        width: auto;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .module-header h3 {
        writing-mode: horizontal-tb;
        text-orientation: initial;
    }
    
    .module-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .module-content img {
        width: 100%;
        height: auto;
        max-width: 400px;
    }
    
    .module-content ul {
        width: 100%;
    }
}

@media (min-width: 768px) {
    /* 隐藏移动端菜单 */
    #menu {
        display: none;
    }
    
    #menu_list {
        display: flex;
        position: relative;
        background-color: white;
        height: auto;
        justify-content: center;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        flex-wrap: wrap;
        padding: 10px 0;
    }
    
    #menu_list div {
        margin: 0;
    }
    
    #menu_list a {
        color: #333;
        font-size: 16px;
        padding: 15px 20px;
        display: block;
        transition: all 0.3s ease;
    }
    
    #menu_list a:hover {
        color: #00a0e9;
        background-color: #f9f9f9;
        transform: none;
    }
    
    /* 服务项目网格布局 */
    .service-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .service-item {
        margin-bottom: 0;
    }
    
    /* 关于我们布局 */
    .about-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }
    
    .about-content img {
        max-width: 40%;
        margin-right: 30px;
        margin-bottom: 0;
    }
    
    .about-content p {
        flex: 1;
    }
}

@media (min-width: 992px) {
    /* 服务项目三列布局 */
    .service-items {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* 关于我们模块布局 */
    .module {
        display: flex;
        align-items: flex-start;
        text-align: left;
    }
    
    .module-header h3 {
        writing-mode: vertical-rl;
        text-orientation: mixed;
        white-space: nowrap;
    }
    
    .module-content {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 30px;
    }
    
    .module-content img {
        width: 300px;
        height: 200px;
        object-fit: cover;
        border-radius: 5px;
        margin-bottom: 0;
    }
    
    .module-content ul {
        flex: 1;
    }
}

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

section {
    animation: fadeIn 0.8s ease;
}

/* 滚动到顶部按钮 */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #00a0e9;
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    transition: all 0.3s ease;
    z-index: 999;
}

#back-to-top:hover {
    background-color: #0080c6;
    transform: scale(1.1);
}

/* 表单验证样式 */
.form-group input:invalid, .form-group textarea:invalid {
    border-color: #ff4444;
}

.form-group input:valid, .form-group textarea:valid {
    border-color: #44ff44;
}