:root {
    --primary-color: #2575fc;
    --secondary-color: #6a11cb;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f9fafc;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
}

.navbar-brand i {
    margin-right: 8px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    margin: 0 8px;
    transition: all 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: white !important;
    transform: translateY(-2px);
}

/* 域名展示区域 */
.domain-hero {
    background: linear-gradient(135deg, rgba(37, 117, 252, 0.9) 0%, rgba(106, 17, 203, 0.9) 100%), url('../images/domain-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.domain-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.domain-hero .card-body {
    position: relative;
    z-index: 2;
}

.price-tag {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

/* 域名卡片 */
.domain-card {
    border-radius: 16px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.domain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.domain-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.domain-card .card-body {
    padding: 1.5rem;
}

.domain-name h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.domain-price .badge {
    padding: 0.6rem 1.2rem;
    font-weight: 700;
}

.domain-desc {
    min-height: 60px;
    font-size: 0.95rem;
}

/* 页脚样式 */
footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #1a1a1a 100%);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0 1.5rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s;
    display: block;
    padding: 3px 0;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .domain-hero .card-body {
        padding: 2rem 1.5rem;
    }
    
    .domain-hero h1 {
        font-size: 2.2rem !important;
    }
    
    .price-tag {
        font-size: 1.5rem !important;
        padding: 0.6rem 1.2rem !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.5);
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* 验证码样式 */
.captcha-img {
    height: 38px;
    border-radius: 4px;
    border: 1px solid #ddd;
}