/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    color: #e6e6ff;
    overflow-x: hidden;
    position: relative;
    background-color: #0f0c29;
}

/* 背景粒子效果 */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* 科技感背景装饰 */
.tech-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 210, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 210, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-element {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #00d2ff, #7a3fff);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    top: 80%;
    left: 30%;
    animation-delay: 4s;
}

/* 磨砂玻璃效果 */
.glass-panel {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* 霓虹文字效果 */
.neon-text {
    background: linear-gradient(90deg, #00d2ff, #7a3fff, #ff00cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
    animation: neonGlow 2s ease-in-out infinite alternate;
}

/* 霓虹按钮效果 */
.neon-btn {
    background: linear-gradient(45deg, #00d2ff, #7a3fff);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.inactive-status {
    color: #ffffff !important;
    background: linear-gradient(135deg, #ff3333, #ff5555, #ff3333) !important;
    border: 3px solid #ff3333 !important;
    box-shadow: 0 6px 20px rgba(255, 51, 51, 0.6), 
                inset 0 2px 0 rgba(255, 255, 255, 0.4),
                0 0 0 1px rgba(255, 51, 51, 0.8) !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3), 
                 0 -1px 0 rgba(200, 0, 0, 0.5),
                 0 0 8px rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    font-weight: 900;
}

.neon-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.5s;
}

.neon-btn:hover::before {
    left: 100%;
}

.neon-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.5);
}

/* 玻璃按钮效果 */
.glass-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #e6e6ff;
    transition: all 0.3s ease;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

/* 动画效果 */
@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes neonGlow {
    from { filter: brightness(1) drop-shadow(0 0 5px rgba(0, 210, 255, 0.5)); }
    to { filter: brightness(1.2) drop-shadow(0 0 20px rgba(0, 210, 255, 0.8)); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* 顶部导航栏 */
header {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
}

.menu-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #00d2ff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

/* 电脑端完全隐藏顶部栏 */
@media (min-width: 1025px) {
    header {
        display: none;
    }
}

/* 平板和手机端显示顶部logo和菜单按钮 */
@media (max-width: 1024px) {
    header .logo {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    header .logo .neon-text-up {
         font-size: 1.1rem;
         margin: 0;
         background: linear-gradient(90deg, #00d2ff, #7a3fff);
         -webkit-background-clip: text;
         -webkit-text-fill-color: transparent;
         background-clip: text;
         font-weight: bold;
     }
     
     header .logo .subtitle-up {
         font-size: 0.7rem;
         color: #b0b0ff;
         letter-spacing: 1px;
         font-weight: 300;
         margin-top: 2px;
     }
    
    .menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Logo容器样式 */
.logo-container {
    position: relative;
    display: inline-block;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.3), transparent 70%);
    border-radius: 50%;
    animation: logoGlow 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes logoGlow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* 侧边栏样式 */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.sidebar.active {
    left: 0;
}

/* 电脑端侧边栏默认显示 */
@media (min-width: 1025px) {
    .sidebar {
        left: 0;
        width: 280px;
    }
    
    main {
        margin-left: 280px;
    }
    
    header {
        margin-left: 280px;
    }
}

/* 平板和手机端侧边栏默认隐藏 */
@media (max-width: 1024px) {
    .sidebar {
        left: -280px;
        width: 280px;
    }
    
    .sidebar.active {
        left: 0;
        width: 280px;
    }
    
    main {
        margin-left: 0;
    }
    
    header {
        margin-left: 0;
    }
}

/* 手机端侧边栏宽度限制 */
@media (max-width: 768px) {
    .sidebar {
        width: 280px;
        max-width: 80vw;
    }
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 210, 255, 0.1), rgba(122, 63, 255, 0.1));
    z-index: -1;
}

/* 侧边栏标题区域 */
.sidebar-title {
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Logo容器 */
.logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    width: 100%;
}

/* Logo样式 */
.sidebar-title .logo-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin: 0 auto 15px;
    display: block;
    border-radius: 50%;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 15px rgba(0, 210, 255, 0.6));
}

.sidebar-title .logo-image:hover {
    filter: drop-shadow(0 0 25px rgba(0, 210, 255, 0.9));
    transform: scale(1.05);
}

/* Logo发光效果 */
.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.3) 0%, transparent 70%);
    animation: logoGlow 3s ease-in-out infinite alternate;
    z-index: -1;
}

/* 侧边栏标题文字样式 */
.sidebar-title h2 {
    margin-bottom: 10px;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, #00d2ff, #7a3fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    width: 100%;
}

.subtitle {
    font-size: 1rem;
    color: #b0b0ff;
    letter-spacing: 2px;
    font-weight: 300;
    text-align: center;
    width: 100%;
}

