@charset "utf-8";

/* ============================================================
   CSS Variables - Design System
   ============================================================ */
:root {
    --bg-primary:    #0f0f13;
    --bg-secondary:  #16161d;
    --bg-card:       #1c1c26;
    --bg-card-hover: #22222e;
    --bg-input:      #13131a;
    --border:        rgba(255,255,255,0.08);
    --border-focus:  #3b82f6;
    --accent:        #3b82f6;
    --accent-hover:  #2563eb;
    --accent-dim:    rgba(59,130,246,0.15);
    --success:       #22c55e;
    --success-dim:   rgba(34,197,94,0.12);
    --warn-color:    #f59e0b;
    --danger:        #ef4444;
    --danger-dim:    rgba(239,68,68,0.12);
    --text-primary:  #f1f1f3;
    --text-secondary:#9ca3af;
    --text-muted:    #6b7280;
    --nav-height:    52px;
    --radius-card:   12px;
    --radius-btn:    8px;
    --radius-input:  8px;
    --shadow-sm:     0 1px 3px rgba(0,0,0,0.4);
    --shadow-md:     0 4px 16px rgba(0,0,0,0.5);
    --shadow-lg:     0 8px 32px rgba(0,0,0,0.6);
    --transition:    0.2s ease;
}

/* ============================================================
   Light Theme Variables
   ============================================================ */
[data-theme="light"] {
    --bg-primary:    #f4f5f9;
    --bg-secondary:  #eceef5;
    --bg-card:       #ffffff;
    --bg-card-hover: #f0f2f8;
    --bg-input:      #f8f9fc;
    --border:        rgba(0,0,0,0.10);
    --border-focus:  #3b82f6;
    --accent:        #2563eb;
    --accent-hover:  #1d4ed8;
    --accent-dim:    rgba(37,99,235,0.12);
    --success:       #16a34a;
    --success-dim:   rgba(22,163,74,0.12);
    --warn-color:    #d97706;
    --danger:        #dc2626;
    --danger-dim:    rgba(220,38,38,0.10);
    --text-primary:  #111827;
    --text-secondary:#4b5563;
    --text-muted:    #9ca3af;
    --shadow-sm:     0 1px 3px rgba(0,0,0,0.08);
    --shadow-md:     0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg:     0 8px 32px rgba(0,0,0,0.14);
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background-color: var(--bg-primary);
    background-image: radial-gradient(ellipse at 20% 0%, rgba(59,130,246,0.07) 0%, transparent 55%),
                      radial-gradient(ellipse at 80% 100%, rgba(139,92,246,0.05) 0%, transparent 55%);
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

li { list-style: none; }
a  { text-decoration: none; color: var(--accent); }
a:hover { color: var(--accent-hover); }

address, caption, cite, code, dfn, em, strong, th, var {
    font-style: normal;
    font-weight: normal;
}

input, textarea, select {
    color: inherit;
    font: inherit;
    font-size: 1em;
}

/* ============================================================
   Navigation Header
   ============================================================ */
.header {
    position: relative;
    width: 100%;
    height: var(--nav-height);
    z-index: 9999;
}

.header .top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: var(--nav-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0 20px;
    background: rgba(15,15,19,0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 20px rgba(0,0,0,0.4);
    box-sizing: border-box;
}

/* Logo */
.header .nav-logo {
    flex-shrink: 0;
    font-size: 1.25em;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.header .nav-logo span {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nav links */
.header .nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    padding-left: 24px;
}

.header .nav-links li {
    float: none;
    display: inline-block;
    line-height: 1;
}

.header .nav-links li a {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    color: var(--text-secondary);
    font-size: 0.9em;
    font-weight: 500;
    border-radius: 6px;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}

.header .nav-links li a:hover,
.header .nav-links li a.cur {
    color: var(--text-primary);
    background: rgba(255,255,255,0.08);
}

.header .nav-links li a.cur {
    color: var(--accent);
    background: var(--accent-dim);
}

/* Hamburger toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: background var(--transition);
    flex-shrink: 0;
}

.nav-toggle:hover {
    background: rgba(255,255,255,0.08);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
    transform-origin: center;
}

/* Hamburger open state */
.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
    width: 0;
}
.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   Theme Switcher Button
   ============================================================ */
.theme-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-right: 6px;
    flex-shrink: 0;
}
.ts-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 6px;
    color: var(--text-muted);
    transition: background var(--transition), color var(--transition);
    padding: 0;
}
.ts-btn svg { pointer-events: none; }
.ts-btn:hover {
    background: rgba(255,255,255,0.10);
    color: var(--text-primary);
}
.ts-btn.active {
    background: rgba(255,255,255,0.12);
    color: var(--accent);
}
[data-theme="light"] .ts-btn:hover {
    background: rgba(0,0,0,0.07);
    color: var(--text-primary);
}
[data-theme="light"] .ts-btn.active {
    background: rgba(37,99,235,0.10);
    color: var(--accent);
}

