/**
 * 恋爱协会官网 - 全局样式
 * Love Association Website - Global Styles
 */

/* ========================================
   CSS 变量
   ======================================== */
:root {
    /* 主色调 */
    --primary-color: #e91e63;
    --primary-dark: #c2185b;
    --primary-light: #f8bbd9;
    --secondary-color: #ff5722;
    
    /* 状态颜色 */
    --success-color: #4caf50;
    --error-color: #f44336;
    --warning-color: #ff9800;
    --info-color: #2196f3;
    
    /* 文字颜色 */
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: #999;
    --text-white: #fff;
    
    /* 背景颜色 */
    --bg-light: #f5f5f5;
    --bg-white: #fff;
    --bg-pink-light: #fff5f7;
    --bg-pink: #ffe4ec;
    
    /* 边框颜色 */
    --border-color: #eee;
    --border-light: #f0f0f0;
    
    /* 阴影 */
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 5px 20px rgba(233, 30, 99, 0.4);
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #e91e63, #ff5722);
    --gradient-bg: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    --gradient-success: linear-gradient(135deg, #4caf50, #8bc34a);
    --gradient-danger: linear-gradient(135deg, #f44336, #ff5722);
    --gradient-warning: linear-gradient(135deg, #fff3e0, #ffe0b2);
    
    /* 圆角 */
    --border-radius: 10px;
    --border-radius-lg: 20px;
    --border-radius-sm: 8px;
    --border-radius-full: 50%;
    
    /* 过渡 */
    --transition: 0.3s ease;
    --transition-fast: 0.2s ease;
    
    /* 字体 */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ========================================
   重置样式
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-light);
    min-height: 100vh;
}

/* 渐变背景页面 */
body.gradient-bg {
    background: var(--gradient-bg);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

/* ========================================
   通用容器
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.page-container.wide {
    max-width: 700px;
}

/* ========================================
   导航栏
   ======================================== */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow-light);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.navbar-nav {
    display: flex;
    gap: 30px;
}

.navbar-nav a {
    color: var(--text-primary);
    font-weight: 500;
    transition: color var(--transition);
}

.navbar-nav a:hover {
    color: var(--primary-color);
}

/* 移动端导航 */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
}

/* ========================================
   返回链接
   ======================================== */
.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-white);
    text-decoration: none;
    margin-bottom: 20px;
    font-weight: 500;
    transition: opacity var(--transition);
}

.back-link:hover {
    opacity: 0.8;
    text-decoration: underline;
    color: var(--text-white);
}

/* ========================================
   按钮样式
   ======================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    text-decoration: none;
    line-height: 1.5;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
    color: var(--text-white);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: var(--border-color);
    transform: none;
    box-shadow: none;
}

.btn-outline {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

.btn-success {
    background: var(--gradient-success);
    color: var(--text-white);
}

.btn-danger {
    background: var(--gradient-danger);
    color: var(--text-white);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(244, 67, 54, 0.4);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

/* ========================================
   表单样式
   ======================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--bg-white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.form-control.error {
    border-color: var(--error-color);
}

.form-control::placeholder {
    color: var(--text-light);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.error-message {
    color: var(--error-color);
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

/* ========================================
   提示信息
   ======================================== */
.alert {
    padding: 12px 16px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.alert.show,
.alert.success,
.alert.error,
.alert.warning,
.alert.info {
    display: block;
}

.alert-success, .alert.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.alert-error, .alert.error {
    background: #ffebee;
    color: #c62828;
}

.alert-warning, .alert.warning {
    background: #fff3e0;
    color: #e65100;
}

.alert-info, .alert.info {
    background: #e3f2fd;
    color: #1565c0;
}

/* ========================================
   卡片样式
   ======================================== */
.card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    padding: 24px;
    transition: box-shadow var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-medium);
}

/* 页面主容器卡片 */
.main-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-heavy);
    padding: 30px;
}

/* ========================================
   标签页
   ======================================== */
.tab-container {
    display: flex;
    margin-bottom: 25px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 5px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text-secondary);
}

.tab-btn.active {
    background: var(--bg-white);
    color: var(--primary-color);
    box-shadow: var(--shadow-light);
}

