/* ==========================================================================
   Legal Pages Unified Styles
   ========================================================================== */

/* 基础页面样式 */
.legal-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background: transparent;
}

/* 确保页面body也是透明的 */
body {
    background: transparent !important;
}

/* 页面头部区域 */
.header-section {
    background: transparent;
    color: #1e293b;
    padding: 10px 0 10px 0;
    text-align: center;
    /*margin-top: 80px;*/
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.header-section h1 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #1e293b;
}

.header-section .lead {
    font-size: 1.25rem;
    color: #64748b;
    margin: 0;
}

/* 内容包装器 */
.content-wrapper {
    background: transparent;
    position: relative;
    min-height: calc(100vh - 200px);
}

/* 通用内容区域 */
.legal-content,
.customer-service-content,
.terms-content {
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
}

.legal-content {
    padding: 80px 50px;
}

/* 标题样式 */
.section-title {
    color: #1e293b;
    font-size: 28px;
    font-weight: 600;
    margin: 50px 0 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e2e8f0;
    position: relative;
}

.section-title:first-child {
    margin-top: 0;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.subsection-title {
    color: #334155;
    font-size: 20px;
    font-weight: 600;
    margin: 30px 0 15px;
}

/* 文本内容 */
.content-text {
    color: #475569;
    margin-bottom: 20px;
    text-align: justify;
    font-size: 16px;
    line-height: 1.7;
}

/* 特殊框样式 */
.highlight-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.1);
}

.highlight-box ul {
    margin-bottom: 0;
}

/* Terms页面特殊样式 */
.terms-intro {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #0ea5e9;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.1);
}

.warning-box {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 1px solid #f87171;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(248, 113, 113, 0.1);
}

/* 联系信息框 */
.contact-info {
    /*background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);*/
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.1);
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
    width: 20px;
    color: #059669;
}

/* Contact页面特殊样式 - 联系方式卡片 */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0;
    padding: 0 20px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.contact-card {
    background: transparent;
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 0;
    width: 100%;
}

.contact-card:hover {
    border-color: #4f46e5;
    transform: translateY(-4px);
}

/* 移除特定卡片的颜色边框，使用统一的透明风格 */

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 24px;
    color: #4f46e5;
    border: 2px solid #e2e8f0;
    background: transparent;
}

.contact-icon i {
    display: inline-block;
}

/* 最后更新时间 */
.last-updated {
    color: #64748b;
    font-style: italic;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
    text-align: center;
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
}

/* 列表样式 */
ul, ol {
    color: #475569;
    margin-bottom: 20px;
    padding-left: 20px;
}

li {
    margin-bottom: 12px;
    line-height: 1.6;
}

li strong {
    color: #1e293b;
}

/* 链接样式 */
a {
    color: #4f46e5;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #3730a3;
    text-decoration: underline;
}

/* Terms页面链接特殊颜色 */
.terms-content a {
    color: #059669;
}

.terms-content a:hover {
    color: #047857;
}

/* 简化的页脚 */
.simple-footer {
    background: #1e293b;
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
}

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

.footer-section h5 {
    color: #e2e8f0;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

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

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 30px;
    text-align: center;
    color: #94a3b8;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .header-section h1 {
        font-size: 1.75rem;
    }

    .header-section .lead {
        font-size: 1.1rem;
    }

    .legal-content,
    .customer-service-content,
    .terms-content {
        padding: 40px 20px;
    }

    .legal-content {
        padding: 30px 15px;
    }

    .section-title {
        font-size: 24px;
    }

    .subsection-title {
        font-size: 1.1rem;
    }

    .navbar-nav {
        gap: 1rem;
    }

    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .contact-cards {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .header-section {
        /*padding: 15px 0;*/
    }

    .header-section h1 {
        font-size: 1.5rem;
        margin: 0 0 8px 0;
    }

    .header-section .lead {
        font-size: 1rem;
    }

    .content-wrapper {
        margin-top: -20px;
        border-radius: 20px 20px 0 0;
    }

    .legal-content,
    .customer-service-content,
    .terms-content {
        padding: 25px 12px;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .subsection-title {
        font-size: 1rem;
    }

    ul, ol {
        padding-left: 20px;
    }

    .contact-card {
        padding: 20px 15px;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Contact页面特殊样式 - 补充缺失的样式 */
.contact-info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 15px 0;
    padding: 12px 16px;
    background: transparent;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid #e2e8f0;
}

.contact-info-item div {
    display: flex;
    align-items: center;
    color: #374151;
}

.contact-info-item i {
    margin-right: 8px;
    width: 16px;
    color: #4f46e5;
    display: inline-block;
    text-align: center;
}

.copy-btn {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #4f46e5;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.copy-btn i {
    font-size: 12px;
}

.copy-btn:hover {
    background: #4f46e5;
    color: white;
    border-color: #4f46e5;
}

.chat-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #4f46e5;
    border: 2px solid #4f46e5;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.chat-link:hover {
    background: #4f46e5;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.chat-link i {
    margin-right: 8px;
}

.status-indicator {
    color: #16a34a;
    font-weight: 500;
}

.status-indicator i {
    color: #16a34a;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.service-hours {
    background: transparent;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0;
}

.service-hours h3 {
    color: #1e293b;
    margin-bottom: 20px;
    font-size: 1.25rem;
    font-weight: 600;
}

.service-hours ul {
    list-style: none;
    padding: 0;
}

.service-hours li {
    display: flex;
    align-items: center;
    margin: 15px 0;
    padding: 12px;
    background: transparent;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.service-hours li i {
    margin-right: 12px;
    width: 20px;
    color: #4f46e5;
    display: inline-block;
    text-align: center;
}

.quick-ticket {
    background: transparent;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0;
}

.quick-ticket h3 {
    color: #1e293b;
    margin-bottom: 15px;
    font-size: 1.25rem;
    font-weight: 600;
}

.quick-ticket .form-control {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: transparent;
}

.quick-ticket .form-control:focus {
    border-color: #4f46e5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.quick-ticket .row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.quick-ticket .col-md-6 {
    flex: 1;
}

.btn-submit {
    background: transparent;
    color: #4f46e5;
    border: 2px solid #4f46e5;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover {
    background: #4f46e5;
    color: white;
    transform: translateY(-1px);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.faq-section {
    background: transparent;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0;
}

.faq-title {
    color: #1e293b;
    font-size: 1.5rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
}

.faq-item {
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 15px;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 15px 0;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #4f46e5;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-answer {
    display: none;
    padding: 15px 0 20px 0;
    color: #64748b;
    line-height: 1.6;
}