/* ============================================================
   Light Theme - Component Overrides
   ============================================================ */
/* 导航栏 */
[data-theme="light"] .header .top {
    background: rgba(255,255,255,0.88);
    border-bottom-color: rgba(0,0,0,0.10);
    box-shadow: 0 1px 12px rgba(0,0,0,0.10);
}
[data-theme="light"] .header .nav-logo {
    color: var(--text-primary);
}
[data-theme="light"] .header .nav-links li a {
    color: var(--text-secondary);
}
[data-theme="light"] .header .nav-links li a:hover {
    background: rgba(0,0,0,0.05);
    color: var(--text-primary);
}
[data-theme="light"] .header .nav-links li a.cur {
    background: var(--accent-dim);
    color: var(--accent);
}
[data-theme="light"] .nav-toggle span {
    background: var(--text-secondary);
}
/* 移动端菜单背景 */
[data-theme="light"] .header .nav-links {
    background: rgba(255,255,255,0.97);
}
/* body 背景渐变 */
[data-theme="light"] body {
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(59,130,246,0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 100%, rgba(139,92,246,0.04) 0%, transparent 55%);
}
/* 表格 */
[data-theme="light"] .table-box thead th {
    background: var(--bg-secondary);
}
[data-theme="light"] .table-box tbody tr:hover td {
    background: var(--bg-card-hover);
}

/* ============================================================
   Footer
   ============================================================ */
.footer-wrap {
    margin-top: 60px;
    padding: 28px 20px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-wrap p,
.footer-wrap a {
    color: var(--text-muted);
    font-size: 0.85em;
}

.footer-wrap a:hover {
    color: var(--text-secondary);
}

/* ============================================================
   Main Layout
   ============================================================ */
.main {
    position: relative;
    width: 100%;
    min-height: calc(100vh - var(--nav-height));
    padding-top: 20px;
    padding-bottom: 40px;
    overflow-x: clip; /* 裁前内容区横向溢出，不创建滚动容器，不破坏 sticky */
}

.box {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Page title */
.title {
    display: block;
    margin: 36px auto 28px;
    text-align: center;
}

.title h1 {
    font-size: 1.9em;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.2;
}

.title h1::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #8b5cf6);
    border-radius: 2px;
    margin: 10px auto 0;
}

/* ============================================================
   Card / Panel
   ============================================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

/* ============================================================
   Search Box (.so)
   ============================================================ */
.so {
    position: relative;
    width: 100%;
    max-width: 680px;
    margin: 0 auto 24px;
    padding: 0;
}

.so form {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: border-color var(--transition), box-shadow var(--transition);
    min-height: 52px;
    margin: 0;
}

.so form:focus-within {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-dim), var(--shadow-md);
}

.so .input-text {
    flex: 1;
    width: auto;
    height: 52px;
    padding: 0 16px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1.05em;
    line-height: 52px;
}

.so .input-text::placeholder {
    color: var(--text-muted);
}

.so .input-button {
    position: static;
    flex-shrink: 0;
    width: auto;
    min-width: 88px;
    height: 52px;
    padding: 0 20px;
    background: var(--accent);
    border: none;
    border-radius: 0;
    color: #fff;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
    float: none;
    line-height: 52px;
    white-space: nowrap;
}

.so .input-button:hover {
    background: var(--accent-hover);
}

.so .input-button:active {
    background: #1d4ed8;
}

/* ============================================================
   一键清除输入框公共组件
   ============================================================ */
/* 包裹层：position relative容纳清除按鈕 */
.input-clearable {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}
.input-clearable > input,
.input-clearable > textarea {
    flex: 1;
    width: 100%;
    padding-right: 36px !important; /* 给清除按鈕留出空间 */
}
/* 清除按鈕本体 */
.input-clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: none; /* 初始隐藏，有内容时才显示 */
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: background var(--transition), color var(--transition);
    flex-shrink: 0;
    z-index: 1;
}
.input-clear-btn:hover {
    background: rgba(255,255,255,0.15);
    color: var(--text-secondary);
}

