/* /css/components.css - 组件样式 */
/* 头部样式 */
.site-header {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-area {
    display: flex;
    align-items: center;
}

.logo-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-link:hover {
    color: white;
    text-decoration: none;
    opacity: 0.9;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.site-slogan {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* 导航菜单 */
.main-nav {
    display: block;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* 导航菜单 - 修复 active 样式优先级 */
.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0;
    font-weight: 500;
    position: relative;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    color: white;
    text-decoration: none;
    opacity: 0.8;
}

/* 增强 active 样式的优先级，避免覆盖 */
.nav-link.active {
    font-weight: 600;
    opacity: 1 !important; /* 确保选中项不透明 */
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 1px;
}


/* 移动端菜单按钮 - 默认隐藏 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0;
}

/* 移动端菜单容器 - 默认隐藏 */
.mobile-menu {
    display: none;
    background: white;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.toggle-icon {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-content {
    padding: 1rem;
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* 新增：移动端导航 active 样式 */
.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    position: relative;
}

.mobile-nav-link:hover {
    background-color: #f5f5f5;
    color: #1a73e8;
    text-decoration: none;
}

/* 移动端选中状态 */
.mobile-nav-link.active {
    background-color: #e8f0fe;
    color: #1a73e8;
    font-weight: 600;
}

.mobile-nav-link.active::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1a73e8;
}

/* 底部样式 */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

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

.footer-section {
    margin-bottom: 1.5rem;
}

.footer-title {
    color: #1a73e8;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #1a73e8;
    text-decoration: none;
}

.contact-details p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* 底部备案信息 */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.beian-info {
    font-size: 0.875rem;
    color: #aaa;
}

.beian-info a {
    color: #1a73e8;
    text-decoration: none;
}

.beian-info a:hover {
    text-decoration: underline;
}

.compliance-notice {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #888;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border-radius: 25px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

.btn-primary:hover {
    background: #0d47a1;
    border-color: #0d47a1;
    color: white;
}

.btn-outline {
    background: transparent;
    color: #1a73e8;
    border-color: #1a73e8;
}

.btn-outline:hover {
    background: #1a73e8;
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.form-control.error {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

/* 响应式设计：768px以下为移动端 */
@media (max-width: 768px) {
    /* 移动端隐藏PC端导航 */
    .main-nav {
        display: none !important;
    }
    
    /* 移动端显示汉堡按钮 */
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    /* 移动端菜单容器定位修正 */
    .mobile-menu {
        top: calc(100% - 1px); /* 紧贴头部底部 */
        left: 0;
        right: 0;
        width: 100%;
    }
    
    /* 其他原有移动端样式保持不变 */
    .header-content {
        flex-wrap: wrap;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* 备案审核状态样式 */
.review-notice {
    /* background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border: 1px solid #ffd54f;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 30px; */
    /* animation: pulse 2s infinite; */
}

.review-status {
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-icon {
    font-size: 24px;
    color: #ff9800;
}

.review-text {
    flex: 1;
}

.review-text strong {
    color: #ff5722;
    display: block;
    margin-bottom: 5px;
}

.review-text p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.review-text a {
    color: #2196f3;
    text-decoration: none;
    font-weight: 500;
}

.review-text a:hover {
    text-decoration: underline;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 152, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0);
    }
}

/* 更新底部备案信息样式 */
.security-filing {
    background: #f5f5f5;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 10px 0;
    font-size: 14px;
    color: #666;
}

.security-filing a {
    color: #2196f3;
    text-decoration: none;
    font-weight: 500;
}

.security-filing a:hover {
    text-decoration: underline;
}

.compliance-notice {
    font-size: 13px;
    color: #888;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 底部样式优化 */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.beian-info {
    font-size: 0.875rem;
    color: #aaa;
}

.beian-info a {
    color: #1a73e8;
    text-decoration: none;
}

.beian-info a:hover {
    text-decoration: underline;
}

/* 底部布局优化 */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    margin-bottom: 1.5rem;
}

.footer-title {
    color: #1a73e8;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #1a73e8;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav a {
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 3px 0;
}

.footer-nav a:hover {
    color: #1a73e8;
    text-decoration: none;
    padding-left: 5px;
}

.contact-details p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .review-status {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .review-icon {
        font-size: 32px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-nav a:hover {
        padding-left: 0;
    }
}

/* 头部备案提示条 */
.filing-notice {
    background: linear-gradient(90deg, #2196f3 0%, #1976d2 100%);
    color: white;
    padding: 8px 0;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.filing-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.filing-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.status-icon {
    font-size: 16px;
}

.status-text {
    text-align: center;
}

.status-text a {
    color: #ffeb3b;
    text-decoration: none;
    font-weight: 500;
    margin: 0 5px;
}

.status-text a:hover {
    text-decoration: underline;
    color: #fff;
}

/* 头部样式调整 */
.site-header {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* 移动端备案提示调整 */
@media (max-width: 768px) {
    .filing-notice {
        padding: 10px 0;
        font-size: 12px;
    }
    
    .filing-status {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}
/* 强制覆盖：确保PC端始终隐藏移动端菜单 */
@media (min-width: 769px) {
    .mobile-menu {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: none !important;
    }
}