/* 全局变量 */
:root {
    --primary-color: #6b3fa0;
    --secondary-color: #35b779;
    --accent-color: #ff9900;
    --dark-color: #1a1a1a;
    --light-color: #f5f5f5;
    --header-height: 80vh;
}

/* 基本样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #0e0e14;
    overflow-x: hidden;
}

/* 头部样式 */
header {
    position: relative;
    width: 100%;
    color: var(--light-color);
}

.logo-container {
    position: relative;
    height: var(--header-height);
    overflow: hidden;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.header-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
    width: auto;
    max-width: 90%;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 100px rgba(107, 63, 160, 0.4);
    border: 2px solid rgba(53, 183, 121, 0.5);
    animation: glow 3s infinite alternate;
    backdrop-filter: blur(8px);
    transition: all 0.5s ease;
}

.header-content:hover {
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8), 0 0 120px rgba(107, 63, 160, 0.6);
    background-color: rgba(0, 0, 0, 0.65);
    transform: translate(-50%, -50%) scale(1.02);
}

@keyframes glow {
    from {
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 100px rgba(107, 63, 160, 0.4);
    }
    to {
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.8), 0 0 120px rgba(107, 63, 160, 0.6);
    }
}

.header-content h1 {
    font-size: 5.8rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-shadow: 0 0 20px rgba(107, 63, 160, 0.8), 0 0 40px rgba(0, 0, 0, 0.8);
    color: var(--light-color);
    letter-spacing: 4px;
    animation: textGlow 3s infinite alternate;
    position: relative;
    display: inline-block;
}

.header-content h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 25%;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

@keyframes textGlow {
    from {
        text-shadow: 0 0 20px rgba(107, 63, 160, 0.8), 0 0 40px rgba(0, 0, 0, 0.8);
    }
    to {
        text-shadow: 0 0 30px rgba(107, 63, 160, 1), 0 0 50px rgba(53, 183, 121, 0.8);
    }
}

.header-content p {
    font-size: 5rem;
    margin: 0;
    text-shadow: 0 0 15px rgba(53, 183, 121, 0.8), 0 0 30px rgba(0, 0, 0, 0.8);
    font-weight: 700;
    letter-spacing: 3px;
    background: linear-gradient(90deg, rgba(107, 63, 160, 0.2), rgba(53, 183, 121, 0.2));
    padding: 20px 30px;
    border-radius: 10px;
    display: inline-block;
    animation: subtitlePulse 4s infinite alternate;
    white-space: nowrap;
    position: relative;
}

.header-content p::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: 0.5s;
    animation: shineEffect 8s infinite;
}

@keyframes shineEffect {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes subtitlePulse {
    from {
        transform: scale(1);
        background: linear-gradient(90deg, rgba(107, 63, 160, 0.2), rgba(53, 183, 121, 0.2));
    }
    to {
        transform: scale(1.05);
        background: linear-gradient(90deg, rgba(107, 63, 160, 0.3), rgba(53, 183, 121, 0.3));
    }
}

/* 导航样式 */
nav {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 50px;
    list-style: none;
}

nav a {
    color: var(--light-color);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
}

nav a:hover, nav a.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* 主要内容样式 */
main {
    background-color: var(--light-color);
}

/* 英雄区域 */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('jizhan2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-color);
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--light-color);
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: buttonPulse 2s infinite alternate;
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: 0.5s;
    z-index: -1;
}

.btn:hover:before {
    left: 100%;
    transition: 0.5s;
}

@keyframes buttonPulse {
    from {
        box-shadow: 0 6px 20px rgba(107, 63, 160, 0.4);
    }
    to {
        box-shadow: 0 8px 25px rgba(53, 183, 121, 0.6);
    }
}

/* 特性部分 */
.features {
    padding: 80px 20px;
    text-align: center;
    background-color: #f8f8f8;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: white;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* 职业部分 */
.professions {
    padding: 80px 20px;
    background-color: #0e0e14;
    color: var(--light-color);
    text-align: center;
}

.professions h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--secondary-color);
}

