/* 纪念传记详情页 - 公共样式（所有模板共享） */

/* 基础变量 */
:root {
    --memorial-bg: #F5F0E9;
    --memorial-white: #FFFFFF;
    --memorial-dark: #433E38;
    --memorial-text: #433E38;
    --memorial-text-light: #666;
    --memorial-accent: #A67C52;
    --memorial-primary: #8B7D6B;
    --memorial-secondary: #F5F0E9;
    --memorial-border: #E0D9CC;
    --memorial-shadow: rgba(139, 125, 107, 0.15);
}

/* 公共容器 */
.memorial-detail {
    background-color: var(--memorial-bg);
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    color: var(--memorial-text);
    min-height: 100vh;
}

/* 纪念传记详情页隐藏主导航栏（通过控制器变量控制，这里作为备用） */
body:has(.memorial-detail) .main-nav {
    display: none !important;
}

.memorial-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 生平介绍内容格式 */
.biography-content {
    line-height: 1.8;
    color: var(--memorial-text);
    font-size: 1rem;
}

.biography-content p {
    margin-bottom: 1em;
}

.biography-content br {
    display: block;
    content: "";
    margin-top: 0.5em;
}

/* 隐私密码表单 */
.privacy-password-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(10px);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important;
    padding: 20px;
    box-sizing: border-box;
    margin: 0 !important;
}

.privacy-password-form {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    margin-top: 100px;
}

.password-form-container {
    background: #ffffff;
    border-radius: 16px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.password-form-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.password-form-icon i {
    font-size: 2.5rem;
    color: #ffffff;
}

.password-form-container h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px;
}

.password-form-hint {
    font-size: 1rem;
    color: #666;
    margin: 0 0 30px;
    line-height: 1.6;
}

.password-form-container .form-group {
    position: relative;
    margin-bottom: 20px;
}

.password-form-container .form-control {
    width: 100%;
    padding: 14px 50px 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.password-form-container .form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #667eea;
}

.password-toggle i {
    font-size: 1.2rem;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-align: left;
    border-left: 3px solid #c33;
}

.btn-submit {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-submit:active:not(:disabled) {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.password-form-container {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.password-form-container h3 {
    margin-bottom: 15px;
    color: #333;
}

.password-form-container form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.password-form-container input {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.password-form-container button {
    padding: 12px 24px;
    background: #A67C52;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

/* 分享按钮公共样式 */
.memorial-share-section {
    margin-top: 30px;
}

.share-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-wechat { background: #09bb07; }
.btn-weibo { background: #e6162d; }
.btn-qq { background: #12b7f5; }

.btn-copy {
    background: var(--memorial-white);
    border: 2px solid var(--memorial-accent);
    color: var(--memorial-accent);
}

.btn-copy:hover {
    background: var(--memorial-accent);
    color: var(--memorial-white);
}

.share-link {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--memorial-border);
    border-radius: 8px;
    background: var(--memorial-white);
    color: var(--memorial-text);
    font-family: monospace;
    margin-top: 15px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

/* 响应式 */
@media (max-width: 768px) {
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
}

