/* friendlinks-styles.css - 友情链接页面特有样式 */
body {
    background: linear-gradient(135deg, rgba(255, 225, 230, 0.95) 0%, rgba(255, 240, 245, 0.95) 100%) !important;
    background-attachment: fixed;
    color: #5a2d4e;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* 修复容器不溢出 */
.links-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* 页面标题区域 */
.page-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-top: 20px;
    width: 100%;
    box-sizing: border-box;
}

.page-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ff1493, #ff69b4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 10px rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #ff69b4 !important;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.85;
    font-weight: 500;
}

/* 网站信息卡片 */
.site-info-card {
    padding: 40px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-sizing: border-box;
}

.site-info-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(255, 105, 180, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}

.site-avatar {
    width: 100px;
    height: 100px;
    border-radius: 25px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.3);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
}

.site-info-card:hover .site-avatar {
    transform: scale(1.05);
}

.site-info-content {
    flex: 1;
}

.site-name {
    font-size: 2.2rem;
    margin: 0 0 15px 0;
    color: #ff1493 !important;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.site-desc {
    color: #ff69b4 !important;
    margin: 0 0 20px 0;
    line-height: 1.6;
    font-size: 1.1rem;
    opacity: 0.9;
}

.site-contact {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    border-radius: 50px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(15px) !important;
    color: #ff1493 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    border: 1px solid rgba(255, 182, 193, 0.5) !important;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.1) !important;
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: #ff69b4 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.2) !important;
    color: #ff1493 !important;
}

.contact-btn i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* 友链指南卡片 */
.guide-card {
    padding: 35px;
    margin-bottom: 50px;
    box-sizing: border-box;
}

.guide-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(255, 105, 180, 0.25) !important;
}

.guide-title {
    font-size: 1.8rem;
    color: #ff1493 !important;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.guide-title i {
    color: #ff1493 !important;
}

.guide-content {
    line-height: 1.8;
    color: #ff69b4 !important;
    font-size: 1.05rem;
    opacity: 0.9;
}

.guide-list {
    margin: 25px 0;
    padding-left: 20px;
}

.guide-list li {
    margin-bottom: 12px;
    color: #ff69b4 !important;
    position: relative;
    padding-left: 10px;
}

.guide-list li::before {
    content: "❤️";
    position: absolute;
    left: -20px;
    top: 2px;
    font-size: 0.9rem;
}

.guide-note {
    background: rgba(255, 182, 193, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    padding: 20px;
    border-radius: 15px;
    margin-top: 25px;
    border-left: 4px solid #ff69b4;
    color: #ff69b4 !important;
}

/* 友链网格容器 */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
    margin: 25px 0 50px;
    width: 100%;
    box-sizing: border-box;
}

/* 友链卡片样式 */
.link-card {
    padding: 20px !important;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    text-align: left;
    min-height: 130px;
    box-sizing: border-box;
}

/* 底部颜色条 - 初始状态 */
.link-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff1493, #ff69b4, #ff1493);
    transition: height 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

/* 卡片背景填充层 */
.link-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(to top, rgba(255, 20, 147, 0.2), rgba(255, 105, 180, 0.15));
    transition: height 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 0;
    border-radius: 20px;
}

/* 激活状态 */
.link-card.active::after {
    height: 100%;
}

.link-card.active::before {
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 20, 147, 0.3), rgba(255, 105, 180, 0.25));
}

.link-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(255, 105, 180, 0.25) !important;
}

.link-card:hover::before {
    height: 4px;
}

.link-card.active:hover::before {
    height: 100%;
}

/* 友链头像 */
.link-avatar {
    width: 60px !important;
    height: 60px !important;
    border-radius: 16px !important;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 6px 18px rgba(255, 105, 180, 0.2) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-right: 16px !important;
    z-index: 2;
    position: relative;
}

.link-card:hover .link-avatar {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 1) !important;
}

.link-card.active .link-avatar {
    border-color: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.3) !important;
}

/* 友链信息 */
.link-header {
    display: flex;
    align-items: flex-start;
    width: 100%;
    flex: 1;
    z-index: 2;
    position: relative;
}

.link-info {
    flex: 1;
    overflow: hidden;
}