.profession-image-container {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, #1f1f2f, #0e0e14);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.profession-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.profession-image:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.zoom-hint {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* 图片放大模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 30px;
    padding-bottom: 30px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    transition: all 0.3s ease;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: none;
    box-shadow: 0 0 30px rgba(107, 63, 160, 0.6);
    border-radius: 5px;
    animation: zoomIn 0.3s ease;
    transform: scale(1.5);
    transform-origin: top center;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1.5);
        opacity: 1;
    }
}

#imageCaption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 20px 0;
    height: auto;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 2100;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--secondary-color);
    text-decoration: none;
    cursor: pointer;
    transform: scale(1.1);
}

/* 使用指南部分 */
.guides {
    padding: 80px 20px;
    background-color: var(--light-color);
    text-align: center;
}

.guides h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.guide-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.guide-card {
    width: 250px;
    padding: 30px 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.guide-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.guide-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.guide-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* 下载部分 */
.download {
    padding: 80px 20px;
    background-color: #f8f8f8;
    text-align: center;
}

.download h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.download p {
    font-size: 1.2rem;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.download-card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-color);
}

.download-card i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.download-card:hover i {
    color: var(--light-color);
}

.download-card span {
    font-size: 1.1rem;
    font-weight: 600;
}

/* 联系我们部分 */
.contact {
    padding: 60px 0;
    background-color: #0e0e14;
    color: var(--light-color);
}

.contact h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
    font-size: 2.5rem;
    text-shadow: 0 0 10px rgba(53, 183, 121, 0.3);
}

.contact-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background-color: rgba(107, 63, 160, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
    min-width: 180px;
    max-width: 250px;
    flex: 0 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(107, 63, 160, 0.2);
    background-color: rgba(107, 63, 160, 0.15);
}

.contact-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    width: 100%;
}

