/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
}

a {
    text-decoration: none;
    color: #fff;
}

:root {
    --primary-color: #e67e22; /* 橙黄色主色 */
    --secondary-color: #f39c12; /* 亮橙色 */
    --accent-color: #d35400; /* 深橙色 */
    --light-color: #fff8e1; /* 浅黄色背景 */
    --dark-color: #333;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --text-color: #333;
    --card-bg: rgba(255, 255, 255, 0.92);
}

body {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecd2 100%);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 粒子背景 */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* 头部样式 */
/* 头部样式 */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(230, 126, 34, 0.3);
   
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}


.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    font-size: 32px;
    margin-right: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(to right, #d4af37, #f7ef8a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-subtitle {
    font-size: 14px;
    opacity: 0.8;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 25px;
    position: relative;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    nav a:before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--secondary-color);
        transition: width 0.3s ease;
    }

    nav a:hover:before, nav a.active:before {
        width: 100%;
    }

    nav a:hover, nav a.active {
        color: #000;
    }

.user-actions {
    display: flex;
    align-items: center;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .btn:after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 5px;
        height: 5px;
        background: rgba(255, 255, 255, 0.5);
        opacity: 0;
        border-radius: 100%;
        transform: scale(1, 1) translate(-50%);
        transform-origin: 50% 50%;
    }

    .btn:focus:not(:active)::after {
        animation: ripple 1s ease-out;
    }

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }

    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.btn-primary {
    background: linear-gradient(135deg, #fff8e1, #fef3e2);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
    font-weight: bold;
}

.btn-outline {
    background: linear-gradient(135deg, var(--secondary-color), #f7ef8a);
    color: #333;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, white, #fff8e1);
}

/* Banner轮播样式 */
.banner-container {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 0 0 15px 15px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

    .banner-container.show {
        display: block; /* 首页显示 */
    }

.banner-slides {
    display: flex;
    width: 400%;
    height: 100%;
    transition: transform 0.8s ease;
}

.banner-slide {
    width: 25%;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

    .banner-slide:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1;
    }

.banner-content {
    position: relative;
    z-index: 2;
    padding: 0 80px;
    max-width: 60%;
    color: white;
}

.banner-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.banner-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.banner-btn {
    padding: 12px 30px;
    font-size: 16px;
    background: var(--secondary-color);
    color: #333;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

    .banner-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
        background: #f7ef8a;
    }

/* Banner背景 */
.banner-1 {
    background: linear-gradient(135deg, #2c6aa0, #4a90e2);
}

.banner-2 {
    background: linear-gradient(135deg, #9c27b0, #e91e63);
}

.banner-3 {
    background: linear-gradient(135deg, #ff9800, #ff5722);
}

.banner-4 {
    background: linear-gradient(135deg, #009688, #4caf50);
}

/* Banner指示器 */
.banner-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 3;
}

.banner-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .banner-indicator.active {
        background: white;
        transform: scale(1.2);
    }

/* Banner导航按钮 */
.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

    .banner-nav:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: translateY(-50%) scale(1.1);
    }

.banner-prev {
    left: 20px;
}

.banner-next {
    right: 20px;
}

/* 主要内容区域 */
.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 140px);
}

.page-title {
    font-size: 36px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    position: relative;
    text-align: center;
}

    .page-title:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 3px;
        background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
        border-radius: 3px;
    }


/* 卡片样式 */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(230, 126, 34, 0.15);
    padding: 25px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(230, 126, 34, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(230, 126, 34, 0.25);
    }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(230, 126, 34, 0.2);
}

.card-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
}
        

/* 作品网格 */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.work-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    cursor: pointer;
}

    .work-card:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
        transform: scaleX(0);
        transform-origin: 0 50%;
        transition: transform 0.4s ease;
    }

    .work-card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    }

        .work-card:hover:before {
            transform: scaleX(1);
        }

.work-image {
    height: 200px;
    background: linear-gradient(45deg, #2c6aa0, #4a90e2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 64px;
    position: relative;
    overflow: hidden;
}

    .work-image:after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.3));
    }

.work-info {
    padding: 20px;
}

.work-title {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 18px;
    color: #000
}

