/* rainbow-praise/style.css - 航天科幻风格 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

:root {
    --primary-color: #40c4ff;
    --secondary-color: #2a9eff;
    --accent-color: #ff6b8b;
    --dark-bg: #0a0e17;
    --dark-bg-light: #1a1f2e;
    --card-bg: rgba(16, 25, 40, 0.7);
    --card-bg-light: rgba(26, 39, 60, 0.8);
    --text-color: #e0f0ff;
    --text-light: #a0c0e0;
    --border-color: rgba(64, 156, 255, 0.2);
    --success-color: #4CAF50;
    --warning-color: #FF9800;
    --error-color: #f44336;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 星空背景 */
.stars-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(ellipse at center, 
                rgba(10, 14, 23, 0.9) 0%, 
                rgba(5, 9, 15, 0.95) 100%);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* 导航栏 */
.rainbow-nav {
    background-color: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

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

.rainbow-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.rainbow-logo:hover {
    transform: scale(1.05);
}

.rainbow-logo i {
    margin-right: 10px;
    font-size: 1.8rem;
    color: var(--accent-color);
}

.rainbow-logo span {
    background: linear-gradient(to right, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.nav-links a:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--accent-color), var(--primary-color));
    transition: width 0.3s ease;
}

.nav-links a:hover:before {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
    background-color: rgba(64, 196, 255, 0.1);
}

.back-home {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.back-home:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: rgba(64, 196, 255, 0.1);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    position: relative;
    transition: all 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    left: 0;
    transition: all 0.3s;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.menu-toggle.active .hamburger {
    background-color: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* 主内容区域 */
.main-content {
    padding-top: 100px;
    min-height: 100vh;
}

/* 英雄区域 */
.rainbow-hero {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
    position: relative;
}

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

.rainbow-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.rainbow-hero .subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* 彩虹卡片 */
.rainbow-card {
    background: linear-gradient(135deg, 
                rgba(16, 25, 40, 0.8), 
                rgba(26, 39, 60, 0.8));
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid rgba(64, 196, 255, 0.2);
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 40px rgba(0, 20, 40, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.rainbow-card:hover {
    border-color: rgba(64, 196, 255, 0.4);
    box-shadow: 0 25px 50px rgba(0, 20, 40, 0.5);
    transform: translateY(-5px);
}

.rainbow-card:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
                transparent 30%, 
                rgba(255, 107, 139, 0.1) 50%, 
                transparent 70%);
    animation: cardShine 3s infinite linear;
    z-index: -1;
}

@keyframes cardShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.rainbow-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    color: var(--accent-color);
}

.rainbow-header i {
    font-size: 2em;
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

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

.rainbow-header h2 {
    font-size: 2rem;
    color: var(--text-color);
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.rainbow-header h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--accent-color), var(--primary-color));
    border-radius: 2px;
}

.rainbow-content {
    min-height: 200px;
    padding: 40px;
    background: rgba(10, 15, 25, 0.4);
    border-radius: 15px;
    font-size: 1.4em;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid rgba(64, 196, 255, 0.1);
    backdrop-filter: blur(5px);
}

.rainbow-content:hover {
    border-color: rgba(64, 196, 255, 0.3);
}

.rainbow-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 100%;
    padding: 20px;
}

.rainbow-text p {
    margin: 0;
    font-size: 1.3em;
    color: var(--text-color);
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.rainbow-text i {
    font-size: 1.8em;
    color: var(--accent-color);
    animation: heartbeat 1.5s infinite;
}

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

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(64, 196, 255, 0.1);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
    position: relative;
}

.spinner:after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 4px solid transparent;
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1.5s linear infinite reverse;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.rainbow-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* 按钮样式 */
.btn {
    padding: 15px 35px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    outline: none;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

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

.btn:hover:before {
    left: 100%;
}

.btn-generate {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    min-width: 220px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(255, 107, 139, 0.3);
}

.btn-generate:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 107, 139, 0.5);
}