/* IP 页搜索框特化：.so 内 .input-clearable 充满宽u */
.so .input-clearable {
    flex: 1;
}
.so .input-clearable .input-clear-btn {
    right: 10px;
}

/* IP result list */
.so .list {
    display: block;
    margin-top: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
}

.so .list li {
    display: flex;
    align-items: center;
    font-size: 1em;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    line-height: 1.5;
}

.so .list li:last-child {
    border-bottom: none;
}

.so .list li strong {
    color: var(--accent);
    min-width: 80px;
    flex-shrink: 0;
    font-weight: 500;
}

.so .list li b {
    font-size: 1.05em;
    font-weight: 500;
    color: var(--text-primary);
}

.so .list li.center {
    justify-content: center;
}

/* ============================================================
   Table
   ============================================================ */
table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    background: var(--bg-card);
}

thead {
    display: table-header-group;
    vertical-align: middle;
}

tr {
    display: table-row;
    vertical-align: inherit;
    transition: background var(--transition);
}

th, td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    line-height: 1.6;
    text-align: left;
}

th {
    background: rgba(255,255,255,0.04);
    font-size: 0.85em;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
}

tbody tr:hover {
    background: var(--bg-card-hover);
}

tbody tr:last-child td {
    border-bottom: none;
}

.table-box {
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.table-box thead th {
    background: rgba(255,255,255,0.04);
}

/* Column widths */
.w50  { width: 60px;  text-align: center; }
.w60  { width: 70px;  text-align: center; }
.w70  { width: 80px;  text-align: center; }
.w80  { width: 100px; text-align: center; }
.w90  { width: 110px; text-align: center; }
.w100 { width: 120px; text-align: center; }

/* HTTP status row colors - modern dark variants */
.st1xx { background: rgba(251,191,36,0.06) !important; }
.st1xx:hover { background: rgba(251,191,36,0.1) !important; }
.st1xx .w50 { color: #fbbf24; font-weight: 700; }

.st2xx { background: rgba(34,197,94,0.06) !important; }
.st2xx:hover { background: rgba(34,197,94,0.1) !important; }
.st2xx .w50 { color: #22c55e; font-weight: 700; }

.st3xx { background: rgba(59,130,246,0.06) !important; }
.st3xx:hover { background: rgba(59,130,246,0.1) !important; }
.st3xx .w50 { color: #60a5fa; font-weight: 700; }

.st4xx { background: rgba(239,68,68,0.06) !important; }
.st4xx:hover { background: rgba(239,68,68,0.1) !important; }
.st4xx .w50 { color: #f87171; font-weight: 700; }

.st5xx { background: rgba(139,92,246,0.06) !important; }
.st5xx:hover { background: rgba(139,92,246,0.1) !important; }
.st5xx .w50 { color: #a78bfa; font-weight: 700; }

/* ============================================================
   Buttons
   ============================================================ */
.btn, .btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-btn);
    white-space: nowrap;
    padding: 8px 16px;
    font-size: 0.9em;
    line-height: 1;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
    color: var(--text-secondary);
    vertical-align: middle;
    -webkit-user-select: none;
    user-select: none;
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.82em;
    border-radius: 6px;
}

.btn-default {
    color: var(--text-secondary);
    background: rgba(255,255,255,0.05);
    border-color: var(--border);
}

.btn-default:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.15);
    color: var(--text-primary);
}

.btn-primary {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
}

.btn-success {
    color: #fff;
    background: #16a34a;
    border-color: #16a34a;
}

.btn-success:hover {
    background: #15803d;
    border-color: #15803d;
    color: #fff;
}

/* ============================================================
   Form Controls
   ============================================================ */
.form-horizontal .form-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.control-label {
    font-size: 0.9em;
    color: var(--text-secondary);
    min-width: 80px;
    flex-shrink: 0;
    font-weight: 500;
}

.form-control {
    height: 40px;
    padding: 0 12px;
    font-size: 0.92em;
    line-height: 40px;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-input);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    box-shadow: none;
}

.form-control:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

select.form-control option {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* ============================================================
   Translate Page
   ============================================================ */
.translate {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 0 auto 24px;
    padding: 0 16px;
}

.translate .lang-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.translate .lang-source {
    padding: 6px 14px;
    background: var(--accent-dim);
    border: 1px solid var(--accent);
    border-radius: 6px;
    color: var(--accent);
    font-size: 0.88em;
    font-weight: 600;
}

.translate label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 0;
    flex-wrap: wrap;
}

.translate label i {
    font-size: 1.1em;
    color: var(--text-muted);
    flex-shrink: 0;
}

.translate label .btn {
    background: var(--accent-dim);
    border: 1px solid rgba(59,130,246,0.3);
    color: var(--accent);
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.88em;
}

.translate label select.btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 6px 28px 6px 12px;
    border-radius: 6px;
    font-size: 0.88em;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
}

