/* === 全局重置 & 基础 === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f5f7fa;
    color: #1e293b;
    line-height: 1.6;
}

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

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 15px;
}
.btn-primary {
    background: linear-gradient(135deg, #07c160, #06ad56);
    color: #fff;
    box-shadow: 0 8px 20px rgba(7, 193, 96, 0.35);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(7, 193, 96, 0.45);
}
.btn-outline {
    background: transparent;
    color: #07c160;
    border: 2px solid #07c160;
}
.btn-outline:hover {
    background: #07c160;
    color: #fff;
}

/* 标题 */
.section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 8px;
    color: #1e293b;
}
.section-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 40px;
    font-size: 16px;
}

/* ===== 头部 ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    transition: background 0.3s;
}
.header.scrolled {
    background: rgba(255,255,255,0.96);
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-img {
    width: 38px;
    height: 38px;
    display: block;
}
.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #07c160;
}
.nav {
    display: flex;
    gap: 24px;
}
.nav-link {
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
}
.nav-link:hover,
.nav-link.active {
    color: #07c160;
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: #07c160;
    border-radius: 3px;
}
.admin-link i {
    margin-right: 4px;
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.hamburger span {
    width: 26px;
    height: 3px;
    background: #1e293b;
    border-radius: 3px;
    transition: all 0.3s;
}

/* ===== Hero ===== */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(145deg, #f0fdf4 0%, #e6f7ec 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
}
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}
.hero-text {
    flex: 1 1 480px;
}
.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 16px;
    line-height: 1.2;
}
.hero-text p {
    font-size: 18px;
    color: #475569;
    max-width: 540px;
    margin-bottom: 32px;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-visual {
    flex: 1 1 280px;
    display: flex;
    justify-content: center;
}
.hero-logo {
    width: 220px;
    height: 220px;
    filter: drop-shadow(0 20px 40px rgba(7, 193, 96, 0.25));
    animation: float 4s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

/* ===== 功能卡片 ===== */
.features {
    padding: 80px 0;
    background: #fff;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}
.feature-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.35s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    border: 1px solid #e9edf2;
}
.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(7, 193, 96, 0.15);
    border-color: #07c16040;
}
.feature-card .icon {
    font-size: 42px;
    color: #07c160;
    margin-bottom: 16px;
}
.feature-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}
.feature-card p {
    color: #64748b;
    font-size: 14px;
}

/* ===== 朋友圈动态 ===== */
.moments {
    padding: 80px 0;
    background: #f5f7fa;
}
.moments-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 720px;
    margin: 0 auto;
}
.moment-item {
    background: #fff;
    border-radius: 18px;
    padding: 24px 28px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    transition: all 0.3s;
    border-left: 5px solid #07c160;
}
.moment-item:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.07);
    transform: translateX(6px);
}
.moment-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}
.moment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #07c160, #06ad56);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}
.moment-user {
    font-weight: 600;
    font-size: 16px;
}
.moment-time {
    font-size: 12px;
    color: #94a3b8;
    margin-left: auto;
}
.moment-content {
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.7;
}
.moment-footer {
    display: flex;
    gap: 20px;
    color: #94a3b8;
    font-size: 13px;
}
.moment-footer i {
    margin-right: 4px;
    cursor: pointer;
    transition: color 0.3s;
}
.moment-footer i:hover {
    color: #07c160;
}

/* ===== 联系区 ===== */
.contact {
    padding: 80px 0;
    background: #fff;
}
.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.contact-form input,
.contact-form textarea {
    padding: 14px 18px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 15px;
    transition: border 0.3s;
    resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #07c160;
    box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.15);
}
.contact-form button {
    align-self: flex-start;
}

/* ===== 底部 ===== */
.footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 40px 0;
}
.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}
.footer-logo {
    width: 32px;
    height: 32px;
}
.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: #07c160;
}
.footer-copy {
    font-size: 13px;
    color: #64748b;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 20px 30px;
        gap: 16px;
        transform: translateY(-120%);
        transition: transform 0.4s ease;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        border-radius: 0 0 20px 20px;
    }
    .nav.open {
        transform: translateY(0);
    }
    .hamburger {
        display: flex;
    }
    .hero-text h1 {
        font-size: 32px;
    }
    .hero-logo {
        width: 140px;
        height: 140px;
    }
    .section-title {
        font-size: 26px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 28px;
    }
    .hero {
        padding: 110px 0 60px;
    }
    .moment-item {
        padding: 18px;
    }
}