/* General Layout / 基础布局 */
body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: #fcfcfc;
    color: #333;
    padding: 2rem;
    line-height: 1.8;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.demo-area {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
}

/* TOOLTIP CORE LOGIC / 提示信息核心逻辑 */

.tooltip {
    position: relative;
    cursor: help;
    border-bottom: 1px dotted #2563eb;
    color: #2563eb;
    text-decoration: none;
}

/* The Tooltip Box / 提示框本体 */
.tooltip::after {
    /* Magic: Grabs text from the HTML attribute / 从 HTML 属性中抓取文本 */
    content: attr(data-tip);
    
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    
    background: #1e293b;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    
    /* Animation state / 动画状态 */
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    z-index: 10;
}

/* The little arrow / 小箭头 */
.tooltip::before {
    content: "";
    position: absolute;
    bottom: 105%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border: 6px solid transparent;
    border-top-color: #1e293b;
    
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 10;
}

/* TRIGGER STATES / 触发状态 */
.tooltip:hover::after, .tooltip:focus::after,
.tooltip:hover::before, .tooltip:focus::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Button & Link specific / 按钮与链接适配 */
button.tooltip {
    background: #2563eb;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}

/* SEO Lesson Section / 教学部分 */
.seo-lesson {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    border-top: 1px solid #eee;
    padding-top: 2rem;
    text-align: left;
}

@media (max-width: 700px) {
    .seo-lesson { grid-template-columns: 1fr; }
}

/* Layout Fix for Footer Stacking */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

/* SEO Insight Box Styling / SEO 见解区块样式 */
.seo-insight-box {
    margin: 3rem 0;
    padding: 2.5rem;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    text-align: left;
    width: 100%;
}

.seo-insight-box h2 {
    color: #2563eb;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0.5rem;
}

.insight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.seo-insight-box article h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.seo-insight-box p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    color: #475569;
}

.seo-insight-box p[lang="zh"] {
    color: #64748b;
    font-size: 0.9rem;
    border-left: 3px solid #eff6ff;
    padding-left: 1rem;
}

@media (max-width: 768px) {
    .insight-grid { grid-template-columns: 1fr; }
}


/* Footer Styling */
.pattern-footer {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 2rem 1rem;
    text-align: center;
}

.back-nav a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
}

.corporate-links {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #64748b;
}

.corporate-links a {
    color: var(--accent-blue);
    text-decoration: none;
}

@media (max-width: 768px) {
    .insight-grid { grid-template-columns: 1fr; }
}