@keyframes logoGlow {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.sidebar-links {
    padding: 30px 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 18px 30px;
    color: #e6e6ff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    margin: 5px 15px;
    border-radius: 12px;
}

.nav-link i {
    font-size: 1.2rem;
    margin-right: 15px;
    width: 20px;
    text-align: center;
    color: #00d2ff;
}

.nav-link span {
    font-weight: 500;
    font-size: 1rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #00d2ff, #7a3fff);
    border-radius: 0 4px 4px 0;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    color: #ffffff;
}

.nav-link:hover::before {
    transform: scaleY(1);
}

.nav-link:hover i {
    color: #7a3fff;
    transform: scale(1.2);
}

/* 主要内容区域样式 */
main {
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
}

/* 电脑端主内容区域适应侧边栏 */
@media (min-width: 1025px) {
    main {
        margin-left: 280px;
        margin-right: 0;
        max-width: calc(100vw - 280px);
        width: calc(100vw - 280px);
        padding: 30px 50px;
    }
}

/* 平板和手机端主内容区域 */
@media (max-width: 1024px) {
    main {
        margin-top: 80px;
        min-height: calc(100vh - 80px);
        padding: 20px;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* 确保所有主要内容区域居中 */
.login-prompt,
.cert-application,
.discount-info {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* 七夕活动专用样式 */
.qixi-container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    padding: 40px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.qixi-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.1), rgba(255, 20, 147, 0.1));
    z-index: -1;
}

.qixi-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.qixi-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #ff69b4, #ff1493, #dc143c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 105, 180, 0.6);
    animation: heartbeat 2s ease-in-out infinite;
}

.qixi-title p {
    font-size: 1.2rem;
    color: #ffb6c1;
    line-height: 1.6;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 证书申请区域 */
.cert-application {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    padding: 40px;
    margin-bottom: 30px;
    position: relative;
    text-align: center;
}

.cert-application::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.1), rgba(255, 105, 180, 0.1));
    border-radius: 20px;
    z-index: -1;
}

.cert-application h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #ff69b4, #ff1493, #dc143c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cert-application > p {
    color: #ffb6c1;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

.application-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.option h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #ff69b4, #ff1493);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.option p {
    color: #ffb6c1;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 25px;
}

.couple-code-input {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.couple-code-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 105, 180, 0.3);
    border-radius: 15px;
    padding: 12px 15px;
    color: #e6e6ff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.couple-code-input input:focus {
    border-color: rgba(255, 105, 180, 0.6);
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.3);
}

.couple-code-input input::placeholder {
    color: #b0b0ff;
}

.option {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 105, 180, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.3);
}

/* 按钮样式 */
.action-btn {
    background: linear-gradient(45deg, #ff69b4, #ff1493);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 105, 180, 0.6);
}

/* 输入框样式 */
.couple-code {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 105, 180, 0.3);
    border-radius: 15px;
    padding: 15px 20px;
    color: #e6e6ff;
    font-size: 1rem;
    width: 100%;
    outline: none;
    transition: all 0.3s ease;
}

.couple-code:focus {
    border-color: rgba(255, 105, 180, 0.6);
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.3);
}

/* 情侣证书显示区域 */
.couple-certificate {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 2px solid rgba(255, 105, 180, 0.4);
    box-shadow: 0 15px 40px rgba(255, 105, 180, 0.2), 0 0 60px rgba(255, 105, 180, 0.1);
    padding: 40px 35px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
    /* 响应式容器 */
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.couple-certificate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.12), rgba(255, 105, 180, 0.12), rgba(220, 20, 60, 0.08));
    border-radius: 25px;
    z-index: -1;
}

.couple-certificate::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 105, 180, 0.08), transparent, rgba(255, 20, 147, 0.08), transparent);
    animation: certificateRotate 25s linear infinite;
    z-index: -2;
}

@keyframes certificateRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.certificate-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 105, 180, 0.2);
    box-shadow: 0 8px 32px rgba(255, 105, 180, 0.15);
}

.certificate-header i {
    font-size: 2.5rem;
    background: linear-gradient(45deg, #ff69b4, #ff1493);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 15px;
    vertical-align: middle;
    display: inline-block;
    animation: certificateGlow 3s ease-in-out infinite;
}

@keyframes certificateGlow {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        filter: drop-shadow(0 0 10px rgba(255, 105, 180, 0.5));
    }
    50% { 
        transform: scale(1.1) rotate(5deg); 
        filter: drop-shadow(0 0 20px rgba(255, 105, 180, 0.8));
    }
}

.certificate-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(90deg, #ff69b4, #ff1493, #dc143c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    filter: drop-shadow(0 2px 4px rgba(255, 105, 180, 0.3));
}

.certificate-id {
    color: #ffb6c1;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.06);
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    border: 1px solid rgba(255, 105, 180, 0.3);
    margin-top: 10px;
}

.certificate-content {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 35px 30px;
    position: relative;
    margin-top: 25px;
    border: 1px solid rgba(255, 105, 180, 0.15);
    box-shadow: 0 10px 40px rgba(255, 105, 180, 0.1);
    font-weight: 500;
}

.certificate-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.12), rgba(255, 105, 180, 0.12));
    border-radius: 25px;
    z-index: -1;
}

.couple-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.couple-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    padding: 20px 15px;
    border-radius: 15px;
    border: 1px solid rgba(255, 105, 180, 0.2);
    min-width: 120px;
    transition: all 0.3s ease;
}

.couple-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.2);
}

.couple-member i {
    font-size: 1.8rem;
    color: #ff69b4;
    margin-bottom: 10px;
}

.couple-member span {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
}

.couple-heart {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: heartPulse 2s ease-in-out infinite;
}

