/* 绿夏私人云盘系统 - 前台样式 */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --text-dark: #2d3748;
    --text-light: #718096;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* ==================== 导航栏 ==================== */
.navbar {
    transition: all 0.3s ease;
    padding: 15px 0;
}

.navbar.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark) !important;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 8px 16px !important;
    margin: 0 5px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(102, 126, 234, 0.1);
    color: var(--primary-color) !important;
}

/* ==================== 英雄区 ==================== */
.hero-section {
    padding-top: 80px;
    position: relative;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.hero-section h1 {
    line-height: 1.2;
}

.hero-section .text-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-image img {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.feature-badge i {
    font-size: 24px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: var(--primary-color);
    font-size: 36px;
    text-decoration: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ==================== 功能特色 ==================== */
.features-section {
    padding: 80px 0;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 36px;
    color: white;
}

.feature-icon.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.feature-icon.bg-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.feature-icon.bg-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.feature-icon.bg-warning {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.feature-icon.bg-danger {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.feature-icon.bg-secondary {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.feature-card h4 {
    margin-bottom: 15px;
    font-weight: 600;
}

/* ==================== 系统优势 ==================== */
.advantages-section {
    padding: 80px 0;
}

.advantage-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.advantage-item i {
    font-size: 28px;
    margin-top: 5px;
}

.advantage-item h5 {
    margin-bottom: 8px;
    font-weight: 600;
}

.advantage-item p {
    margin: 0;
}

/* ==================== 价格方案 ==================== */
.pricing-section {
    padding: 80px 0;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.pricing-card.featured {
    border: 3px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.08) translateY(-10px);
}

.badge-featured {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
}

.pricing-header h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 10px;
}

.price .currency {
    font-size: 24px;
    font-weight: 600;
    margin-top: 10px;
}

.price .amount {
    font-size: 56px;
    font-weight: 700;
    color: var(--primary-color);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    font-size: 20px;
}

/* ==================== 使用场景 ==================== */
.use-cases-section {
    padding: 80px 0;
}

.use-case-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
}

.use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.use-case-card i {
    font-size: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.use-case-card h5 {
    margin-bottom: 10px;
    font-weight: 600;
}

.use-case-card p {
    color: var(--text-light);
    margin: 0;
}

/* ==================== 联系我们 ==================== */
.contact-section {
    padding: 80px 0;
}

.contact-item {
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.contact-item i {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-item h5 {
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-item p {
    margin: 0;
    color: var(--text-light);
}

/* ==================== 页脚 ==================== */
.footer {
    background: #1a202c;
}

.footer h5, .footer h6 {
    color: white;
    margin-bottom: 20px;
}

.footer a {
    color: white !important;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 10px;
}

.footer a:hover {
    color: var(--primary-color) !important;
    padding-left: 5px;
}

.footer .text-muted {
    color: white !important;
}

/* ==================== 按钮样式 ==================== */
.btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 18px;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 60px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .features-section,
    .advantages-section,
    .pricing-section,
    .use-cases-section,
    .contact-section {
        padding: 50px 0;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* ==================== 动画效果 ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease;
}

/* ==================== 加载动画 ==================== */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==================== 滚动条美化 ==================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
}

/* ==================== 工具类 ==================== */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-primary {
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.border-gradient {
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), 
                      linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

