/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局样式 */
:root {
    --primary: #FF3B30;
    --primary-light: rgba(255, 59, 48, 0.1);
    --secondary: #FFCC00;
    --secondary-light: rgba(255, 204, 0, 0.1);
    --accent: #007AFF;
    --accent-light: rgba(0, 122, 255, 0.1);
    --dark: #1C1C1E;
    --light: #F5F5F7;
    --gray: #777777;
    --light-gray: #F0F0F0;
    --white: #FFFFFF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

/* 头部样式 */
.site-header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 0.3rem 1rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    width: 160px;
    height: 144px;
    margin-right: 1rem;
}

.site-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--dark);
    margin-right: auto;
}

/* 按钮样式 */
.btn-animated {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    font-weight: bold;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-animated:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-animated:hover:after {
    width: 300px;
    height: 300px;
}

.btn-animated:active {
    transform: scale(0.98);
}

.play-btn {
    background: linear-gradient(135deg, var(--primary) 0%, #FF9500 100%);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-size: 1.1rem;
    box-shadow: var(--shadow);
}

/* 游戏区域样式 */
.game-section {
    margin: 2rem 0 3rem;
}

.game-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
}

.game-container {
    width: 766px;
    height: 520px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    position: relative;
}

@media (max-width: 768px) {
    .game-container {
        width: 100%;
        height: auto;
        padding-bottom: 67.8%; /* 保持766:520的比例 */
    }
}

.game-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.iframe-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.fallback-content {
    text-align: center;
    max-width: 500px;
}

.error-message {
    margin-bottom: 1.5rem;
}

.error-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.error-text {
    color: var(--gray);
    font-size: 0.9rem;
}

.external-play-btn {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.3s;
}

.external-play-btn:hover {
    background-color: #e03228;
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.game-btn {
    display: flex;
    align-items: center;
    justify-content: center; /* 让图标和文字居中 */
    gap: 0.5rem;
    padding: 0.5rem 1rem; /* 统一垂直+水平内边距 */
    width: 140px; /* 固定宽度，确保所有按钮等长 */
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.fullscreen-btn {
    background-color: var(--primary);
    color: var(--white);
}

.fullscreen-btn:hover {
    background-color: #e03228;
}

.refresh-btn {
    background-color: #333;
    color: var(--white);
}

.refresh-btn:hover {
    background-color: #555;
}

.share-btn {
    background-color: var(--accent);
    color: var(--white);
}

.share-btn:hover {
    background-color: #0066e0;
}

.game-hint {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--gray);
}

/* 标签页样式 */
.tabs-section {
    margin-bottom: 3rem;
}

.tabs-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
}

.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    background-color: var(--light-gray);
    color: var(--dark);
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.tab-btn.active {
    background-color: var(--primary);
    color: var(--white);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-inner {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.tab-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
}

.tab-text {
    margin-bottom: 1rem;
    color: #555;
}

.tab-image {
    text-align: center;
    margin-top: 1.5rem;
}

.tab-image img {
    max-width: 100%;
    height: auto;
    max-height: 250px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* 特点网格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.feature-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.primary-icon {
    background-color: var(--primary-light);
    color: var(--primary);
}

.secondary-icon {
    background-color: var(--secondary-light);
    color: var(--secondary);
}

.accent-icon {
    background-color: var(--accent-light);
    color: var(--accent);
}

.feature-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.feature-text {
    color: #555;
    font-size: 0.95rem;
}

/* 控制区域样式 */
.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.control-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.control-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--primary);
}

.control-list {
    list-style-type: none;
}

.control-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.control-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

/* 提示样式 */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.tip-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.primary-border {
    border-left: 4px solid var(--primary);
}

.secondary-border {
    border-left: 4px solid var(--secondary);
}

.accent-border {
    border-left: 4px solid var(--accent);
}

.tip-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.tip-text {
    color: #555;
    font-size: 0.95rem;
}

.tip-alert {
    background-color: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1.5rem;
    display: flex;
    align-items: flex-start;
}

.tip-alert i {
    color: #ffc107;
    margin-right: 0.5rem;
    margin-top: 0.25rem;
}

.tip-alert p {
    font-size: 0.95rem;
    color: #ff8f00;
}

/* 主要特点区域 */
.features-section {
    margin-bottom: 3rem;
}

.main-feature {
    text-align: center;
}

.main-feature .feature-icon {
    margin-left: auto;
    margin-right: auto;
}

/* 行动召唤区域 */
.cta-section {
    margin-bottom: 3rem;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary) 0%, #FF9500 100%);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    color: var(--white);
}

.cta-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.cta-text {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.cta-btn {
    background-color: var(--white);
    color: var(--primary);
    padding: 1rem 2rem;
    border-radius: 999px;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
}

/* 弹窗样式 */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-backdrop.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: bold;
}

.close-modal {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray);
}

.close-modal:hover {
    color: var(--dark);
}

.modal-text {
    color: #555;
    margin-bottom: 1.5rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/*.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--white);
    transition: transform 0.2s ease;
    text-decoration: none;
}*/

.share-btn:hover {
    transform: scale(1.1);
}

.facebook {
    background-color: #3b5998;
}

.twitter {
    background-color: #1da1f2;
}

.whatsapp {
    background-color: #25d366;
}

.email {
    background-color: #ea4335;
}

.copy-link-container {
    display: flex;
    gap: 0.5rem;
}

.copy-link-container input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.copy-btn {
    background-color: #333;
    color: var(--white);
    padding: 0 1rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

/* 提示通知 */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: var(--white);
    padding: 1rem;
    border-radius: 6px;
    z-index: 1001;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-notification.active {
    opacity: 1;
    transform: translateY(0);
}

/* 页脚样式 */
.site-footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 48px;
    height: 48px;
    margin-right: 1rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: bold;
}

.footer-tagline {
    color: #aaa;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: #aaa;
    transition: color 0.3s;
}

.social-link:hover {
    color: var(--white);
}

.footer-divider {
    border-color: #333;
    margin: 1rem 0;
}

.footer-bottom {
    text-align: center;
}

.copyright {
    color: #aaa;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.footer-links {
    font-size: 0.85rem;
}

.footer-link {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--white);
}

.separator {
    color: #555;
    margin: 0 0.5rem;
}

/* 动画和交互效果 */
.brain-icon {
    transition: transform 0.3s ease;
}



.hidden {
    display: none !important;
}