.tab-btn:hover:not(.active) {
    color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ========================================
   筛选标签
   ======================================== */
.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 16px;
    border: none;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text-secondary);
}

.filter-tab.active {
    background: var(--gradient-primary);
    color: var(--text-white);
}

.filter-tab:hover:not(.active) {
    background: var(--border-color);
}

/* ========================================
   列表项样式
   ======================================== */
.list-item {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    border-left: 4px solid var(--primary-color);
    cursor: pointer;
    transition: all var(--transition);
}

.list-item:hover {
    background: var(--bg-pink-light);
    transform: translateX(5px);
}

.list-item .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.list-item .content {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-item .footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-light);
}

/* 状态徽章 */
.badge {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.badge-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
}

.badge-success {
    background: #e8f5e9;
    color: #388e3c;
}

.badge-warning {
    background: #fff3e0;
    color: #f57c00;
}

.badge-danger {
    background: #ffebee;
    color: #d32f2f;
}

.badge-info {
    background: #e3f2fd;
    color: #1976d2;
}

/* ========================================
   弹窗样式
   ======================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    max-width: 450px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2, .modal-header h3 {
    color: var(--primary-color);
    font-size: 20px;
    text-align: center;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 15px 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.modal-footer .btn {
    flex: 1;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    transition: color var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
}

/* ========================================
   加载状态
   ======================================== */
.loading {
    display: none;
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.loading.show {
    display: block;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: var(--border-radius-full);
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   空状态
   ======================================== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.empty-state .icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.empty-state p {
    margin-bottom: 8px;
}

/* ========================================
   分页
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.pagination button {
    padding: 8px 16px;
    border: none;
    background: var(--bg-light);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 14px;
}

.pagination button:hover:not(:disabled) {
    background: var(--primary-color);
    color: var(--text-white);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .page-info {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ========================================
   页面头部
   ======================================== */
.page-header {
    text-align: center;
    margin-bottom: 25px;
}

.page-header h1 {
    color: var(--primary-color);
    font-size: 26px;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ========================================
   认证页面样式
   ======================================== */
.auth-container {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-heavy);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* 认证页面居中布局 */
body.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}


/* ========================================
   选项网格
   ======================================== */
.option-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.option-item {
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.option-item:hover {
    border-color: var(--primary-color);
    background: var(--bg-pink-light);
}

.option-item.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--bg-pink-light), var(--bg-pink));
}

