/* 公会大全页面样式 */

/* 基础布局 */
.main-content {
    min-height: 100vh;
    padding-top: 80px;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 页面标题区域 */
.page-header {
    padding: 60px 0 40px;
    text-align: center;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #64b5f6, #42a5f5, #2196f3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(33, 150, 243, 0.3);
    margin-bottom: 20px;
    letter-spacing: 2px;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 30px rgba(33, 150, 243, 0.3); }
    100% { text-shadow: 0 0 40px rgba(33, 150, 243, 0.6), 0 0 60px rgba(33, 150, 243, 0.3); }
}

.page-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* 统计数据 */
.guild-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffd54f, #ffca28);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

/* 公会展示区域 */
.guilds-showcase {
    padding: 80px 0;
}

/* 工具栏样式 */
.guild-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 20px;
}

.search-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    flex: 1;
    max-width: 400px;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-btn {
    background: linear-gradient(135deg, #64b5f6, #42a5f5);
    border: none;
    border-radius: 20px;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(100, 181, 246, 0.4);
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(100, 181, 246, 0.6);
}

.search-icon {
    font-size: 1.2rem;
}

.filter-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-select {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.filter-select:focus {
    border-color: #64b5f6;
    box-shadow: 0 0 20px rgba(100, 181, 246, 0.3);
}

.filter-select option {
    background: #1a1a1a;
    color: white;
}

.reset-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.reset-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.guilds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

/* 公会卡片 - 毛玻璃效果和错位布局 */
.guild-card {
    position: relative;
    height: 600px;
    perspective: 1000px;
    animation: cardFloat 6s ease-in-out infinite;
}

/* 错位效果 - 奇数卡片向右偏移，偶数卡片向左偏移 */
.guild-card:nth-child(odd) {
    transform: translateX(20px);
    animation-delay: 0s;
}

.guild-card:nth-child(even) {
    transform: translateX(-20px);
    animation-delay: 0.5s;
}

.guild-card:nth-child(3n) {
    animation-delay: 1s;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0) rotateY(0deg); }
    50% { transform: translateY(-10px) rotateY(2deg); }
}

.guild-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    border-radius: 25px;
    overflow: hidden;
}

.guild-card:hover .guild-card-inner {
    transform: rotateY(5deg) rotateX(5deg) translateZ(20px);
}

/* 公会图案装饰 */
.guild-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 30%,
        transparent 70%
    );
    border-radius: 50%;
    transform: translate(50%, -50%);
    animation: patternRotate 20s linear infinite;
}

@keyframes patternRotate {
    0% { transform: translate(50%, -50%) rotate(0deg); }
    100% { transform: translate(50%, -50%) rotate(360deg); }
}

/* 公会徽章 */
.guild-emblem {
    position: absolute;
    top: 40px;
    left: 40px;
    width: 80px;
    height: 80px;
    z-index: 2;
}

.emblem-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        rgba(100, 181, 246, 0.4) 0%,
        rgba(100, 181, 246, 0.2) 40%,
        transparent 70%
    );
    border-radius: 50%;
    animation: emblemPulse 3s ease-in-out infinite;
}

@keyframes emblemPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
}

.emblem-icon {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    color: #64b5f6;
    text-shadow: 0 0 20px rgba(100, 181, 246, 0.8);
    animation: emblemFloat 4s ease-in-out infinite;
}

@keyframes emblemFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(180deg); }
}

/* 公会内容 */
.guild-content {
    position: absolute;
    top: 140px;
    left: 40px;
    right: 40px;
    bottom: 40px;
    z-index: 2;
}

.guild-name {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.guild-motto {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    margin-bottom: 30px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #64b5f6;
    border-radius: 0 10px 10px 0;
}

/* 公会信息 */
.guild-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.info-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
}

.info-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #64b5f6;
}

/* 公会标签 */
.guild-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.tag {
    padding: 6px 12px;
    background: rgba(100, 181, 246, 0.2);
    color: #64b5f6;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(100, 181, 246, 0.3);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(100, 181, 246, 0.3);
    transform: translateY(-2px);
}

/* 公会操作按钮 */
.guild-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 15px;
}

.btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::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: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #64b5f6, #42a5f5);
    color: white;
    box-shadow: 0 4px 15px rgba(100, 181, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 181, 246, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 公会排行榜 */
.guild-rankings {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffd54f, #ffca28);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 60px;
}

.rankings-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ranking-item:hover {
    transform: translateX(10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.ranking-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #64b5f6, #42a5f5);
}

.rank-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #64b5f6, #42a5f5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    margin-right: 25px;
    box-shadow: 0 4px 15px rgba(100, 181, 246, 0.4);
}

.rank-content {
    flex: 1;
}

.rank-guild {
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
}

.rank-score {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

.rank-medal {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: relative;
}

.rank-medal.gold {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.rank-medal.silver {
    background: linear-gradient(135deg, #c0c0c0, #9e9e9e);
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.6);
}

.rank-medal.bronze {
    background: linear-gradient(135deg, #cd7f32, #a0522d);
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.6);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.close {
    color: rgba(255, 255, 255, 0.6);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: white;
}

.modal-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #64b5f6;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(100, 181, 246, 0.3);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .guilds-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .guild-card:nth-child(odd),
    .guild-card:nth-child(even) {
        transform: translateX(0);
    }
    
    .guild-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .guild-info {
        grid-template-columns: 1fr;
    }
    
    .guild-actions {
        flex-direction: column;
    }
    
    .guild-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .filter-container {
        justify-content: space-between;
        flex-wrap: wrap;
    }
    
    .filter-select,
    .reset-btn {
        flex: 1;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }
    
    .guild-card {
        height: 550px;
    }
    
    .guild-name {
        font-size: 1.8rem;
    }
    
    .rankings-container {
        padding: 0 10px;
    }
    
    .ranking-item {
        padding: 20px;
    }
    
    .rank-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-right: 15px;
    }
    
    .guild-toolbar {
        padding: 15px 0;
    }
    
    .search-input {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
    
    .filter-container {
        gap: 10px;
    }
    
    .filter-select,
    .reset-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}
