/* 扑克分析平台专用样式 */

/* 扑克主题颜色 */
:root {
    --poker-black: #1a1a1a;
    --poker-red: #e63946;
    --poker-green: #2a9d8f;
    --poker-blue: #1d3557;
    --poker-yellow: #f4a261;
    --poker-white: #f1faee;
}

/* 页面整体样式调整 */
body {
    background: var(--bg-gradient);
    color: var(--text-primary);
}

/* 头部样式 */
.header {
    background: var(--secondary-gradient);

    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border-color);
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1.5rem;
}

/* 全球服务标题 */
.global-services-title {
    color: var(--text-secondary);
    font-size: 1.3rem;
    margin: 0 auto 1rem !important;
    text-align: center !important;
    width: 100% !important;
    display: block !important;
    position: relative;
    z-index: 1;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* 欢迎部分样式 */
.welcome-section {
    background: var(--secondary-gradient);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border-color);
}

.welcome-title {
    color: var(--text-secondary);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* 内容按钮样式 */
.content-buttons-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.content-button {
    background: var(--button-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.button-arrow {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* 抽屉样式 */
.drawer {
    background-color: var(--secondary-color);
    border-left: 3px solid var(--primary-color);
}

.drawer-header {
    background-color: var(--secondary-color);
    border-bottom: 1px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-title {
    color: black;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    flex: 1;
}

.drawer-close {
    color: var(--text-primary);
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.drawer-content {
    padding: 1.5rem;
    color: var(--text-primary);
}

.drawer-content h4 {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.drawer-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.drawer-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.drawer-content li {
    margin-bottom: 0.5rem;
    list-style-type: disc;
    color: var(--text-tertiary);
}

/* 3D圆球画廊样式 */
.sphere-root {
    background-color: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border-color);
}

/* 个人资料面板样式 */
.profile-panel {
    background-color: var(--secondary-color);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
}

.profile-name {
    color: var(--text-secondary);
    font-size: 1.8rem;
    font-weight: 700;
}

.profile-label {
    color: var(--primary-color);
    font-weight: 600;
}

.close-btn {
    color: var(--text-primary);
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* 悬浮按钮样式 */
.floating-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    transform: none;
    z-index: 1000;
    min-width: 12.5rem;
}

/* 响应式设计：手机版 */
@media (max-width: 768px) {
    .floating-btn {
        bottom: 1.25rem;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        gap: 0.5rem;
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
        min-width: 10rem;
        box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    }
}

/* 更小屏幕的调整 */
@media (max-width: 480px) {
    .floating-btn {
        bottom: 0.9375rem;
        gap: 0.375rem;
        padding: 0.625rem 1.25rem;
        font-size: 0.75rem;
        min-width: 8.75rem;
    }
}

.floating-btn__text {
    color: white;
}

/* 底部内容样式 */
.footer-content {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border-color);
}

.footer-section {
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    color: var(--text-secondary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--text-tertiary);
}

.footer-section ul {
    padding-left: 1.5rem;
}

.footer-section li {
    margin-bottom: 0.5rem;
    list-style-type: disc;
    color: var(--text-tertiary);
}

/* 加载动画样式 */
.loading {
    background-color: var(--secondary-color);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
}

.loading-spinner {
    border: 4px solid var(--tertiary-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .logo {
        font-size: 2rem;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .content-buttons-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        padding: 1.5rem;
    }
    
    .floating-btn {
        bottom: 1rem;
        right: 1rem;
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
    }
}

/* 全局边框样式 */
* {
    box-sizing: border-box;
}

/* 自定义滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--tertiary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 4px;
}

/* 图标样式 */
.floating-btn__icon {
    color: white;
}

/* 交互反馈效果 */

/* 按钮点击效果 */
.content-button:active,
.floating-btn:active,
.drawer-close:active {
    transform: scale(0.95);
}

/* 卡片样式 */
.service-card {
    transition: none;
}

/* 平滑过渡效果 */
* {
    transition: none;
}

/* 加载动画增强 */
.loading-spinner {
    animation: spin 1s linear infinite, pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }
}

/* 抽屉动画效果 */
.drawer {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.drawer-overlay {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* WCAG 2.1 AA级对比度优化 */

/* 确保主要文本对比度至少为4.5:1 */
.text-primary {
    color: rgba(255, 255, 255, 0.95); /* 与深黑色背景对比度远高于4.5:1 */
}

/* 确保次要文本对比度至少为4.5:1 */
.text-secondary {
    color: rgba(212, 175, 55, 0.95); /* 增强金色文本的不透明度，确保与深黑色背景的对比度 */
}

/* 确保按钮文本对比度至少为4.5:1 */
.content-button,
.floating-btn {
    color: var(--text-secondary);
    font-weight: 600; /* 增强文本粗细，提高可读性 */
}

/* 确保链接文本对比度至少为4.5:1 */
a {
    color: var(--primary-color);
    font-weight: 600;
}

/* 确保禁用状态文本对比度至少为2:1 */
:disabled {
    color: rgba(212, 175, 55, 0.5);
}

/* 确保表单元素对比度符合标准 */
input, textarea, select {
    background-color: var(--tertiary-color);
    border: 1px solid var(--primary-color);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 4px;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
    outline: none;
}

/* 确保错误消息对比度符合标准 */
.error {
    color: #ff4d4d;
    font-weight: 600;
}

/* 确保成功消息对比度符合标准 */
.success {
    color: #4caf50;
    font-weight: 600;
}
