/* 阳宅布局助手 - 通用样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f8fa;
    color: #333;
}

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

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 30px;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

h1 {
    color: #2c3e50;
    font-size: 28px;
}

.header-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #2c3e50;
    font-size: 24px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* 导航栏样式 */
nav {
    background-color: #3498db;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 30px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: relative;
}

.nav-left {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-right {
    display: flex;
    gap: 10px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

nav a {
    display: block;
    padding: 12px 16px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

nav a:hover,
nav a.active {
    background-color: #2980b9;
}

.register-login {
    background-color: #27ae60;
}

.member {
    background-color: #3498db;
}

/* 模块样式 */
.module {
    background-color: white;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.module h2 {
    color: #3498db;
    margin-bottom: 20px;
    font-size: 20px;
}

/* 按钮区域样式 */
.upload-section {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.upload-section button {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: #3498db;
    color: white;
    font-size: 14px;
    white-space: nowrap;
}

.upload-section button:hover {
    background-color: #2980b9;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
    flex: 1;
}

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

.form-group select,
.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.submit-btn {
    padding: 12px 30px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.submit-btn:hover {
    background-color: #2980b9;
}

/* 结果区域样式 */
.result-section {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
   
}

.result-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.result-content {
    line-height: 1.6;
}

/* 知识列表样式 */
.knowledge-list {
    list-style: none;
}

.knowledge-list li {
    padding: 15px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    border-radius: 4px;
}

.knowledge-list li strong {
    color: #2c3e50;
}

/* 咨询方式样式 */
.consultation-methods {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.consultation-item {
    text-align: center;
}

.consultation-item img {
    width: 200px;
    height: 200px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 会员卡片样式 */
.member-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.member-card {
    background-color: #f8f9fa;
    border: 2px solid #3498db;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    width: 300px;
}

.member-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.member-card .price {
    font-size: 24px;
    color: #e74c3c;
    margin-bottom: 15px;
}

.member-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 20px;
}

.member-card ul li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.member-card button {
    padding: 10px 30px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* 登录表单样式 */
.login-form {
    max-width: 400px;
    margin: 0 auto;
}

.login-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.login-form button {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.toggle-form {
    text-align: center;
    margin-top: 15px;
}

.toggle-form a {
    color: #3498db;
    text-decoration: none;
}

/* 法律声明样式 */
.legal-content {
    line-height: 1.8;
}

.legal-content h3 {
    color: #2c3e50;
    margin-top: 20px;
    margin-bottom: 10px;
}

.legal-content p {
    margin-bottom: 10px;
    text-align: justify;
}

/* 页脚样式 */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 11px;
    background-color: #a1a3a5;
    color: white;
    border-radius: 5px;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* 隐藏模块的样式 */
.hidden {
    display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-menu-toggle {
        display: flex;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .nav-container {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-left {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }
    
    .nav-right {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }
    
    nav a {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    
    .upload-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .upload-section button {
        width: 100%;
    }
    
    .consultation-methods {
        flex-direction: column;
        align-items: center;
    }
    
    .member-cards {
        flex-direction: column;
        align-items: center;
    }
}
