/* ========================================
   品牌色板
   主色: #07C160 (微信绿)
   辅色: #F5F5F5, #FFFFFF
   中性色: #333, #666, #e5e5e5
   ======================================== */

/* 全局重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #F5F5F5;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* 字体层级 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
p { font-size: 16px; }

/* 导航栏 */
.navbar {
    background: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #07C160;
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links li a {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-color 0.3s;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #07C160;
    border-bottom-color: #07C160;
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Hero 区域 */
.hero {
    background: linear-gradient(135deg, #07C160 0%, #06AD56 50%, #059849 100%);
    color: #FFFFFF;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10%, 10%); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 140px;
    margin: 0 auto 20px;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 16px;
}

.hero-slogan {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 36px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
}

.btn-primary {
    background: #FFFFFF;
    color: #07C160;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

/* 通用区域标题 */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #07C160;
    border-radius: 2px;
}

/* 核心功能区域 */
.features {
    padding: 80px 0;
    background: #FFFFFF;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #F5F5F5;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(7, 193, 96, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: #07C160;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 28px;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: #333;
}

.feature-card p {
    color: #666;
    font-size: 14px;
}

/* 统计区域 */
.stats {
    background: #07C160;
    padding: 60px 0;
    color: #FFFFFF;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
    margin-top: 8px;
    display: block;
}

/* 内页 Hero */
.page-hero {
    background: linear-gradient(135deg, #07C160, #059849);
    color: #FFFFFF;
    text-align: center;
    padding: 60px 20px;
}

.page-hero h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-hero p {
    font-size: 18px;
    opacity: 0.9;
}

/* 朋友圈页面 */
.moments-feed {
    padding: 40px 0;
}

#moments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.moment-item {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s;
}

.moment-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.moment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.moment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #E0E0E0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 700;
}

.moment-user {
    font-weight: 600;
    color: #333;
}

.moment-time {
    font-size: 12px;
    color: #999;
}

.moment-content {
    margin-bottom: 12px;
    color: #333;
    line-height: 1.6;
}

.moment-actions {
    display: flex;
    gap: 20px;
    padding-top: 12px;
    border-top: 1px solid #e5e5e5;
}

.moment-actions button {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.moment-actions button:hover {
    color: #07C160;
}

/* 发现页面 */
.discover-grid-section {
    padding: 40px 0;
}

.discover-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.discover-item {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.discover-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(7, 193, 96, 0.15);
}

.discover-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: #F0FFF4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #07C160;
    font-size: 24px;
}

.discover-item h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
}

.discover-item p {
    font-size: 13px;
    color: #999;
}

/* 我的页面 */
.profile-section {
    padding: 40px 0;
}

.profile-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    max-width: 400px;
    margin: 0 auto;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #E0E0E0;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 32px;
    font-weight: 700;
}

.profile-name {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-bio {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #e5e5e5;
    padding-top: 16px;
}

.profile-stat {
    text-align: center;
}

.profile-stat-number {
    font-size: 20px;
    font-weight: 700;
    color: #07C160;
}

.profile-stat-label {
    font-size: 13px;
    color: #999;
}

/* 页脚 */
.footer {
    background: #1A1A2E;
    color: #FFFFFF;
    padding-top: 60px;
    margin-top: auto;
}

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

.footer-brand .footer-logo {
    width: 120px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 14px;
    color: #AAAAAA;
    line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 16px;
    font-size: 16px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #AAAAAA;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #07C160;
}

.footer-contact p {
    font-size: 14px;
    color: #AAAAAA;
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid #2A2A3E;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    h1 { font-size: 28px; }
    h2 { font-size: 22px; }
    h3 { font-size: 18px; }

    .hero { padding: 60px 20px; }
    .hero h1 { font-size: 32px; }
    .hero-slogan { font-size: 18px; }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #FFFFFF;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        border-radius: 0 0 16px 16px;
    }

    .nav-links.open {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .discover-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand .footer-logo {
        margin: 0 auto 16px;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 26px; }
    .hero-slogan { font-size: 16px; }
    .btn { padding: 12px 28px; font-size: 14px; }
    .stat-number { font-size: 28px; }
    .discover-grid { grid-template-columns: 1fr 1fr; }
}