/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

.section-padding {
    padding: 80px 0;
}

.light-bg {
    background-color: #f0f2f5;
}

/* 按钮样式 */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background-color: #d32f2f;
    color: white;
}

.btn-primary:hover {
    background-color: #b71c1c;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #333;
    border: 2px solid #ddd;
}

.btn-secondary:hover {
    border-color: #d32f2f;
    color: #d32f2f;
}

/* 页头样式 */
.site-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.brand-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo {
    height: 40px;
    width: auto;
}

.brand-text h1 {
    font-size: 1.5rem;
    color: #222;
    margin-bottom: 4px;
}

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

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-navigation a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.main-navigation a:hover {
    color: #d32f2f;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #d32f2f;
    transition: width 0.3s;
}

.main-navigation a:hover::after {
    width: 100%;
}

/* 主视觉区域 */
.hero-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6)), 
                url('../assets/hero-bg.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 120px 20px;
    position: relative;
}

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

.hero-overlay p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 部分标题样式 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #222;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #d32f2f;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 20px auto 0;
}

/* 联系方式网格 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    background: white;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

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

.contact-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #222;
}

.phone-number, .email-address {
    font-size: 1.5rem;
    font-weight: 600;
    color: #d32f2f;
    margin-bottom: 10px;
    word-break: break-all;
}

.service-hours, .response-time {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.contact-desc p {
    color: #777;
    font-size: 0.95rem;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* 服务范围网格 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-item {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #222;
}

.service-item ul {
    list-style: none;
    text-align: left;
}

.service-item li {
    padding: 8px 0;
    color: #555;
    position: relative;
    padding-left: 20px;
}

.service-item li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

/* 官方门户样式 */
.portal-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.portal-header {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    color: white;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.portal-icon {
    font-size: 2.5rem;
}

.portal-header h3 {
    font-size: 1.5rem;
}

.portal-info {
    padding: 40px;
}

.url-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}

.url-text {
    font-family: monospace;
    font-size: 1.2rem;
    color: #333;
    word-break: break-all;
}

.copy-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
    white-space: nowrap;
    margin-left: 10px;
}

.copy-btn:hover {
    background: #388E3C;
}

.copy-btn.copied {
    background: #2E7D32;
}

.access-guide, .portal-features {
    margin-top: 30px;
}

.access-guide h4, .portal-features h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
}

.access-guide ol {
    padding-left: 20px;
    color: #555;
}

.access-guide li {
    margin-bottom: 10px;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feature-tag {
    background: #e3f2fd;
    color: #1976D2;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* 合规声明样式 */
.notice-card {
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
}

.notice-card.warning {
    background: #fff8e1;
    border-left: 5px solid #ff9800;
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.notice-icon {
    font-size: 2rem;
}

.notice-card h3 {
    color: #d32f2f;
    font-size: 1.4rem;
}

.notice-body p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.7;
}

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

.compliance-item {
    background: white;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    border-top: 4px solid #d32f2f;
}

.compliance-item h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #222;
}

.compliance-item p {
    color: #666;
    font-size: 0.95rem;
}

/* FAQ样式 */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: white;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question.active {
    background: #f8f9fa;
}

.faq-toggle {
    font-size: 1.5rem;
    color: #d32f2f;
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background: white;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 20px 20px;
    color: #555;
    line-height: 1.7;
}

/* 页脚样式 */
.site-footer {
    background: #222;
    color: #aaa;
    padding: 60px 0 30px;
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    height: 35px;
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 0.95rem;
    color: #ccc;
}

.footer-links h4, .footer-info h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

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

.footer-info p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: #777;
}

.disclaimer {
    font-size: 0.8rem;
    margin-top: 10px;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-navigation ul {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-overlay h2 {
        font-size: 2.2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .contact-grid, .service-grid, .compliance-grid {
        grid-template-columns: 1fr;
    }
    
    .url-display {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .copy-btn {
        align-self: flex-end;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        align-items: center;
    }
}