@import url("typography.css");
/* 平特肖诗页面共享样式 - 基于3c.html优化版本 */
.poem-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 10px;
    margin: 8px 0;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.poem-title {
    color: #2c3e50;
    font-size: var(--fs-title);
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.poem-subtitle {
    color: #ffffff;
    font-size: var(--fs-section);
    font-weight: 600;
    text-align: center;
    margin: 10px 0;
    padding: 10px 15px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 8px;
    border: none;
    box-shadow: 0 3px 6px rgba(52, 152, 219, 0.2);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* 香港六合彩特殊样式 - 红色背景白色文字 */
#hongkong-subtitle {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 3px 6px rgba(231, 76, 60, 0.2);
}

/* 澳门六合彩特殊样式 - 紫色背景白色文字 */
#macau-subtitle {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    box-shadow: 0 3px 6px rgba(155, 89, 182, 0.2);
}

/* 普通六合彩特殊样式 - 绿色背景白色文字 */
#normal-subtitle {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    box-shadow: 0 3px 6px rgba(46, 204, 113, 0.2);
}

.poem-content {
    font-size: var(--fs-body);
    line-height: 1.4;
    color: #e74c3c; /* 诗句使用红色文字 */
    text-align: center;
    white-space: nowrap;
    overflow-x: auto;
    margin: 5px 0;
    padding: 8px;
    background: #ffffff;
    border-radius: 4px;
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    -webkit-overflow-scrolling: touch;
    font-weight: 600;
    border: 1px solid #ffebee;
}

.poem-content::-webkit-scrollbar {
    height: 2px;
}

.poem-content::-webkit-scrollbar-track {
    background: #f1f8ff;
}

.poem-content::-webkit-scrollbar-thumb {
    background: #3498db;
}

.poem-source {
    color: #ffffff;
    font-size: var(--fs-small);
    text-align: right;
    margin-top: 3px;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
    font-weight: 500;
}

/* 不同彩票类型的来源标签颜色 */
#normal-poem-data .poem-source {
    background: #2ecc71;
}

#macau-poem-data .poem-source {
    background: #9b59b6;
}

#hongkong-poem-data .poem-source {
    background: #e74c3c;
}

.loading {
    text-align: center;
    padding: 15px 10px;
    color: #7f8c8d;
    font-size: var(--fs-hint);
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px dashed #bdc3c7;
}

.error {
    text-align: center;
    padding: 10px;
    color: #e74c3c;
    background: #ffeaea;
    border-radius: 4px;
    margin: 5px;
    font-size: var(--fs-hint);
    border: 1px solid #ffb8b8;
    font-weight: 500;
}

.poem-item {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.poem-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* 现代按钮样式 */
.modern-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: var(--fs-btn);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1c5a7a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.4);
}

/* 页面标题 */
.content h2 {
    color: #2c3e50;
    font-size: var(--fs-title);
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #3498db;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.content p {
    color: #7f8c8d;
    font-size: var(--fs-body);
    line-height: 1.6;
    text-align: center;
    margin: 0 auto 20px;
    max-width: 600px;
}

/* PC端优化 - 字体由:root变量自动适配 */
@media (min-width: 769px) {
    .poem-section {
        padding: 20px;
        margin: 15px 0;
    }
    
    .poem-title {
        margin-bottom: 15px;
    }
    
    .poem-subtitle {
        padding: 12px 20px;
        margin: 12px 0;
    }
    
    .poem-content {
        padding: 15px;
        margin: 12px 0;
    }
    
    .poem-source {
        padding: 6px 12px;
    }
    
    .loading {
        padding: 25px 20px;
        font-size: 15px;
    }
    
    .error {
        padding: 18px;
        font-size: 15px;
    }
    
    .modern-btn {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    .content h2 {
        font-size: 22px;
        margin-bottom: 18px;
    }
    
    .content p {
        font-size: 15px;
        margin-bottom: 25px;
    }
}

/* 手机端优化 */
@media (max-width: 480px) {
    .poem-section {
        padding: 12px;
        margin: 10px 0;
    }
    
    .poem-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .poem-subtitle {
        font-size: 15px;
        padding: 8px 12px;
        margin: 8px 0;
    }
    
    .poem-content {
        font-size: 14px;
        padding: 10px;
        margin: 8px 0;
    }
    
    .poem-source {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .modern-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}
