/* Medicare CN 网站样式 */

/* 基础样式 */
:root {
    --primary-color: #0066cc;
    --secondary-color: #ff6b6b;
    --accent-color: #ffd166;
    --text-color: #333333;
    --light-text: #ffffff;
    --dark-bg: #2c3e50;
    --light-bg: #f8f9fa;
    --gray-bg: #f0f0f0;
    --border-color: #dddddd;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #004c99;
}

img {
    max-width: 100%;
    height: auto;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-primary:hover {
    background-color: #004c99;
    color: var(--light-text);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

.btn-secondary:hover {
    background-color: #e84c4c;
    color: var(--light-text);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-desc {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #666;
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
}

.logo span {
    color: var(--primary-color);
}

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

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

nav ul li a.active {
    color: var(--primary-color);
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 页面头部 */
.page-header {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 60px 0;
    text-align: center;
}

.page-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    color: var(--light-text);
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* 特性区域 */
.features {
    padding: 80px 0;
    background-color: #fff;
}

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

.feature-card {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* 资格区域 */
.eligibility {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.eligibility .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.eligibility-list {
    list-style: none;
    margin: 25px 0;
}

.eligibility-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.eligibility-list li i {
    color: var(--success-color);
    margin-right: 10px;
}

/* 用户反馈 */
.testimonials {
    padding: 80px 0;
    background-color: #fff;
}

.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
}

.testimonial-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.testimonial {
    scroll-snap-align: start;
    min-width: 300px;
    flex: 1;
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.testimonial-content {
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
}

.author-title {
    color: #666;
    font-size: 0.9rem;
}

/* CTA区域 */
.cta {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--light-text);
    text-align: center;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta p {
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 页脚 */
footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 60px 0 20px;
}

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

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3:after,
.footer-contact h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

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

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

.footer-links ul li a {
    color: #ccc;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--light-text);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light-text);
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}

/* 福利页面样式 */
.benefits-overview {
    padding: 80px 0;
    background-color: #fff;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.benefit-tabs {
    max-width: 1000px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 10px 20px;
    background-color: var(--light-bg);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.tab-content {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.benefit-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: start;
}

.benefit-image img {
    max-width: 100%;
    border-radius: 8px;
}

.benefit-details h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.benefit-details ul {
    list-style: none;
    margin-bottom: 20px;
}

.benefit-details ul li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.benefit-details ul li i {
    color: var(--success-color);
    margin-right: 10px;
}

.benefit-note {
    background-color: rgba(23, 162, 184, 0.1);
    border-left: 4px solid var(--info-color);
    padding: 15px;
    margin-top: 20px;
    border-radius: 0 4px 4px 0;
}

.benefit-note i {
    color: var(--info-color);
    margin-right: 10px;
}

/* 申请页面样式 */
.eligibility-check {
    padding: 80px 0;
    background-color: #fff;
}

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

.eligibility-card {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.eligibility-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.eligibility-note {
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 4px solid var(--warning-color);
    padding: 15px;
    margin-top: 40px;
    border-radius: 0 4px 4px 0;
}

.eligibility-note i {
    color: var(--warning-color);
    margin-right: 10px;
}

.enrollment-periods {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}

.timeline-marker {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
}

.timeline-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.timeline-example {
    background-color: rgba(40, 167, 69, 0.1);
    border-radius: 4px;
    padding: 10px;
    margin-top: 15px;
}

.enrollment-note {
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 4px solid var(--danger-color);
    padding: 15px;
    margin-top: 40px;
    border-radius: 0 4px 4px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.enrollment-note i {
    color: var(--danger-color);
    margin-right: 10px;
}

.application-process {
    padding: 80px 0;
    background-color: #fff;
}

.process-steps {
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    margin-bottom: 30px;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-right: 20px;
}

.step-content {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
    flex-grow: 1;
}

.step-content h3 {
    margin-bottom: 10px;
}

.step-content ul {
    list-style-position: inside;
    margin-top: 10px;
}

.step-content ul li {
    margin-bottom: 5px;
}

.step-content a {
    font-weight: 600;
}

/* FAQ页面样式 */
.faq-search {
    padding: 40px 0;
    background-color: #fff;
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto 30px;
}

.search-box input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.search-box button {
    padding: 0 20px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.faq-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.category-btn {
    padding: 8px 15px;
    background-color: var(--light-bg);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.category-btn.active,
.category-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.faq-content {
    padding: 40px 0 80px;
    background-color: var(--light-bg);
}

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

.faq-item {
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.toggle-icon {
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

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

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 1000px;
}

/* 联系页面样式 */
.contact-info {
    padding: 80px 0;
    background-color: #fff;
}

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

.contact-card {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-detail {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 15px 0;
}

.contact-hours {
    font-size: 0.9rem;
    color: #666;
}

.qr-code {
    margin-top: 15px;
}

.qr-code img {
    max-width: 150px;
    border: 1px solid var(--border-color);
    padding: 10px;
    background-color: #fff;
}

.contact-form {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.form-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.required {
    color: var(--danger-color);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

input[type="radio"],
input[type="checkbox"] {
    margin-right: 8px;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.contact-image {
    display: none;
}

.faq-preview {
    padding: 80px 0;
    background-color: #fff;
}

.faq-preview-list {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.faq-preview-item {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.faq-preview-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.location {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.location-info h3 {
    margin-bottom: 20px;
}

.location-info p {
    margin-bottom: 15px;
}

.location-info i {
    color: var(--primary-color);
    margin-right: 10px;
}

.location-map {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.location-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 响应式样式 */
@media (max-width: 992px) {
    .eligibility .container,
    .location-content {
        grid-template-columns: 1fr;
    }
    
    .eligibility-image,
    .location-map {
        order: -1;
    }
    
    .benefit-content {
        grid-template-columns: 1fr;
    }
    
    .benefit-image {
        text-align: center;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    
    nav {
        margin-top: 15px;
    }
    
    nav ul {
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .faq-preview-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .mobile-menu {
        display: block;
    }
    
    nav {
        display: none;
    }
    nav.active {
        display: block;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .tab-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 300px;
    }
}

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

.fadeIn {
    animation: fadeIn 0.5s ease forwards;
}