.couple-heart i {
    font-size: 2rem;
    color: #ff1493;
    filter: drop-shadow(0 0 10px rgba(255, 20, 147, 0.6));
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.certificate-details {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    margin-top: 25px;
    border: 1px solid rgba(255, 105, 180, 0.1);
}

.certificate-details p {
    font-size: 1.1rem;
    margin: 15px 0;
    color: #e6e6ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.certificate-details span {
    font-weight: 600;
    color: #ff69b4;
}

/* 绑定日期样式 */
#binding-date {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

/* 情侣状态样式 */
#couple-status {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 12px 24px;
    border-radius: 25px;
    display: inline-block;
    font-size: 1rem;
    text-align: center;
    min-width: 100px;
    transition: all 0.3s ease;
    font-family: 'Arial Black', 'Microsoft YaHei', sans-serif;
}

.active-status {
    color: #ffffff !important;
    background: linear-gradient(135deg, #00cc44, #00ff66, #00cc44) !important;
    border: 3px solid #00ff66 !important;
    box-shadow: 0 8px 25px rgba(0, 255, 102, 0.7), 
                inset 0 2px 0 rgba(255, 255, 255, 0.3),
                0 0 0 2px rgba(0, 255, 102, 0.9) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 
                 0 0 10px rgba(255, 255, 255, 0.6),
                 0 1px 0 rgba(0, 150, 50, 0.8);
    position: relative;
    overflow: hidden;
    font-weight: 900;
}

.active-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.partner {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 25px 20px;
    border: 2px solid rgba(255, 105, 180, 0.3);
    position: relative;
    transition: all 0.3s ease;
}

.partner:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.25);
    border-color: rgba(255, 105, 180, 0.5);
}

.partner::before {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #ff69b4, #ff1493);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.partner:first-child::before {
    content: '&#128150; Partner A';
}

.partner:last-child::before {
    content: '&#128150; Partner B';
}

.partner h4 {
    color: #ff69b4;
    margin: 18px 0 12px;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

.partner p {
    color: #e6e6ff;
    margin: 8px 0;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
}

.certificate-date {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 105, 180, 0.3);
    color: #ffb6c1;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
}

.certificate-date::before {
    content: '🗓️ ';
    margin-right: 8px;
}

.certificate-details p {
    color: #ffb6c1;
    font-size: 1.1rem;
    margin: 12px 0;
    line-height: 1.6;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.active-status {
    color: #00ff66 !important;
    font-weight: 700;
    font-size: 1.1rem;
}

/* 优惠信息区域 */
.discount-info {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    padding: 30px;
    margin: 30px 0;
}

.discount-levels {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.discount-level {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.15));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 15px;
    padding: 18px 15px;
    margin: 0;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.discount-level::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
    border-radius: 18px;
    z-index: -1;
}

.discount-level:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.6);
}

.discount-level h3 {
    color: #ffd700;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.discount-level p {
    color: #fff3cd;
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 5px;
}

.discount-level .highlight {
    background: linear-gradient(90deg, #ffd700, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.2rem;
}

.level-icon {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.level-icon i {
    color: #ffd700;
    font-size: 1.2rem;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.level-details {
    flex: 1;
    text-align: left;
}

.level-details h3 {
    margin-bottom: 5px;
}

.level-details p {
    margin-bottom: 3px;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 2px solid transparent;
    background-image: linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)), 
                      linear-gradient(45deg, #00d2ff, #7a3fff);
    background-origin: border-box;
    background-clip: content-box, border-box;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    margin: 20vh auto;
    padding: 30px;
    width: 85%;
    max-width: 420px;
    position: relative;
    text-align: center;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.05), rgba(122, 63, 255, 0.05));
    border-radius: 20px;
    z-index: -1;
}

.modal-content .modal-icon {
    font-size: 3rem;
    color: #00d2ff;
    margin-bottom: 20px;
    display: block;
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.8);
    filter: drop-shadow(0 0 15px rgba(0, 210, 255, 0.6));
    opacity: 1;
    visibility: visible;
}

.modal-content .modal-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.share-code-display {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
    border: 1px solid rgba(0, 210, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

#share-code-text {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #00d2ff;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
    letter-spacing: 2px;
    flex: 1;
    text-align: center;
}

.share-note {
    color: #ffb6c1 !important;
    font-size: 0.9rem !important;
    font-style: italic;
    margin-top: 20px !important;
}

.close {
    color: #ff6b6b;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #ff6b6b, #ff4757);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.close:hover {
    background: linear-gradient(45deg, #ff4757, #ff3742);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.1);
}

.modal h2 {
    background: linear-gradient(90deg, #00d2ff, #7a3fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.modal p {
    color: #c0c0ff;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: center;
}

/* 模态框按钮 */
.modal-btn {
    background: linear-gradient(45deg, #00d2ff, #7a3fff);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
    margin: 0 10px;
    position: relative;
    overflow: hidden;
}

.modal-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.5s;
}

.modal-btn:hover::before {
    left: 100%;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.5);
}

.cancel-btn {
    background: linear-gradient(45deg, #6c757d, #495057);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.cancel-btn:hover {
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.5);
}

.certificate-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 105, 180, 0.3);
}

