/* ============================================
   爱心联盟有您啦 - 样式文件
   www.unionlove.com
   ============================================ */

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

:root {
    /* 主色调 - 温暖的爱心色系 */
    --color-primary: #e63946;
    --color-primary-light: #ff6b6b;
    --color-primary-dark: #c1121f;
    --color-secondary: #f4a261;
    --color-accent: #e9c46a;
    --color-soft-pink: #ffe5ec;
    --color-soft-rose: #ffc2d1;
    
    /* 渐变背景色 */
    --gradient-warm: linear-gradient(135deg, #ffe5ec 0%, #fff0f3 30%, #fff8e7 70%, #ffe5ec 100%);
    --gradient-card-1: linear-gradient(135deg, #ff6b6b 0%, #ffa07a 100%);
    --gradient-card-2: linear-gradient(135deg, #f78ca0 0%, #f9748f 50%, #fd868c 100%);
    --gradient-card-3: linear-gradient(135deg, #ffafbd 0%, #ffc3a0 100%);
    --gradient-card-4: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    --gradient-card-5: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    --gradient-card-6: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    --gradient-card-7: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%);
    --gradient-card-8: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
    --gradient-card-9: linear-gradient(135deg, #fddb92 0%, #d1fdff 100%);
    --gradient-card-10: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
    --gradient-card-11: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    --gradient-card-12: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    
    /* 文字颜色 */
    --text-dark: #2b2d42;
    --text-medium: #4a4e69;
    --text-light: #f8f9fa;
    --text-accent: #c1121f;
    
    /* 字体 */
    --font-serif: 'Noto Serif SC', 'ZCOOL XiaoWei', serif;
    --font-brush: 'Ma Shan Zheng', cursive;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-serif);
    background: var(--gradient-warm);
    min-height: 100vh;
    color: var(--text-dark);
    overflow-x: hidden;
    position: relative;
    line-height: 1.8;
}

/* ============================================
   背景装饰
   ============================================ */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* 爱心装饰 */
.heart {
    position: absolute;
    opacity: 0.15;
    animation: floatHeart 8s ease-in-out infinite;
}

.heart svg {
    fill: var(--color-primary);
}

.heart-1 {
    top: 10%;
    left: 5%;
    width: 40px;
    height: 40px;
    animation-delay: 0s;
}

.heart-2 {
    top: 30%;
    right: 8%;
    width: 60px;
    height: 60px;
    animation-delay: 1s;
}

.heart-3 {
    top: 55%;
    left: 3%;
    width: 50px;
    height: 50px;
    animation-delay: 2s;
}

.heart-4 {
    top: 70%;
    right: 5%;
    width: 35px;
    height: 35px;
    animation-delay: 3s;
}

.heart-5 {
    top: 85%;
    left: 10%;
    width: 45px;
    height: 45px;
    animation-delay: 4s;
}

@keyframes floatHeart {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-20px) rotate(-5deg) scale(1.1);
    }
    50% {
        transform: translateY(-10px) rotate(5deg) scale(0.95);
    }
    75% {
        transform: translateY(-25px) rotate(-3deg) scale(1.05);
    }
}

/* 星星装饰 */
.star {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-accent), 0 0 20px var(--color-secondary);
    animation: twinkle 4s ease-in-out infinite;
}

.star-1 {
    top: 15%;
    left: 15%;
    animation-delay: 0.5s;
}

.star-2 {
    top: 25%;
    right: 15%;
    animation-delay: 1s;
    width: 8px;
    height: 8px;
}

.star-3 {
    top: 45%;
    left: 90%;
    animation-delay: 1.5s;
}

.star-4 {
    top: 60%;
    left: 8%;
    animation-delay: 2s;
    width: 5px;
    height: 5px;
}

.star-5 {
    top: 80%;
    right: 20%;
    animation-delay: 2.5s;
    width: 7px;
    height: 7px;
}

