/* ============================================
   社团组织网站设计升级 - 专属样式 v2.0
   设计灵魂：生机·信任·专业
   配色：翠绿#059669 + 翡翠#10B981 + 金色点缀
   ============================================ */

/* ---------- CSS变量定义 ---------- */
:root {
    /* 绿色系配色 */
    --org-primary: #059669;
    --org-primary-light: #10B981;
    --org-primary-dark: #047857;
    --org-accent-gold: #D4AF37;
    --org-accent-emerald: #34D399;
    
    /* 渐变配色 */
    --org-gradient-start: #059669;
    --org-gradient-mid: #10B981;
    --org-gradient-end: #34D399;
    
    /* 玻璃态配色 */
    --glass-white: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: rgba(5, 150, 105, 0.15);
    
    /* 文字颜色 */
    --text-light: #FFFFFF;
    --text-dark: #1F2937;
    --text-muted: #6B7280;
}

/* ---------- 特殊动画：绿色粒子效果 ---------- */
@keyframes particle-rise {
    0% {
        transform: translateY(100%) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(5, 150, 105, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(5, 150, 105, 0.6);
    }
}

@keyframes leaf-sway {
    0%, 100% {
        transform: rotate(-3deg) translateX(0);
    }
    50% {
        transform: rotate(3deg) translateX(5px);
    }
}

@keyframes ripple-out {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* ---------- 绿色系动画类 ---------- */
.animate-particle-rise {
    animation: particle-rise 8s ease-in-out infinite;
}

.animate-glow-green {
    animation: glow-pulse 2s ease-in-out infinite;
}

.animate-leaf-sway {
    animation: leaf-sway 3s ease-in-out infinite;
}

.animate-ripple {
    position: relative;
    overflow: hidden;
}

.animate-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
}

.animate-ripple:active::after {
    animation: ripple-out 0.6s ease-out;
}

/* ---------- 绿色系Hero背景 ---------- */
.hero-org {
    background: linear-gradient(135deg, 
        var(--org-gradient-start) 0%, 
        var(--org-gradient-mid) 50%, 
        var(--org-gradient-end) 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    position: relative;
    overflow: hidden;
}

.hero-org::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.08) 0%, transparent 30%);
    pointer-events: none;
}

/* 装饰性浮动圆环 */
.hero-org .floating-ring {
    position: absolute;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-org .floating-ring:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.hero-org .floating-ring:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.hero-org .floating-ring:nth-child(3) {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 15%;
    animation-delay: 4s;
}

/* ---------- 绿色系玻璃态 ---------- */
.glass-org {
    background: var(--glass-white);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px var(--glass-shadow);
}

.glass-org-dark {
    background: rgba(5, 150, 105, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-card-org {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(5, 150, 105, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card-org:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(5, 150, 105, 0.25);
}

/* ---------- 绿色系交互效果 ---------- */
.card-org-interactive {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-org-interactive:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(5, 150, 105, 0.2);
}

.card-org-interactive::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--org-primary), var(--org-accent-emerald));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card-org-interactive:hover::before {
    transform: scaleX(1);
}

/* ---------- 按钮样式 ---------- */
.btn-org-primary {
    background: linear-gradient(135deg, var(--org-primary) 0%, var(--org-primary-light) 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.btn-org-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-org-primary:hover::before {
    left: 100%;
}

.btn-org-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
}

.btn-org-secondary {
    background: transparent;
    color: white;
    padding: 12px 28px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-org-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
    transform: translateY(-2px);
}

/* ---------- 阴影系统 ---------- */
.shadow-org-soft { box-shadow: 0 2px 8px rgba(5, 150, 105, 0.08); }
.shadow-org-card { box-shadow: 0 4px 12px rgba(5, 150, 105, 0.12); }
.shadow-org-hover { box-shadow: 0 12px 24px rgba(5, 150, 105, 0.18); }
.shadow-org-float { box-shadow: 0 20px 40px rgba(5, 150, 105, 0.22); }
.shadow-org-green { box-shadow: 0 10px 30px rgba(5, 150, 105, 0.25); }

/* ---------- 装饰元素 ---------- */
.org-decoration-leaf {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--org-primary-light), var(--org-accent-emerald));
    border-radius: 50% 0 50% 50%;
    transform: rotate(-45deg);
    opacity: 0.3;
}

.org-decoration-circle {
    width: 100px;
    height: 100px;
    border: 3px solid var(--org-primary);
    border-radius: 50%;
    opacity: 0.2;
}

/* ---------- 卡片顶部装饰线 ---------- */
.card-org-accent {
    position: relative;
    overflow: hidden;
}

.card-org-accent::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--org-primary) 20%,
        var(--org-accent-gold) 50%,
        var(--org-primary) 80%,
        transparent 100%);
}

/* ---------- 图片悬浮效果 ---------- */
.img-zoom-org {
    overflow: hidden;
    border-radius: 16px;
}

.img-zoom-org img {
    transition: transform 0.6s ease;
}

.img-zoom-org:hover img {
    transform: scale(1.1);
}

/* ---------- 滚动触发动画 ---------- */
.scroll-reveal-org {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal-org.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Logo样式 ---------- */
.logo-org-container {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--org-primary), var(--org-primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

/* ---------- 背景装饰网格 ---------- */
.org-grid-bg {
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ---------- 滚动条美化 ---------- */
::-webkit-scrollbar-org {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-org-track {
    background: rgba(5, 150, 105, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-org-thumb {
    background: var(--org-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-org-thumb:hover {
    background: var(--org-primary-dark);
}
