@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1rem 0;
}

/* 动态背景 */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1a1a2e, #16213e, #0f3460);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -2;
}

.bg-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
    animation: floatBubbles 20s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes floatBubbles {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* 主容器 */
.container {
    position: relative;
    text-align: center;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2rem;
    max-width: 1300px;
    width: 95%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: containerSlideIn 0.8s ease-out;
    margin: 1rem auto;
}

@keyframes containerSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Logo区域 */
.logo-section {
    margin-bottom: 1.5rem;
}

.logo {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 0.9rem;
    color: #8892b0;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

/* 状态指示器 */
.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-text {
    font-size: 1rem;
    color: #64ffda;
    font-weight: 500;
}

.status-text {
    font-size: 1.1rem;
    color: #64ffda;
    font-weight: 500;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(100, 255, 218, 0.2);
    border-top: 3px solid #64ffda;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 智能选择显示区域 */
.smart-selection {
    margin: 2rem 0;
}

.selection-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    animation: cardSlideIn 0.6s ease-out;
}

.selection-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.selection-icon {
    font-size: 2rem;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.selection-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #64ffda;
}

.selection-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.selected-domain {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: domainSlideIn 0.5s ease-out;
}

@keyframes domainSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.domain-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.domain-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.domain-details .domain-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.domain-details .domain-url {
    font-size: 0.9rem;
    color: #8892b0;
    font-family: 'SF Mono', Monaco, monospace;
    opacity: 0.8;
}

.selection-progress {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #64ffda, #4CAF50);
    border-radius: 4px;
    transition: width 0.3s ease;
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0%, 100% { background: linear-gradient(90deg, #64ffda, #4CAF50); }
    50% { background: linear-gradient(90deg, #4CAF50, #64ffda); }
}

.progress-text {
    font-size: 0.9rem;
    color: #8892b0;
    text-align: center;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.domain-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.2rem;
    gap: 0.3rem;
}

.domain-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

.domain-status-icon {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.domain-status-icon.checking {
    background: #64ffda;
    animation: pulse 1.5s infinite;
}

.domain-status-icon.success {
    background: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.domain-status-icon.slow {
    background: #ffeb3b;
    box-shadow: 0 0 10px rgba(255, 235, 59, 0.5);
}

.domain-status-icon.timeout {
    background: #ff9800;
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
}

.domain-status-icon.blocked {
    background: #e91e63;
    box-shadow: 0 0 10px rgba(233, 30, 99, 0.5);
}

.domain-status-icon.failed {
    background: #f44336;
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.5);
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1; 
    }
    50% { 
        transform: scale(1.2); 
        opacity: 0.7; 
    }
}

.domain-speed {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #64ffda;
    white-space: nowrap;
    flex-shrink: 0;
}

.domain-speed.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.domain-speed.slow {
    background: rgba(255, 235, 59, 0.2);
    color: #ffeb3b;
}

.domain-speed.timeout {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.domain-speed.blocked {
    background: rgba(233, 30, 99, 0.2);
    color: #e91e63;
}

.domain-speed.failed {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.domain-url {
    font-size: 0.65rem;
    color: #8892b0;
    font-family: 'SF Mono', Monaco, monospace;
    margin-top: 0.2rem;
    word-break: break-all;
    line-height: 1.1;
    opacity: 0.7;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 通知横幅 */
.notification-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(76, 175, 80, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(76, 175, 80, 0.3);
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
}

.notification-banner.error {
    background: rgba(244, 67, 54, 0.95);
    border-bottom: 1px solid rgba(244, 67, 54, 0.3);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.notification-icon {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.notification-text {
    flex: 1;
}

.notification-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.notification-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.notification-countdown {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.countdown-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulse 1s ease-in-out infinite;
}

.countdown-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.notification-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.progress-bar-countdown {
    height: 100%;
    background: #ffffff;
    transition: width 1s linear;
}

.notification-actions {
    display: flex;
    gap: 0.5rem;
}

.notification-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.notification-btn:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

.notification-btn.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.notification-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 弹窗遮罩 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: overlayFadeIn 0.3s ease-out;
    padding: 1rem;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 弹窗容器 */
.modal {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    min-width: 400px;
    width: 85%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: modalSlideIn 0.4s ease-out;
    position: relative;
    margin: 0;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 成功弹窗 */
.modal.success {
    border-color: rgba(76, 175, 80, 0.3);
}

.modal.success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #66bb6a, #4CAF50);
    border-radius: 20px 20px 0 0;
}

/* 错误弹窗 */
.modal.error {
    border-color: rgba(244, 67, 54, 0.3);
}

.modal.error::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f44336, #ef5350, #f44336);
    border-radius: 20px 20px 0 0;
}

/* 弹窗头部 */
.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: iconBounce 0.6s ease-out;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.modal.success .modal-title {
    color: #4CAF50;
}

.modal.error .modal-title {
    color: #f44336;
}

.modal-subtitle {
    font-size: 1rem;
    color: #8892b0;
    font-weight: 400;
}

/* 弹窗内容 */
.modal-content {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.modal-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    font-size: 0.95rem;
    gap: 1rem;
}

.modal-info-label {
    color: #8892b0;
    font-weight: 500;
    min-width: 70px;
    flex-shrink: 0;
}

.modal-info-value {
    color: #ffffff;
    font-weight: 600;
    font-family: 'SF Mono', Monaco, monospace;
    text-align: right;
    word-break: break-all;
    flex: 1;
}

.modal.success .modal-info-value {
    color: #4CAF50;
}

.modal.error .modal-info-value {
    color: #f44336;
}

/* 弹窗按钮 */
.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.modal-button {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 140px;
}

.modal-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.modal-button:hover::before {
    left: 100%;
}

.modal-button.primary {
    background: linear-gradient(135deg, #4CAF50, #66bb6a);
    color: white;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.modal-button.primary:hover {
    background: linear-gradient(135deg, #66bb6a, #4CAF50);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.modal-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-button.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.modal-button.danger {
    background: linear-gradient(135deg, #f44336, #ef5350);
    color: white;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.modal-button.danger:hover {
    background: linear-gradient(135deg, #ef5350, #f44336);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 67, 54, 0.3);
}

/* 弹窗关闭按钮 */
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #8892b0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: scale(1.1);
}

/* 手动链接区域 */
.manual-links {
    margin-top: 1.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: none;
}

.manual-links h3 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 100%;
}

.link-button {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    text-decoration: none;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 80px;
    text-align: left;
}

.link-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.link-button:hover::before {
    left: 100%;
}

.link-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.link-button-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #ffffff;
}

.link-button-url {
    font-size: 0.85rem;
    color: #8892b0;
    font-family: 'SF Mono', Monaco, monospace;
    word-break: break-all;
    line-height: 1.4;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 0.5rem 0;
    }
    
    .container {
        padding: 2rem 1.5rem;
        margin: 0.5rem auto;
        max-width: 95%;
        width: 95%;
        max-height: 95vh;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .title {
        font-size: 1.3rem;
    }
    
    .subtitle {
        font-size: 0.8rem;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .domain-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-height: 40vh;
    }
    
    .domain-card {
        padding: 1.5rem;
        min-height: 90px;
    }
    
    .domain-name {
        font-size: 1rem;
    }
    
    .domain-speed {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
        min-width: 50px;
    }
    
    .domain-url {
        font-size: 0.75rem;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .link-button {
        padding: 1.2rem;
        min-height: 70px;
    }
    
    .link-button-title {
        font-size: 0.9rem;
    }
    
    .link-button-url {
        font-size: 0.75rem;
    }
    
    .status-indicator {
        min-width: auto;
        width: 100%;
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .status-text {
        font-size: 1rem;
    }
    
    .manual-links {
        max-height: 30vh;
        padding: 1.5rem;
    }
    
    .manual-links h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    /* 弹窗移动端适配 */
    .modal-overlay {
        padding: 0.5rem;
    }
    
    .modal {
        min-width: 300px;
        max-width: 95vw;
        width: 95%;
        padding: 2rem 1.5rem;
        border-radius: 16px;
        max-height: 90vh;
    }
    
    .modal-header {
        margin-bottom: 1rem;
    }
    
    .modal-icon {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }
    
    .modal-title {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }
    
    .modal-subtitle {
        font-size: 0.8rem;
    }
    
    .modal-info {
        padding: 1.5rem;
        margin: 1rem 0;
        min-width: auto;
    }
    
    .modal-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin: 1rem 0;
        font-size: 1rem;
    }
    
    .modal-info-label {
        min-width: auto;
        font-size: 0.9rem;
    }
    
    .modal-info-value {
        font-size: 1rem;
        text-align: left;
        word-break: break-all;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .modal-button {
        width: 100%;
        min-width: auto;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .countdown-section {
        margin: 1rem 0;
        padding: 1rem;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .countdown-text {
        font-size: 0.9rem;
    }
}

/* 平板适配 */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 85%;
        width: 85%;
        padding: 2.5rem 2rem;
    }
    
    .modal {
        max-width: 90%;
        min-width: 500px;
        width: 85%;
    }
    
    .modal-info {
        min-width: 350px;
    }
    
    .domain-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        max-height: 45vh;
    }
    
    .links-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* 大屏幕适配 */
@media (min-width: 1025px) {
    .container {
        max-width: 1400px;
        width: 120%;
        padding: 3rem 2.5rem;
    }
    
    .modal {
        max-width: 900px;
        min-width: 700px;
        width: 75%;
    }
    
    .modal-info {
        padding: 3rem;
        min-width: 500px;
    }
    
    .modal-info-item {
        font-size: 1.3rem;
        margin: 2rem 0;
    }
    
    .modal-button {
        padding: 1.2rem 3rem;
        font-size: 1.1rem;
    }
    
    .domain-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        max-height: 50vh;
    }
    
    .domain-card {
        padding: 2rem;
        min-height: 120px;
    }
    
    .links-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}(auto-fit, minmax(280px, 1fr));
    }
}

/* 滚动条样式 */
.domain-grid::-webkit-scrollbar,
.manual-links::-webkit-scrollbar,
.container::-webkit-scrollbar {
    width: 4px;
}

.domain-grid::-webkit-scrollbar-track,
.manual-links::-webkit-scrollbar-track,
.container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.domain-grid::-webkit-scrollbar-thumb,
.manual-links::-webkit-scrollbar-thumb,
.container::-webkit-scrollbar-thumb {
    background: rgba(100, 255, 218, 0.5);
    border-radius: 2px;
}

.domain-grid::-webkit-scrollbar-thumb:hover,
.manual-links::-webkit-scrollbar-thumb:hover,
.container::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 255, 218, 0.8);
}

/* 暗黑模式优化 */
@media (prefers-color-scheme: dark) {
    .container {
        background: rgba(16, 16, 16, 0.95);
    }
}