.star-6 {
    top: 90%;
    left: 50%;
    animation-delay: 3s;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* ============================================
   页面头部
   ============================================ */
.site-header {
    position: relative;
    z-index: 10;
    padding: 50px 20px 40px;
    text-align: center;
}

.logo-section {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.logo-heart {
    width: 100px;
    height: 100px;
    color: var(--color-primary);
    animation: heartbeat 1.5s ease-in-out infinite;
    filter: drop-shadow(0 4px 20px rgba(230, 57, 70, 0.4));
}

.logo-heart svg {
    width: 100%;
    height: 100%;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    15% {
        transform: scale(1.15);
    }
    30% {
        transform: scale(1);
    }
    45% {
        transform: scale(1.1);
    }
    60% {
        transform: scale(1);
    }
}

.title-group {
    text-align: center;
}

.site-title {
    font-family: var(--font-brush);
    font-size: 4rem;
    font-weight: 400;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
    text-shadow: none;
    letter-spacing: 8px;
    margin-bottom: 12px;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

.site-subtitle {
    font-size: 1.3rem;
    color: var(--text-medium);
    letter-spacing: 4px;
    font-weight: 400;
}

/* ============================================
   主要内容区域
   ============================================ */
.main-content {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 30px 60px;
}

/* 欢迎区域 */
.welcome-section {
    margin-bottom: 60px;
    text-align: center;
}

.welcome-banner {
    display: inline-block;
    padding: 20px 60px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15), rgba(249, 215, 76, 0.15));
    border: 2px solid rgba(230, 57, 70, 0.3);
    border-radius: 100px;
    backdrop-filter: blur(10px);
    animation: bannerFloat 4s ease-in-out infinite;
}

.welcome-text {
    font-family: var(--font-brush);
    font-size: 2rem;
    color: var(--color-primary-dark);
    letter-spacing: 4px;
}

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

/* ============================================
   名言展示区
   ============================================ */
.quotes-section {
    margin-bottom: 80px;
}

.section-title {
    font-family: var(--font-brush);
    font-size: 2.8rem;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: 6px;
}

.title-icon {
    display: inline-block;
    font-size: 2.2rem;
    margin: 0 15px;
    animation: titleIconPulse 2s ease-in-out infinite;
}

.title-icon:last-child {
    animation-delay: 1s;
}

@keyframes titleIconPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: 60px;
    letter-spacing: 2px;
    opacity: 0.85;
}

/* 名言卡片容器 */
.quotes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 35px;
    padding: 10px;
}

/* 名言卡片 */
.quote-card {
    position: relative;
    border-radius: 24px;
    padding: 3px;
    opacity: 0;
    transform: translateY(40px);
    animation: cardAppear 0.8s ease-out forwards;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.quote-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(230, 57, 70, 0.2);
}

@keyframes cardAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quote-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    background: var(--gradient-card-1);
    z-index: -1;
}

.card-1::before { background: var(--gradient-card-1); }
.card-2::before { background: var(--gradient-card-2); }
.card-3::before { background: var(--gradient-card-3); }
.card-4::before { background: var(--gradient-card-4); }
.card-5::before { background: var(--gradient-card-5); }
.card-6::before { background: var(--gradient-card-6); }
.card-7::before { background: var(--gradient-card-7); }
.card-8::before { background: var(--gradient-card-8); }
.card-9::before { background: var(--gradient-card-9); }
.card-10::before { background: var(--gradient-card-10); }
.card-11::before { background: var(--gradient-card-11); }
.card-12::before { background: var(--gradient-card-12); }

