/* welcome.php - 经典风格 (匹配 free_features.php 配色) */
* {
    font-family: 'Noto Sans SC', "Microsoft YaHei", sans-serif;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    color: #e5e7eb;
}
body::before {
    content: '';
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(108,119,245,0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(66,220,219,0.1) 0%, transparent 40%);
    pointer-events: none; z-index: 0;
}

.bg-mesh, .bg-grid { display: none; }
.content-wrapper { position: relative; z-index: 1; }

/* ===== Logo ===== */
.logo-wrap { display: flex; flex-direction: column; align-items: center; margin-bottom: 2rem; }
.logo-box {
    width: 80px; height: 80px; position: relative;
    animation: classicFloat 6s ease-in-out infinite;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #6c77f5 0%, #42dcdb 100%);
    border-radius: 24px;
    font-size: 48px; font-weight: 700; color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    box-shadow: 0 15px 35px rgba(108,119,245,0.4);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.logo-glow {
    position: absolute; width: 120%; height: 120%; top: -10%; left: -10%;
    background: radial-gradient(circle at center, rgba(108,119,245,0.3) 0%, rgba(66,220,219,0.1) 50%, transparent 70%);
    filter: blur(20px); pointer-events: none;
    animation: classicPulse 4s ease-in-out infinite;
}
.logo-box:hover {
    box-shadow: 0 25px 45px rgba(108,119,245,0.5);
    transform: scale(1.05);
}

@keyframes classicFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
@keyframes classicPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* ===== Hero ===== */
.hero-title {
    font-size: 3rem; font-weight: 700; text-align: center; margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #42dcdb 0%, #6c77f5 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    display: inline-block; position: relative; letter-spacing: 2px;
    width: 100%;
}
.hero-title::after {
    content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
    width: 50px; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, #42dcdb, #6c77f5);
}
.hero-sub {
    text-align: center; color: #d1d5db; font-size: 1.125rem; margin-bottom: 2rem;
    margin-top: 20px; letter-spacing: 1px;
}
.hero-line {
    width: 0; height: 0; margin: 0; display: none;
}

/* ===== Cards Grid ===== */
.cards-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.cards-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
}
@media (min-width: 768px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cards-grid { grid-template-columns: repeat(4, 1fr); } }

/* ===== Card ===== */
.w-card {
    border-radius: 16px; overflow: hidden; position: relative;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    padding: 28px 24px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer; text-decoration: none; color: inherit;
}
.w-card::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transition: 0.5s;
}
.w-card:hover::before { left: 100%; }
.w-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 45px rgba(0,0,0,0.3);
    background: rgba(255,255,255,0.08);
}

.w-card-icon {
    font-size: 2.5rem; margin-bottom: 1.25rem;
    width: auto; height: auto; border-radius: 0; background: transparent !important;
    display: inline-block; transition: all 0.3s ease;
}
.w-card:hover .w-card-icon { transform: scale(1.1) rotate(-5deg); }

.w-card-title { font-size: 1.25rem; font-weight: 600; color: #fff; margin-bottom: 12px; }
.w-card-desc { font-size: 14px; color: #d1d5db; margin-bottom: 20px; line-height: 1.6; flex: 1; }

.w-card-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 20px; border-radius: 10px; font-size: 14px; font-weight: 500;
    background: linear-gradient(135deg, #42dcdb 0%, #6c77f5 100%);
    color: white; transition: all 0.3s ease; position: relative; z-index: 1;
    border: none;
}
.w-card-btn::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #6c77f5 0%, #42dcdb 100%);
    opacity: 0; transition: opacity 0.3s; z-index: -1; border-radius: inherit;
}
.w-card:hover .w-card-btn::after { opacity: 1; }
.w-card:hover .w-card-btn {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108,119,245,0.4);
    color: white;
}
.w-card-btn svg { width: 14px; height: 14px; }
.w-card:hover .w-card-btn svg { transform: none; }

/* Floating effect */
.w-card.floating { animation: classicCardFloat 3s ease-in-out infinite; }
@keyframes classicCardFloat {
    0% { transform: translate(0, 0px); }
    50% { transform: translate(0, 15px); }
    100% { transform: translate(0, 0px); }
}
.w-card.floating:hover { animation: none; transform: translateY(-5px) scale(1.02); }

/* ===== Footer ===== */
.w-footer { text-align: center; padding: 48px 16px 32px; color: #9ca3af; font-size: 14px; }
.w-footer a { color: #42dcdb; text-decoration: none; }
.w-footer a:hover { text-decoration: underline; }
.register-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: #fff; font-size: 14px; text-decoration: none;
    padding: 10px 24px; border-radius: 10px;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px); transition: all 0.3s ease; margin-bottom: 20px;
}
.register-link:hover {
    background: rgba(255,255,255,0.15);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .hero-title { font-size: 1.75rem !important; }
    .w-card { padding: 20px !important; }
    .w-card-icon { font-size: 2rem; }
    .w-card-btn { padding: 8px 16px !important; font-size: 13px !important; }
    .logo-box { width: 64px; height: 64px; font-size: 36px; border-radius: 18px; }
}
@media (min-width: 641px) and (max-width: 1024px) {
    .hero-title { font-size: 2.5rem; }
}
@media (min-width: 1025px) {
    .cards-wrap { max-width: 1200px; }
}
