*{box-sizing:border-box;} body{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);min-height:100vh;padding:20px;color:#333;margin:0;} .main-container{max-width:1400px;margin:0 auto;} .search-box{background:#fff;border-radius:12px;padding:25px;margin-bottom:20px;box-shadow:0 4px 20px rgba(0,0,0,0.1);} .search-title{font-size:24px;font-weight:bold;color:#333;margin-bottom:20px;text-align:center;} .search-row{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;margin-bottom:15px;} .search-row:last-child{margin-bottom:0;} .form-group{display:flex;flex-direction:column;gap:4px;} .form-group label{font-size:13px;color:#666;} .form-group input,.form-group select{padding:8px 12px;border:1px solid #ddd;border-radius:6px;font-size:14px;outline:none;transition:border-color 0.3s;} .form-group input:focus,.form-group select:focus{border-color:#667eea;} .form-group.small{width:80px;} .form-group.medium{width:120px;} .form-group.large{flex:1;min-width:200px;} .keyword-wrapper{flex:1;min-width:250px;position:relative;} .keyword-wrapper input{width:100%;padding-right:30px;} .keyword-clear{position:absolute;right:10px;top:50%;transform:translateY(-50%);cursor:pointer;color:#999;font-size:16px;display:none;} .keyword-wrapper input:not(:placeholder-shown) + .keyword-clear{display:block;} .keyword-suggestions{position:absolute;top:100%;left:0;right:0;background:#fff;border:1px solid #ddd;border-radius:6px;box-shadow:0 4px 12px rgba(0,0,0,0.1);max-height:300px;overflow-y:auto;z-index:100;display:none;} .keyword-suggestions.show{display:block;} .suggestion-group{padding:8px 0;border-bottom:1px solid #eee;} .suggestion-group:last-child{border-bottom:none;} .suggestion-title{padding:4px 12px;font-size:12px;color:#999;background:#f9f9f9;} .suggestion-item{padding:8px 12px;cursor:pointer;transition:background 0.2s;} .suggestion-item:hover{background:#f0f5ff;} .suggestion-item .name{font-weight:500;} .suggestion-item .info{font-size:12px;color:#999;margin-top:2px;} .btn-search{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:#fff;border:none;padding:8px 25px;border-radius:6px;font-size:15px;cursor:pointer;transition:all 0.3s;height:38px;} .btn-search:hover{transform:translateY(-1px);box-shadow:0 4px 15px rgba(102,126,234,0.4);} .btn-reset{background:#f5f5f5;color:#666;border:1px solid #ddd;padding:8px 15px;border-radius:6px;font-size:14px;cursor:pointer;height:38px;} .btn-export{background:#52c41a;color:#fff;border:none;padding:6px 15px;border-radius:6px;font-size:13px;cursor:pointer;transition:all 0.3s;} .btn-export:hover{background:#389e0d;} .result-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px;} .sort-buttons{display:flex;gap:8px;} .btn-sort{background:#f5f5f5;color:#666;border:1px solid #ddd;padding:6px 14px;border-radius:6px;cursor:pointer;font-size:13px;transition:all 0.2s;} .btn-sort:hover{background:#e8e8e8;border-color:#ccc;} .btn-sort.active{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:#fff;border-color:transparent;} .btn-filter{background:#fff3cd;color:#856404;border:1px solid #ffc107;padding:6px 14px;border-radius:6px;cursor:pointer;font-size:13px;transition:all 0.2s;} .btn-filter:hover{background:#ffe69c;border-color:#ffb300;} .btn-filter.active{background:linear-gradient(135deg,#ff6b6b 0%,#ee5a5a 100%);color:#fff;border-color:transparent;} .major-table-wrapper{overflow-x:auto;} .major-result-table th{background:#f8f9fa;font-weight:600;color:#666;position:sticky;top:0;z-index:1;} .major-result-table{width:100%;border-collapse:collapse;font-size:13px;background:#fff;table-layout:fixed;} .major-result-table th,.major-result-table td{padding:10px 8px;text-align:center;border-bottom:1px solid #eee;} .major-result-table th:first-child,.major-result-table td:first-child,.major-result-table th:nth-child(2),.major-result-table td:nth-child(2){text-align:left;} .major-result-table th:nth-child(1),.major-result-table td:nth-child(1){width:18%;} .major-result-table th:nth-child(2),.major-result-table td:nth-child(2){width:22%;} .major-result-table th:nth-child(3),.major-result-table td:nth-child(3){width:7%;} .major-result-table th:nth-child(4),.major-result-table td:nth-child(4){width:8%;} .major-result-table th:nth-child(5),.major-result-table td:nth-child(5){width:7%;} .major-result-table th:nth-child(6),.major-result-table td:nth-child(6){width:7%;} .major-result-table th:nth-child(7),.major-result-table td:nth-child(7){width:7%;} .major-result-table th:nth-child(8),.major-result-table td:nth-child(8){width:12%;} .major-result-table th:nth-child(9),.major-result-table td:nth-child(9){width:12%;} .major-result-table tr:hover td{background:#f9f9f9;} .major-result-table .zy-cell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;} .filter-section{background:#f8f9fa;border-radius:8px;padding:15px;margin-top:15px;display:none;} .filter-section.show{display:block;} .filter-toggle{text-align:center;margin-top:10px;} .filter-toggle a{color:#667eea;text-decoration:none;font-size:13px;} .filter-row{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px;} .filter-row:last-child{margin-bottom:0;} .filter-label{width:70px;font-size:13px;color:#666;padding-top:6px;flex-shrink:0;} .filter-options{flex:1;display:flex;flex-wrap:wrap;gap:6px;} .filter-options a{padding:4px 10px;border-radius:12px;border:1px solid #ddd;background:#fff;color:#333;text-decoration:none;font-size:12px;transition:all 0.2s;} .filter-options a.active{background:#667eea;color:#fff;border-color:#667eea;} .tabs-box{background:#fff;border-radius:12px;margin-bottom:20px;overflow:hidden;box-shadow:0 4px 20px rgba(0,0,0,0.1);} .tabs-header{display:flex;border-bottom:1px solid #eee;} .tab-btn{flex:1;padding:12px;text-align:center;cursor:pointer;font-size:15px;color:#666;background:#fafafa;border:none;transition:all 0.3s;} .tab-btn.active{background:#fff;color:#667eea;font-weight:bold;border-bottom:2px solid #667eea;} .tab-content{display:none;padding:15px;} .tab-content.active{display:block;} .result-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;} .result-count{font-size:13px;color:#666;} .result-count span{color:#667eea;font-weight:bold;} .university-card,.major-card{background:#fff;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,0.05);padding:18px 20px;margin-bottom:12px;display:flex;align-items:center;gap:20px;transition:all 0.3s;border-left:4px solid #667eea;cursor:pointer;} .university-card:hover,.major-card:hover{transform:translateY(-2px);box-shadow:0 4px 15px rgba(0,0,0,0.1);} .card-left{flex-shrink:0;} .card-center{flex:1;min-width:0;} .card-right{flex-shrink:0;} .university-name{margin:0 0 6px 0;font-size:16px;font-weight:bold;color:#333;} .logo{width:60px;height:60px;border-radius:8px;object-fit:cover;background:#f5f5f5;flex-shrink:0;} .tags{margin:4px 0;font-size:11px;} .tags .tag{display:inline-block;background:#f0f5ff;color:#667eea;padding:1px 5px;border-radius:3px;margin-right:3px;} .location{color:#999;font-size:12px;} .feature-tags{margin:6px 0;line-height:1.8;} .feature-tag{display:inline-block;background:#f0f5ff;color:#667eea;padding:2px 8px;border-radius:3px;margin-right:5px;margin-bottom:3px;font-size:12px;} .location-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:4px;} .location-text{color:#666;font-size:12px;} .ranking-badge{color:#fff;padding:2px 10px;border-radius:12px;font-size:12px;} .ranking-info{margin-top:4px;font-size:12px;} .ranking-label{color:#999;} .ranking-value{color:#667eea;font-weight:500;} .stat-row{display:flex;gap:25px;} .stat-row .stat-item{display:flex;flex-direction:column;align-items:center;padding:8px 15px;background:#f8f9fa;border-radius:6px;min-width:80px;} .stat-row .stat-item .label{font-size:12px;color:#999;margin-bottom:4px;} .stat-row .stat-item .value{font-size:18px;font-weight:bold;color:#667eea;} .major-name{font-size:14px;font-weight:bold;color:#333;margin-bottom:5px;} .major-stats{display:flex;flex-wrap:wrap;gap:15px;font-size:12px;color:#666;} .pagination{text-align:center;padding:15px;} .pagination button{padding:6px 15px;margin:0 3px;border:1px solid #ddd;background:#fff;border-radius:4px;cursor:pointer;font-size:13px;} .pagination button:hover:not(:disabled){border-color:#667eea;color:#667eea;} .pagination button:disabled{opacity:0.5;cursor:not-allowed;} .pagination .page-info{margin:0 10px;color:#666;font-size:13px;} .modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.5);z-index:1000;display:none;overflow-y:auto;padding:20px;} .modal-overlay.show{display:flex;justify-content:center;align-items:flex-start;} .modal-content{background:#fff;border-radius:12px;max-width:900px;width:100%;max-height:90vh;overflow:hidden;position:relative;margin:20px 0;display:flex;flex-direction:column;} .modal-scroll{flex:1;overflow-y:auto;overflow-x:hidden;} .modal-scroll::-webkit-scrollbar{width:8px;} .modal-scroll::-webkit-scrollbar-track{background:#f1f1f1;border-radius:4px;} .modal-scroll::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:4px;} .modal-scroll::-webkit-scrollbar-thumb:hover{background:#a1a1a1;} .modal-close{position:absolute;top:15px;right:15px;width:30px;height:30px;border:none;background:#f5f5f5;border-radius:50%;cursor:pointer;font-size:18px;color:#666;z-index:10;} .modal-close:hover{background:#e8e8e8;} .detail-header{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);padding:30px;color:#fff;display:flex;gap:20px;align-items:flex-start;} .detail-logo{width:80px;height:80px;border-radius:8px;background:#fff;object-fit:cover;} .detail-info h2{margin:0 0 10px 0;font-size:22px;} .detail-info .tags{margin-bottom:8px;} .detail-info .tags .tag{background:rgba(255,255,255,0.2);color:#fff;} .detail-info .meta{font-size:14px;opacity:0.9;} .detail-info .meta-row{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;} .detail-info .yg-link{font-size:13px;color:rgba(255,255,255,0.9);text-decoration:none;padding:4px 12px;background:rgba(255,255,255,0.2);border-radius:4px;transition:all 0.2s;white-space:nowrap;} .detail-info .yg-link:hover{background:rgba(255,255,255,0.3);color:#fff;} .detail-body{padding:20px;} .detail-section{margin-bottom:25px;} .detail-section h3{font-size:16px;color:#333;margin:0 0 15px 0;padding-bottom:10px;border-bottom:2px solid #667eea;display:inline-block;} .year-tabs{display:flex;gap:10px;margin-bottom:15px;} .year-tab{padding:6px 15px;border:1px solid #ddd;border-radius:20px;background:#fff;cursor:pointer;font-size:13px;transition:all 0.2s;} .year-tab.active{background:#667eea;color:#fff;border-color:#667eea;} .stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:15px;} .stat-card{background:#f8f9fa;padding:15px;border-radius:8px;text-align:center;} .stat-card .value{font-size:20px;font-weight:bold;color:#667eea;} .stat-card .label{font-size:12px;color:#999;margin-top:5px;} .major-table{width:100%;border-collapse:collapse;font-size:13px;table-layout:fixed;} .major-table th,.major-table td{padding:10px 8px;text-align:center;border-bottom:1px solid #eee;} .major-table th:first-child,.major-table td:first-child{text-align:left;} .major-table th{background:#f8f9fa;font-weight:600;color:#666;position:sticky;top:0;} .major-table th:nth-child(1),.major-table td:nth-child(1){width:40%;} .major-table th:nth-child(2),.major-table td:nth-child(2){width:10%;} .major-table th:nth-child(3),.major-table td:nth-child(3){width:10%;} .major-table th:nth-child(4),.major-table td:nth-child(4){width:10%;} .major-table th:nth-child(5),.major-table td:nth-child(5){width:10%;} .major-table th:nth-child(6),.major-table td:nth-child(6){width:10%;} .major-table tr:hover td{background:#f9f9f9;} .major-table .zy-name{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;} .zyz-section{margin-top:20px;} .zyz-item{background:#f8f9fa;border-radius:8px;padding:15px;margin-bottom:10px;} .zyz-item h4{margin:0 0 10px 0;font-size:14px;color:#333;} .zyz-item .zyz-majors{display:flex;flex-wrap:wrap;gap:8px;} .zyz-item .zyz-major{background:#fff;padding:4px 10px;border-radius:4px;font-size:12px;border:1px solid #ddd;} .zyz-block{background:#f8f9fa;border-radius:8px;margin-bottom:15px;overflow:hidden;} .zyz-header{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:#fff;padding:12px 15px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;} .zyz-header .zyz-name{font-weight:bold;font-size:14px;} .zyz-header .zyz-stats{display:flex;gap:15px;} .zyz-stat-item{display:flex;flex-direction:column;align-items:center;min-width:55px;} .zyz-stat-item label{font-size:11px;opacity:0.8;} .zyz-stat-item value{font-size:14px;font-weight:bold;} .zyz-block .major-table{margin:0;} .empty-state{text-align:center;padding:40px;color:#999;} .loading-state{text-align:center;padding:40px;color:#667eea;display:flex;flex-direction:column;align-items:center;gap:15px;} .loading-spinner{width:40px;height:40px;border:3px solid #f3f3f3;border-top:3px solid #667eea;border-radius:50%;animation:spin 1s linear infinite;} @keyframes spin{0%{transform:rotate(0deg);} 100%{transform:rotate(360deg);}} .back-to-top{position:fixed;bottom:30px;right:30px;width:45px;height:45px;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:20px;box-shadow:0 4px 15px rgba(102,126,234,0.4);z-index:999;transition:all 0.3s;opacity:0;visibility:hidden;} .back-to-top.show{opacity:1;visibility:visible;} .back-to-top:hover{transform:translateY(-3px);box-shadow:0 6px 20px rgba(102,126,234,0.5);} .user-bar{position:fixed;top:0;right:0;z-index:1000;padding:10px 20px;display:flex;align-items:center;gap:15px;background:linear-gradient(135deg,rgba(102,126,234,0.95) 0%,rgba(118,75,162,0.95) 100%);border-radius:0 0 0 20px;box-shadow:0 4px 15px rgba(0,0,0,0.2);} .user-bar .user-info{display:flex;align-items:center;gap:10px;color:#fff;font-size:14px;} .user-bar .user-avatar{width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,0.3);display:flex;align-items:center;justify-content:center;font-size:16px;} .user-bar .user-name{font-weight:500;} .user-bar .btn-logout{padding:6px 16px;background:rgba(255,255,255,0.2);border:1px solid rgba(255,255,255,0.4);border-radius:20px;color:#fff;font-size:13px;cursor:pointer;transition:all 0.3s;text-decoration:none;} .user-bar .btn-logout:hover{background:rgba(255,255,255,0.3);border-color:rgba(255,255,255,0.6);} .user-bar .btn-login{padding:6px 20px;background:#fff;border:none;border-radius:20px;color:#667eea;font-size:13px;font-weight:600;cursor:pointer;transition:all 0.3s;text-decoration:none;} .user-bar .btn-login:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,0.2);} .user-bar.guest{background:linear-gradient(135deg,rgba(102,126,234,0.9) 0%,rgba(118,75,162,0.9) 100%);} .trend-content{margin-top:20px;} .trend-section{margin-bottom:30px;} .trend-section h4{margin:0 0 15px 0;font-size:16px;font-weight:600;} .major-list{display:flex;flex-direction:column;gap:10px;} .major-item{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;border-radius:8px;background:white;box-shadow:0 2px 8px rgba(0,0,0,0.1);transition:all 0.3s ease;} .major-item:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,0.15);} .major-item.new-major{border-left:4px solid #27ae60;background:rgba(39,174,96,0.05);} .major-item.removed-major{border-left:4px solid #e74c3c;background:rgba(231,76,60,0.05);} .major-item.existing-major{border-left:4px solid #3498db;background:rgba(52,152,219,0.05);} .major-name{flex:1;font-weight:500;font-size:14px;color:#333;max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;} .major-stats{display:flex;gap:20px;align-items:center;} .major-stats .stat{font-size:13px;color:#666;white-space:nowrap;} .major-changes{display:flex;gap:25px;align-items:center;} .change-item{display:flex;flex-direction:column;align-items:center;min-width:80px;} .change-item .label{font-size:12px;color:#999;margin-bottom:4px;} .change-item .change{font-size:14px;font-weight:600;} .change.increase{color:#27ae60;} .change.decrease{color:#e74c3c;} .change.no-change{color:#95a5a6;} .year-values{display:flex;align-items:center;gap:8px;font-weight:600;} .year-value{min-width:40px;text-align:center;font-size:13px;color:#333;} .arrow{font-size:12px;font-weight:bold;margin:0 2px;} .arrow.increase{color:#27ae60;} .arrow.decrease{color:#e74c3c;} .arrow.no-change{color:#95a5a6;} .trend-button{transition:all 0.3s;} .trend-button:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(102,126,234,0.4);} .trend-table-wrap{overflow-x:auto;margin:10px 0;} .trend-table{width:100%;border-collapse:collapse;font-size:13px;} .trend-table th{background:#f8f9fa;color:#666;font-weight:500;padding:10px 12px;text-align:center;border-bottom:2px solid #eee;white-space:nowrap;} .trend-table td{padding:10px 12px;text-align:center;border-bottom:1px solid #f0f0f0;color:#555;} .trend-table tbody tr:hover td{background:#fafbfc;} .trend-table .value-up{color:#27ae60;font-weight:600;} .trend-table .value-down{color:#e74c3c;font-weight:600;} .trend-table .value-flat{color:#95a5a6;} .trend-table .td-name{text-align:left;font-weight:500;color:#333;white-space:nowrap;} .trend-table .td-year{font-weight:500;color:#333;} .trend-arrow{font-size:11px;margin-left:2px;} .major-item.existing-major{padding:12px 16px;} .badge{display:inline-block;} .profile-modal{max-width:450px;padding:0;margin:0 !important;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);} .profile-modal .modal-title{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:#fff;margin:0;padding:20px 25px;font-size:18px;font-weight:600;} .profile-form{padding:20px 25px;} .profile-form .profile-field{margin-bottom:15px;} .profile-form .profile-field label{display:block;font-size:14px;color:#333;font-weight:500;margin-bottom:6px;} .profile-form .profile-field input{width:100%;padding:10px 14px;border:1px solid #ddd;border-radius:6px;font-size:14px;outline:none;transition:border-color 0.3s;box-sizing:border-box;} .profile-form .profile-field input:focus{border-color:#667eea;} .profile-form .profile-field input[readonly]{background:#f8f9fa;color:#999;} .profile-form .profile-actions{display:flex;gap:10px;margin-top:25px;} .profile-form .btn-cancel,.profile-form .btn-submit{flex:1;padding:10px;border:none;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:all 0.3s;} .profile-form .btn-cancel{background:#f5f5f5;color:#666;} .profile-form .btn-cancel:hover{background:#eee;} .profile-form .btn-submit{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:#fff;} .profile-form .btn-submit:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(102,126,234,0.4);} .profile-form .profile-message{margin-top:15px;padding:10px 14px;border-radius:6px;text-align:center;font-size:14px;} .user-bar .btn-profile{padding:6px 10px;background:rgba(255,255,255,0.2);border:1px solid rgba(255,255,255,0.4);border-radius:50%;color:#fff;font-size:14px;cursor:pointer;transition:all 0.3s;text-decoration:none;} .user-bar .btn-profile:hover{background:rgba(255,255,255,0.3);border-color:rgba(255,255,255,0.6);} .disclaimer{display:flex;align-items:center;gap:14px;margin-top:24px;padding:20px 24px;background:linear-gradient(135deg,#fffaf0 0%,#fff5e6 100%);border-radius:16px;box-shadow:0 2px 12px rgba(243,156,18,0.15);border:1px solid rgba(243,156,18,0.2);min-height:60px;} .disclaimer-icon{width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#f39c12 0%,#e67e22 100%);border-radius:50%;font-size:14px;flex-shrink:0;box-shadow:0 3px 8px rgba(243,156,18,0.3);flex-shrink:0;} .disclaimer-content{font-size:14px;color:#5d4e37;line-height:1.5;padding-top:0;margin-top:0;flex:1;} .disclaimer-content strong{color:#e67e22;font-weight:600;}