:root {
    --bg-color: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --card-bg: #1e293b;
    --palm-color: #ef4444;
    --face-color: #3b82f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

.xxd-app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 24px 20px;
}

/* Header */
.xxd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.xxd-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.xxd-logo h1 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.xxd-quota-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.xxd-quota-badge.active {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.xxd-quota-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #94a3b8;
}

.xxd-quota-badge.active .xxd-quota-dot {
    background: #34d399;
    box-shadow: 0 0 8px #34d399;
}

/* Hero */
.xxd-hero {
    text-align: center;
    margin-bottom: 40px;
}

.xxd-hero h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.xxd-hero p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* Products */
.xxd-products {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.xxd-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: var(--card-bg);
    display: block;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.xxd-card:active {
    transform: scale(0.98);
}

.xxd-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    z-index: 0;
    transition: opacity 0.3s;
}

.xxd-card-palm .xxd-card-bg {
    background: radial-gradient(circle at top right, var(--palm-color), transparent 60%);
}

.xxd-card-face .xxd-card-bg {
    background: radial-gradient(circle at top right, var(--face-color), transparent 60%);
}

.xxd-card-content {
    position: relative;
    z-index: 1;
    padding: 24px;
}

.xxd-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.xxd-tag {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
}

.xxd-tag-blue {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.xxd-card-header h3 {
    font-size: 24px;
    font-weight: 700;
}

.xxd-card-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.xxd-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.xxd-status {
    font-size: 13px;
    font-weight: 500;
}

.xxd-status-active { color: #34d399; }
.xxd-status-empty { color: #f59e0b; }

.xxd-btn {
    background: var(--text-primary);
    color: var(--bg-color);
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.xxd-card-palm .xxd-btn { background: var(--palm-color); color: #fff; }
.xxd-card-face .xxd-btn { background: var(--face-color); color: #fff; }

/* Disclaimer */
.xxd-disclaimer {
    margin-top: 40px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.xxd-disclaimer p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.5;
    text-align: justify;
}
