/* 自定义样式 */
:root {
    --primary: #3b82f6;
    --secondary: #1e40af;
    --dark: #1f2937;
}

.bg-primary { background-color: var(--primary); }
.text-primary { color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-dark { background-color: var(--dark); }

/* 英雄区域背景 */
.hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    min-height: 100vh;
    margin-top: 0;
}

/* 卡片阴影 */
.shadow-card {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 页脚蓝色背景 */
.bg-footer-blue {
    background-color: rgba(59, 130, 246, 0.1);
}

/* 备案项样式 */
.beian-item {
    color: #9ca3af;
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s;
}

.beian-item:hover {
    color: white;
}

.beian-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}

/* 页脚导航项 */
.footer-nav-item {
    color: #9ca3af;
    text-decoration: none;
    margin: 0 0.75rem;
    transition: color 0.3s;
}

.footer-nav-item:hover {
    color: white;
}

/* 移动端菜单 */
.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* 导航链接 */
.nav-link {
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* 服务卡片悬停效果 */
.service-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

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

/* 功能卡片 */
.feature-card {
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: scale(1.05);
}

/* 网络特性项 */
.network-feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.network-feature-icon {
    flex-shrink: 0;
}

.network-feature-content {
    flex: 1;
}

.network-feature-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.network-feature-desc {
    color: #6b7280;
    line-height: 1.6;
}

/* 评分条 */
.rating-bar-container {
    margin-top: 1rem;
}

.rating-bar {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.rating-bar-label {
    width: 3rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.rating-bar-bg {
    flex: 1;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    margin: 0 1rem;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background-color: #f59e0b;
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

.rating-bar-percent {
    width: 3rem;
    text-align: right;
    font-size: 0.875rem;
    color: #6b7280;
}

/* 星星评分 */
.stars-container {
    position: relative;
    display: inline-block;
}

.stars-background, .stars-foreground {
    display: flex;
}

.stars-background {
    color: #d1d5db;
}

.stars-foreground {
    position: absolute;
    top: 0;
    left: 0;
    color: #f59e0b;
    overflow: hidden;
    white-space: nowrap;
}

/* 投票按钮 */
.vote-button {
    transition: all 0.3s;
}

.vote-button:hover {
    background-color: #e5e7eb !important;
}

.vote-button.voted {
    background-color: var(--primary) !important;
    color: white;
}

/* FAQ 内容过渡 */
.faq-content {
    transition: all 0.3s ease-in-out;
}

.rotate-180 {
    transform: rotate(180deg);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
    }
    
    .mobile-menu {
        width: 85%;
    }
}