* { margin: 0; padding: 0; box-sizing: border-box; } :root { --navy: #1a365d; --navy-2: #2c5282; --blue: #4299e1; --blue-2: #3182ce; --text: #2d3748; --muted: #718096; --bg: #f5f7fa; --card: #f7fafc; --border: #e2e8f0; --green: #48bb78; --red: #f56565; } html { scroll-behavior: smooth; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; } header { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: white; padding: 14px 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); } .header-content { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; } .logo { display: flex; align-items: center; gap: 12px; } .logo-icon { font-size: 36px; } .logo-text h1 { font-size: 24px; font-weight: 700; line-height: 1.1; } .logo-text p { font-size: 12px; opacity: 0.9; } nav { display: flex; gap: 6px; flex-wrap: wrap; } .nav-link { color: white; text-decoration: none; padding: 9px 14px; border-radius: 6px; font-weight: 500; font-size: 13px; transition: all 0.2s; background: rgba(255, 255, 255, 0.1); } .nav-link:hover { background: rgba(255, 255, 255, 0.2); } .nav-link.active { background: white; color: var(--navy); } .hero { background: linear-gradient(135deg, #0d2747 0%, #1a365d 55%, #2c5282 100%); color: white; padding: 70px 20px; } .hero-content { max-width: 1200px; margin: 0 auto; } .hero h1 { font-size: clamp(28px, 4.5vw, 44px); line-height: 1.15; font-weight: 800; max-width: 700px; margin-bottom: 18px; } .hero p { font-size: 17px; color: #cbd5e0; max-width: 620px; margin-bottom: 28px; } .hero-btns { display: flex; gap: 12px; flex-wrap: wrap; } .btn-primary { display: inline-block; background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%); color: white; border: none; padding: 12px 28px; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; } .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(66, 153, 225, 0.4); } .btn-ghost { display: inline-block; background: transparent; color: white; border: 2px solid rgba(255, 255, 255, 0.4); padding: 10px 26px; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all 0.2s; } .btn-ghost:hover { border-color: white; background: rgba(255, 255, 255, 0.1); } .btn-secondary { background: var(--blue); color: white; border: none; padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background 0.2s; } .btn-secondary:hover { background: var(--blue-2); } main { max-width: 1200px; margin: 0 auto; padding: 30px 20px; } .section { background: white; border-radius: 12px; padding: 28px; margin-bottom: 28px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); } .section-header { margin-bottom: 22px; } .section-header h2 { font-size: 24px; color: var(--navy); margin-bottom: 6px; } .section-desc { color: var(--muted); font-size: 14px; } .toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; } .search-input { flex: 1; min-width: 200px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; outline: none; } .search-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15); } .chips { display: flex; gap: 8px; flex-wrap: wrap; } .chip { padding: 7px 14px; border-radius: 20px; border: 1px solid var(--border); background: var(--card); cursor: pointer; font-size: 13px; color: var(--muted); transition: all 0.2s; } .chip.active { background: var(--navy); color: white; border-color: var(--navy); } .law-list { display: grid; gap: 12px; } .law-item { background: var(--card); border-left: 4px solid var(--blue); border-radius: 8px; padding: 16px 20px; transition: transform 0.2s; } .law-item:hover { transform: translateX(4px); } .law-title { font-weight: 600; font-size: 16px; color: var(--text); margin-bottom: 4px; } .law-meta { font-size: 13px; color: var(--muted); } .law-cat { display: inline-block; background: var(--blue); color: white; padding: 2px 10px; border-radius: 12px; font-size: 12px; margin-right: 8px; } .law-desc { font-size: 14px; color: #4a5568; margin-top: 8px; } .empty { text-align: center; color: var(--muted); padding: 30px; } .structure-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; } .structure-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 20px; text-align: center; transition: all 0.2s; } .structure-card:hover { box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); transform: translateY(-3px); } .structure-avatar { font-size: 40px; margin-bottom: 10px; } .structure-name { font-weight: 700; font-size: 16px; color: var(--text); } .structure-role { color: var(--blue); font-size: 13px; font-weight: 600; margin-top: 2px; } .structure-dept { color: var(--muted); font-size: 13px; margin-top: 6px; } .structure-head { display: inline-block; margin-top: 8px; background: #e6fffa; color: #234e52; font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 10px; } .video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; } .video-card { background: var(--card); border-radius: 10px; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; cursor: pointer; } .video-card:hover { transform: translateY(-4px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12); } .video-thumbnail { background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%); height: 160px; display: flex; align-items: center; justify-content: center; position: relative; color: white; font-size: 13px; text-align: center; padding: 10px; } .video-thumbnail::after { content: "▶"; font-size: 40px; opacity: 0.9; position: absolute; top: 10px; right: 16px; } .video-info { padding: 14px 16px; } .video-title { font-weight: 600; font-size: 15px; color: var(--text); margin-bottom: 6px; } .video-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); } .video-duration { background: var(--border); padding: 2px 8px; border-radius: 4px; } .upload-box { margin-top: 20px; border: 1px dashed var(--blue); border-radius: 10px; padding: 14px 18px; background: #ebf8ff; } .upload-box summary { cursor: pointer; font-weight: 600; color: var(--navy-2); font-size: 14px; } .upload-form { display: grid; gap: 12px; margin-top: 14px; max-width: 480px; } .upload-form input { padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; } .complaint-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; } .complaint-form { display: grid; gap: 12px; } .complaint-form label { font-size: 14px; font-weight: 600; color: var(--text); } .complaint-form input, .complaint-form select, .complaint-form textarea { padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; outline: none; } .complaint-form input:focus, .complaint-form select:focus, .complaint-form textarea:focus { border-color: var(--blue); } .complaint-info { background: var(--card); border-radius: 10px; padding: 24px; align-self: start; } .complaint-info h3 { color: var(--navy); margin-bottom: 12px; } .phone { font-size: 20px; font-weight: 700; color: var(--navy-2); margin-bottom: 8px; } .muted { color: var(--muted); font-size: 13px; margin-top: 10px; } .form-note { color: var(--muted); font-size: 13px; } .form-success { background: #c6f6d5; color: #22543d; padding: 12px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; } .test-container { max-width: 700px; margin: 0 auto; } .test-start { text-align: center; padding: 20px 10px; } .test-start p { font-size: 16px; color: #4a5568; margin-bottom: 16px; } .test-name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; } .test-name-row input { padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; text-align: center; } .test-topics { list-style: none; text-align: left; display: inline-block; margin-bottom: 24px; color: var(--text); font-size: 15px; line-height: 2; } .test-progress { background: var(--border); padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-weight: 600; color: #4a5568; } .question-text { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 24px; line-height: 1.5; } .test-options { display: grid; gap: 12px; margin-bottom: 20px; } .test-option { padding: 15px 20px; background: var(--card); border: 2px solid var(--border); border-radius: 8px; cursor: pointer; transition: all 0.2s; font-size: 15px; text-align: left; font-family: inherit; } .test-option:hover { border-color: var(--blue); background: #ebf8ff; } .test-option.correct { background: #c6f6d5; border-color: var(--green); color: #22543d; } .test-option.wrong { background: #fed7d7; border-color: var(--red); color: #742a2a; } .test-feedback { font-weight: 600; font-size: 16px; min-height: 24px; margin-bottom: 20px; } .test-result { text-align: center; padding: 30px 10px; } .result-icon { font-size: 64px; margin-bottom: 16px; } .result-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 24px 0; } .result-stat { background: var(--card); padding: 20px; border-radius: 10px; } .result-value { display: block; font-size: 38px; font-weight: 700; color: var(--blue); margin-bottom: 6px; } .result-label { color: var(--muted); font-size: 14px; } .result-message { font-size: 16px; color: #4a5568; margin-bottom: 24px; line-height: 1.6; } .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 22px; } .stat-card { background: var(--card); padding: 20px; border-radius: 10px; text-align: center; } .stat-icon { font-size: 30px; display: block; margin-bottom: 10px; } .stat-value { display: block; font-size: 30px; font-weight: 700; color: var(--blue); margin-bottom: 4px; } .stat-label { color: var(--muted); font-size: 13px; } .table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; } .data-table { width: 100%; border-collapse: collapse; font-size: 14px; } .data-table th, .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; } .data-table th { background: var(--card); color: var(--muted); font-weight: 600; font-size: 13px; } .data-table tr:last-child td { border-bottom: none; } .score-badge { display: inline-block; padding: 3px 12px; border-radius: 12px; font-weight: 700; font-size: 13px; } .score-good { background: #c6f6d5; color: #22543d; } .score-mid { background: #fefcbf; color: #744210; } .score-low { background: #fed7d7; color: #742a2a; } footer { background: var(--navy); color: white; padding: 28px 20px; text-align: center; } .footer-content p { margin-bottom: 6px; font-size: 14px; } .footer-note { opacity: 0.8; font-size: 13px; } @media (max-width: 768px) { .header-content { flex-direction: column; text-align: center; } .logo { justify-content: center; } nav { justify-content: center; } .nav-link { padding: 7px 12px; font-size: 12px; } .section { padding: 20px 16px; } .complaint-layout { grid-template-columns: 1fr; } .test-name-row { grid-template-columns: 1fr; } .result-stats { grid-template-columns: 1fr; } .hero { padding: 50px 20px; } }