* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: "Microsoft YaHei", Arial, sans-serif; background: #f5f0e6; min-height: 100vh; } .top-header { background: #f5f0e6; padding: 20px 40px; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; } .logo { color: #333; font-size: 20px; font-weight: bold; } .search-box { display: flex; gap: 5px; } .search-box input { padding: 8px 12px; border: 2px solid #ccc; font-size: 14px; } .search-box button { padding: 8px 20px; background: #8b0000; color: white; border: none; cursor: pointer; font-size: 14px; } .nav-bar { background: #8b0000; padding: 0; } .nav-bar-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: center; gap: 50px; } .nav-item { padding: 12px 25px; color: white; text-decoration: none; font-size: 16px; cursor: pointer; transition: background 0.3s; } .nav-item:hover, .nav-item.active { background: #660000; } .banner { position: relative; max-width: 1200px; margin: 0 auto; height: 400px; overflow: hidden; } .banner-img { width: 100%; height: 100%; object-fit: cover; } .banner-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; } .main-content { max-width: 1200px; margin: 20px auto; padding: 0 20px; } .section-title { text-align: center; color: #8b0000; font-size: 28px; font-weight: bold; margin: 40px 0 30px; } .cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; } .feature-card { background: white; border: 1px solid #ddd; overflow: hidden; } .card-img { width: 100%; height: 200px; object-fit: cover; } .card-title { text-align: center; font-size: 18px; font-weight: bold; padding: 15px; color: #8b0000; } .card-content { padding: 0 20px 20px; font-size: 14px; line-height: 1.8; color: #333; } .page { display: none; } .page.active { display: block; } .thermometer-page { background: white; padding: 30px; } .today-card { background: linear-gradient(135deg, #ff4500 0%, #ff6b35 100%); color: white; padding: 30px; text-align: center; margin-bottom: 30px; } .today-card h3 { font-size: 18px; margin-bottom: 15px; opacity: 0.9; } .sentiment-value { font-size: 56px; font-weight: bold; margin: 10px 0; } .sentiment-label { display: inline-block; padding: 8px 20px; background: rgba(255, 255, 255, 0.2); font-size: 16px; } .quick-start { text-align: center; margin: 20px 0; padding: 20px; background: #fff3e0; border: 2px dashed #ff9800; } .quick-start p { color: #666; margin-bottom: 15px; } .controls { margin: 20px 0; text-align: center; padding: 15px; background: #f8f9fa; } label { font-weight: bold; margin-right: 10px; color: #555; } input[type="date"] { padding: 8px 12px; margin-right: 20px; border: 1px solid #ddd; } .btn-primary { padding: 10px 25px; background: #ff4500; color: white; border: none; cursor: pointer; font-size: 16px; } .btn-primary:hover { background: #e03e00; } .loading { text-align: center; color: #666; font-size: 18px; margin: 20px 0; display: none; } .result-area { margin-top: 20px; display: none; } h2 { color: #555; font-size: 20px; margin: 25px 0 15px; } table { width: 100%; border-collapse: collapse; margin: 15px 0; background: white; font-size: 14px; } th, td { border: 1px solid #ddd; padding: 12px; text-align: center; } th { background-color: #ff4500; color: white; } tr:nth-child(even) { background-color: #f9f9f9; } #chart-container { height: 400px; margin-top: 30px; } .test-page { background: white; padding: 30px; } .progress-bar { background: #e0e0e0; height: 8px; margin-bottom: 30px; overflow: hidden; } .progress-fill { background: #ff4500; height: 100%; width: 0%; transition: width 0.3s; } .question-card { background: #f8f9fa; padding: 30px; margin-bottom: 20px; display: none; } .question-card.active { display: block; } .question-num { color: #ff4500; font-size: 14px; font-weight: bold; margin-bottom: 10px; } .question-title { font-size: 18px; color: #333; margin-bottom: 25px; font-weight: 500; } .options { display: flex; flex-direction: column; gap: 12px; } .option { padding: 16px 20px; background: white; border: 2px solid #e0e0e0; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 12px; } .option:hover { border-color: #ff4500; background: #fff5f2; } .option.selected { border-color: #ff4500; background: #ffede8; } .option-radio { width: 20px; height: 20px; border: 2px solid #ccc; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .option.selected .option-radio { border-color: #ff4500; background: #ff4500; } .option.selected .option-radio::after { content: '✓'; color: white; font-size: 12px; } .btn-group { display: flex; gap: 15px; margin-top: 30px; justify-content: center; } .btn-secondary { padding: 12px 30px; background: #e0e0e0; color: #666; border: none; cursor: pointer; font-size: 15px; } .btn-secondary:hover { background: #d0d0d0; } .btn:disabled { opacity: 0.5; cursor: not-allowed; } .result-card { background: white; padding: 40px; text-align: center; display: none; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } .result-icon { width: 100px; height: 100px; margin: 0 auto 25px; display: flex; align-items: center; justify-content: center; font-size: 50px; } .result-type { font-size: 24px; margin-bottom: 15px; font-weight: bold; } .result-desc { color: #666; margin-bottom: 30px; line-height: 1.8; } .type-conservative .result-icon { background: #e3f2fd; } .type-conservative .result-type { color: #1976d2; } .type-moderate .result-icon { background: #fff3e0; } .type-moderate .result-type { color: #f57c00; } .type-aggressive .result-icon { background: #ffebee; } .type-aggressive .result-type { color: #c62828; } .suggestions { background: #f8f9fa; padding: 25px; text-align: left; margin-top: 25px; } .suggestions h3 { color: #333; margin-bottom: 15px; font-size: 16px; } .suggestions ul { color: #555; padding-left: 20px; } .suggestions li { margin-bottom: 10px; } .edu-page { background: white; padding: 30px; } .warning-banner { background: linear-gradient(90deg, #ff6b6b 0%, #ee5a6f 100%); color: white; padding: 20px; margin-bottom: 25px; display: flex; align-items: center; gap: 15px; } .warning-icon { font-size: 40px; } .warning-text h3 { margin-bottom: 5px; } .warning-text p { font-size: 14px; opacity: 0.9; } .course-grid { display: grid; gap: 20px; } .course-card { background: white; overflow: hidden; border: 1px solid #eee; } .course-header { padding: 20px; display: flex; align-items: center; gap: 15px; cursor: pointer; transition: all 0.2s; user-select: none; } .course-header:hover { background: #f8f9fa; } .course-icon { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; } .course-title-wrap { flex: 1; } .course-title { font-size: 17px; color: #333; font-weight: 500; } .course-meta { font-size: 13px; color: #999; margin-top: 4px; } .expand-icon { font-size: 20px; color: #999; transition: transform 0.3s; } .course-header.expanded .expand-icon { transform: rotate(180deg); } .tag { display: inline-block; padding: 3px 10px; font-size: 12px; margin-left: 8px; } .tag-hot { background: #ffebee; color: #c62828; } .tag-new { background: #e8f5e9; color: #2e7d32; } .tag-base { background: #e3f2fd; color: #1565c0; } .course-content { padding: 0 20px 20px; display: none; animation: slideDown 0.3s ease; } .course-content.active { display: block; } @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } .lesson-list { border-top: 1px solid #eee; padding-top: 15px; } .lesson-item { padding: 12px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: all 0.2s; background: white; text-decoration: none; color: inherit; border: 1px solid transparent; } .lesson-item:hover { background: #f5f5f5; border-color: #ff4500; } .lesson-num { width: 24px; height: 24px; background: #e0e0e0; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #666; flex-shrink: 0; } .lesson-item:hover .lesson-num { background: #ff4500; color: white; } .lesson-title { flex: 1; font-size: 14px; } .source-tag { font-size: 11px; padding: 2px 8px; white-space: nowrap; } .source-gov { background: #e8f5e9; color: #2e7d32; } .source-news { background: #e3f2fd; color: #1565c0; } .source-cctv { background: #ffebee; color: #c62828; } .insight-box { background: #e3f2fd; border-left: 4px solid #2196f3; padding: 12px 15px; margin: 15px 0; font-size: 13px; color: #555; } .insight-box strong { color: #1976d2; } .disclaimer { margin-top: 30px; padding: 20px; background: #fff8e1; font-size: 13px; color: #666; border-left: 4px solid #ffc107; line-height: 1.6; } @media (max-width: 900px) { .cards-grid { grid-template-columns: 1fr; } } @media (max-width: 600px) { .nav-bar-inner { flex-wrap: wrap; gap: 10px; } }