/* ===================================
   Legal & Info Pages Styles
   =================================== */

.page-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0 80px;
    margin-top: 70px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.page-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.page-hero p {
    font-size: 20px;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    color: #efefef;
}

.page-content {
    padding: 80px 0;
    background: #f8f9fa;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.content-section {
    margin-bottom: 50px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}

.content-section h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin: 30px 0 15px;
    font-weight: 600;
}

.content-section p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

.content-section ul,
.content-section ol {
    margin: 20px 0;
    padding-left: 30px;
}

.content-section li {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 12px;
}

.content-section strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* 重要声明框 */
.disclaimer-box {
    background: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 8px;
}

.disclaimer-box h3 {
    color: #856404;
    margin-top: 0;
    font-size: 22px;
}

.disclaimer-box p {
    color: #856404;
    margin-bottom: 0;
}

.disclaimer-box ul {
    color: #856404;
}

.disclaimer-box li {
    color: #856404;
}

/* 信息框 */
.info-box {
    background: #e7f3ff;
    border-left: 5px solid var(--primary);
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 8px;
}

.info-box h3 {
    color: var(--primary);
    margin-top: 0;
    font-size: 22px;
}

.info-box p {
    color: #004085;
    margin-bottom: 0;
}

/* 联系表单 */
.contact-form {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 16px;
    margin-top: 40px;
}

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

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

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

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 40px;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.6);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-btn.loading {
    pointer-events: none;
}

/* Form Error States */
.form-group input.error,
.form-group textarea.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.error-message {
    display: block;
    color: #dc3545;
    font-size: 14px;
    margin-top: 6px;
    font-weight: 500;
}

/* Custom Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.show .modal-container {
    transform: scale(1) translateY(0);
}

.modal-content {
    padding: 50px 40px;
    text-align: center;
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.modal-icon.success {
    background: #d4edda;
    color: #28a745;
}

.modal-icon.error {
    background: #f8d7da;
    color: #dc3545;
}

.modal-icon.loading {
    background: #e7f3ff;
    color: var(--primary);
}

.modal-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 15px 0;
}

.modal-message {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 0 30px 0;
}

.modal-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.6);
}

/* 联系信息卡片 */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s;
}

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

.contact-card i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 15px;
}

.contact-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.contact-card p {
    font-size: 16px;
    color: var(--text-light);
}

.contact-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* 社交媒体区块 */
.social-section {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    margin-top: 30px;
}

.social-section h3 {
    margin-bottom: 10px;
}

.social-section p {
    margin-bottom: 30px;
    color: var(--text-light);
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

.social-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: white;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.social-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(0,0,0,0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.social-link-card:hover::before {
    opacity: 1;
}

.social-link-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.social-link-card i {
    font-size: 36px;
    margin-bottom: 12px;
    transition: transform 0.3s;
}

.social-link-card:hover i {
    transform: scale(1.1);
}

.social-link-card span {
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s;
}

/* 社交媒体品牌颜色 */
.social-link-card.facebook i {
    color: #1877f2;
}

.social-link-card.facebook:hover {
    border-color: #1877f2;
}

.social-link-card.facebook span {
    color: #1877f2;
}

.social-link-card.twitter i {
    color: #1da1f2;
}

.social-link-card.twitter:hover {
    border-color: #1da1f2;
}

.social-link-card.twitter span {
    color: #1da1f2;
}

.social-link-card.instagram i {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-link-card.instagram:hover {
    border-color: #e6683c;
}

.social-link-card.instagram span {
    color: #e6683c;
}

.social-link-card.pinterest i {
    color: #e60023;
}

.social-link-card.pinterest:hover {
    border-color: #e60023;
}

.social-link-card.pinterest span {
    color: #e60023;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.6);
}

/* 响应式 */
@media (max-width: 768px) {
    .page-hero {
        padding: 100px 0 60px;
    }
    
    .page-hero h1 {
        font-size: 36px;
    }
    
    .page-hero p {
        font-size: 18px;
    }
    
    .page-content {
        padding: 60px 0;
    }
    
    .content-wrapper {
        padding: 40px 25px;
        border-radius: 0;
    }
    
    .content-section h2 {
        font-size: 28px;
    }
    
    .content-section h3 {
        font-size: 22px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .social-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .social-link-card {
        padding: 25px 15px;
    }
    
    .social-link-card i {
        font-size: 32px;
    }
    
    .social-link-card span {
        font-size: 14px;
    }
    
    .modal-container {
        width: 95%;
        max-width: 400px;
    }
    
    .modal-content {
        padding: 40px 25px;
    }
    
    .modal-icon {
        width: 70px;
        height: 70px;
        font-size: 35px;
    }
    
    .modal-title {
        font-size: 22px;
    }
    
    .modal-message {
        font-size: 15px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}


/* ===================================
   Search Page Styles
   =================================== */

.search-section {
    padding: 80px 0;
    background: #f8f9fa;
    min-height: 60vh;
}

.search-box-wrapper {
    max-width: 800px;
    margin: 0 auto 60px;
}

.search-box-large {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 8px 8px 8px 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transition: all 0.3s;
}

.search-box-large:focus-within {
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.25);
}

.search-icon {
    color: var(--primary);
    font-size: 20px;
    margin-right: 15px;
}

.search-box-large input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 17px;
    padding: 12px 0;
    font-family: inherit;
}

.search-box-large input::placeholder {
    color: #999;
}

.search-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.6);
}

.search-button i {
    transition: transform 0.3s;
}

.search-button:hover i {
    transform: translateX(4px);
}

.search-results-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.results-header {
    margin-bottom: 40px;
    text-align: center;
}

.results-info {
    font-size: 18px;
    color: var(--text-light);
}

.results-count {
    font-size: 20px;
    color: var(--text-dark);
    font-weight: 600;
}

.no-results {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.no-results i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 20px;
    display: block;
}

/* 搜索结果网格 - 使用首页卡片样式 */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* 响应式 */
@media (max-width: 1024px) {
    .search-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .search-section {
        padding: 60px 0;
    }
    
    .search-box-wrapper {
        margin-bottom: 40px;
    }
    
    .search-box-large {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        border-radius: 20px;
    }
    
    .search-icon {
        display: none;
    }
    
    .search-box-large input {
        margin-bottom: 15px;
        padding: 12px 0;
    }
    
    .search-button {
        width: 100%;
        justify-content: center;
        padding: 16px;
    }
    
    .results-header {
        margin-bottom: 30px;
    }
    
    .results-info,
    .results-count {
        font-size: 16px;
    }
    
    .search-results-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}


/* ===================================
   FAQ Page Styles
   =================================== */

.faq-item {
    background: #f8f9fa;
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s;
}

.faq-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.faq-item h3 {
    color: var(--text-dark);
    font-size: 20px;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.faq-item p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

.faq-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.faq-item a:hover {
    text-decoration: underline;
}