.btn-copy {
    background: linear-gradient(135deg, #2a9eff, #40c4ff);
    color: white;
    border: 2px solid rgba(64, 196, 255, 0.1);
    box-shadow: 0 10px 20px rgba(64, 196, 255, 0.3);
}

.btn-copy:hover:not(:disabled) {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(64, 196, 255, 0.5);
}

.btn-copy:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-share {
    background: linear-gradient(135deg, #9c27b0, #e91e63);
    color: white;
    border: 2px solid rgba(156, 39, 176, 0.1);
    box-shadow: 0 10px 20px rgba(156, 39, 176, 0.3);
}

.btn-share:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(156, 39, 176, 0.5);
}

.btn-close {
    background: linear-gradient(135deg, #607d8b, #455a64);
    color: white;
    width: 100%;
    margin-top: 20px;
}

.btn-close:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(96, 125, 139, 0.3);
}

/* 功能特色区域 */
.features-section {
    margin-bottom: 60px;
}

.features-section h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.8em;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: center;
    justify-content: center;
}

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

.feature {
    background: rgba(16, 25, 40, 0.6);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(64, 196, 255, 0.1);
    backdrop-filter: blur(10px);
}

.feature:hover {
    transform: translateY(-10px);
    border-color: rgba(64, 196, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 20, 40, 0.4);
}

.feature i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    background: rgba(255, 107, 139, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 25px;
}

.feature h4 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 历史记录区域 */
.history-section {
    background: rgba(16, 25, 40, 0.6);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 60px;
    border: 1px solid rgba(64, 196, 255, 0.1);
    backdrop-filter: blur(15px);
}

.history-section h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.8em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: rgba(10, 15, 25, 0.4);
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(64, 196, 255, 0.1);
}

.history-list::-webkit-scrollbar {
    width: 8px;
}

.history-list::-webkit-scrollbar-track {
    background: rgba(64, 196, 255, 0.1);
    border-radius: 4px;
}

.history-list::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--accent-color), var(--primary-color));
    border-radius: 4px;
}

.history-item {
    padding: 20px;
    background: rgba(16, 25, 40, 0.8);
    border-left: 4px solid var(--accent-color);
    margin-bottom: 15px;
    border-radius: 8px;
    animation: fadeIn 0.5s ease;
    transition: all 0.3s ease;
    border: 1px solid rgba(64, 196, 255, 0.1);
}

.history-item:hover {
    transform: translateX(5px);
    border-color: rgba(64, 196, 255, 0.3);
    box-shadow: 0 10px 20px rgba(0, 20, 40, 0.2);
}

.history-item p {
    margin-bottom: 8px;
    color: var(--text-color);
    line-height: 1.6;
}

.history-item small {
    color: var(--text-light);
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.empty-history {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 30px;
    font-size: 1.1em;
}

.btn-clear {
    background: linear-gradient(135deg, var(--error-color), #ff8a65);
    color: white;
    margin: 0 auto;
    display: block;
    padding: 12px 40px;
}

.btn-clear:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(244, 67, 54, 0.3);
}

/* 使用小贴士 */
.tip-box {
    background: rgba(16, 25, 40, 0.6);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 60px;
    border: 1px solid rgba(64, 196, 255, 0.1);
    backdrop-filter: blur(15px);
}

.tip-box h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.8em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tip-box ul {
    list-style: none;
    padding-left: 0;
}

.tip-box li {
    padding: 12px 0;
    padding-left: 40px;
    position: relative;
    color: var(--text-light);
    line-height: 1.6;
    border-bottom: 1px solid rgba(64, 196, 255, 0.1);
}

.tip-box li:last-child {
    border-bottom: none;
}

.tip-box li:before {
    content: '🚀';
    position: absolute;
    left: 0;
    top: 12px;
    font-size: 1.2em;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, 
                rgba(16, 25, 40, 0.95), 
                rgba(26, 39, 60, 0.95));
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(64, 196, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0, 20, 40, 0.5);
    position: relative;
    animation: modalSlideIn 0.3s ease;
    backdrop-filter: blur(20px);
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-50px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-content h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal-content p {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.6;
    text-align: left;
}

.feature-list {
    text-align: left;
    margin: 25px 0;
    padding-left: 0;
    list-style: none;
}

.feature-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-light);
    border-bottom: 1px solid rgba(64, 196, 255, 0.1);
}

.feature-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2em;
}

