/* style.css - 完整版 (Kakao Yellow Button Style) */

/* 1. 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f5f7fa;
    padding-bottom: 80px; /* 留出底部按钮空间 */
}

ul { list-style: none; }

/* 2. 顶部股票滚动条 */
.ticker-wrap {
    width: 100%;
    background-color: #1a1a1a;
    color: #fff;
    font-size: 14px;
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-content {
    display: inline-block;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 20px;
}

.up { color: #ff4d4d; }
.down { color: #4d94ff; }

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 3. 容器与头部 */
.container {
    max-width: 720px; 
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.logo {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

/* 4. Hero 区域 */
.hero {
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
}

.badge {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 32px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.hero p {
    color: #666;
    margin-bottom: 30px;
}

.stats-row {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.stat-item strong {
    display: block;
    font-size: 20px;
    color: #2c3e50;
}

.stat-item span {
    font-size: 12px;
    color: #888;
}

/* 5. 按钮样式 (Kakao风格: 黄底黑字) */
.btn-primary {
    /* 核心修改：Kakao 黄色背景 */
    background-color: #FEE500; 
    
    /* 核心修改：Kakao 褐色/黑色文字 */
    color: #3C1E1E; /* 经典的 Kakao Brown 颜色 */
    
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 800; /* 加粗 */
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(254, 229, 0, 0.4);
    
    /* Flex布局对齐图标和文字 */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-primary:hover {
    transform: scale(1.02);
    background-color: #fdd835; /* 稍微深一点的黄色 */
}

/* 这里的图片样式 */
.kakao-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

.btn-primary.large {
    width: 80%;
    max-width: 400px;
    margin: 0 auto;
}

.btn-primary.full-width {
    width: 100%;
    border-radius: 8px;
}

/* 6. 通用内容区块 */
.section {
    padding: 40px 20px;
    border-bottom: 1px solid #f5f5f5;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.section-title p { color: #666; }
.bg-gray { background-color: #f8f9fa; }

/* 7. 个人简介 */
.profile-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
}

.profile-img-placeholder img { width: 100%; height: auto; display: block; }
.profile-info { padding: 20px; }
.profile-info h3 { font-size: 22px; margin-bottom: 10px; }
.tag {
    font-size: 12px;
    background: #2c3e50;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    vertical-align: middle;
}

.check-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 14px;
}
.check-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #00c73c; /* 这里的勾选保留绿色，作为装饰色 */
}

.quote {
    font-style: italic;
    color: #555;
    border-left: 3px solid #FEE500; /* 引用线也改成黄色呼应 */
    padding-left: 10px;
    margin-top: 15px;
}

/* 8. 网格卡片 */
.grid-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.card-icon { font-size: 30px; margin-bottom: 10px; }
.card h3 { font-size: 16px; margin-bottom: 5px; }
.card p { font-size: 12px; color: #777; }

/* 9. 聊天演示 */
.chat-demo {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
}

.chat-header {
    background: #2c3e50;
    color: white;
    padding: 15px;
    font-size: 14px;
}

.online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #00c73c;
    border-radius: 50%;
    margin-right: 5px;
}

.chat-body { padding: 20px; background: #b2c7d9; }
.chat-msg { display: flex; margin-bottom: 15px; align-items: flex-start; }
.chat-msg.right { flex-direction: row-reverse; }

.chat-avatar {
    width: 35px; height: 35px;
    background: #fff;
    border-radius: 40%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 12px; margin-right: 10px;
}

.chat-name { font-size: 12px; color: #555; margin-bottom: 2px; }
.chat-msg.right .chat-name { text-align: right; }

.chat-bubble {
    background: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    max-width: 220px;
    position: relative;
}
.chat-msg.right .chat-bubble { background: #ffeb33; }
.chat-time { font-size: 10px; color: #777; margin-top: 4px; margin-left: 5px; }

/* 10. 页脚与悬浮 */
.review-item { background: #f9f9f9; padding: 20px; border-radius: 8px; margin-bottom: 15px; }
.review-text { font-size: 14px; margin-bottom: 10px; color: #444; }
.review-author { font-weight: bold; font-size: 14px; }
.sub { font-weight: normal; color: #888; font-size: 12px; margin-left: 5px; }

.benefits-tags span { display: inline-block; margin: 5px; font-size: 14px; color: #2c3e50; }

.footer {
    background: #333; color: #999;
    padding: 30px 20px; text-align: center; font-size: 12px;
}
.footer-links span { cursor: pointer; text-decoration: underline; }
.disclaimer { margin: 20px 0; line-height: 1.4; opacity: 0.7; }

.sticky-btn-wrapper {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 680px;
    z-index: 1000;
}

/* 11. 弹窗 */
.modal {
    display: none; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%; background: rgba(0,0,0,0.5);
    z-index: 2000; align-items: center; justify-content: center;
}
.modal-content {
    background: white; width: 90%; max-width: 500px;
    border-radius: 8px; overflow: hidden; max-height: 80vh;
    display: flex; flex-direction: column;
}
.modal-header {
    padding: 15px; border-bottom: 1px solid #eee;
    display: flex; justify-content: space-between; align-items: center;
}
.close { font-size: 24px; cursor: pointer; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-body h4 { margin-top: 15px; margin-bottom: 5px; color: #333; }

@media (max-width: 480px) {
    .grid-box { grid-template-columns: 1fr; }
    .hero h1 { font-size: 26px; }
}