:root {
    --xy-primary: #FFD43B;
    --xy-secondary: #FFE066;
    --xy-accent: #FCC419;
    --xy-bg: #FFFBF0;
    --xy-text: #2B2B2B;
    --xy-gray: #E9ECEF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif;
    background: var(--xy-bg);
    color: var(--xy-text);
    padding-bottom: 100px;
    padding-top: env(safe-area-inset-top);
}

.xy-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* Header */
.xy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(255, 251, 240, 0.98);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 212, 59, 0.2);
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.brand-name h1 {
    font-size: 18px;
    font-weight: 800;
    color: var(--xy-accent);
    line-height: 1;
}

.brand-name span {
    font-size: 11px;
    color: #999;
}

.header-btn {
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--xy-primary), var(--xy-accent));
    color: #333;
    font-weight: 700;
    font-size: 13px;
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 212, 59, 0.3);
}

/* Main */
main {
    padding: 20px;
}

/* AI Hero */
.ai-hero {
    text-align: center;
    margin-bottom: 30px;
}

.ai-assistant {
    position: relative;
    margin-bottom: 25px;
}

.robot-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
}

.robot-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(255, 212, 59, 0.3);
}

/* Pulse Animation */
.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--xy-primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.ai-bubble {
    background: white;
    padding: 15px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    max-width: 90%;
    margin: 0 auto;
    position: relative;
}

.ai-bubble::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.bubble-text {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.hero-title {
    margin-top: 25px;
}

.hero-title h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--xy-accent);
    margin-bottom: 8px;
}

.hero-title p {
    font-size: 14px;
    color: #888;
}

/* Core Abilities */
.core-abilities {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.ability-card {
    background: white;
    padding: 20px 10px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 212, 59, 0.1);
    transition: transform 0.3s;
}

.ability-card:active {
    transform: scale(0.95);
}

.ability-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.ability-card h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--xy-accent);
}

.ability-card p {
    font-size: 12px;
    color: #999;
}

/* Feature Showcase */
.feature-showcase {
    margin-bottom: 30px;
}

.showcase-header h3 {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--xy-accent);
}

.showcase-carousel {
    position: relative;
    max-width: 320px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(255, 212, 59, 0.15);
}

.showcase-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.showcase-item {
    min-width: 100%;
    position: relative;
    background: white;
}

.showcase-item img {
    width: 100%;
    height: auto;
    display: block;
}

.item-desc {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px 15px 15px;
}

.item-desc h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.item-desc p {
    font-size: 12px;
    opacity: 0.9;
}

.showcase-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.indi {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: all 0.3s;
}

.indi.active {
    width: 18px;
    background: white;
    border-radius: 3px;
}

/* Content Section (SEO) */
.content-section {
    margin-bottom: 30px;
}

.content-article {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.content-article h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--xy-accent);
    margin-bottom: 12px;
}

.content-article p {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}

.content-article ul {
    list-style: none;
    padding: 0;
}

.content-article ul li {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.content-article ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--xy-accent);
    font-weight: bold;
}

.content-article ul li strong {
    color: var(--xy-text);
}

/* User Stats */
.user-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: white;
    padding: 25px 15px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(255, 212, 59, 0.15);
}

.stat-box {
    text-align: center;
}

.stat-num {
    font-size: 24px;
    font-weight: 800;
    color: var(--xy-accent);
    margin-bottom: 6px;
}

.stat-label {
    font-size: 12px;
    color: #999;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--xy-gray);
}

/* Bottom CTA */
.bottom-cta {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: white;
    border-radius: 50px;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(255, 212, 59, 0.25);
    z-index: 1000;
    margin-bottom: env(safe-area-inset-bottom);
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cta-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.cta-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--xy-text);
}

.cta-sub {
    font-size: 11px;
    color: #999;
}

.cta-btn {
    background: linear-gradient(135deg, var(--xy-primary), var(--xy-accent));
    color: #333;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 212, 59, 0.3);
}

@media (max-width: 360px) {
    .core-abilities { gap: 8px; }
    .ability-card { padding: 15px 8px; }
    .hero-title h2 { font-size: 20px; }
}