.privacy-note {
    background: rgba(76, 175, 80, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin: 25px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--success-color);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.contact-info {
    text-align: left;
    margin: 25px 0;
    padding: 25px;
    background: rgba(10, 15, 25, 0.4);
    border-radius: 10px;
    border: 1px solid rgba(64, 196, 255, 0.1);
}

.contact-info p {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-light);
}

.share-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.share-option {
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-direction: column;
    gap: 8px;
    background: rgba(16, 25, 40, 0.8);
    color: var(--text-color);
    border: 1px solid rgba(64, 196, 255, 0.2);
}

.share-option:hover {
    transform: translateY(-3px);
    border-color: rgba(64, 196, 255, 0.4);
    box-shadow: 0 10px 20px rgba(0, 20, 40, 0.3);
}

.share-option i {
    font-size: 1.8em;
    margin-bottom: 8px;
}

.share-option.wechat {
    color: #07C160;
    border-color: rgba(7, 193, 96, 0.3);
}

.share-option.wechat:hover {
    background: rgba(7, 193, 96, 0.1);
}

.share-option.weibo {
    color: #E6162D;
    border-color: rgba(230, 22, 45, 0.3);
}

.share-option.weibo:hover {
    background: rgba(230, 22, 45, 0.1);
}

.share-option.qq {
    color: #12B7F5;
    border-color: rgba(18, 183, 245, 0.3);
}

.share-option.qq:hover {
    background: rgba(18, 183, 245, 0.1);
}

.share-option.copy-link {
    color: var(--primary-color);
    border-color: rgba(64, 196, 255, 0.3);
}

.share-option.copy-link:hover {
    background: rgba(64, 196, 255, 0.1);
}

/* 消息提示 */
.message-toast {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 20px 30px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--success-color), #66BB6A);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 3000;
    animation: toastSlideIn 0.3s ease, toastSlideOut 0.3s ease 2.7s forwards;
    max-width: 350px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.message-toast.error {
    background: linear-gradient(135deg, var(--error-color), #EF5350);
}

@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastSlideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* 页脚样式 */
.rainbow-footer-section {
    background: rgba(10, 14, 23, 0.95);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding: 0 20px;
}

.footer-section h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background: linear-gradient(to right, var(--accent-color), var(--primary-color));
    bottom: 0;
    left: 0;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-links i {
    margin-right: 12px;
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-icons {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(64, 196, 255, 0.1);
    color: var(--text-light);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s;
    border: 1px solid rgba(64, 196, 255, 0.2);
}

.social-icons a:hover {
    color: var(--primary-color);
    background: rgba(64, 196, 255, 0.2);
    transform: translateY(-3px);
    border-color: rgba(64, 196, 255, 0.4);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(64, 196, 255, 0.1);
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.copyright a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s;
}

.copyright a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.icp-info {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    background: rgba(10, 20, 40, 0.4);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(64, 196, 255, 0.1);
}

.icp-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.icp-info a:hover {
    text-decoration: underline;
}

/* 星空粒子 */
.star {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
}

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .rainbow-hero h1 {
        font-size: 2.5rem;
    }
    
    .rainbow-content {
        font-size: 1.2em;
        padding: 30px;
    }
    
    .rainbow-text p {
        font-size: 1.2em;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .rainbow-nav {
        padding: 10px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(10, 14, 23, 0.98);
        flex-direction: column;
        padding: 20px 0;
        text-align: center;
        gap: 0;
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 0;
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 15px;
        border-radius: 0;
        border-bottom: 1px solid rgba(64, 196, 255, 0.1);
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .rainbow-hero {
        padding-top: 20px;
    }
    
    .rainbow-hero h1 {
        font-size: 2rem;
    }
    
    .rainbow-card {
        padding: 30px 20px;
    }
    
    .rainbow-footer {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .share-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-section {
        min-width: 100%;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .footer-section h3:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links li {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .rainbow-card {
        padding: 25px 15px;
    }
    
    .rainbow-content {
        padding: 20px;
        min-height: 180px;
    }
    
    .rainbow-text p {
        font-size: 1.1em;
        padding: 15px;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .share-options {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .rainbow-hero h1 {
        font-size: 1.8rem;
    }
    
    .rainbow-hero .subtitle {
        font-size: 1rem;
    }
}