.work-meta {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}

.work-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vote-count {
    display: flex;
    align-items: center;
    color: #ccc;
}

/* 表单样式 */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 16px;
    color: white;
    transition: all 0.3s ease;
}

    .form-control:focus {
        border-color: var(--secondary-color);
        outline: none;
        box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
        background: rgba(255, 255, 255, 0.15);
    }

/* 底部样式 */
footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 280px;
    margin-bottom: 30px;
}

.footer-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

    .footer-title:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 40px;
        height: 2px;
        background: white;
    }

.footer-links {
    list-style: none;
}

    .footer-links li {
        margin-bottom: 12px;
    }

    .footer-links a {
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        transition: color 0.3s;
        position: relative;
        padding-left: 0;
        transition: all 0.3s ease;
    }

        .footer-links a:before {
            content: '›';
            position: absolute;
            left: -15px;
            opacity: 0;
            transition: all 0.3s ease;
        }

        .footer-links a:hover {
            color: white;
            padding-left: 15px;
        }

            .footer-links a:hover:before {
                opacity: 1;
                left: 0;
            }

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav li {
        margin: 5px;
    }

    .user-actions {
        margin-top: 15px;
    }

    .ranking-header, .ranking-item {
        grid-template-columns: 60px 1fr;
        gap: 10px;
    }

        .ranking-header div:nth-child(3),
        .ranking-header div:nth-child(4),
        .ranking-item div:nth-child(3),
        .ranking-item div:nth-child(4) {
            display: none;
        }

    .stats-cards {
        grid-template-columns: 1fr;
    }

    .activity-title {
        font-size: 24px;
    }

    .activity-subtitle {
        font-size: 18px;
    }
}



