* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.2em 0;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #f5f8fc;
    color: #1e2b45;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #ffffff;
    border-bottom: 1px solid #e9edf2;
    display: flex;
    align-items: center;
    padding: 0 32px;
    z-index: 200;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 280px;
}
.logo-area img {
    height: 68px;
    width: auto;
    display: block;
}
.logo-area span {
    font-weight: 600;
    font-size: 1.3rem;
    color: #1e3a6b;
    letter-spacing: -0.01em;
}
.nav-menu {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    list-style: none;
    margin-right: 20px;
}
.nav-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 40px;
    color: #4a5a72;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.2s;
}
.nav-menu a:hover {
    background: #f0f4fa;
    color: #2266cc;
}
.nav-menu a.active {
    background: #e6edfe;
    color: #2266cc;
    font-weight: 600;
}
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 1px solid #d0d8e5;
    border-radius: 8px;
    padding: 6px 16px;
    font-size: 1.3rem;
    cursor: pointer;
    color: #3e5570;
}
.side-fixed {
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    width: 280px;
    background: #ffffff;
    border-right: 1px solid #e9edf2;
    padding: 24px 20px;
    overflow-y: auto;
    z-index: 190;
    box-shadow: 2px 0 12px rgba(0,0,0,0.02);
}
.user-card {
    background: #f9fcff;
    border-radius: 24px;
    padding: 24px 20px;
    border: 1px solid #eef2f8;
}
.card-header {
    border-bottom: 1px solid #eef2f8;
    padding-bottom: 16px;
    margin-bottom: 18px;
}
.card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2c45;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.info-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
}
.info-label {
    color: #5f6e8c;
}
.info-value {
    font-weight: 600;
    background: #ffffff;
    padding: 4px 14px;
    border-radius: 30px;
    color: #1f3b64;
    border: 1px solid #e2eaf5;
}
.badge-ok { background: #e2f3e4; color: #1c7e4c; border-color: #b3e0c0; }
.badge-warn { background: #fff0db; color: #b55a0c; border-color: #ffd8a8; }
.badge-alert { background: #fee9e9; color: #b12e2e; border-color: #fbc1c1; }
.fixed-notice {
    position: fixed;
    top: 64px;
    left: 280px;
    right: 0;
    height: 70px;
    background: #ffffff;
    border-bottom: 1px solid #e9edf2;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 180;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.notice-left {
    display: flex;
    align-items: center;
    gap: 18px;
}
.badge-latest {
    background: #2266cc;
    color: white;
    padding: 5px 18px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.badge-latest img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}
.notice-link {
    color: #1f3a6b;
    text-decoration: none;
    font-weight: 500;
}
.notice-link:hover { color: #2266cc; }
.notice-time {
    color: #7289b0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.notice-time img {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}
.main-content {
    margin-left: 280px;
    margin-top: calc(64px + 70px);
    padding: 32px;
    min-height: calc(100vh - 64px - 70px);
    background: #f5f8fc;
}
.action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 40px;
    padding: 12px 24px;
    margin-bottom: 28px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.02);
    border: 1px solid #f0f4fe;
}
.action-title h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2c45;
}
.plan-chip {
    background: #f0f7ff;
    border-radius: 40px;
    padding: 5px 20px;
    font-size: 0.9rem;
    color: #2266cc;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-outline {
    background: transparent;
    border: 1.5px solid #dbe2ed;
    color: #b15454;
    padding: 7px 24px;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}
.btn-outline:hover {
    background: #fff4f4;
    border-color: #c89a9a;
}
.btn-outline:disabled {
    opacity: 0.4;
    pointer-events: none;
}
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}
.stat-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px 20px;
    box-shadow: 0 10px 25px -8px rgba(0,30,60,0.06);
    border: 1px solid #f0f4fe;
}
.stat-numbers h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2c45;
    line-height: 1.2;
    margin-bottom: 4px;
}
.stat-numbers p {
    color: #61799e;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.help-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-left: 6px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    display: inline-block;
}
.help-icon:hover {
    opacity: 1;
}
.help-tip {
    background: #e2e9f5;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #2a4170;
    cursor: help;
}
.panel {
    background: #ffffff;
    border-radius: 28px;
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: 0 15px 30px -12px rgba(0,30,60,0.06);
    border: 1px solid #f0f4fe;
}
.flex-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}
.input-group {
    flex: 1;
    min-width: 250px;
}
.input-field {
    width: 100%;
    padding: 14px 24px;
    border: 1.5px solid #e4ecf5;
    border-radius: 60px;
    font-size: 0.95rem;
    background: #ffffff;
    transition: 0.2s;
}
.input-field:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.input-field:disabled {
    background: #f5f9ff;
    border-color: #d6e2f0;
}
.btn-primary {
    background: #2266cc;
    border: none;
    color: white;
    padding: 0 32px;
    border-radius: 60px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    height: 52px;
    white-space: nowrap;
    box-shadow: 0 8px 18px -6px #2266cc80;
    transition: 0.2s;
}
.btn-primary:hover { background: #1a52a8; }
.btn-primary:disabled { opacity: 0.5; box-shadow: none; }
.btn-secondary {
    background: #f3f8ff;
    border: 1.5px solid #d3e0f0;
    color: #2a4570;
    padding: 0 28px;
    border-radius: 60px;
    font-weight: 500;
    height: 52px;
    cursor: pointer;
}
.btn-secondary:hover {
    background: #e5edff;
}
.hint {
    margin-top: 20px;
    color: #6780a6;
    font-size: 0.9rem;
}
.preview-area {
    background: #fafdff;
    border-radius: 28px;
    padding: 24px;
    margin: 20px 0;
    border: 1px solid #e4effc;
}
.preview-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
    color: #2f4870;
}
.url-list {
    background: #ffffff;
    border-radius: 20px;
    padding: 12px 0;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #edf2f9;
}
.url-item {
    padding: 12px 24px;
    border-bottom: 1px solid #f0f7ff;
    display: flex;
    align-items: center;
    gap: 10px;
}
.valid { color: #1e8b5e; }
.invalid { color: #c03d3d; }
.table-wrapper {
    background: #ffffff;
    border-radius: 28px;
    padding: 4px 0;
    overflow-x: auto;
    box-shadow: 0 15px 30px -12px rgba(0,30,60,0.06);
    border: 1px solid #f0f4fe;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 750px;
}
.data-table th {
    text-align: left;
    padding: 18px 24px;
    color: #526f9a;
    font-weight: 500;
    font-size: 0.9rem;
    border-bottom: 1px solid #edf3fc;
}
.data-table td {
    padding: 16px 24px;
    border-bottom: 1px solid #f6faff;
    color: #1c304f;
}
.url-link {
    color: #2266cc;
    text-decoration: none;
    border-bottom: 1px dashed #a9c5f0;
}
.url-link:hover { border-bottom: 1px solid #2266cc; }
.delete-btn {
    background: none;
    border: 1px solid #e5c1c1;
    color: #b15454;
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 0.85rem;
    cursor: pointer;
}
.delete-btn:hover {
    background: #fff2f2;
}

.pagination {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
    overflow: hidden;
    justify-content: center;
    gap: 8px;
    list-style: none; 
    padding-left: 0;  
}
.page-item {
    background: #ffffff;
    border: 1px solid #e5edf8;
    color: #3a5380;
    padding: 6px 14px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
}
.page-item.current {
    background: #2266cc;
    color: white;
    border-color: #2266cc;
}

.page-item.ellipsis {
    background: transparent;
    border: none;
    padding: 8px 8px;
    color: #9aa7b8;
    cursor: default;
}
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: none;
}
.modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 40px;
    padding: 32px;
    width: 520px;
    max-width: 90vw;
    box-shadow: 0 30px 60px -20px rgba(0,20,70,0.3);
    z-index: 1000;
    display: none;
}
.modal.show, .modal-overlay.show { display: block; }
.modal-header {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1a2f52;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.modal-header img {
    width: 28px;
    height: 28px;
}
.modal-body {
    color: #2f4870;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 24px 0 32px;
    background: #f3f9ff;
    padding: 24px;
    border-radius: 28px;
}
.close-modal {
    background: #f0f5fc;
    width: 100%;
    border: none;
    padding: 16px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    color: #1f3b64;
    transition: 0.2s;
}
.close-modal:hover {
    background: #e3ecf7;
}
.engine-modal .modal-header {
    font-size: 1.5rem;
}
.modal-url {
    background: #f3f8ff;
    border-radius: 60px;
    padding: 16px 24px;
    margin: 24px 0;
    word-break: break-all;
    color: #1f3a8a;
}
.engine-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 28px 0;
}
.engine-btn {
    background: #f3f8ff;
    border: none;
    padding: 16px 0;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}
.engine-btn:hover { background: #e5edff; }
footer {
    margin-left: 280px;
    padding: 24px 32px;
    text-align: center;
    color: #7a90b5;
    border-top: 1px solid #e9eef7;
    background: #f5f8fc;
}
.data-table td:first-child {
    max-width: 400px;
    word-break: break-word;
    overflow-wrap: break-word;
}
@media (max-width: 1000px) {
    .side-fixed { width: 240px; }
    .fixed-notice { left: 240px; }
    .main-content { margin-left: 240px; }
    .logo-area { width: 240px; }
}
@media (max-width: 700px) {
    .side-fixed { display: none; }
    .fixed-notice { left: 0; padding: 0 16px; }
    .main-content { margin-left: 0; }
    .logo-area { width: auto; }
    .nav-menu { display: none; }
    .mobile-menu-btn { display: block; }
    .nav-menu.active { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: white; padding: 20px; border-bottom: 1px solid #ddd; }
}