/* CSS变量定义 */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --text-dark: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
    --background: #f7fafc;
    --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--background);
    overflow-x: hidden;
}

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

/* 主要效果展示区域 */
.effects-showcase {
    min-height: 100vh;
    padding-bottom: 200px;
}

/* 英雄区域样式 */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    overflow: hidden;
}

/* 浮动背景形状 */
.floating-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-shape {
    position: absolute;
    opacity: 0.6;
    animation: floatAround 15s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.25);
    top: 60%;
    left: 20%;
    animation-delay: 4s;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.shape-4 {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    top: 70%;
    right: 10%;
    animation-delay: 6s;
    transform: rotate(45deg);
}

.shape-5 {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 40%;
    left: 80%;
    animation-delay: 8s;
}

.shape-6 {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.15);
    top: 80%;
    left: 60%;
    animation-delay: 10s;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

/* 英雄内容 */
.hero-content {
    text-align: center;
    z-index: 2;
    color: white;
}

.typing-text {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.subtitle-text {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.5s forwards;
}

.animated-elements {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.pulse-circle {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.rotating-square {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    animation: rotate 3s linear infinite;
}

.bouncing-triangle {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 60px solid rgba(255, 255, 255, 0.3);
    animation: bounce 2s ease-in-out infinite;
}

/* 几何动画展示区域 */
.geometry-section {
    padding: 100px 0;
    background: var(--white);
}

.geometry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.geo-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.geo-label {
    display: block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.morph-circle {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: morphShape 4s ease-in-out infinite;
}

.spinning-hexagon {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    margin: 0 auto 1rem;
    clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
    animation: rotate 6s linear infinite;
}

.wave-lines {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    gap: 8px;
}

.wave-line {
    width: 4px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: wave 1.5s ease-in-out infinite;
}

.wave-line:nth-child(1) { animation-delay: 0s; }
.wave-line:nth-child(2) { animation-delay: 0.2s; }
.wave-line:nth-child(3) { animation-delay: 0.4s; }
.wave-line:nth-child(4) { animation-delay: 0.6s; }

.gradient-orb {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--accent-color), var(--primary-color));
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: orb 3s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(240, 147, 251, 0.5);
}

/* 粒子效果区域 */
.particles-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    position: relative;
    text-align: center;
    overflow: hidden;
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: particles 20s linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; }
.particle:nth-child(4) { left: 40%; animation-delay: 6s; }
.particle:nth-child(5) { left: 50%; animation-delay: 8s; }
.particle:nth-child(6) { left: 60%; animation-delay: 10s; }
.particle:nth-child(7) { left: 70%; animation-delay: 12s; }
.particle:nth-child(8) { left: 80%; animation-delay: 14s; }
.particle:nth-child(9) { left: 90%; animation-delay: 16s; }
.particle:nth-child(10) { left: 15%; animation-delay: 1s; }
.particle:nth-child(11) { left: 25%; animation-delay: 3s; }
.particle:nth-child(12) { left: 35%; animation-delay: 5s; }
.particle:nth-child(13) { left: 45%; animation-delay: 7s; }
.particle:nth-child(14) { left: 55%; animation-delay: 9s; }
.particle:nth-child(15) { left: 65%; animation-delay: 11s; }
.particle:nth-child(16) { left: 75%; animation-delay: 13s; }
.particle:nth-child(17) { left: 85%; animation-delay: 15s; }
.particle:nth-child(18) { left: 95%; animation-delay: 17s; }
.particle:nth-child(19) { left: 5%; animation-delay: 18s; }
.particle:nth-child(20) { left: 95%; animation-delay: 19s; }

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    position: relative;
    z-index: 2;
}

/* 数字计数展示 */
.counter-section {
    padding: 100px 0;
    background: var(--gradient-primary);
    color: white;
}

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

.counter-item {
    padding: 2rem;
}

