:root { --primary: #1a1a1a; --accent: #d32f2f; --bg: #f9f9f9; --card-bg: #fff; --text: #333; --border: #eee; }
body { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body.rtl { direction: rtl; text-align: right; }

.logo { text-align: center; font-size: 28px; font-weight: bold; letter-spacing: 4px; margin: 30px 0; }
.main-container { max-width: 1400px; margin: 0 auto; padding: 20px; min-height: 600px; }
.view-section { display: none; animation: fadeIn 0.5s; }
.view-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.home-grid { display: flex; justify-content: center; gap: 30px; margin-top: 50px; }
.home-card { background: var(--card-bg); width: 300px; height: 300px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; border: 1px solid var(--border); text-align: center; padding: 20px; }
.home-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

.back-btn { display: inline-block; margin-bottom: 20px; cursor: pointer; color: #666; }
.map-box { width: 100%; height: 600px; background: #f0f2f5; border-radius: 12px; }
#map-tea, #map-culture { width: 100%; height: 100%; }

.culture-layout { display: flex; gap: 20px; height: 650px; }
.map-container { flex: 1; background: #f0f2f5; border-radius: 12px; }
.ai-panel { width: 400px; background: #fff; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.08); padding: 30px; display: flex; flex-direction: column; overflow-y: auto; border: 1px solid var(--border); }
.ai-panel.empty { justify-content: center; align-items: center; color: #999; text-align: center; }
.ai-header { font-size: 20px; font-weight: bold; margin-bottom: 10px; color: var(--accent); border-bottom: 2px solid var(--border); padding-bottom: 10px;}
.ai-content { font-size: 15px; line-height: 1.8; color: #444; min-height: 100px; }
.cursor { display: inline-block; width: 2px; height: 16px; background: var(--accent); animation: blink 1s infinite; vertical-align: middle;}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.wiki-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; padding: 20px 0; }
.wiki-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 25px; text-decoration: none; color: inherit; display: block; transition: 0.3s; }
.wiki-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-color: var(--accent); }
.wiki-tag { display: inline-block; padding: 4px 10px; background: #e3f2fd; color: #1976d2; font-size: 12px; border-radius: 4px; margin-bottom: 15px; }

.lang-bar { text-align: center; padding: 30px 0; margin-top: 50px; border-top: 1px solid var(--border); background: #fff; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px;}
.lang-tag { padding: 8px 16px; cursor: pointer; color: #666; border-radius: 4px; border: 1px solid transparent;}
.lang-tag.active { background: var(--primary); color: #fff; }

.share-fab { position: fixed; bottom: 30px; right: 30px; z-index: 900; }
.share-btn { background: var(--accent); color: #fff; border: none; padding: 12px 24px; border-radius: 30px; cursor: pointer; box-shadow: 0 4px 10px rgba(211,47,47,0.3); display: flex; align-items: center; gap: 8px; }
.share-panel { display: none; position: absolute; bottom: 60px; right: 0; background: white; padding: 20px; border-radius: 12px; box-shadow: 0 5px 25px rgba(0,0,0,0.15); width: 320px; z-index: 901; }
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; text-align: center; }
.share-icon-wrap { width: 45px; height: 45px; border-radius: 12px; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; color: white; font-size: 20px; cursor: pointer;}
.share-item-name { font-size: 12px; color: #666; cursor: pointer;}

.factory-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; justify-content: center; align-items: center; }
.factory-modal-content { background: #fff; padding: 30px; border-radius: 12px; width: 400px; position: relative; }
.close-modal { position: absolute; top: 15px; right: 15px; cursor: pointer; font-size: 20px; }
/* ... 原有样式保持不变 ... */

/* 新增：二维码模态框样式 */
.qr-modal-overlay {
    display: none;
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 2000;
    justify-content: center; align-items: center;
}
.qr-modal-overlay.show { display: flex; }
.qr-modal-content {
    background: #fff; padding: 30px; border-radius: 16px; text-align: center;
    position: relative; width: 320px; box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.qr-close { position: absolute; top: 10px; right: 15px; font-size: 24px; cursor: pointer; color: #999; }
.qr-code-box { margin: 20px 0; padding: 10px; border: 1px solid #eee; border-radius: 8px; display: inline-block; }
.qr-code-box img { width: 200px; height: 200px; display: block; }
.qr-tip { font-size: 12px; color: #666; margin: 0; }
#qr-title { margin: 0 0 10px; color: #333; font-size: 18px; }