.translate .input-textarea {
    width: 100%;
    min-height: 130px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    color: var(--text-primary);
    font-size: 1.05em;
    line-height: 1.6;
    outline: none;
    resize: vertical;
    transition: border-color var(--transition), box-shadow var(--transition);
    margin-bottom: 12px;
    word-break: break-word;
    overflow-y: auto;
}

.translate .input-textarea::placeholder {
    color: var(--text-muted);
}

.translate .input-textarea:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.translate .result {
    width: 100%;
    min-height: 80px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    color: var(--text-primary);
    font-size: 1.05em;
    line-height: 1.6;
    display: none;
}

.translate .loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("../images/loading.gif");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

/* ============================================================
   Tips / Info block
   ============================================================ */
.tips {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 16px 20px;
}

.tips ul {
    display: block;
    margin: 0;
    padding: 0;
}

.tips ul li {
    padding: 4px 0;
    color: var(--text-secondary);
    font-size: 0.9em;
    line-height: 1.6;
}

.tips code {
    display: inline-block;
    padding: 2px 8px;
    background: var(--accent-dim);
    border-radius: 4px;
    color: var(--accent);
    font-family: "SF Mono", "Fira Code", monospace;
    font-size: 0.95em;
}

/* ============================================================
   Row helpers
   ============================================================ */
.row {
    padding: 0 16px;
}

.row .tips {
    margin-top: 20px;
}

.clearfix::after {
    content: "";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.center { text-align: center; }
.left   { float: left; }
.right  { float: right; }

.warn {
    color: var(--warn-color);
    font-size: 0.88em;
}

/* ============================================================
   Map container
   ============================================================ */
#mapContainer {
    max-width: 680px;
    width: 100%;
    height: 420px;
    margin: 0 auto 40px;
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid var(--border);
}

/* ============================================================
   Utility
   ============================================================ */
.flex {
    display: flex;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.78em;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* ============================================================
   Responsive - 768px
   ============================================================ */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .header .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        z-index: 9998;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        padding: 12px 16px 20px;
        background: rgba(15,15,19,0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        transform: translateY(-110%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .header .nav-links.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .header .nav-links li {
        width: 100%;
    }

    .header .nav-links li a {
        width: 100%;
        height: 44px;
        padding: 0 14px;
        font-size: 0.95em;
        border-radius: 8px;
    }

    .title h1 {
        font-size: 1.5em;
    }

    .box {
        padding: 0 16px;
    }

    .so {
        padding: 0;
    }

    .so form {
        margin: 0;
    }

    .so .list {
        margin-left: 0;
        margin-right: 0;
    }

    .table-box {
        overflow-x: auto;
    }

    .form-horizontal .form-group {
        flex-wrap: wrap;
    }

    .control-label {
        min-width: auto;
        width: 100%;
        margin-bottom: 4px;
    }

    #mapContainer {
        height: 320px;
    }
}

/* ============================================================
   Responsive - 480px
   ============================================================ */
@media (max-width: 480px) {
    :root {
        --nav-height: 48px;
    }

    body {
        font-size: 13px;
    }

    .title h1 {
        font-size: 1.3em;
    }

    .title {
        margin: 24px auto 20px;
    }

    .so .input-text {
        font-size: 0.95em;
        padding: 0 12px;
    }

    .so .input-button {
        min-width: 72px;
        font-size: 0.88em;
        padding: 0 14px;
    }

    .translate .input-textarea {
        font-size: 0.95em;
        min-height: 100px;
    }

    #mapContainer {
        height: 260px;
    }

    .table-box {
        font-size: 0.85em;
    }

    th, td {
        padding: 10px 12px;
    }
}

/* ============================================================
   Responsive - 360px
   ============================================================ */
@media (max-width: 360px) {
    body {
        font-size: 12px;
    }

    .header .top {
        padding: 0 12px;
    }

    .header .nav-logo {
        font-size: 1.1em;
    }

    .box {
        padding: 0 10px;
    }

    #mapContainer {
        height: 220px;
    }
}
