/* main.css */
body {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #fff;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    min-height: 100vh;
    font-size: 14px;
}
.welcome-container {
    background: rgba(255, 255, 255, 0.98);
    padding: 28px 20px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(102,166,255,0.10), 0 1.5px 8px rgba(0,0,0,0.06);
    text-align: center;
    animation: fadeInUp 1s cubic-bezier(.39,.575,.565,1) both;
    transition: box-shadow 0.3s;
}
.welcome-container:hover {
    box-shadow: 0 16px 48px rgba(102,166,255,0.18), 0 3px 16px rgba(0,0,0,0.10);
}
#greeting {
    margin-bottom: 10px;
    font-size: 12px;
    color: #4e8edb;
    font-weight: bold;
    animation: fadeIn 1.3s;
}
#time {
    margin-bottom: 10px;
    font-size: 12px;
    color: #555;
    font-weight: bold;
    letter-spacing: 1px;
    animation: fadeIn 1.5s cubic-bezier(.39,.575,.565,1) both;
}
#time-label, #time-value {
    font-size: 12px;
}
.btn-row {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 10px;
}
.main-btn {
    width: 110px;
    display: inline-block;
    margin: 0;
    padding: 8px 0;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(102,166,255,0.10);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    animation: fadeIn 1.8s cubic-bezier(.39,.575,.565,1) both;
}
.main-btn:hover {
    background: linear-gradient(90deg, #4e8edb 0%, #66a6ff 100%);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 24px rgba(102,166,255,0.18);
}
.contact-btn {
    background: linear-gradient(90deg, #ffb86c 0%, #ff6a6a 100%);
    color: #fff;
}
.contact-btn:hover {
    background: linear-gradient(90deg, #ff9a44 0%, #ff6a6a 100%);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 24px rgba(255,186,108,0.18);
}
.spinner {
    width: 48px;
    height: 48px;
    border: 6px solid #e0e0e0;
    border-top: 6px solid #66a6ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    left: 0; top: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.18);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}
.modal-content {
    background: #fff;
    border-radius: 16px;
    width: 270px;
    max-width: 98vw;
    box-shadow: 0 8px 32px rgba(102,166,255,0.18);
    padding: 0 0 12px 0;
    animation: fadeInUp 0.5s;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 0 16px;
}
.modal-title {
    font-size: 16px;
    font-weight: bold;
    color: #222;
}
.modal-close {
    font-size: 22px;
    color: #888;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.2s;
}
.modal-close:hover {
    color: #ff6a6a;
}
.modal-body {
    padding: 8px 8px 0 8px;
}
.contact-item {
    display: flex;
    align-items: center;
    background: #f7fafd;
    border-radius: 10px;
    padding: 8px 8px;
    margin-bottom: 10px;
}
.icon-svg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 8px;
    border-radius: 50%;
    background: none;
}
.icon.email {
    background: #ffa726;
}
.icon.email::before {
    content: '\2709';
    color: #fff;
    font-size: 20px;
}
.icon.telegram {
    background: #42a5f5;
}
.icon.telegram::before {
    content: '\1F4AC';
    color: #fff;
    font-size: 20px;
}
.icon.qq {
    background: #50a0e3;
}
.icon.qq::before {
    content: '\1F5E3';
    color: #fff;
    font-size: 20px;
}
.icon.wechat {
    background: #43d27a;
}
.icon.wechat::before {
    content: '\1F4AC';
    color: #fff;
    font-size: 20px;
}
.icon.time {
    background: #43a047;
}
.icon.time::before {
    content: '\23F0';
    color: #fff;
    font-size: 20px;
}
.contact-label {
    font-weight: bold;
    color: #222;
    font-size: 13px;
}
.contact-link {
    color: #2196f3;
    font-size: 13px;
    text-decoration: none;
    word-break: break-all;
}
.modal-close-btn {
    width: 90%;
    margin: 8px auto 0 auto;
    display: block;
    padding: 7px 0;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #66a6ff 0%, #89f7fe 100%);
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.modal-close-btn:hover {
    background: linear-gradient(90deg, #4e8edb 0%, #66a6ff 100%);
}
@media (max-width: 400px) {
    .modal-content { width: 98vw; }
    .welcome-container { padding: 18px 2vw; }
}
.icon-svg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-right: 12px;
    border-radius: 50%;
    background: none;
}
.contact-item.clickable {
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}
.contact-item.clickable:active {
    background: #e3f2fd;
    transform: scale(0.97);
}
.contact-item.clicked {
    background: #c8e6c9 !important;
    transition: background 0.3s;
}
.jump-spinner {
    width: 48px;
    height: 48px;
    border: 6px solid #e0e0e0;
    border-top: 6px solid #66a6ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.jump-progress {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.jp-bg {
    opacity: 0.25;
}
.jp-bar {
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    stroke-dasharray: 150.72;
    stroke-dashoffset: 150.72;
    transition: stroke-dashoffset 0.2s;
}
.line-item {
    background: #4e8edb;
    border-radius: 6px;
    padding: 12px 12px 10px 12px;
    margin-bottom: 14px;
    color: #fff;
    transition: background 0.2s;
    cursor: pointer;
    font-size: 13px;
}
.line-item:hover { background: #1976d2; }
.line-grid {
    display: grid;
    grid-template-columns: 1fr 80px;
    grid-template-rows: 1fr 1fr;
    gap: 6px 8px;
    width: 100%;
    align-items: center;
}
.line-url { grid-area: 1 / 1 / 2 / 2; font-weight: bold; word-break: break-all; }
.copy-btn, .line-enter-btn {
    width: 60px;
    min-width: 60px;
    max-width: 100px;
    background: #ff9800;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 3px 0;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: bold;
    text-align: center;
    box-sizing: border-box;
}
.copy-btn:hover { background: #ffb300; }
.line-enter-btn {
    background: #43d27a;
}
.line-enter-btn:hover {
    background: #2bbd6e;
}
.line-speed { grid-area: 2 / 1 / 3 / 2; color: #fff; font-size: 12px; }
.main-btn.enter-btn {
    background: linear-gradient(90deg, #66a6ff 0%, #89f7fe 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(102,166,255,0.10);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    animation: fadeIn 1.8s cubic-bezier(.39,.575,.565,1) both;
}
.main-btn.enter-btn:hover {
    background: linear-gradient(90deg, #4e8edb 0%, #66a6ff 100%);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 24px rgba(102,166,255,0.18);
}
.line-enter-btn {
    grid-area: 2 / 2 / 3 / 3;
    background: #43d27a;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 3px 0;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: bold;
}
.line-enter-btn:hover {
    background: #2bbd6e;
}
@media (max-width: 400px) {
    .line-grid { grid-template-columns: 1fr 60px; font-size: 12px; }
    .copy-btn, .enter-btn { font-size: 12px; padding: 2px 0; }
    .line-item { font-size: 12px; padding: 10px 6px 8px 6px; }
}
.system-icon-center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}
@keyframes blink {
    0%, 100% { color: #ff5722; }
    50% { color: #ffc107; }
}
.device-highlight {
    font-weight: bold;
    animation: blink 1s infinite;
}
.tip-card {
    color: #b26a00;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    width: 100%;
    display: block;
    max-width: 100%;
    word-break: break-all;
    margin: 0 auto 18px auto;
}
.toast-tip {
    position: fixed;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    background: #43d27a;
    color: #fff;
    padding: 10px 28px 10px 44px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: bold;
    z-index: 99999;
    box-shadow: 0 4px 24px rgba(67,210,122,0.18), 0 1.5px 8px rgba(0,0,0,0.10);
    opacity: 0.98;
    animation: fadeIn 0.3s;
    border: 1.5px solid #b2f2d7;
    display: flex;
    align-items: center;
    min-width: 180px;
    max-width: 90vw;
}
.toast-tip .toast-icon {
    position: absolute;
    left: 18px;
    font-size: 20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.85;
}
.toast-tip.orange {
    background: #ff9800;
    border-color: #ffe0b2;
}
.toast-tip.orange .toast-icon {
    color: #fffbe6;
}
.panda-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.panda-svg-anim {
  width: 64px;
  height: 64px;
  animation: panda-breath 1.2s infinite alternate cubic-bezier(.4,0,.2,1);
}
@keyframes panda-breath {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.13); opacity: 0.85; }
} 