/* ===========================
   肥牛AI首页 - 暗色科技风格
   =========================== */

:root {
    --primary-color: #8b5cf6;
    --secondary-color: #06b6d4;
    --bg-dark: #0a0a0f;
    --bg-darker: #05050a;
    --card-bg: rgba(15, 15, 25, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --border-color: rgba(139, 92, 246, 0.2);
    --glow-primary: rgba(139, 92, 246, 0.4);
    --glow-secondary: rgba(6, 182, 212, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.main-content {
    min-height: calc(100vh - 70px);
}

/* ===========================
   Hero区域
   =========================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    overflow: hidden;
}

.hero-bg-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--glow-primary) 0%, transparent 70%);
    opacity: 0.3;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.5; }
}

.hero-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0 100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 200px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
    max-width: 600px;
    text-align: left;
    justify-self: start;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.badge-icon {
    font-size: 16px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 128px;
    display: block;
    margin-top: 10px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #6d28d9 100%);
    color: white;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.6),
                0 0 60px rgba(139, 92, 246, 0.4),
                0 8px 24px rgba(139, 92, 246, 0.3);
    animation: buttonGlow 2s ease-in-out infinite;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.8),
                0 0 80px rgba(139, 92, 246, 0.5),
                0 12px 32px rgba(139, 92, 246, 0.4);
}

@keyframes buttonGlow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(139, 92, 246, 0.6),
                    0 0 60px rgba(139, 92, 246, 0.4),
                    0 8px 24px rgba(139, 92, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(139, 92, 246, 0.8),
                    0 0 80px rgba(139, 92, 246, 0.5),
                    0 8px 24px rgba(139, 92, 246, 0.4);
    }
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

.hero-stats {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

.stat-item {
    text-align: center;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 20px 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-width: 140px;
}

.stat-item:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1.2;
    white-space: nowrap;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Hero视觉效果 */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    animation: fadeInRight 1s ease-out;
    min-height: 500px;
    justify-self: end;
}

.avatar-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, rgba(6, 182, 212, 0.15) 40%, transparent 70%);
    animation: rotate 20s linear infinite;
    filter: blur(40px);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-avatar {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.2),
                0 0 20px rgba(139, 92, 246, 0.15);
    position: relative;
    z-index: 2;
    transition: all 0.5s ease;
}

.hero-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.3),
                0 0 25px rgba(139, 92, 246, 0.2);
}

.floating-cards {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.float-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 15, 25, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.float-card i {
    font-size: 16px;
    color: var(--primary-color);
}

.card-1, .card-2, .card-3, .card-4 {
    position: relative;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    animation: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ===========================
   功能展示区域
   =========================== */
.features-section {
    padding: 120px 100px;
    background: var(--bg-dark);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.features-grid {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.2);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #6d28d9 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px var(--glow-primary);
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px var(--glow-primary);
}

.feature-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.feature-tag {
    display: inline-block;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
}

/* ===========================
   CTA区域
   =========================== */
.cta-section {
    padding: 100px 100px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cta-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-desc {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================
   页脚
   =========================== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 40px;
    text-align: center;
}

.footer .container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer p {
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* ===========================
   动画
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===========================
   响应式设计
   =========================== */
@media (max-width: 1600px) {
    .hero-container {
        padding: 0 80px;
        gap: 150px;
    }
}

@media (max-width: 1400px) {
    .hero-container {
        padding: 0 60px;
        gap: 100px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
        padding: 0 40px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-visual {
        order: -1;
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .floating-cards {
        display: none;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 80px 0;
    }

    .hero-container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 36px;
    }

    .gradient-text {
        font-size: 72px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-avatar {
        width: 220px;
        height: 220px;
    }

    .avatar-glow {
        width: 280px;
        height: 280px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }

    .stat-item {
        min-width: 100px;
        padding: 15px 20px;
    }

    .stat-number {
        font-size: 36px;
    }

    .floating-cards {
        flex-wrap: wrap;
        bottom: -80px;
    }

    .features-section {
        padding: 80px 20px;
    }

    .section-title {
        font-size: 36px;
    }

    .section-desc {
        font-size: 16px;
    }

    .cta-section {
        padding: 80px 20px;
    }

    .cta-title {
        font-size: 36px;
    }

    .cta-desc {
        font-size: 18px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-modern {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .gradient-text {
        font-size: 56px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-avatar {
        width: 180px;
        height: 180px;
    }

    .avatar-glow {
        width: 220px;
        height: 220px;
    }

    .stat-item {
        min-width: 90px;
        padding: 12px 16px;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-label {
        font-size: 12px;
    }

    .floating-cards {
        gap: 8px;
    }

    .float-card {
        padding: 8px 12px;
        font-size: 12px;
    }

    .section-title {
        font-size: 28px;
    }

    .feature-card {
        padding: 30px 25px;
    }

    .cta-title {
        font-size: 28px;
    }
}
