* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 25px 40px;
    max-width: 700px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.title-logo {
    margin-bottom: 20px;
    text-align: center;
}

.logo {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

/* 保留原标题样式供参考 */
.title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #000;
}

.target-info {
    margin-bottom: 20px;
    text-align: left;
}

.warning-box {
    background-color: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.6);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    color: #999;
}

.target-info {
    margin-bottom: 20px;
    text-align: left;
}

.target-url-container {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 10px;
}

.target-label {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}

.target-url-container {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 30px;
    padding: 12px;
}

.target-url {
    font-family: monospace;
    font-size: 16px;
    color: #333;
    background: none;
    border: none;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    display: block;
    width: 100%;
    mask: linear-gradient(to right, black 0%, black 70%, transparent 100%);
    -webkit-mask: linear-gradient(to right, black 0%, black 70%, transparent 100%);
}

.target-url::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 30%, rgba(255,255,255,0.8) 70%, #fff 100%);
    pointer-events: none;
}

.copy-btn {
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
    margin-left: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.copy-btn:hover {
    background-color: #0056b3;
}

.copy-btn img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.security-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    text-align: left;
}

.status-label {
    color: #999;
    font-size: 14px;
}

.status-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.https {
    background-color: #28a745;
    color: white;
}

.status-badge.http {
    background-color: #dc3545;
    color: white;
}

.actions {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 8px 18px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    transform: translateY(0);
    min-width: 70px;
}

.btn-primary {
    background-color: #000;
    color: white;
}

.btn-primary:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: #999;
    border: 1px solid #999;
}

.btn-secondary:hover {
    background-color: #333;
    color: white;
}

.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-container input[type="checkbox"]:hover {
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.1);
}

.checkbox-container input[type="checkbox"]:checked {
    background-color: #333;
    border-color: #333;
}

.checkbox-container input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 4px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    border-radius: 0 1px 1px 0;
    transform: rotate(45deg);
}

.checkbox-container label {
    cursor: pointer;
    user-select: none;
    color: #999;
}


@media (max-width: 600px) {
    .container {
        padding: 30px 20px;
        margin: 10px;
    }

    .actions {
        flex-direction: column;
    }

    .target-url {
        flex-direction: column;
        gap: 10px;
    }

    .copy-btn {
        margin-left: 0;
        align-self: flex-end;
    }
}

.copy-btn {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    padding: 6px;
    margin-left: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.copy-btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.copy-btn img {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.copy-btn:hover img {
    opacity: 1;
}

.separator-line {
    border-top: 1px solid #f0f0f0;
    margin: 15px 0;
}

.link-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #666;
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
}

.link-progress-bar {
    width: 100%;
    max-width: 300px;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.link-progress-fill {
    height: 100%;
    background: #000;
    border-radius: 3px;
    width: 100%;
    transition: width 1s linear;
}