/* 友链名称 */
.link-name {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    margin: 0 0 8px 0 !important;
    color: #ff1493 !important;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
    line-height: 1.3;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.link-card.active .link-name {
    color: white !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* 友链描述 */
.link-desc {
    color: #ff69b4 !important;
    font-size: 0.9rem !important;
    line-height: 1.5;
    margin: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.9;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.link-card.active .link-desc {
    color: rgba(255, 255, 255, 0.95) !important;
    opacity: 1;
}

/* 友链列表标题 */
.links-section-title {
    margin: 40px 0 25px;
    color: #ff1493 !important;
    font-size: 2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    padding-bottom: 15px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.links-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff1493, #ff69b4);
    border-radius: 2px;
}

.links-section-title i {
    color: #ff1493 !important;
    font-size: 1.8rem;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    margin: 10px 0 30px;
}

.empty-icon {
    font-size: 4rem;
    color: #ffb6c1;
    margin-bottom: 15px;
    opacity: 0.7;
}

.empty-title {
    font-size: 1.6rem;
    color: #ff1493 !important;
    margin-bottom: 10px;
    font-weight: 700;
}

.empty-desc {
    color: #ff69b4 !important;
    max-width: 400px;
    margin: 0 auto;
    font-size: 1rem;
    opacity: 0.9;
}

/* 悬浮申请按钮 */
.floating-apply-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
}

.floating-apply-btn .mdui-fab {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff1493, #ff69b4) !important;
    color: white !important;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.4) !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(15px);
    overflow: hidden;
    position: relative;
}

.floating-apply-btn .mdui-fab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.floating-apply-btn .mdui-fab:hover {
    transform: scale(1.15) rotate(5deg) !important;
    box-shadow: 0 15px 40px rgba(255, 105, 180, 0.6) !important;
}

.floating-apply-btn .mdui-fab:hover::before {
    transform: translateX(100%);
}

.floating-apply-btn .mdui-fab .mdui-icon {
    font-size: 28px;
    transition: transform 0.3s ease;
}

.floating-apply-btn .mdui-fab:hover .mdui-icon {
    transform: scale(1.1);
}

/* 弹窗样式 */
.apply-dialog {
    border-radius: 25px !important;
    overflow: hidden;
}

.mdui-dialog {
    z-index: 1001 !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-width: 520px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 225, 230, 0.98), rgba(255, 240, 245, 0.98)) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    border: 1px solid rgba(255, 182, 193, 0.6) !important;
    box-shadow: 0 25px 60px rgba(255, 105, 180, 0.35) !important;
}

/* 弹窗顶部样式 */
.apply-dialog .mdui-dialog-title {
    background: linear-gradient(135deg, #ff1493, #ff69b4) !important;
    color: white !important;
    padding: 25px 30px;
    font-weight: 700;
    font-size: 1.6rem;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 25px 25px 0 0 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.apply-dialog .mdui-dialog-title .mdui-typo-title {
    color: white !important;
    font-weight: 700 !important;
}

.apply-dialog .mdui-dialog-title .close-dialog-btn {
    color: white !important;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 12px !important;
    cursor: pointer;
    padding: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.apply-dialog .mdui-dialog-title .close-dialog-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: white !important;
    transform: scale(1.1) !important;
}

/* 弹窗底部样式 */
.mdui-dialog-actions {
    padding: 25px 30px 30px !important;
    background: rgba(255, 240, 245, 0.8) !important;
    border-top: 1px solid rgba(255, 182, 193, 0.3) !important;
}

/* 表单样式 */
.form-group {
    margin-bottom: 22px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    color: #ff1493 !important;
    font-weight: 600;
    font-size: 1.05rem;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 182, 193, 0.5) !important;
    border-radius: 14px !important;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #ff1493 !important;
    box-sizing: border-box;
    font-family: inherit;
    backdrop-filter: blur(15px);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.1) !important;
}

.form-input::placeholder {
    color: rgba(255, 105, 180, 0.6) !important;
}

.form-input:focus {
    outline: none;
    border-color: #ff69b4 !important;
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.15) !important;
    background: white !important;
    transform: translateY(-2px);
}

/* 输入验证样式 */
.form-input.error {
    border-color: #ff4757 !important;
    background: rgba(255, 182, 193, 0.1) !important;
}

.form-input.error:focus {
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.15) !important;
}

.error-message {
    color: #ff4757 !important;
    font-size: 0.85rem;
    margin-top: 6px;
    display: none;
    font-weight: 500;
}