.option-item .icon {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.option-item .title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.option-item .desc {
    font-size: 12px;
    color: var(--text-light);
}

/* ========================================
   状态卡片
   ======================================== */
.status-card {
    background: linear-gradient(135deg, var(--bg-pink-light), var(--bg-pink));
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
}

.status-card.active {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.status-card.warning {
    background: var(--gradient-warning);
}

.status-card .icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.status-card h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.status-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ========================================
   邀请码显示
   ======================================== */
.invite-code-display {
    background: #f8f8f8;
    border: 2px dashed var(--primary-color);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
}

.invite-code-display .code {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 4px;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
}

.invite-code-display p {
    color: var(--text-secondary);
    font-size: 14px;
}

.copy-btn {
    background: var(--gradient-primary);
    color: var(--text-white);
    border: none;
    padding: 10px 25px;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
    transition: all var(--transition);
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
}

/* ========================================
   提醒横幅
   ======================================== */
.reminder-banner {
    background: var(--gradient-warning);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    display: none;
}

.reminder-banner.show {
    display: block;
}

.reminder-banner h3 {
    color: #e65100;
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reminder-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #ffcc80;
}

.reminder-item:last-child {
    border-bottom: none;
}

.reminder-item .name {
    font-weight: 500;
    color: var(--text-primary);
}

.reminder-item .days {
    color: #e65100;
    font-weight: 600;
    font-size: 13px;
}

.reminder-item .days.today {
    color: var(--primary-color);
}

/* ========================================
   通知单/协议卡片样式
   ======================================== */
.notice-card,
.agreement-card {
    background: linear-gradient(135deg, var(--bg-pink-light), var(--bg-pink));
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.notice-header,
.agreement-card-header {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 25px 20px;
    text-align: center;
}

.notice-header h2,
.agreement-card-header h2 {
    font-size: 22px;
    margin-bottom: 5px;
}

.notice-header .subtitle,
.agreement-card-header .subtitle {
    font-size: 13px;
    opacity: 0.9;
}

.notice-body,
.agreement-card-body {
    padding: 25px 20px;
}

.notice-field,
.agreement-field {
    margin-bottom: 18px;
}

.notice-field .label,
.agreement-field .label {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.notice-field .value,
.agreement-field .value {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.6;
}

.notice-field .highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.notice-footer,
.agreement-card-footer {
    border-top: 1px dashed var(--primary-color);
    padding: 20px;
    text-align: center;
}

.stamp {
    display: inline-block;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-full);
    width: 70px;
    height: 70px;
    line-height: 66px;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: bold;
    transform: rotate(-15deg);
}

.stamp.signed {
    border-color: var(--success-color);
    color: var(--success-color);
}

.notice-actions,
.agreement-actions {
    padding: 15px 20px;
    display: flex;
    gap: 10px;
}

.notice-actions .btn,
.agreement-actions .btn {
    flex: 1;
}

/* ========================================
   证书样式
   ======================================== */
.certificate-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.certificate-card.romantic {
    background: linear-gradient(135deg, #ff6b9d, #ff9a9e, #fecfef);
}

.certificate-card.elegant {
    background: linear-gradient(135deg, #d4af37, #f5e6a3, #d4af37);
}

.certificate-card.cute {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4, #ffecd2);
}

.certificate-card.simple {
    background: linear-gradient(135deg, #333, #555, #333);
}

.cert-header {
    padding: 25px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
}

.cert-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-white);
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cert-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 2px;
}

.cert-body {
    background: rgba(255, 255, 255, 0.95);
    margin: 0 15px;
    border-radius: 15px;
    padding: 25px 20px;
}

.cert-couple {
    text-align: center;
    margin-bottom: 20px;
}

.cert-names {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.cert-heart {
    color: #ff4081;
    margin: 0 10px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.cert-days {
    font-size: 14px;
    color: var(--text-secondary);
}

.cert-days strong {
    color: var(--primary-color);
    font-size: 18px;
}

.cert-info {
    border-top: 1px dashed var(--border-color);
    padding-top: 15px;
}

.cert-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cert-label {
    color: var(--text-light);
    font-size: 13px;
}

.cert-value {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
}

.cert-footer {
    padding: 20px;
    text-align: center;
}

.cert-stamp {
    display: inline-block;
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius-full);
    width: 80px;
    height: 80px;
    line-height: 74px;
    color: var(--text-white);
    font-size: 11px;
    font-weight: bold;
    transform: rotate(-15deg);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.cert-no {
    margin-top: 10px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
}

/* ========================================
   统计卡片
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    transition: all var(--transition);
}

.stat-card:hover {
    background: var(--bg-pink-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.1);
}

.stat-card .icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 5px;
}

/* ========================================
   时间线
   ======================================== */
.timeline {
    position: relative;
}

.timeline-month {
    margin-bottom: 25px;
}

.timeline-month-header {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 10px 16px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 15px;
}

.timeline-items {
    padding-left: 20px;
    border-left: 2px solid #fce4ec;
}

.timeline-item {
    position: relative;
    padding: 12px 15px;
    background: #f9f9f9;
    border-radius: var(--border-radius);
    margin-bottom: 12px;
    margin-left: 15px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 18px;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: var(--border-radius-full);
    border: 2px solid var(--bg-white);
}

.timeline-item .item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
}

.timeline-item .item-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.timeline-item .item-date {
    font-size: 12px;
    color: var(--text-light);
}

.timeline-item .item-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ========================================
   情侣卡片
   ======================================== */
.couple-card {
    background: var(--gradient-primary);
    border-radius: 16px;
    padding: 25px;
    color: var(--text-white);
    text-align: center;
    margin-bottom: 25px;
}

.couple-names {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.couple-names .heart {
    font-size: 24px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.days-together {
    margin-top: 10px;
}

.days-number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.days-label {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 5px;
}

/* ========================================
   操作按钮组
   ======================================== */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.action-btn.edit-btn {
    background: #e3f2fd;
    color: #1976d2;
}

.action-btn.edit-btn:hover {
    background: #bbdefb;
}

.action-btn.delete-btn {
    background: #ffebee;
    color: #c62828;
}

.action-btn.delete-btn:hover {
    background: #ffcdd2;
}

/* ========================================
   首页特定样式
   ======================================== */
.hero {
    background: var(--gradient-bg);
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 48px;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text h1 span {
    color: var(--primary-color);
}

.hero-text p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-emoji {
    font-size: 200px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* 服务区域 */
.services {
    padding: 80px 0;
    background: var(--bg-white);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 16px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-light);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    text-align: center;
    transition: all var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
    background: var(--bg-white);
}

.service-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

/* 特色区域 */
.features {
    padding: 80px 0;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* 流程区域 */
.process {
    padding: 80px 0;
    background: var(--bg-white);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
}

.process-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--text-white);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.process-step h4 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.process-step p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* CTA 区域 */
.cta {
    padding: 80px 0;
    background: var(--gradient-primary);
    text-align: center;
}

.cta h2 {
    font-size: 36px;
    color: var(--text-white);
    margin-bottom: 20px;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 30px;
}

.cta .btn {
    background: var(--bg-white);
    color: var(--primary-color);
}

.cta .btn:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* 页脚 */
.footer {
    padding: 40px 0;
    background: var(--text-primary);
    color: var(--text-white);
    text-align: center;
}

.footer p {
    font-size: 14px;
    opacity: 0.8;
}

/* ========================================
   仪表盘样式
   ======================================== */
.dashboard {
    padding: 30px 0;
}

.dashboard-header {
    margin-bottom: 30px;
}

.welcome-section {
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    color: var(--text-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-text h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.welcome-text p {
    opacity: 0.9;
    font-size: 16px;
}

.days-counter {
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 20px 30px;
}

.days-counter .number {
    font-size: 48px;
    font-weight: bold;
    display: block;
}

.days-counter .label {
    font-size: 14px;
    opacity: 0.9;
}

/* 快捷入口 */
.quick-actions {
    margin-bottom: 30px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.action-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    text-align: center;
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.action-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.action-card h3 {
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 8px;
}

.action-card p {
    color: var(--text-secondary);
    font-size: 13px;
}

/* 未登记状态 */
.no-couple {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    text-align: center;
}

.no-couple-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.no-couple h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.no-couple p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ========================================
   工具类
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--text-secondary); }
.text-success { color: var(--success-color); }
.text-danger { color: var(--error-color); }
.text-warning { color: var(--warning-color); }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.my-1 { margin-top: 10px; margin-bottom: 10px; }
.my-2 { margin-top: 20px; margin-bottom: 20px; }
.my-3 { margin-top: 30px; margin-bottom: 30px; }

.p-1 { padding: 10px; }
.p-2 { padding: 20px; }
.p-3 { padding: 30px; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }
.gap-3 { gap: 30px; }

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-emoji {
        font-size: 150px;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .navbar-nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .page-container {
        padding: 15px;
    }
    
    .main-card {
        padding: 20px;
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
    
    .hero-emoji {
        font-size: 120px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .process-steps {
        flex-direction: column;
    }
    
    .welcome-section {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .days-counter .number {
        font-size: 36px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .option-grid {
        grid-template-columns: 1fr;
    }
    
    .modal {
        margin: 10px;
        max-height: 85vh;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .hero-text h1 {
        font-size: 28px;
    }
    
    .hero-emoji {
        font-size: 100px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .days-number {
        font-size: 40px;
    }
    
    .couple-names {
        font-size: 18px;
    }
    
    .cert-names {
        font-size: 18px;
    }
    
    .auth-container {
        padding: 25px;
    }
}

/* ========================================
   打印样式
   ======================================== */
@media print {
    .navbar,
    .back-link,
    .btn,
    .modal-overlay {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .certificate-card,
    .notice-card {
        box-shadow: none;
        page-break-inside: avoid;
    }
}