.counter-number {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

.counter-label {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 渐变色彩展示 */
.gradient-section {
    padding: 100px 0;
    background: var(--background);
    text-align: center;
}

.gradient-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.gradient-item {
    height: 150px;
    border-radius: var(--border-radius);
    animation: gradientPulse 4s ease-in-out infinite;
}

.gradient-1 {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    animation-delay: 0s;
}

.gradient-2 {
    background: linear-gradient(45deg, #4834d4, #686de0);
    animation-delay: 0.5s;
}

.gradient-3 {
    background: linear-gradient(45deg, #00d2d3, #54a0ff);
    animation-delay: 1s;
}

.gradient-4 {
    background: linear-gradient(45deg, #ff9ff3, #f368e0);
    animation-delay: 1.5s;
}

.gradient-5 {
    background: linear-gradient(45deg, #feca57, #ff9ff3);
    animation-delay: 2s;
}

.gradient-6 {
    background: linear-gradient(45deg, #48dbfb, #0abde3);
    animation-delay: 2.5s;
}

/* 文字效果展示 */
.text-effects-section {
    padding: 100px 0;
    background: var(--text-dark);
    text-align: center;
}

.text-effects {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.glow-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px #00d2d3, 0 0 20px #00d2d3, 0 0 30px #00d2d3;
    animation: glow 2s ease-in-out infinite alternate;
}

.shadow-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
    animation: shadowMove 3s ease-in-out infinite;
}

.rainbow-text {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ff6b6b, #4834d4, #00d2d3, #ff9ff3, #feca57);
    background-size: 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow 3s ease-in-out infinite;
}

.wave-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
}

.wave-text span {
    display: inline-block;
    animation: textWave 2s ease-in-out infinite;
}

.wave-text span:nth-child(1) { animation-delay: 0s; }
.wave-text span:nth-child(2) { animation-delay: 0.1s; }
.wave-text span:nth-child(3) { animation-delay: 0.2s; }
.wave-text span:nth-child(4) { animation-delay: 0.3s; }
.wave-text span:nth-child(5) { animation-delay: 0.4s; }
.wave-text span:nth-child(6) { animation-delay: 0.5s; }

/* 页脚样式 */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 2rem 0 1rem;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.icp-info a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.icp-info a:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* 动画定义 */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatAround {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
    75% { transform: translateY(-30px) rotate(270deg); }
}

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

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

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

@keyframes morphShape {
    0%, 100% { border-radius: 50%; }
    25% { border-radius: 25% 75%; }
    50% { border-radius: 0%; }
    75% { border-radius: 75% 25%; }
}

@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(2); }
}

@keyframes orb {
    0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(240, 147, 251, 0.5); }
    50% { transform: scale(1.1); box-shadow: 0 0 50px rgba(240, 147, 251, 0.8); }
}

@keyframes particles {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

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

@keyframes glow {
    0% { text-shadow: 0 0 10px #00d2d3, 0 0 20px #00d2d3, 0 0 30px #00d2d3; }
    100% { text-shadow: 0 0 20px #00d2d3, 0 0 30px #00d2d3, 0 0 40px #00d2d3; }
}

@keyframes shadowMove {
    0%, 100% { text-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5); }
    50% { text-shadow: -5px -5px 10px rgba(0, 0, 0, 0.5); }
}

@keyframes rainbow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .effects-showcase {
        padding-bottom: 160px;
    }
    
    .hero-content .typing-text {
        font-size: 2.5rem;
    }
    
    .subtitle-text {
        font-size: 1.2rem;
    }
    
    .animated-elements {
        gap: 1.5rem;
    }
    
    .geometry-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
    }
    
    .gradient-showcase {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .text-effects {
        gap: 2rem;
    }
    
    .glow-text, .shadow-text, .rainbow-text, .wave-text {
        font-size: 1.8rem;
    }
    
    .footer {
        padding: 1.5rem 0 0.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .effects-showcase {
        padding-bottom: 140px;
    }
    
    .hero-content .typing-text {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .counter-number {
        font-size: 3rem;
    }
    
    .geometry-grid {
        grid-template-columns: 1fr;
    }
    
    .gradient-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
} 