.error-message.show {
    display: block;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-textarea {
    min-height: 130px;
    resize: vertical;
    line-height: 1.5;
}

.form-helper {
    font-size: 0.9rem;
    color: #ff69b4 !important;
    margin-top: 8px;
    opacity: 0.8;
    font-weight: 500;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #ff1493, #ff69b4) !important;
    color: white !important;
    border: none;
    border-radius: 50px !important;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    letter-spacing: 0.5px;
    font-family: inherit;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.3) !important;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.submit-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 30px rgba(255, 105, 180, 0.5) !important;
}

.submit-btn:hover::before {
    transform: translateX(100%);
}

.submit-btn:active {
    transform: translateY(-1px) !important;
}

.submit-btn.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

/* 底部毛玻璃提示样式 */
.beautify-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    color: #ff1493 !important;
    border-radius: 16px !important;
    padding: 18px 28px;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.35) !important;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 450px;
    width: auto;
    min-width: 300px;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    font-weight: 600;
    opacity: 0;
    transition: all 0.4s ease;
    font-size: 1.05rem;
    line-height: 1.5;
}

.beautify-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.beautify-toast.success {
    background: rgba(168, 230, 207, 0.95) !important;
    color: #1a7a5c !important;
    border-color: rgba(168, 230, 207, 0.8) !important;
}

.beautify-toast.error {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #ff1493 !important;
}

.beautify-toast.warning {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #ff69b4 !important;
}

/* 弹窗内容滚动优化 */
.mdui-dialog-content {
    max-height: calc(70vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 30px;
    box-sizing: border-box;
    background: rgba(255, 240, 245, 0.7) !important;
}

/* 页面加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header, .site-info-card, .guide-card, .links-grid {
    animation: fadeInUp 0.6s ease forwards;
}

.links-grid {
    animation-delay: 0.2s;
}

/* 修复弹窗遮罩层 */
.mdui-overlay {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000 !important;
}

@media (max-width: 768px) {
    .links-container {
        margin-top: 60px;
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .links-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
        margin: 20px 0 40px;
    }
    
    .site-info-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        box-sizing: border-box;
    }
    
    .site-contact {
        justify-content: center;
    }
    
    .floating-apply-btn {
        bottom: 30px;
        right: 30px;
    }
    
    .floating-apply-btn .mdui-fab {
        width: 60px;
        height: 60px;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .links-section-title {
        font-size: 1.8rem;
        margin: 30px 0 20px;
    }
    
    .mdui-dialog {
        width: 95% !important;
    }
    
    .beautify-toast {
        bottom: 20px;
        padding: 16px 24px;
        max-width: 350px;
        min-width: 280px;
        font-size: 1rem;
    }
    
    .link-card {
        padding: 18px !important;
        min-height: 120px;
    }
    
    .link-avatar {
        width: 55px !important;
        height: 55px !important;
        margin-right: 16px !important;
        border-radius: 14px !important;
    }
    
    .link-name {
        font-size: 1.3rem !important;
    }
    
    .link-desc {
        font-size: 0.85rem !important;
    }
}

@media (max-width: 480px) {
    .links-grid {
        grid-template-columns: 1fr;
        margin: 15px 0 30px;
    }
    
    .links-container {
        padding: 10px;
        box-sizing: border-box;
    }
    
    .link-card {
        padding: 16px !important;
        min-height: 110px;
    }
    
    .link-avatar {
        width: 50px !important;
        height: 50px !important;
        margin-right: 14px !important;
        border-radius: 12px !important;
    }
    
    .link-name {
        font-size: 1.2rem !important;
    }
    
    .link-desc {
        font-size: 0.8rem !important;
    }
    
    .floating-apply-btn {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-apply-btn .mdui-fab {
        width: 56px;
        height: 56px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .links-section-title {
        font-size: 1.6rem;
        margin: 25px 0 15px;
    }
    
    .mdui-dialog-content {
        padding: 20px;
    }
    
    .empty-state {
        padding: 30px 15px;
        margin: 5px 0 20px;
    }
    
    .empty-icon {
        font-size: 3rem;
    }
    
    .empty-title {
        font-size: 1.4rem;
    }
    
    .beautify-toast {
        bottom: 15px;
        padding: 14px 20px;
        max-width: 300px;
        min-width: 260px;
        font-size: 0.95rem;
    }
}