/* setup-style.css */
:root {
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --primary-accent: #007AFF;
    /* Apple Blue */
    --text-main: #1d1d1f;
    --text-sub: #86868b;
}

body {
    margin: 0;
    padding: 0;
    background: #f5f5f7;
    /* Apple's light gray */
    background-image: radial-gradient(circle at 0% 0%, #e0e7ff 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, #fef3c7 0%, transparent 40%);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: var(--text-main);
}

.container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-align: center;
    margin-bottom: 30px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 20px;
    color: var(--text-main);
}

input,
select {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    color: var(--text-main);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-accent);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

/* 苹果液态玻璃按钮 */
button {
    width: 100%;
    padding: 16px;
    margin-top: 30px;
    border: none;
    border-radius: 14px;
    background: var(--primary-accent);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.4);
    background: #0071e3;
}

button:active {
    transform: translateY(0);
}

.note {
    font-size: 12px;
    color: var(--text-sub);
    margin-top: 6px;
}

/* 成功后的代码显示区 */
#resultArea textarea {

    background: rgba(0, 0, 0, 0.03);
    border: 1px dashed rgba(0, 0, 0, 0.1);
    font-family: "SF Mono", Menlo, monospace;
}

/* 默认隐藏成功后的结果区域 */
#resultArea {
    display: none;
    /* 初始状态必须是 none */
    text-align: center;
}

/* 初始状态表单是显示的 */
#formSection {
    display: block;
}



/* ROI 仪表盘样式 */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.5);
    padding: 15px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-card .label {
    font-size: 11px;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .value {
    font-size: 20px;
    font-weight: 700;
    margin-top: 5px;
    color: #1d1d1f;
}

.stat-card.roi {
    background: rgba(52, 199, 89, 0.1);
    border-color: rgba(52, 199, 89, 0.2);
}

.stat-card.roi .value {
    color: #34C759;
}



/* 颜色配置区域布局 */
.setup-color-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.03);
    padding: 20px;
    border-radius: 18px;
    margin-top: 10px;
}

.color-controls {
    flex: 1;
}

.preset-colors {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.color-dot:hover {
    transform: scale(1.2);
}

#brandColor {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: none;
    cursor: pointer;
}

/* 模拟预览窗 */
.mockup-container {
    width: 120px;
    height: 80px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    margin-left: 20px;
}

.mockup-site-text {
    font-size: 8px;
    color: #cbd5e1;
    padding: 8px;
}

#mockup-bubble {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #a8bba1;
    /* 初始颜色 */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#mockup-bubble svg {
    width: 14px;
    height: 14px;
    stroke: white;
    fill: none;
    stroke-width: 2.5;
}


/* --- 新增：颜色选择器与实时预览的高级样式 --- */
.setup-color-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.03);
    padding: 15px;
    border-radius: 16px;
    margin-top: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.color-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.preset-colors {
    display: flex;
    gap: 8px;
}

.color-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, border-color 0.2s;
}

.color-dot:hover {
    transform: scale(1.15);
    border-color: rgba(0, 0, 0, 0.1);
}

/* 隐藏原生取色器的丑陋边框 */
#brandColor {
    width: 100%;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: none;
    cursor: pointer;
    padding: 0;
}

/* 模拟预览窗 (Mockup) */
.mockup-container {
    width: 100px;
    height: 70px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    margin-left: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.mockup-site-text {
    font-size: 8px;
    color: #cbd5e1;
    padding: 8px;
    font-family: sans-serif;
}

/* 预览气泡 */
#mockup-bubble {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #a8bba1;
    /* 默认颜色 */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, transform 0.2s;
}

/* 变色时的呼吸动画 */
#mockup-bubble.pulse {
    transform: scale(1.1);
}

#mockup-bubble svg {
    width: 16px;
    height: 16px;
    stroke: white;
    fill: none;
    stroke-width: 2.5;
}

/* 统计看板样式补全 */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    text-align: center;
}

.stat-card .label {
    font-size: 11px;
    color: #86868b;
    text-transform: uppercase;
    font-weight: 700;
}

.stat-card .value {
    font-size: 24px;
    font-weight: 700;
    margin-top: 5px;
    color: #1d1d1f;
}

.stat-card.roi {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.stat-card.roi .value {
    color: #16a34a;
}


/* --- 新增：Tab 切换开关 --- */
.auth-switch {
    text-align: center;
    margin-bottom: 25px;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.04);
    padding: 4px;
    border-radius: 20px;
    display: table;
    margin-left: auto;
    margin-right: auto;
}

.auth-switch span {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 16px;
    cursor: pointer;
    transition: 0.3s;
    color: #666;
    font-weight: 500;
}

.auth-switch span.active {
    background: white;
    color: #1d1d1f;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* --- 新增：颜色选择器布局 --- */
.setup-color-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.02);
    padding: 15px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 5px;
}

.color-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.preset-colors {
    display: flex;
    gap: 8px;
}

.color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.color-dot:hover {
    transform: scale(1.15);
}

#brandColor {
    width: 100%;
    height: 35px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}

/* --- 新增：实时预览窗 (Mockup) --- */
.mockup-container {
    width: 90px;
    height: 60px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    margin-left: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.mockup-lines {
    padding: 8px;
}

.mockup-line {
    height: 4px;
    background: #f1f5f9;
    border-radius: 2px;
    margin-bottom: 4px;
}

#mockup-bubble {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: #a8bba1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s;
}

#mockup-bubble svg {
    width: 12px;
    height: 12px;
    stroke: white;
    fill: none;
    stroke-width: 2.5;
}

/* --- 新增：四维数据看板 --- */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 25px;
}

.stat-card {
    background: white;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
}

.stat-card .icon {
    font-size: 16px;
    color: #a8bba1;
    margin-bottom: 8px;
    opacity: 0.8;
}

.stat-card .label {
    font-size: 10px;
    color: #86868b;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.stat-card .value {
    font-size: 22px;
    font-weight: 700;
    margin-top: 4px;
    color: #1d1d1f;
}

.stat-card .sub {
    font-size: 10px;
    color: #aaa;
    margin-top: 4px;
}

/* 高亮卡片 */
.stat-card.highlight {
    background: #fdfbf7;
    border-color: #e2dcc8;
}

.stat-card.highlight .value {
    color: #b45309;
}

.stat-card.highlight .icon {
    color: #f59e0b;
}


/* 统一样式：让下载链接看起来像按钮 */
.secondary-button {
    display: block;
    /* 变成块级元素，占满宽度 */
    width: 100%;
    /* 宽度 100% */
    box-sizing: border-box;
    /* 包含 padding */
    margin-top: 20px;
    /* 间距 */
    padding: 12px;
    /* 内边距 */
    border-radius: 12px;
    /* 圆角与第一个一致 */
    background: #f5f5f7;
    /* 默认背景色（可以改成白色或浅灰） */
    color: #1d1d1f;
    /* 文字颜色 */
    text-align: center;
    /* 文字居中 */
    text-decoration: none;
    /* ✨ 关键：去掉链接下划线 */
    font-size: 16px;
    /* 字号 */
    font-weight: 600;
    /* 字重 */
    border: 1px solid rgba(0, 0, 0, 0.1);
    /* 边框 */
    transition: all 0.2s ease;
    /* 动画 */
}

.secondary-button:hover {
    background: #e8e8ed;
    /* 悬停效果 */
    transform: translateY(-1px);
}

/* 如果你想让它和 Activate Now 一样是莫兰迪绿/蓝色 */
/* 请把上面的 background 改为 var(--pd-primary) 或 #a8bba1，并将 color 改为 white */