.share-btn, .dissolve-btn {
    background: linear-gradient(45deg, #00d2ff, #7a3fff);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-btn::before, .dissolve-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.5s;
}

.share-btn:hover::before, .dissolve-btn:hover::before {
    left: 100%;
}

.share-btn:hover, .dissolve-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.5);
}

.dissolve-btn {
    background: linear-gradient(45deg, #dc3545, #c82333);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.dissolve-btn:hover {
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.5);
}

/* 未登录提示样式 - 磨砂玻璃效果 */
.login-prompt {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding: 50px 40px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.login-prompt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.1), rgba(122, 63, 255, 0.1));
    border-radius: 20px;
    z-index: -1;
}

.login-prompt i {
    font-size: 4rem;
    background: linear-gradient(45deg, #00d2ff, #7a3fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.5));
    animation: pulse 2s ease-in-out infinite;
}

.login-prompt h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 15px 0;
    background: linear-gradient(90deg, #ffffff, #b3b3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-prompt p {
    color: #c0c0ff;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.login-btn {
    background: linear-gradient(45deg, #00d2ff, #7a3fff);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 210, 255, 0.6);
}

/* 桌面端discount-levels布局 */
@media (min-width: 1025px) {
    .discount-levels {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .discount-level {
        padding: 30px 25px;
    }
    
    .discount-level h4 {
        font-size: 1.4rem;
    }
    
    .discount-level p {
        font-size: 1.15rem;
    }
}

/* ===== 响应式设计优化 ===== */

/* 平板端优化 (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .qixi-container {
        padding: 35px 25px;
        max-width: 900px;
        margin: 0 auto;
    }
    
    .qixi-title h1 {
        font-size: 2.8rem;
        font-weight: 700;
        text-shadow: 0 2px 8px rgba(255, 107, 157, 0.3);
    }
    
    .discount-levels {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 700px;
        margin: 0 auto;
    }
    
    .discount-level {
        padding: 25px 20px;
        border-radius: 18px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
    
    .discount-level h3 {
        font-size: 1.4rem;
        font-weight: 600;
        margin-bottom: 15px;
    }
    
    .discount-level p {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    .certificate-content {
        padding: 35px 25px;
        margin: 30px 15px;
    }
    
    .certificate-details p {
        font-size: 1.1rem;
        margin: 15px 0;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
}

/* 手机端优化 (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .sidebar {
        width: 100%;
        left: -100%;
    }
    
    main {
        padding: 25px 20px;
        margin-top: 75px;
    }
    
    .qixi-container {
        padding: 30px 20px;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .qixi-title h1 {
        font-size: 2.4rem;
        font-weight: 700;
        text-shadow: 0 2px 8px rgba(255, 107, 157, 0.4);
        margin-bottom: 25px;
    }
    
    .modal-content {
        width: 92%;
        padding: 35px 25px;
        margin: 20vh auto;
        border-radius: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .discount-levels {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .discount-level {
        padding: 20px 18px;
        border-radius: 15px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
        backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.25);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
    
    .discount-level h3 {
        font-size: 1.2rem;
        font-weight: 600;
        margin-bottom: 8px;
    }
    
    .discount-level p {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .certificate-content {
        padding: 30px 20px;
        margin: 25px 10px;
    }
    
    .certificate-details p {
        font-size: 1.05rem;
        margin: 12px 0;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    .certificate-footer {
        flex-direction: column;
        gap: 18px;
        align-items: center;
    }
    
    .share-btn, .dissolve-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        font-size: 1.05rem;
        padding: 14px 20px;
    }
    
    .modal-content .modal-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .modal-btn {
        width: 100%;
        max-width: 220px;
        justify-content: center;
        font-size: 1.05rem;
    }
}

/* 小屏手机端优化 (≤480px) */
@media (max-width: 480px) {
    /* 整体缩放优化 */
    .qixi-container {
        padding: 25px 15px;
        transform: scale(0.75);
        transform-origin: center top;
        margin-top: -10px;
    }
    
    .sidebar {
        width: 100%;
        left: -100%;
    }
    
    main {
        padding: 20px 15px;
        margin-top: 70px;
    }
    
    .qixi-title h1 {
        font-size: 2rem;
        font-weight: 700;
        text-shadow: 0 2px 6px rgba(255, 107, 157, 0.4);
        margin-bottom: 20px;
        line-height: 1.2;
    }
    
    .modal-content {
        width: 95%;
        padding: 25px 18px;
        margin: 25vh auto;
        border-radius: 18px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: auto;
    }
    
    .discount-levels {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .discount-level {
        padding: 16px 12px;
        border-radius: 12px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }
    
    .discount-level h3 {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 6px;
    }
    
    .discount-level p {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .level-icon i {
        font-size: 1rem;
    }
    
    .certificate-header {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .certificate-header h2 {
        font-size: 1.6rem;
        font-weight: 600;
    }
    
    .certificate-header i {
        font-size: 1.8rem;
        margin-right: 10px;
    }
    
    .certificate-content {
        padding: 25px 18px;
        margin: 20px 8px;
    }
    
    .couple-info {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        gap: 12px;
        margin: 18px 0;
        flex-wrap: nowrap;
    }
    
    .couple-member {
        flex: 1;
        min-width: 85px;
        max-width: 130px;
        padding: 16px 12px;
        text-align: center;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    .couple-member i {
        font-size: 1.4rem;
        margin-bottom: 8px;
        color: #ff6b9d;
    }
    
    .couple-member span {
        font-size: 0.95rem;
        font-weight: 500;
        color: #fff;
    }
    
    .couple-heart i {
        font-size: 1.4rem;
        color: #ff6b9d;
    }
    
    .certificate-details {
        padding: 18px 15px;
        margin-top: 20px;
        background: rgba(255, 255, 255, 0.06);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .certificate-details p {
        font-size: 0.95rem;
        margin: 12px 0;
        font-weight: 500;
        color: #fff;
        line-height: 1.4;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    .certificate-footer {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        margin-top: 25px;
    }
    
    .share-btn, .dissolve-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
        font-size: 1rem;
        padding: 12px 18px;
        border-radius: 12px;
    }
    
    .modal-content .modal-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .modal-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
        font-size: 1rem;
        padding: 12px 16px;
    }
    
    /* 自定义里程碑优化 */
    .custom-milestone-item {
        padding: 15px 12px;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    .custom-milestone-item label {
        font-size: 0.85rem;
        font-weight: 500;
        color: #fff;
    }
    
    .custom-milestone-item .milestone-date {
        font-size: 0.8rem;
        color: #ccc;
    }
    
    .delete-milestone-btn {
        font-size: 0.75rem;
        padding: 5px 8px;
        border-radius: 6px;
    }
    
    .add-milestone-btn {
        font-size: 0.85rem;
        padding: 8px 14px;
        border-radius: 8px;
    }
    
    .save-btn, .cancel-btn {
        font-size: 0.85rem;
        padding: 8px 14px;
        border-radius: 8px;
    }
    
    /* 自定义弹窗移动端优化 */
    .custom-alert-box {
        padding: 25px 20px;
        margin: 20px;
        border-radius: 16px;
    }
    
    .custom-alert-icon {
        font-size: 2.5rem;
        width: 50px;
        height: 50px;
    }
    
    .custom-alert-message {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .custom-alert-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .custom-alert-buttons {
        gap: 10px;
        flex-direction: column;
    }
    
    .custom-alert-button {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: 120px;
        border-radius: 10px;
    }
    
    /* 在一起时间编辑优化 */
    .together-time-input {
        width: 140px;
        font-size: 0.85rem;
        padding: 6px 8px;
    }
    
    .together-time-display {
        font-size: 0.9rem;
    }
    
    .edit-time-btn, .save-time-btn {
        font-size: 0.75rem;
        padding: 4px 6px;
        min-width: 22px;
        height: 22px;
    }
    
    /* 里程碑和想念按钮优化 */
    .milestone-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
        border-radius: 8px;
    }
    
    .miss-you-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        border-radius: 12px;
    }
    
    .qixi-title p {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .cert-application,
    .couple-certificate,
    .discount-info {
        padding: 20px 15px;
        border-radius: 12px;
    }
    
    .action-btn {
        padding: 12px 20px;
        font-size: 1rem;
        border-radius: 10px;
    }
    
    header {
        padding: 1rem;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    /* 手机端证书优化 */
    .couple-certificate {
        padding: 30px 20px;
        margin: 20px 10px;
        border-radius: 20px;
    }
    
    .certificate-header h2 {
        font-size: 1.8rem;
    }
    
    .certificate-header i {
        font-size: 2rem;
    }
    
    .certificate-id {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
    
    .couple-info {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px 0;
    }
    
    .partner {
        padding: 20px 15px;
        border-radius: 15px;
    }
    
    .partner h4 {
        font-size: 1.1rem;
        margin: 15px 0 10px;
    }
    
    .partner p {
        font-size: 0.95rem;
    }
    
    .certificate-date {
        font-size: 1rem;
        margin-top: 25px;
        padding-top: 15px;
    }
    
    .certificate-content {
        padding: 35px 25px;
        border-radius: 20px;
        margin: 25px 5px;
    }
    
    .couple-info {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        gap: 12px;
        margin: 18px 0;
        flex-wrap: nowrap;
    }
    
    .couple-member {
        min-width: 100px;
        padding: 15px 10px;
    }
    
    .couple-member i {
        font-size: 1.5rem;
    }
    
    .couple-member span {
        font-size: 1rem;
    }
    
    .couple-heart i {
        font-size: 1.5rem;
    }
    
    .certificate-details {
        padding: 20px 15px;
    }
    
    .certificate-details p {
        font-size: 1rem;
        margin: 12px 0;
        line-height: 1.5;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    .certificate-details span {
        font-size: 0.95rem;
        font-weight: 600;
        color: #ff69b4;
    }
    
    .active-status {
        font-size: 1.1rem;
    }
    
    .milestone-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .milestone-item label {
        min-width: auto;
    }
    
    .milestone-input {
        width: 100%;
        max-width: 200px;
    }
    
    .miss-you-btn {
        font-size: 1rem;
        padding: 10px 25px;
    }
    
    /* 在一起时间编辑移动端样式 */
    .together-time-input {
        width: 160px;
        font-size: 12px;
        padding: 6px 8px;
        margin: 0 5px;
    }
    
    .together-time-display {
        font-size: 12px;
        margin: 0 5px;
    }
    
    .edit-time-btn, .save-time-btn {
        padding: 4px 8px;
        font-size: 10px;
        margin-left: 4px;
    }
    
    /* 移动端时间显示优化 */
    .certificate-details p {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px;
    }
    
    .miss-you-section {
        margin-top: 15px;
    }
    
    .miss-count-container {
        gap: 10px;
        margin-top: 8px;
    }
    
    .miss-count {
        font-size: 12px;
    }
}

/* 在一起时间编辑 - 响应式设计 */
.together-time-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    color: #fff;
    font-size: 14px;
    margin: 0 10px;
    width: 200px;
    max-width: 100%;
    box-sizing: border-box;
}

.together-time-input:focus {
    outline: none;
    border-color: #ff6b9d;
    box-shadow: 0 0 10px rgba(255, 107, 157, 0.3);
}

.together-time-display {
    color: #ff6b9d;
    font-weight: 500;
    margin: 0 10px;
    word-break: break-all;
    display: inline-block;
}

.edit-time-btn, .save-time-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    color: white;
    cursor: pointer;
    font-size: 12px;
    margin-left: 8px;
    transition: all 0.3s ease;
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.edit-time-btn:hover, .save-time-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.save-time-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* 证书详情区域响应式 */
.certificate-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.certificate-details p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 8px 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* 平板端优化 */
@media (max-width: 1024px) {
    .couple-certificate {
        padding: 30px 25px;
        margin: 20px 10px;
    }
    
    .certificate-details p {
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    .certificate-details span {
        font-size: 0.9rem;
        font-weight: 600;
        color: #ff69b4;
    }
    
    .together-time-input {
        width: 180px;
        font-size: 13px;
        padding: 7px 10px;
    }
    
    .edit-time-btn, .save-time-btn {
        font-size: 11px;
        padding: 5px 8px;
        min-width: 28px;
        height: 28px;
    }
}

/* 手机端优化 */
@media (max-width: 768px) {
    .couple-certificate {
        padding: 25px 20px;
        margin: 15px 5px;
        border-radius: 20px;
    }
    
    .certificate-details p {
        font-size: 0.9rem;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
        margin: 10px 0;
        line-height: 1.4;
    }
    
    .certificate-details span {
        font-size: 1.3rem;
        font-weight: 600;
        color: #ff9acc;
    }
    
    .together-time-input {
        width: 160px;
        font-size: 12px;
        padding: 6px 8px;
        margin: 5px 0;
    }
    
    .together-time-display {
        margin: 5px 0;
        font-size: 0.9rem;
    }
    
    .edit-time-btn, .save-time-btn {
        font-size: 10px;
        padding: 4px 6px;
        min-width: 24px;
        height: 24px;
        margin: 5px 2px;
    }
}



/* 里程碑记录区域样式 */
.milestone-section {
    margin-top: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 添加自定义里程碑样式 */
.add-milestone-section {
    margin-top: 15px;
    text-align: center;
}

.add-milestone-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.add-milestone-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.add-milestone-form {
    margin-top: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #e0e0ff;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.9rem;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.save-btn, .cancel-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.cancel-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
}

.save-btn:hover, .cancel-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 自定义里程碑项样式 */
.custom-milestone-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 8px;
}

/* 里程碑倒计时样式 */
.milestone-countdown {
    font-size: 0.75rem;
    color: #4facfe;
    background: rgba(79, 172, 254, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid rgba(79, 172, 254, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    animation: pulse 2s infinite;
}

.milestone-countdown i {
    font-size: 0.7rem;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.custom-milestone-item label {
    flex: 1;
    color: #e0e0ff;
    font-size: 0.9rem;
    min-width: 120px;
}

.custom-milestone-item .milestone-date {
    color: #4facfe;
    font-weight: 500;
    margin-right: 10px;
    font-size: 0.85rem;
}

.delete-milestone-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.delete-milestone-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.3);
}

/* 自定义里程碑响应式样式 */
@media (max-width: 768px) {
    .custom-milestone-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        padding: 15px;
    }
    
    .custom-milestone-item label {
        font-size: 0.85rem;
        flex: 1;
        min-width: 120px;
    }
    
    .custom-milestone-item .milestone-date {
        font-size: 0.8rem;
        margin-right: 10px;
    }
    
    .delete-milestone-btn {
        font-size: 0.75rem;
        padding: 5px 8px;
        flex-shrink: 0;
    }
    
    .add-milestone-btn {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
    
    .form-group input {
        font-size: 0.9rem;
        padding: 8px;
    }
}



.milestone-section h3 {
    color: #ff6b9d;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.milestone-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.milestone-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.milestone-item label {
    min-width: 80px;
    color: #fff;
    font-size: 0.9rem;
}

.milestone-input {
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.9rem;
    min-width: 120px;
}

.milestone-input:focus {
    outline: none;
    border-color: #ff6b9d;
    box-shadow: 0 0 10px rgba(255, 107, 157, 0.3);
}

.milestone-btn {
    padding: 6px 12px;
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.milestone-btn:hover {
    background: linear-gradient(135deg, #ff8fab, #d63384);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

.milestone-display {
    color: #4ecdc4;
    font-weight: 500;
    font-size: 0.9rem;
}

/* 想念功能区域样式 */
.miss-you-section {
    margin-top: 25px;
    text-align: center;
    padding: 20px;
    background: rgba(255, 107, 157, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 157, 0.2);
}

.miss-you-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #ff6b9d, #ff8fab);
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto 10px;
}

.miss-you-btn:hover {
    background: linear-gradient(135deg, #ff8fab, #ffb3c6);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 107, 157, 0.5);
}

.miss-you-btn:active {
    transform: translateY(-1px);
}

.miss-count-container {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 10px;
}

.miss-count {
    color: #fff;
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
    flex: 1;
    text-align: center;
}

.miss-count span {
    color: #ff6b9d;
    font-weight: 600;
}

/* 自定义弹窗样式 */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-alert-overlay.show {
    opacity: 1;
}

.custom-alert-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    position: relative;
}

.custom-alert-overlay.show .custom-alert-box {
    transform: scale(1);
}

.custom-alert-box::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 20px;
    background: linear-gradient(45deg, #00d2ff, #7a3fff, #ff00cc);
    z-index: -1;
    opacity: 0.6;
}

.custom-alert-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: bold;
}

.custom-alert-box.success .custom-alert-icon {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
}

.custom-alert-box.error .custom-alert-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.custom-alert-box.warning .custom-alert-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.custom-alert-box.info .custom-alert-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.custom-alert-message {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 25px;
    font-weight: 500;
}

.custom-alert-btn {
    background: linear-gradient(45deg, #00d2ff, #7a3fff);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
    min-width: 100px;
}

.custom-alert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.5);
}

.custom-alert-btn:active {
    transform: translateY(0);
}

/* 确认弹窗按钮样式 */
.custom-alert-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.custom-alert-button {
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.custom-alert-buttons .cancel-btn {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.custom-alert-buttons .cancel-btn:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.custom-alert-buttons .confirm-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.custom-alert-buttons .confirm-btn:hover {
    background: linear-gradient(135deg, #ee5a52 0%, #dc3545 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}



/* 确保图片保持原始尺寸 */
img {
    max-width: none;
    height: auto;
}

.logo-image {
    width: auto;
    height: auto;
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
}

header .logo-image {
    width: auto;
    height: 40px;
    max-width: none;
    max-height: 40px;
}

/* Emoji选择器样式 */
.input-with-emoji {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-with-emoji input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.input-with-emoji input:focus {
    outline: none;
    border-color: #ff6b9d;
    box-shadow: 0 0 10px rgba(255, 107, 157, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.emoji-btn {
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #ff6b9d;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.emoji-btn:hover {
    background: rgba(255, 107, 157, 0.2);
    border-color: #ff6b9d;
    transform: translateY(-1px);
}

.emoji-picker {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    width: 280px;
    max-height: 300px;
    background: rgba(20, 25, 40, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: emojiPickerSlideIn 0.3s ease;
}

@keyframes emojiPickerSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.emoji-categories {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px;
    gap: 4px;
}

.emoji-category {
    padding: 6px 8px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-category:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.emoji-category.active {
    background: rgba(255, 107, 157, 0.3);
    color: #ff6b9d;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    padding: 12px;
    max-height: 200px;
    overflow-y: auto;
}

.emoji-grid::-webkit-scrollbar {
    width: 6px;
}

.emoji-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.emoji-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 157, 0.5);
    border-radius: 3px;
}

.emoji-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 157, 0.7);
}

.emoji-item {
    padding: 6px;
    border: none;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
}

.emoji-item:hover {
    background: rgba(255, 107, 157, 0.2);
    transform: scale(1.1);
}

.emoji-item:active {
    transform: scale(0.95);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .emoji-picker {
        width: 260px;
        right: -20px;
    }
    
    .emoji-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}

@media (max-width: 480px) {
    .emoji-picker {
        width: 240px;
        right: -40px;
    }
    
    .emoji-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .input-with-emoji {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .emoji-btn {
        align-self: flex-end;
        width: 36px;
    }
}

/* 情侣功能导航区域样式 */
.couple-features-section {
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.couple-features-section h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
    color: #e6e6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.couple-features-section h3 i {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.feature-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    margin-right: 20px;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.8rem;
    color: white;
}

.feature-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #e6e6ff;
    font-weight: 600;
}

.feature-info p {
    font-size: 0.95rem;
    color: #b0b0ff;
    margin: 0;
    line-height: 1.4;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .couple-features-section {
        padding: 20px;
        margin-top: 30px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature-card {
        padding: 15px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        margin-right: 15px;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    .feature-info h4 {
        font-size: 1.1rem;
    }
    
    .feature-info p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .couple-features-section {
        padding: 15px;
    }
    
    .couple-features-section h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .feature-card {
        padding: 12px;
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
        margin-right: 12px;
    }
    
    .feature-icon i {
        font-size: 1.3rem;
    }
    
    .feature-info h4 {
        font-size: 1rem;
    }
    
    .feature-info p {
        font-size: 0.85rem;
    }
}

/* 纪念日倒计时样式 */
.anniversary-countdown-section {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.1), rgba(138, 43, 226, 0.1));
    border-radius: 15px;
    border: 1px solid rgba(255, 105, 180, 0.3);
    box-shadow: 0 4px 20px rgba(255, 105, 180, 0.2);
}

.countdown-container {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.countdown-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 105, 180, 0.3);
}

.countdown-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ff69b4;
}

.countdown-title i {
    margin-right: 8px;
    font-size: 1.3rem;
}

.countdown-display {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-number {
    font-size: 2rem;
    font-weight: bold;
    color: #00d2ff;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
    display: block;
    line-height: 1;
}

.countdown-label {
    font-size: 0.9rem;
    color: #b8b8ff;
    margin-top: 5px;
}

.countdown-target {
    font-size: 1rem;
    color: #ff69b4;
    margin-top: 10px;
    font-weight: 500;
}

/* 全屏倒计时模态框样式 */
.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    z-index: 10000;
    overflow: hidden;
    /* 优化显示清晰度 */
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
    /* 强制硬件加速 */
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
}

/* 真正全屏状态下的样式优化 */
.fullscreen-modal:fullscreen,
.fullscreen-modal:-webkit-full-screen,
.fullscreen-modal:-moz-full-screen,
.fullscreen-modal:-ms-fullscreen {
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
}

/* 全屏状态下的内容居中 */
.fullscreen-modal:fullscreen .fullscreen-content,
.fullscreen-modal:-webkit-full-screen .fullscreen-content,
.fullscreen-modal:-moz-full-screen .fullscreen-content,
.fullscreen-modal:-ms-fullscreen .fullscreen-content {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* 备用全屏模式样式（当浏览器不支持全屏API时） */
.fullscreen-modal.fallback-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
}

.fullscreen-modal.fallback-fullscreen .fullscreen-content {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* 移动设备优化 */
@media (max-width: 768px) {
    .fullscreen-modal.fallback-fullscreen {
        /* 确保在移动设备上完全覆盖屏幕 */
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        margin: 0;
        padding: 0;
    }
    
    .fullscreen-modal.fallback-fullscreen .fullscreen-content::after {
        bottom: 10px;
        font-size: 0.9rem;
    }
}

.fullscreen-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
}

.fullscreen-content::after {
    content: '双击屏幕退出全屏';
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    animation: fadeInOut 3s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}



.fullscreen-countdown {
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.fullscreen-title h1 {
    font-size: 4rem;
    color: #ff69b4;
    text-shadow: 0 0 30px rgba(255, 105, 180, 0.8);
    margin-bottom: 20px;
    animation: glow 2s ease-in-out infinite alternate;
}

.fullscreen-title p {
    font-size: 1.5rem;
    color: #b8b8ff;
    margin-bottom: 50px;
}

.fullscreen-countdown-display {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 40px 0;
}

.fullscreen-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.fullscreen-number {
    font-size: 6rem;
    font-weight: bold;
    color: #00d2ff;
    text-shadow: 0 0 30px rgba(0, 210, 255, 0.8);
    display: block;
    line-height: 1;
    animation: pulse 2s ease-in-out infinite;
}

.fullscreen-label {
    font-size: 1.5rem;
    color: #b8b8ff;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 烟花特效样式 */
.fireworks-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    display: none;
}

#fireworks-canvas {
    width: 100%;
    height: 100%;
}

/* 动画效果 */
@keyframes glow {
    from {
        text-shadow: 0 0 30px rgba(255, 105, 180, 0.8);
    }
    to {
        text-shadow: 0 0 50px rgba(255, 105, 180, 1), 0 0 70px rgba(255, 105, 180, 0.8);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .countdown-display {
        gap: 15px;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .fullscreen-title h1 {
        font-size: 2.5rem;
    }
    
    .fullscreen-countdown-display {
        gap: 30px;
        flex-wrap: wrap;
    }
    
    .fullscreen-number {
        font-size: 3rem;
    }
    
    .fullscreen-label {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .anniversary-countdown-section {
        padding: 15px;
        margin: 15px 0;
        max-width: 95vw;
    }
    
    .countdown-display {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .countdown-item {
        min-width: 70px;
        flex: 0 1 auto;
    }
    
    .countdown-number {
        font-size: 1.6rem;
        line-height: 1.2;
    }
    
    .countdown-label {
        font-size: 1rem;
        margin-top: 5px;
    }
    
    .fullscreen-title h1 {
        font-size: 2.8rem;
        line-height: 1.1;
        margin-bottom: 15px;
    }
    
    .fullscreen-title p {
        font-size: 1.4rem;
        margin-bottom: 30px;
    }
    
    .fullscreen-countdown-display {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 10px;
    }
    
    .fullscreen-countdown-item {
        min-width: 90px;
        flex: 0 1 auto;
    }
    
    .fullscreen-number {
        font-size: 3.5rem;
        line-height: 1;
    }
    
    .fullscreen-label {
        font-size: 1.2rem;
        margin-top: 10px;
    }
    
    .fullscreen-content::after {
        font-size: 1.1rem;
        bottom: 20px;
    }
    
    .close-fullscreen {
        top: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }
    
    /* 优化小屏幕显示清晰度 */
    .fullscreen-modal {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
}