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

body {
    font-family: 'Microsoft Yahei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo h1 {
    font-size: 24px;
    color: #8B0000;
    font-weight: bold;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav ul li {
    margin: 0 15px;
}

.nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav ul li a:hover, .nav ul li a.active {
    color: #8B0000;
    background-color: rgba(139, 0, 0, 0.1);
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #8B0000 0%, #A52A2A 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 18px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: #fff;
    color: #8B0000;
    border: 2px solid #fff;
}

.btn-primary:hover {
    background-color: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: #8B0000;
    color: #fff;
    border: 2px solid #8B0000;
}

.btn-secondary:hover {
    background-color: #A52A2A;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* 介绍区域 */
.intro {
    padding: 60px 0;
    background-color: #fff;
}

.intro h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #8B0000;
    text-align: center;
}

.intro p {
    font-size: 18px;
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #8B0000;
}

.feature-item h4 {
    color: #8B0000;
    margin-bottom: 15px;
    font-size: 20px;
}

.feature-item p {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin: 0;
}

/* 条件预览区域 */
.conditions-preview {
    padding: 60px 0;
    background-color: #f5f5f5;
}

.conditions-preview h3 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #8B0000;
    text-align: center;
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.condition-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.condition-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #8B0000;
}

.condition-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    background-color: #8B0000;
    border-radius: 50%;
    margin-bottom: 20px;
}

.condition-item h4 {
    color: #8B0000;
    margin-bottom: 15px;
    font-size: 20px;
}

.condition-item p {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin: 0;
}

.conditions-preview .btn {
    display: block;
    margin: 0 auto;
    width: fit-content;
}

/* 费用预览区域 */
.costs-preview {
    padding: 60px 0;
    background-color: #fff;
}

.costs-preview h3 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #8B0000;
    text-align: center;
}

.costs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.cost-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.cost-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #8B0000;
}

.cost-item h4 {
    color: #8B0000;
    margin-bottom: 15px;
    font-size: 20px;
}

.cost-item p {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin: 0;
}

.costs-preview .btn {
    display: block;
    margin: 0 auto;
    width: fit-content;
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-info h4,
.footer-links h4 {
    color: #8B0000;
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-info p {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-copyright {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #555;
    text-align: center;
    color: #ccc;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav ul {
        flex-wrap: wrap;
        margin-top: 15px;
    }

    .nav ul li {
        margin: 5px 10px 5px 0;
    }

    .hero-content h2 {
        font-size: 32px;
    }

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

    .features,
    .conditions-grid,
    .costs-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    h3 {
        font-size: 24px !important;
    }
}

/* 加盟条件页面 */
.conditions-page {
    padding: 60px 0;
    background-color: #fff;
}

.conditions-page h1 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #8B0000;
    text-align: center;
}

.conditions-list {
    max-width: 800px;
    margin: 0 auto;
}

.condition-section {
    margin-bottom: 40px;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid #8B0000;
}

.condition-section h2 {
    color: #8B0000;
    margin-bottom: 20px;
    font-size: 24px;
}

.condition-section ul {
    list-style: none;
}

.condition-section ul li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    line-height: 1.8;
}

.condition-section ul li::before {
    content: "•";
    color: #8B0000;
    font-weight: bold;
    font-size: 20px;
    position: absolute;
    left: 0;
    top: 0;
}

/* 加盟费用页面 */
.costs-page {
    padding: 60px 0;
    background-color: #fff;
}

.costs-page h1 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #8B0000;
    text-align: center;
}

.costs-table {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.costs-table table {
    width: 100%;
    border-collapse: collapse;
}

.costs-table th, .costs-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.costs-table th {
    background-color: #8B0000;
    color: #fff;
    font-weight: bold;
}

.costs-table tr:last-child td {
    border-bottom: none;
}

.costs-table tr:hover {
    background-color: #f9f9f9;
}

/* 加盟优势页面 */
.advantages-page {
    padding: 60px 0;
    background-color: #fff;
}

.advantages-page h1 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #8B0000;
    text-align: center;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.advantage-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #8B0000;
}

.advantage-item h3 {
    color: #8B0000;
    margin-bottom: 15px;
    font-size: 24px;
}

.advantage-item p {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin: 0;
}

/* 常见问题页面 */
.faq-page {
    padding: 60px 0;
    background-color: #fff;
}

.faq-page h1 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #8B0000;
    text-align: center;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background-color: #8B0000;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: #A52A2A;
}

.faq-question h3 {
    margin: 0;
    font-size: 18px;
}

.faq-question .toggle {
    font-size: 24px;
    font-weight: bold;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    padding: 20px;
    max-height: 200px;
}

.faq-answer p {
    color: #666;
    line-height: 1.8;
}

/* 联系我们页面 */
.contact-page {
    padding: 60px 0;
    background-color: #fff;
}

.contact-page h1 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #8B0000;
    text-align: center;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.contact-info h2 {
    color: #8B0000;
    margin-bottom: 30px;
    font-size: 24px;
}

.contact-item {
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
}

.contact-item i {
    color: #8B0000;
    font-size: 24px;
    margin-right: 15px;
    margin-top: 5px;
    flex-shrink: 0;
}

.contact-item h3 {
    color: #333;
    margin-bottom: 5px;
    font-size: 18px;
}

.contact-item p {
    color: #666;
    margin: 0;
}

.contact-form {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.contact-form h2 {
    color: #8B0000;
    margin-bottom: 30px;
    font-size: 24px;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Microsoft Yahei', sans-serif;
}

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

.contact-form .btn {
    width: 100%;
    border: none;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background-color: #8B0000;
    color: #fff;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

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

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