.contact-item p {
    margin: 0;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 大屏幕优化样式 */
@media (min-width: 1400px) {
    .contact-list {
        gap: 20px;
        max-width: 1600px;
    }
    
    .contact-item {
        min-width: 200px;
        max-width: 280px;
        padding: 15px 25px;
    }
}

/* 中等屏幕优化样式 */
@media (max-width: 1200px) and (min-width: 768px) {
    .contact-list {
        gap: 12px;
        max-width: 1200px;
    }
    
    .contact-item {
        min-width: 160px;
        max-width: 220px;
        padding: 10px 18px;
        font-size: 0.95rem;
    }
}

/* 媒体查询，在小屏幕上调整为垂直排列 */
@media (max-width: 768px) {
    .contact-list {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-item {
        width: 100%;
        max-width: 300px;
    }
}

/* 页脚样式 */
footer {
    background-color: #0e0e14;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.footer-links h3, .footer-contact h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 页脚B站链接样式 */
.footer-bili-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.footer-bili-links a {
    display: flex;
    align-items: center;
    color: var(--light-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bili-links a:hover {
    color: var(--secondary-color);
}

/* 响应式设计 */
@media (min-width: 1800px) {
    .header-content p {
        font-size: 6rem;
        padding: 25px 40px;
    }
    
    .site-logo {
        font-size: 2rem;
    }
}

@media (max-width: 1200px) {
    .header-content h1 {
        font-size: 5.5rem;
    }
    
    .header-content p {
        font-size: 4rem;
        padding: 15px 25px;
    }
    
    .site-logo {
        font-size: 1.6rem;
    }
}

@media (max-width: 992px) {
    .header-content p {
        font-size: 3.5rem;
        padding: 15px 20px;
    }
}

@media (max-width: 768px) {
    .header-content h1 {
        font-size: 4rem;
    }
    
    .header-content p {
        font-size: 3rem;
        padding: 12px 20px;
    }
    
    .site-logo {
        font-size: 1.4rem;
        top: 15px;
        left: 20px;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .contact-list {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-item {
        width: 100%;
        max-width: 300px;
    }
    
    .modal-content {
        max-width: 95%;
        transform: scale(1);
    }
    
    @keyframes zoomIn {
        from {
            transform: scale(0.8);
            opacity: 0;
        }
        to {
            transform: scale(1);
            opacity: 1;
        }
    }
    
    .close-modal {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
    
    /* 移动设备上的特殊样式 */
    .mobile-view {
        transform: scale(1) !important;
        max-width: 100% !important;
    }
    
    /* 添加移动端触摸提示 */
    .zoom-hint:after {
        content: "，上滑关闭";
        color: var(--secondary-color);
    }
}

@media (max-width: 576px) {
    .header-content p {
        font-size: 2.4rem;
        padding: 10px 15px;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 3rem;
    }
    
    .header-content p {
        font-size: 1.8rem;
        padding: 8px 12px;
        white-space: normal;
        letter-spacing: 0;
        line-height: 1.2;
    }
    
    .site-logo {
        font-size: 1.2rem;
        padding: 6px 12px;
        top: 10px;
        left: 15px;
    }
    
    .modal {
        padding-top: 15px;
        padding-bottom: 15px;
    }
    
    .modal-content {
        max-width: 100%;
    }
    
    .profession-image-container {
        padding: 15px;
    }
}

/* 超小屏幕设备的额外优化 */
@media (max-width: 360px) {
    .header-content p {
        font-size: 1.5rem;
        padding: 6px 10px;
        background: linear-gradient(90deg, rgba(107, 63, 160, 0.3), rgba(53, 183, 121, 0.3));
    }
    
    .site-logo {
        font-size: 1rem;
        padding: 5px 10px;
    }
    
    nav a {
        font-size: 1rem;
        padding: 8px 15px;
    }
}

/* 视频教学链接样式 */
.video-tutorial-container {
    max-width: 800px;
    margin: 50px auto 0;
    padding: 0 20px;
}

.video-tutorial-link {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    padding: 20px 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.video-tutorial-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(107, 63, 160, 0.4);
}

.video-tutorial-link:before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.video-tutorial-link:hover:before {
    animation: shine 1.5s ease;
}

@keyframes shine {
    0% {
        opacity: 0;
        left: -50%;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        left: 150%;
    }
}

.hand-icon {
    background-color: rgba(255, 255, 255, 0.2);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    animation: pointPulse 1.5s infinite alternate;
}

.hand-icon i {
    font-size: 32px;
    color: var(--light-color);
}

@keyframes pointPulse {
    from {
        transform: scale(1) rotate(0deg);
    }
    to {
        transform: scale(1.1) rotate(10deg);
    }
}

.video-tutorial-text {
    flex: 1;
}

.video-tutorial-text h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.video-tutorial-text p {
    font-size: 1rem;
    opacity: 0.9;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .video-tutorial-link {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }
    
    .hand-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .video-tutorial-text h3 {
        font-size: 1.5rem;
    }
}

/* 波纹点击效果 */
.ripple-effect {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: scale(0);
    pointer-events: none;
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* 站点Logo */
.site-logo {
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-color);
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 8px 15px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(107, 63, 160, 0.5);
    border: 1px solid rgba(53, 183, 121, 0.3);
    text-shadow: 0 0 10px rgba(107, 63, 160, 0.8);
    transition: all 0.3s ease;
    animation: logoGlow 3s infinite alternate;
    letter-spacing: 2px;
}

.site-logo:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(107, 63, 160, 0.7);
}

@keyframes logoGlow {
    from {
        box-shadow: 0 0 15px rgba(107, 63, 160, 0.5);
    }
    to {
        box-shadow: 0 0 25px rgba(107, 63, 160, 0.8);
    }
}

/* 下载按钮高亮效果 */
.highlight-btn {
    animation: highlightPulse 0.5s ease-in-out 4;
    transform: scale(1.1);
}

@keyframes highlightPulse {
    0% {
        box-shadow: 0 6px 20px rgba(107, 63, 160, 0.4);
    }
    50% {
        box-shadow: 0 6px 30px rgba(53, 183, 121, 0.9);
    }
    100% {
        box-shadow: 0 6px 20px rgba(107, 63, 160, 0.4);
    }
}

/* 卡号验证模态框 */
.card-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
}

.card-modal-content {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin: 15% auto;
    padding: 25px;
    width: 350px;
    max-width: 80%;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
    position: relative;
    color: var(--light-color);
    text-align: center;
    animation: fadeIn 0.4s ease-out;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.6rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#cardNumberInput {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

.card-modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.card-modal-buttons .btn {
    padding: 10px 25px;
    margin: 0;
}

.btn-cancel {
    background: linear-gradient(90deg, #777, #555);
}

.close-card-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    color: var(--light-color);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.close-card-modal:hover {
    color: #ccc;
}

.error-msg {
    color: #ffcccc;
    margin-top: 15px;
    font-weight: 500;
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* bilibili图标样式 */
.bili-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1129 1024'%3E%3Cpath fill='%2335B779' d='M234.909 9.656a80.468 80.468 0 0 1 68.398 0 167.374 167.374 0 0 1 41.843 30.578l160.937 140.82h115.07l160.936-140.82a168.983 168.983 0 0 1 41.843-30.578A80.468 80.468 0 0 1 930.96 76.445a80.468 80.468 0 0 1-17.703 53.914 449.818 449.818 0 0 1-35.406 32.187 232.553 232.553 0 0 1-22.531 18.508h100.585a170.593 170.593 0 0 1 118.289 53.109 171.397 171.397 0 0 1 53.914 118.288v462.693a325.897 325.897 0 0 1-4.828 56.328 178.64 178.64 0 0 1-80.468 112.656 173.007 173.007 0 0 1-92.539 25.75h-738.7a341.991 341.991 0 0 1-72.421-8.047A177.835 177.835 0 0 1 79.773 939.065a172.202 172.202 0 0 1-53.109-118.288V388.662a360.498 360.498 0 0 1 0-66.789A177.03 177.03 0 0 1 130.296 178.64a173.007 173.007 0 0 1 92.539-25.75h105.414c-16.899-12.07-31.383-26.555-46.672-39.43a80.468 80.468 0 0 1-29.773-53.109 80.468 80.468 0 0 1-16.899-50.695zM261.464 294.515a98.171 98.171 0 0 0-92.539 57.937 121.507 121.507 0 0 0 0 92.539 98.171 98.171 0 0 0 92.539 57.937 121.507 121.507 0 0 0 92.539-57.937 121.507 121.507 0 0 0 0-92.539 121.507 121.507 0 0 0-92.539-57.937z m607.524 0a98.171 98.171 0 0 0-92.539 57.937 121.507 121.507 0 0 0 0 92.539 98.171 98.171 0 0 0 92.539 57.937 121.507 121.507 0 0 0 92.539-57.937 121.507 121.507 0 0 0 0-92.539 121.507 121.507 0 0 0-92.539-57.937z'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 10px;
}

/* 心动去购买按钮样式 */
.buy-now-btn {
    display: block;
    width: 250px;
    margin: 30px auto;
    padding: 15px 25px;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #6b3fa0 0%, #35b779 100%);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(53, 183, 121, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}

.buy-now-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(53, 183, 121, 0.6);
    background: linear-gradient(135deg, #7b4fb0 0%, #45c789 100%);
}

/* 添加脉冲动画 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(107, 63, 160, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(107, 63, 160, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(107, 63, 160, 0);
    }
}

/* 添加响应式缩放调整 */
