/* ===================================
   源圈儿官网 - Version 3: 现代活力清新版
   结合现代设计趋势，强调活力与信任感
   特点：有机形状 + 渐变流动 + 微妙动效 + 层次感
   =================================== */

/* CSS 变量 - 活力自然色系统 */
:root {
    /* 主色调 - 鲜明而柔和的绿色系 */
    --primary-light: #E9F7EA;      /* 清新绿 - 背景 */
    --primary-soft: #C8E6C9;       /* 柔绿 - 卡片 */
    --primary-main: #66BB6A;       /* 主绿 - 强调 */
    --primary-dark: #4CAF50;       /* 深绿 - 文字 */
    --primary-darker: #35AD43;     /* 最深绿 - CTA */
    --primary-fresh: #81C784;      /* 新芽绿 - 点缀 */
    
    /* 辅助色 - 温暖活力 */
    --accent-sunshine: #FFF9C4;    /* 阳光黄 - 温暖感 */
    --accent-coral: #FFAB91;       /* 珊瑚橙 - 活力点缀 */
    --accent-sky: #E3F2FD;         /* 天空蓝 - 清爽感 */
    
    /* 中性色 */
    --text-primary: #1B3A2B;       /* 深绿黑 - 主标题 */
    --text-secondary: #4A6B5A;     /* 中绿灰 - 正文 */
    --text-light: #8FA89A;         /* 浅绿灰 - 辅助 */
    --bg-white: #FFFFFF;
    --bg-cream: #FEFEFB;
    --border-color: #DCE8DF;
    
    /* 阴影 - 层次分明 */
    --shadow-sm: 0 2px 8px rgba(53, 173, 67, 0.08);
    --shadow-md: 0 6px 20px rgba(53, 173, 67, 0.12);
    --shadow-lg: 0 12px 40px rgba(53, 173, 67, 0.16);
    --shadow-glow: 0 0 30px rgba(129, 199, 132, 0.3);
    
    /* 间距 */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 72px;
    --spacing-2xl: 100px;
    
    /* 圆角 - 友好圆润 */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Alibaba-PuHuiTi", "HarmonyOS Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-primary);
    background: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===================================
   导航栏 - 现代玻璃态
   =================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(102, 187, 106, 0.1);
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

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

nav .logo-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

nav .logo {
    height: 40px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 14px;
    border-radius: var(--radius-full);
}

nav a:hover {
    color: var(--primary-dark);
    background: rgba(102, 187, 106, 0.08);
}

nav .nav-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.btn-login {
    padding: 10px 24px;
    border: 2px solid var(--primary-main);
    background: transparent;
    color: var(--primary-dark);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: var(--primary-light);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

/* ===================================
   Hero 区域 - 流动渐变背景
   =================================== */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* 多层流动渐变 */
    background: 
        radial-gradient(circle at 15% 25%, rgba(129, 199, 132, 0.12) 0%, transparent 55%),
        radial-gradient(circle at 85% 35%, rgba(255, 171, 145, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 75%, rgba(102, 187, 106, 0.1) 0%, transparent 60%),
        linear-gradient(160deg, var(--primary-light) 0%, var(--bg-white) 50%, var(--accent-sunshine) 100%);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

/* 动态有机形状装饰 */
.organic-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.5;
    animation: floatOrganic 15s ease-in-out infinite;
    pointer-events: none;
}

.organic-shape-1 {
    top: 10%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(102, 187, 106, 0.2), rgba(129, 199, 132, 0.15));
    animation-delay: 0s;
}

.organic-shape-2 {
    bottom: 20%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(255, 171, 145, 0.15), rgba(255, 153, 102, 0.1));
    animation-delay: -5s;
}

.organic-shape-3 {
    top: 50%;
    left: 50%;
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, rgba(129, 199, 132, 0.1), rgba(102, 187, 106, 0.12));
    animation-delay: -10s;
}