/* 响应式设计 */
@media (max-width: 1200px) {
    .works-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .banner-title {
        font-size: 36px;
    }

    .banner-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav li {
        margin: 5px;
    }

    .user-actions {
        margin-top: 15px;
    }

    .banner-container {
        height: 350px;
    }

    .banner-content {
        padding: 0 40px;
        max-width: 80%;
    }

    .banner-title {
        font-size: 28px;
    }

    .banner-subtitle {
        font-size: 16px;
    }

    .banner-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* 页面特定样式 */
.page {
    display: none;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page.active {
    display: block;
}

/* 标签页样式 */
.tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.tab {
    padding: 12px 25px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

    .tab.active {
        border-bottom-color: var(--secondary-color);
        color: var(--secondary-color);
        font-weight: bold;
    }

    .tab:hover {
        background: rgba(255, 255, 255, 0.05);
    }

/* 点赞按钮 */
.vote-btn {
    background: linear-gradient(135deg, var(--primary-color), #4a90e2);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .vote-btn:disabled {
        background: #666;
        cursor: not-allowed;
    }

    .vote-btn.voted {
        background: linear-gradient(135deg, var(--success-color), #5cd85c);
    }

    .vote-btn:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(44, 106, 160, 0.4);
    }

/* 浮动动画元素 */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-element {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: floatAround 15s infinite linear;
}

@keyframes floatAround {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(100px, 150px) rotate(90deg);
    }

    50% {
        transform: translate(200px, 50px) rotate(180deg);
    }

    75% {
        transform: translate(100px, -100px) rotate(270deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* 进度条样式 */
.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 15px 0;
}

.progress {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    width: 0;
    transition: width 1s ease;
}

/* 徽章样式 */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.badge-primary {
    background: var(--primary-color);
    color: white;
}

.badge-secondary {
    background: var(--secondary-color);
    color: #333;
}

.badge-success {
    background: var(--success-color);
    color: white;
}

/* 作品详情页样式 */
.work-detail {
    display: flex;
    flex-wrap: wrap;
}

.work-media {
    flex: 1;
    min-width: 350px;
    margin-right: 40px;
}

.work-player {
    background: rgba(0, 0, 0, 0.3);
    height: 350px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

    .work-player:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(44, 106, 160, 0.5), rgba(212, 175, 55, 0.3));
        z-index: -1;
    }

.work-description {
    flex: 2;
    min-width: 350px;
}

/* 评分统计样式 */
.score-stats {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.score-item {
    text-align: center;
    flex: 1;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 0 10px;
}

.score-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.score-label {
    font-size: 14px;
    color: #ccc;
}

/* 评论样式 */
.comment {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: bold;
    color: var(--secondary-color);
}

.comment-date {
    color: #999;
    font-size: 12px;
}

.comment-content {
    line-height: 1.5;
}

/* 访问统计样式 */
.visit-stats {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    text-align: center;
}

.visit-item {
    padding: 15px;
}

.visit-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
}

.visit-label {
    font-size: 14px;
    color: #ccc;
}

/* 返回按钮 */
.back-btn {
    display: inline-flex;
    align-items: center;
    color: var(--secondary-color);
    text-decoration: none;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

    .back-btn:hover {
        transform: translateX(-5px);
    }

/* 漂浮客服样式 */
.floating-service {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.service-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

    .service-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    }

.service-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 300px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    padding: 20px;
    display: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

    .service-panel.show {
        display: block;
        animation: fadeInUp 0.3s ease;
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.service-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.close-service {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.qrcode-container {
    text-align: center;
    margin: 15px 0;
}

.qrcode {
    width: 180px;
    height: 180px;
    background: #f5f5f5;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
}

.service-info {
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

.service-contact {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-item {
    margin: 8px 0;
    color: #333;
    font-size: 14px;
}

/* 在线留言页面样式 */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

    .contact-info .form-group {
        flex: 1;
        min-width: 200px;
    }

.message-types {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.message-type {
    flex: 1;
    min-width: 120px;
}

    .message-type input {
        display: none;
    }

    .message-type label {
        display: block;
        padding: 12px 15px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .message-type input:checked + label {
        background: rgba(212, 175, 55, 0.2);
        border-color: var(--secondary-color);
        color: var(--secondary-color);
    }

    .message-type label:hover {
        background: rgba(255, 255, 255, 0.15);
    }
/* 分享二维码样式 */
.share-section {
    margin-top: 20px;
    text-align: center;
}

.share-btn {
    background: linear-gradient(135deg, var(--primary-color), #4a90e2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .share-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(44, 106, 160, 0.4);
    }

.qrcode-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

    .qrcode-modal.show {
        display: flex;
    }

.qrcode-content {
    background: white;
    border-radius: 12px;
 
    text-align: center;
    height:90%;
    
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.qrcode-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.qrcode-image {
    width: 200px;
    height: 200px;
    background: #f5f5f5;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
}

.qrcode-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.close-modal {
    background: var(--secondary-color);
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

    .close-modal:hover {
        background: #f7ef8a;
        transform: translateY(-2px);
    }


/* 个人中心样式优化 */
.user-profile {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 42px;
    margin-right: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

    .user-avatar:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
        transform: translateX(-100%);
        transition: transform 0.6s ease;
    }

    .user-avatar:hover:before {
        transform: translateX(100%);
    }

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.user-info {
    flex: 1;
}

    .user-info h2 {
        margin-bottom: 10px;
        font-size: 28px;
        background: linear-gradient(to right, var(--secondary-color), #f7ef8a);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

.user-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-size: 14px;
}

.user-stats {
    display: flex;
    margin-top: 20px;
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    min-width: 100px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

    .stat-item:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-3px);
    }

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #ccc;
}

.user-actions-profile {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.action-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    align-items: center;
    gap: 6px;
}

    .action-btn:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-2px);
    }

    .action-btn.primary {
        background: var(--secondary-color);
        color: #333;
        font-weight: bold;
    }

        .action-btn.primary:hover {
            background: #f7ef8a;
        }

/* 徽章样式 */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.badge-primary {
    background: var(--primary-color);
    color: white;
}

.badge-secondary {
    background: var(--secondary-color);
    color: #333;
}

.badge-success {
    background: var(--success-color);
    color: white;
}

.badge-warning {
    background: #ffc107;
    color: #333;
}

/* 投票记录表格 */
.voting-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

    .voting-table th {
        background: rgba(255, 255, 255, 0.1);
        padding: 15px;
        text-align: left;
        font-weight: 600;
        color: var(--secondary-color);
        border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    }

    .voting-table td {
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: background 0.3s ease;
    }

    .voting-table tr:hover td {
        background: rgba(255, 255, 255, 0.05);
    }

    .voting-table .vote-time {
        color: #ccc;
        font-size: 13px;
    }

    .voting-table .vote-ip {
        color: #999;
        font-size: 12px;
        font-family: monospace;
    }

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #ccc;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-text {
    font-size: 18px;
    margin-bottom: 15px;
}

.empty-subtext {
    font-size: 14px;
    color: #999;
    margin-bottom: 25px;
}

/* 用户中心样式 */
.user-profile {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 42px;
    margin-right: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

    .user-avatar:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
        transform: translateX(-100%);
        transition: transform 0.6s ease;
    }

    .user-avatar:hover:before {
        transform: translateX(100%);
    }

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.user-info {
    flex: 1;
}

    .user-info h2 {
        margin-bottom: 10px;
        font-size: 28px;
        background: linear-gradient(to right, var(--secondary-color), #f7ef8a);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

.user-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-size: 14px;
}

.user-stats {
    display: flex;
    margin-top: 20px;
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    min-width: 100px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

    .stat-item:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-3px);
    }

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #ccc;
}

.user-actions-profile {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.action-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .action-btn:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-2px);
    }

    .action-btn.primary {
        background: var(--secondary-color);
        color: #333;
        font-weight: bold;
    }

        .action-btn.primary:hover {
            background: #f7ef8a;
        }

/* 表单样式 */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #ccc;
}

.form-control {
    width: 100%;
    padding: 12px 18px;
    background: rgba(0, 0,0, .1);
    border: 1px solid rgba(0, 0,0, .5);
    border-radius: 8px;
    font-size: 16px;
    color: #000;
    transition: all 0.3s ease;
}

    .form-control:focus {
        border-color: var(--secondary-color);
        outline: none;
        box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
        background: rgba(255, 255, 255, 0.15);
    }

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

    .form-row .form-group {
        flex: 1;
        min-width: 200px;
    }

/* 数据统计样式 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }

.stat-card-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.stat-card-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.stat-card-label {
    font-size: 16px;
    color: #ccc;
}

.chart-container {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-placeholder {
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 18px;
}

/* 徽章样式 */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.badge-primary {
    background: var(--primary-color);
    color: white;
}

.badge-secondary {
    background: var(--secondary-color);
    color: #333;
}

.badge-success {
    background: var(--success-color);
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav li {
        margin: 5px;
    }

    .user-actions {
        margin-top: 15px;
    }

    .user-profile {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

    .user-avatar {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .user-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .user-actions-profile {
        justify-content: center;
        flex-wrap: wrap;
    }

    .form-row {
        flex-direction: column;
    }
}

/* 页面特定样式 */
.page {
    display: none;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 修改验证码布局 - 各占一半 */
.captcha-group {
    display: flex;
    gap: 10px;
    width: 100%;
}

.captcha-input {
    flex: 1;
    width: 50%;
}

.captcha-img {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    min-height: 48px;
    cursor: pointer;
    user-select: none;
    font-weight: bold;
    letter-spacing: 3px;
    font-size: 20px;
    color: #333;
    background-color: #f5f5f5;
    transition: all 0.3s ease;
}

    .captcha-img:hover {
        background-color: #e8e8e8;
        transform: translateY(-2px);
    }



/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 15px;
}

.page-btn {
    padding: 10px 20px;

    border-radius: 6px;
 
    cursor: pointer;
    transition: all 0.3s ease;
}

    .page-btn:hover:not(:disabled) {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }

    .page-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }



.page-info {
    color: #ccc;
    font-size: 14px;
}

.page.active {
    display: block;
}

.colorblack {
    color: #000 !important
}

.colorwhite {
    color: #fff !important
}

.hide {
    display: none
}

.show {
    display: block
}

/* 用户状态区域 */
.user-status {
    display: none;
    align-items: center;
    position: relative;
}

.user-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    margin-right: 12px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

    .user-avatar-small:hover {
        transform: scale(1.1);
    }

.user-info-small {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-phone {
    font-size: 14px;
    color: #ccc;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(30, 40, 60, 0.95);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 180px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    z-index: 1000;
    margin-top: 10px;
}

    .user-dropdown.active {
        display: block;
        animation: dropdownFadeIn 0.3s ease;
    }

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 12px 20px;
    color: #f0f0f0;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--secondary-color);
    }

    .dropdown-item i {
        margin-right: 10px;
        font-size: 16px;
    }

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

/* 左侧漂浮菜单 */
.floating-menu {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99;
    background: rgba(20, 30, 48, 0.85);
    border-radius: 16px;
    padding: 20px 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 60px;
    transition: all 0.3s ease;
}

    .floating-menu:hover {
        min-width: 160px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    }

.menu-title {
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
    white-space: nowrap;
    opacity: 1;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.floating-menu:hover .menu-title {
    opacity: 1;
    transform: translateX(0);
}

.menu-items {
    list-style: none;
}

.menu-item {
    margin-bottom: 15px;
    position: relative;
    text-align: center;
}

.menu-link {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .menu-link:hover, .menu-link.active {
        background: rgba(212, 175, 55, 0.15);
        color: var(--secondary-color);
        transform: translateX(5px);
    }

.menu-icon {
    font-size: 20px;
    margin-right: 0;
    width: 30px;
    text-align: center;
    transition: margin-right 0.3s ease;
}

.floating-menu:hover .menu-icon {
    margin-right: 10px;
}

.menu-text {
    opacity: 1;
    white-space: nowrap;
    transform: translateX(0px);
    transition: all 0.3s ease;
    font-size: 14px;
}

.floating-menu:hover .menu-text {
    opacity: 1;
    transform: translateX(0);
}
        

/* 移动端用户状态调整 */
@media (max-width: 768px) {
    .user-status {
        margin-top: 15px;
    }
    .smalllogo { display:none
    }
    .work-media {
        flex: 1;
        min-width: 350px;
        margin-right: 0px;
    }


}

@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        text-align: left;
    }

    .header-slogan {
        display: none;
    }

    /* 移动端隐藏桌面端漂浮菜单 */
    .floating-menu.desktop {
        display: none;
    }

    /* 移动端显示汉堡菜单按钮 */
    .mobile-menu-toggle {
        display: flex;
    }

    /* 移动端漂浮菜单样式 */
    .floating-menu.mobile {
        display: none;
        position: fixed;
        left: 15px;
        top: 290px;
        z-index: 100;
        background: rgba(20, 30, 48, 0.95);
        border-radius: 16px;
        padding: 20px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        width: 200px;
        max-height: calc(100vh - 130px);
        overflow-y: auto;
    }

        .floating-menu.mobile.active {
            display: block;
            animation: slideIn 0.3s ease;
        }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateX(-20px) translateY(-50%);
        }

        to {
            opacity: 1;
            transform: translateX(0) translateY(-50%);
        }
    }

    .floating-menu.mobile .menu-title {
        opacity: 1;
        transform: translateX(0);
        text-align: left;
        margin-bottom: 20px;
        font-size: 16px;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .floating-menu.mobile .menu-icon {
        margin-right: 15px;
    }

    .floating-menu.mobile .menu-text {
        opacity: 1;
        transform: translateX(0);
    }

    .floating-menu.mobile .menu-link {
        padding: 12px 15px;
        justify-content: flex-start;
        margin-bottom: 10px;
    }

        .floating-menu.mobile .menu-link:active {
            background: rgba(212, 175, 55, 0.2);
            transform: scale(0.98);
        }

    .user-actions {
        margin-top: 0;
    }

    .logo-text {
        font-size: 18px;
    }

    .logo-icon {
        font-size: 24px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    /* 页面内容在移动端的内边距调整 */
    .main-content {
        padding: 20px 0;
    }

    .page-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
}
/* 移动端汉堡菜单按钮 */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    right: 15px;
    top: 85px;
    z-index: 101;
    background: rgba(20, 30, 48, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

    .mobile-menu-toggle:hover {
        background: rgba(212, 175, 55, 0.2);
        transform: scale(1.1);
    }

.toggle-icon {
    font-size: 24px;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

    .toggle-icon.open {
        transform: rotate(90deg);
    }

