﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: linear-gradient(135deg, #f0f2f5 0%, #e6f7ff 100%);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
}




.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.main-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: auto;
    margin-bottom: auto;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.header {
    text-align: center;
    position: relative;
}

.header h2 {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(45deg, #0a84ff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(10, 132, 255, 0.1);
}

.header .sub-title {
    font-size: 13px;
    color: #0a84ff;
    background: rgba(10, 132, 255, 0.08);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
}

.link-parser {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-parser input {
    width: 100%;
    padding: 15px 18px;
    font-size: 14px;
    border-radius: 25px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #333;
    transition: all 0.3s ease;
    text-align: center;
}

.link-parser input:focus {
    outline: none;
    border-color: #0a84ff;
    box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.15);
    background: #fff;
}

.link-parser input::placeholder {
    color: #9ca3af;
}

.btn-group {
    display: flex;
    gap: 10px;
}

.btn {
    flex: 1;
    padding: 10px;
    font-size: 15px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    color: #fff;
    text-align: center;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    -webkit-user-select: none;
    user-select: none;
}

.btn-paste {
    background: #ffa500;
}

.btn-go {
    background: #1890ff;
}

.btn-clear {
    background: #ff4d4f;
}

.btn-home {
    background: #34c759;
    width: 100%;
}

.btn:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    filter: brightness(0.9);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.input-note {
    font-size: 13px;
    color: #888;
    text-align: center;
    margin-top: 4px;
    line-height: 24px;
}


@media (max-width: 375px) {
    .main-container {
        padding: 20px 16px;
    }

    .btn-group {
        gap: 8px;
    }

    .btn {
        padding: 13px 8px;
        font-size: 14px;
    }

    .toast {
        padding: 14px 20px;
        font-size: 14px;
    }
}


.footer-nav {
    margin-top: 10px;
    text-align: center;
    width: 100%;
    max-width: 520px;
}

.footer-nav .footer-title {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.25);
    margin-bottom: 5px;
}

.footer-nav a {
    display: inline-block;
    margin: 2px 8px;
    color: rgba(0, 0, 0, 0.35);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s ease;
    position: relative;
}

.footer-nav a:hover {
    color: rgba(0, 0, 0, 0.6);
    transform: none;
}


.btn-save {
    background: #5856d6;
    margin-top: 10px;
    width: 100%;
}

.saved-list {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 16px;
    margin-top: 8px;
    width: 100%;
}

.saved-title {
    font-size: 13px;
    color: #ea8c21;
    margin-bottom: 10px;
    text-align: center;
}

.saved-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.saved-item {
    background: #f9fafb;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.saved-item:hover {
    border-color: #0a84ff;
    background: #fff;
    box-shadow: 0 2px 8px rgba(10, 132, 255, 0.1);
}

.saved-info {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.saved-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.saved-id {
    font-size: 12px;
    color: #999;
}

.delete-icon {
    padding: 6px;
    color: #bbb;
    font-size: 18px;
    line-height: 1;
    border-radius: 50%;
    margin-left: 8px;
    transition: all 0.2s;
}

.delete-icon:hover {
    color: #ff3b30;
    background: rgba(255, 59, 48, 0.1);
}

.float-btn {
    position: fixed;
    right: 10px;
    width: 44px;
    height: 44px;
    background-color: #ffffff;
    color: #0a84ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.float-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(10, 132, 255, 0.3);
    color: #0077e6;
}

.float-btn i {
    font-size: 22px;
}

.update-log-btn {
    bottom: 10px;
}



.layui-timeline-item {
    padding-bottom: 0px;
}

.layui-text h3 {
    margin: 12px 0;
    font-size: 16px;
}

.layui-text p {
    margin: 10px 0;
    font-size: 12px;
}

