/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: url('../pic/background.png') center center fixed;
    min-height: 100vh;
    padding: 20px 0; 
    background-attachment: fixed;
    overflow-x: hidden;
}

/* 添加背景装饰 */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.5;
    z-index: -1;
}

/* 容器样式 */
.container {
    max-width: 800px;
    width: 100%;
    padding: 0 20px;
    margin-top: 150px;
    z-index: 1;
}

/* Logo样式 */
.logo {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease;
}

.logo h1 {
    color: #ffffff;
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
}

.logo p {
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* 卡片样式 */
.card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: none;
    padding: 35px; 
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* 标签页样式 */
.tab-container {
    margin-bottom: 30px;
}

.nav-tabs {
    border-bottom: 3px solid #f0f4f8;
    margin-bottom: 25px;
    justify-content: flex-start;
}

.nav-tabs .nav-item .nav-link {
    border: none;
    padding: 15px 25px;
    font-weight: 600;
    color: #6b7280;
    border-radius: 12px 12px 0 0;
    position: relative;
    background: transparent;
    transition: all 0.3s ease;
    font-size: 16px;
    margin:0 10px 0 0;
}

.nav-tabs .nav-item .nav-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.nav-tabs .nav-item .nav-link.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.nav-tabs .nav-item .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px; 
    border-radius: 3px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 25px;
}


.form-group label { 
    margin-bottom: 10px;
    font-weight: 700;
    color: #374151;
    font-size: 15px;
}

.form-control {
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    background: #fff;
}

.input-group {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.input-group-text { 
    border-right: none;
    color: #4b5563;
    font-weight: 700;
    font-size: 15px;
}

.input-group .form-control {
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* 按钮样式 */
.btn-primary { 
    border: none;
    border-radius: 12px;
    padding: 16px 30px;
    font-size: 17px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden; 
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%; 
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover { 
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

/* 域名选择样式 */
.domain-selector {
    margin-bottom: 25px;
}

.domain-option {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #f9fafb;
    border: 2px solid transparent;
}

.domain-option:hover {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

 
.domain-option input[type="radio"] {
    margin-right: 12px;
    accent-color: #667eea;
}


.custom-domain {
    margin-top: 20px;
    padding: 20px;
    background: #f0f9ff;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
}

/* 模态框样式 */
.shortUrl {
    cursor: pointer;
    color: #667eea;
    font-weight: 700;
    word-break: break-all;
    padding: 5px 10px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.shortUrl:hover {
    background: rgba(102, 126, 234, 0.2);
}

.modal-content {
    border-radius: 16px;
    border: none;
}

.modal-header {
    border-bottom: 2px solid #f0f4f8;
    padding: 20px 25px;
}

.modal-footer {
    border-top: 2px solid #f0f4f8;
    padding: 20px 25px;
}

/* 页脚样式 */
.footer {
    margin-top: 50px;
    text-align: center; 
    font-size: 15px; 
    
    color: rgba(119, 119, 119, 0.9);
}
 
.footer a {
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    color: rgba(119, 119, 119, 0.9);
}

 
.footer a:hover {
    color: #fff;
    text-decoration: none;
}





/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 30px 0;
    }

    .logo h1 {
        font-size: 40px;
    }

    .card {
        padding: 25px;
        border-radius: 12px;
    }

    .nav-tabs .nav-item .nav-link {
        padding: 12px 20px;
        font-size: 15px;
        margin: 0 5px;
    }

    .form-control {
        padding: 13px 18px;
        font-size: 14px;
    }

    .btn-primary {
        padding: 14px 25px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 32px;
    }

    .logo p {
        font-size: 16px;
    }

    .card {
        padding: 20px;
    }

    .nav-tabs .nav-item .nav-link {
        padding: 10px 15px;
        font-size: 14px;
        margin: 0 3px;
    }
}