.card-inner {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 22px;
    padding: 45px 35px 35px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

/* 引号装饰 */
.quote-mark {
    font-family: Georgia, serif;
    font-size: 6rem;
    line-height: 1;
    color: var(--color-primary);
    opacity: 0.15;
    position: absolute;
    user-select: none;
}

.quote-mark-left {
    top: 10px;
    left: 15px;
    transform: rotate(180deg);
}

.quote-mark-right {
    bottom: 60px;
    right: 15px;
}

/* 名言文字 */
.quote-text {
    font-size: 1.65rem;
    font-weight: 600;
    line-height: 2;
    color: var(--text-dark);
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
    padding: 20px 10px;
}

/* 作者信息 */
.quote-author {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    position: relative;
    z-index: 2;
}

.author-line {
    display: block;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    margin: 0 auto 15px;
    animation: lineExpand 1s ease-out 0.5s both;
}

@keyframes lineExpand {
    from {
        width: 0;
    }
    to {
        width: 50px;
    }
}

.author-name {
    display: block;
    font-family: var(--font-brush);
    font-size: 1.8rem;
    color: var(--color-primary-dark);
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 5px;
}

.author-title {
    display: block;
    font-size: 0.95rem;
    color: var(--text-medium);
    opacity: 0.8;
    letter-spacing: 1px;
}

/* ============================================
   口号区域
   ============================================ */
.slogan-section {
    margin: 80px 0 60px;
    text-align: center;
}

.slogan-box {
    display: inline-block;
    padding: 40px 80px;
    background: linear-gradient(135deg, rgba(255, 229, 236, 0.8), rgba(255, 248, 231, 0.8));
    border-radius: 30px;
    border: 2px dashed rgba(230, 57, 70, 0.3);
    backdrop-filter: blur(10px);
}

.slogan-text {
    font-family: var(--font-brush);
    font-size: 2.5rem;
    letter-spacing: 8px;
    color: var(--color-primary-dark);
}

.slogan-char {
    display: inline-block;
    opacity: 0;
    animation: sloganCharAppear 0.5s ease-out forwards;
}

.slogan-char:nth-child(1) { animation-delay: 0.1s; }
.slogan-char:nth-child(2) { animation-delay: 0.2s; }
.slogan-char:nth-child(3) { animation-delay: 0.3s; }
.slogan-char:nth-child(4) { animation-delay: 0.4s; }
.slogan-char:nth-child(5) { animation-delay: 0.5s; }
.slogan-char:nth-child(6) { animation-delay: 0.6s; }
.slogan-char:nth-child(7) { animation-delay: 0.7s; }
.slogan-char:nth-child(8) { animation-delay: 0.8s; }
.slogan-char:nth-child(9) { animation-delay: 0.9s; }
.slogan-char:nth-child(10) { animation-delay: 1s; }
.slogan-char:nth-child(11) { animation-delay: 1.1s; }
.slogan-char:nth-child(12) { animation-delay: 1.2s; }
.slogan-char:nth-child(13) { animation-delay: 1.3s; }
.slogan-char:nth-child(14) { animation-delay: 1.4s; }

.slogan-divider {
    display: inline-block;
    color: var(--color-secondary);
    font-size: 2rem;
    margin: 0 15px;
    animation: sloganCharAppear 0.5s ease-out forwards;
    animation-delay: 0.5s;
}

.slogan-divider + .slogan-char:nth-of-type(5) { animation-delay: 0.6s; }

@keyframes sloganCharAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.slogan-char:hover {
    animation: sloganCharBounce 0.5s ease;
}

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

/* ============================================
   页面底部
   ============================================ */
.site-footer {
    position: relative;
    z-index: 10;
    padding: 50px 20px;
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(255, 229, 236, 0.5));
    border-top: 1px solid rgba(230, 57, 70, 0.15);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-heart {
    width: 45px;
    height: 45px;
    margin: 0 auto 15px;
    color: var(--color-primary);
    animation: heartbeat 1.5s ease-in-out infinite;
}

.footer-heart svg {
    width: 100%;
    height: 100%;
}

.footer-text {
    font-family: var(--font-brush);
    font-size: 1.5rem;
    color: var(--color-primary-dark);
    letter-spacing: 4px;
    margin-bottom: 8px;
}

.footer-copyright {
    font-size: 0.95rem;
    color: var(--text-medium);
    opacity: 0.75;
    letter-spacing: 2px;
}

/* ============================================
   动画效果 - 滚动出现
   ============================================ */
.fade-in-down {
    opacity: 0;
    transform: translateY(-30px);
    animation: fadeInDown 1s ease-out 0.2s forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-out 0.4s forwards;
}

.fade-in-delay {
    opacity: 0;
    animation: fadeIn 1s ease-out 0.6s forwards;
}

@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 992px) {
    .site-title {
        font-size: 3rem;
        letter-spacing: 5px;
    }
    
    .site-subtitle {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }
    
    .logo-heart {
        width: 80px;
        height: 80px;
    }
    
    .section-title {
        font-size: 2.2rem;
        letter-spacing: 4px;
    }
    
    .welcome-banner {
        padding: 15px 40px;
    }
    
    .welcome-text {
        font-size: 1.5rem;
    }
    
    .quotes-container {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 25px;
    }
    
    .slogan-box {
        padding: 30px 50px;
    }
    
    .slogan-text {
        font-size: 2rem;
        letter-spacing: 5px;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding: 35px 15px 25px;
    }
    
    .site-title {
        font-size: 2.2rem;
        letter-spacing: 3px;
    }
    
    .site-subtitle {
        font-size: 0.95rem;
        letter-spacing: 1px;
    }
    
    .logo-heart {
        width: 65px;
        height: 65px;
    }
    
    .main-content {
        padding: 15px 15px 40px;
    }
    
    .section-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    
    .title-icon {
        font-size: 1.5rem;
        margin: 0 8px;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    
    .welcome-section {
        margin-bottom: 40px;
    }
    
    .welcome-banner {
        padding: 12px 25px;
        border-radius: 50px;
    }
    
    .welcome-text {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
    
    .quotes-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card-inner {
        padding: 35px 25px 25px;
        min-height: auto;
    }
    
    .quote-text {
        font-size: 1.3rem;
        line-height: 1.8;
        padding: 15px 5px;
    }
    
    .quote-mark {
        font-size: 4rem;
    }
    
    .author-name {
        font-size: 1.5rem;
    }
    
    .slogan-section {
        margin: 50px 0 40px;
    }
    
    .slogan-box {
        padding: 25px 30px;
        width: 100%;
        border-radius: 20px;
    }
    
    .slogan-text {
        font-size: 1.5rem;
        letter-spacing: 3px;
    }
    
    .slogan-divider {
        margin: 0 8px;
        font-size: 1.5rem;
    }
    
    .site-footer {
        padding: 35px 15px;
    }
    
    .footer-text {
        font-size: 1.2rem;
    }
}

/* ============================================
   卡片悬停效果增强
   ============================================ */
.quote-card:hover .quote-text {
    animation: textWave 0.6s ease;
}

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

.quote-card:hover .author-name {
    animation: authorGlow 0.8s ease;
}

@keyframes authorGlow {
    0%, 100% { 
        text-shadow: none;
    }
    50% { 
        text-shadow: 0 0 15px rgba(193, 18, 31, 0.4);
    }
}

.quote-card:hover .card-inner {
    background: rgba(255, 255, 255, 0.98);
}