@keyframes floatOrganic {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    25% {
        transform: translate(30px, -40px) scale(1.05) rotate(5deg);
    }
    50% {
        transform: translate(-20px, 30px) scale(0.95) rotate(-5deg);
    }
    75% {
        transform: translate(40px, 20px) scale(1.02) rotate(3deg);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 50px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.hero-text .gradient-text {
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-fresh) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.9;
}

.hero-stats {
    display: flex;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(102, 187, 106, 0.1);
}

.stat-number {
    font-size: 40px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 6px;
    display: block;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.btn {
    padding: 16px 36px;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(53, 173, 67, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(53, 173, 67, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-dark);
    border: 2px solid var(--primary-main);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    text-align: center;
    max-width: 420px;
    border: 2px solid rgba(102, 187, 106, 0.15);
    animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-card-icon {
    font-size: 72px;
    margin-bottom: var(--spacing-md);
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.hero-card h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    font-weight: 700;
}

.hero-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* ===================================
   特色区域 - 微光背景
   =================================== */
#features {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

/* 底部微光效果 */
#features::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(129, 199, 132, 0.05), transparent);
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    position: relative;
    z-index: 1;
}

.section-header h2 {
    font-size: 40px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(249, 252, 249, 1) 100%);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    background: var(--bg-white);
    border-color: var(--primary-main);
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.feature-icon {
    font-size: 52px;
    margin-bottom: var(--spacing-md);
    display: inline-block;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(5deg);
}

.feature-card h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    font-weight: 700;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    margin-top: var(--spacing-md);
    text-align: left;
}

.feature-list li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-list li::before {
    content: "✓";
    color: var(--primary-dark);
    font-weight: bold;
    font-size: 12px;
}

/* ===================================
   产品区域 - 渐变卡片
   =================================== */
#products {
    padding: var(--spacing-2xl) 0;
    /* 微妙斜纹背景 */
    background: 
        repeating-linear-gradient(
            45deg,
            rgba(102, 187, 106, 0.02),
            rgba(102, 187, 106, 0.02) 15px,
            transparent 15px,
            transparent 30px
        ),
        linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-white) 100%);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-main);
}

.product-image {
    width: 100%;
    height: 210px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-sky) 100%);
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-info {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    min-height: 40px;
    line-height: 1.4;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
}

.product-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-soft) 100%);
    color: var(--primary-dark);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.product-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===================================
   邀请码区域 - 活力渐变
   =================================== */
#invite {
    padding: var(--spacing-2xl) 0;
    /* 多色流动渐变 */
    background: 
        radial-gradient(circle at 30% 40%, rgba(255, 249, 196, 0.5) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(129, 199, 132, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, var(--primary-light) 0%, var(--accent-sunshine) 50%, var(--primary-soft) 100%);
    position: relative;
    overflow: hidden;
}

/* 动态装饰元素 */
#invite .floating-dot {
    position: absolute;
    border-radius: 50%;
    animation: dotFloat 8s ease-in-out infinite;
    pointer-events: none;
}

.dot-1 {
    top: 20%;
    right: 15%;
    width: 10px;
    height: 10px;
    background: var(--primary-dark);
    opacity: 0.2;
}

.dot-2 {
    bottom: 30%;
    left: 10%;
    width: 14px;
    height: 14px;
    background: var(--accent-coral);
    opacity: 0.15;
    animation-delay: -3s;
}

@keyframes dotFloat {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(20px, -30px);
    }
}

.invite-content {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.invite-text h2 {
    font-size: 40px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.invite-text p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.9;
}

.invite-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(102, 187, 106, 0.1);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-main);
    box-shadow: 0 0 0 4px rgba(102, 187, 106, 0.1);
}

.form-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 6px 20px rgba(53, 173, 67, 0.3);
}

.form-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(53, 173, 67, 0.4);
}

.qr-section {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(102, 187, 106, 0.1);
}

.qr-code {
    width: 180px;
    height: 180px;
    margin: 0 auto var(--spacing-md);
    background: var(--bg-off-white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

.qr-section p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===================================
   页脚 - 简洁现代
   =================================== */
footer {
    background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-white) 100%);
    padding: var(--spacing-2xl) 0 var(--spacing-xl);
    border-top: 2px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-brand .logo {
    height: 40px;
    margin-bottom: var(--spacing-sm);
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.9;
}

.footer-column h4 {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: var(--spacing-xs);
}

.footer-column a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 4px 0;
    display: inline-block;
}

.footer-column a:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-light);
}

/* ===================================
   响应式设计
   =================================== */
@media (max-width: 1024px) {
    .hero-content,
    .invite-content {
        grid-template-columns: 1fr;
    }
    
    .features-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    
    .hero-text h1 {
        font-size: 38px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }
    
    .features-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   动画效果 - 活力流畅
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.animate-on-scroll.visible {
    opacity: 1;
}

/* 通知提示 */
.notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-white);
    padding: 18px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary-darker);
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 2000;
    animation: slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    border-left-color: var(--primary-darker);
}

.notification-icon {
    font-size: 22px;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-size: 15px;
}

.notification-message {
    font-size: 14px;
    color: var(--text-secondary);
}
