/* 全局样式 */
:root {
    --primary-color: #0066cc;
    --primary-dark: #004499;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --bg-primary: #f5f5f7;
    --bg-gradient: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    --card-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

/* 页头样式优化 */
header {
    background: var(--bg-gradient);
    position: relative;
    overflow: hidden;
    padding: 4rem 0 !important;
    color: white;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff20" fill-opacity="0.2" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.1;
}

.display-4 {
    font-weight: 800;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.9;
}

/* 商标卡片样式优化 */
.trademark-card {
    transition: var(--transition-smooth);
    border-radius: 1.2rem;
    overflow: hidden;
    border: none;
    background: white;
    box-shadow: var(--card-shadow);
    position: relative;
    margin: 1.5rem 0;
}

.trademark-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.sold-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.85;
}

.trademark-image {
    max-width: 100%;
    height: 250px;
    object-fit: contain;
    padding: 1.5rem;
    margin: 0 auto;
    display: block;
    transition: var(--transition-smooth);
}

.trademark-image:hover {
    transform: scale(1.05);
}

.card-body {
    padding: 2rem;
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-align: center;
    font-weight: 700;
}

.card-text {
    font-size: 1rem;
    color: var(--text-secondary);
    min-height: 100px;
    text-align: justify;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    flex-grow: 1;
}

/* 按钮样式优化 */
.btn-primary {
    width: 80%;
    margin: 0 auto;
    display: block;
    background: var(--bg-gradient);
    border: none;
    border-radius: 2rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* 联系信息区域优化 */
.contact-info {
    background: var(--bg-primary);
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 1rem;
    text-align: center;
}

.contact-info h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--bg-gradient);
    border-radius: 2px;
}

.contact-card {
    padding: 2.5rem !important;
    border-radius: 1.5rem;
    transition: var(--transition-smooth);
    box-shadow: var(--card-shadow);
    background: white;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bi {
    font-size: 1.75rem;
    margin-right: 1rem;
    color: var(--primary-color);
    transition: var(--transition-smooth);
}

.contact-info-wrapper div:hover .bi {
    transform: scale(1.1);
}

.contact-card span, .contact-card a {
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.contact-card a:hover {
    color: var(--primary-color);
}

.qr-code-image {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.qr-code-image:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 页脚样式优化 */
footer {
    background: var(--text-primary);
    color: white;
}

footer a {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: var(--transition-smooth);
}

footer a:hover {
    color: white !important;
    text-decoration: underline !important;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }

    .card-body {
        min-height: 380px;
        padding: 1.5rem;
    }

    .contact-card {
        padding: 1.5rem !important;
    }

    .qr-code-image {
        max-width: 160px;
        margin-top: 1.5rem;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1.1rem;
    }

    .contact-info h2 {
        font-size: 2rem;
    }
}