:root {
    --hello-kitty-pink: #ff99cc;
    --hello-kitty-light-pink: #ffcce6;
    --hello-kitty-red: #ff3366;
}

body {
    background-color: #fff5f9;
    font-family: 'Comic Sans MS', 'Marker Felt', cursive;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="20" cy="20" r="5" fill="%23ffd9e6" opacity="0.6"/><circle cx="50" cy="50" r="8" fill="%23ffd9e6" opacity="0.4"/><circle cx="80" cy="30" r="6" fill="%23ffd9e6" opacity="0.5"/></svg>');
    margin: 0;
    padding: 0;
}

.hello-kitty-header {
    background: linear-gradient(135deg, var(--hello-kitty-pink), var(--hello-kitty-red));
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255, 51, 102, 0.2);
    position: relative;
    overflow: hidden;
}

.hello-kitty-header::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -50px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.hello-kitty-header::after {
    content: "";
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.hello-kitty-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 16px rgba(255, 153, 204, 0.2);
    margin-bottom: 25px;
    overflow: hidden;
    border: 2px solid var(--hello-kitty-pink);
    transition: transform 0.3s, box-shadow 0.3s;
}

.hello-kitty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(255, 153, 204, 0.3);
}

.hello-kitty-card-header {
    background: linear-gradient(135deg, var(--hello-kitty-pink), var(--hello-kitty-red));
    color: white;
    padding: 15px 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.hello-kitty-card-header i {
    margin-right: 10px;
    font-size: 24px;
}

.hello-kitty-card-content {
    padding: 20px;
}

.days-counter {
    font-size: 3.5rem;
    font-weight: bold;
    text-align: center;
    color: var(--hello-kitty-red);
    text-shadow: 3px 3px 0px rgba(255, 153, 204, 0.4);
    margin: 20px 0;
}

.days-text {
    text-align: center;
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 30px;
}

.hello-kitty-btn {
    background: linear-gradient(135deg, var(--hello-kitty-pink), var(--hello-kitty-red));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(255, 51, 102, 0.3);
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.hello-kitty-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 51, 102, 0.4);
}

.hello-kitty-footer {
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 0.9rem;
    background-color: var(--hello-kitty-light-pink);
    margin-top: 30px;
    border-top: 3px solid var(--hello-kitty-pink);
}

.kitty-ears {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 60px;
}

.kitty-ear {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 50px solid var(--hello-kitty-pink);
}

.kitty-ear-left {
    left: 0;
}

.kitty-ear-right {
    right: 0;
}

.nav-menu {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.nav-item {
    margin: 0 10px;
    text-align: center;
}

.nav-item a {
    display: block;
    padding: 15px;
    background: white;
    border-radius: 15px;
    text-decoration: none;
    color: var(--hello-kitty-red);
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(255, 51, 102, 0.1);
    transition: all 0.3s;
    min-width: 150px;
}

.nav-item a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(255, 51, 102, 0.2);
    background: var(--hello-kitty-light-pink);
}

.nav-item i {
    font-size: 36px;
    margin-bottom: 10px;
    display: block;
    color: var(--hello-kitty-pink);
}

.heart {
    color: var(--hello-kitty-red);
    animation: heartbeat 1.2s infinite;
    display: inline-block;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* 后台样式 */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.admin-nav {
    background: linear-gradient(135deg, var(--hello-kitty-pink), var(--hello-kitty-red));
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
}

.admin-nav a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
    font-weight: bold;
    display: inline-block;
    padding: 8px 15px;
    border-radius: 50px;
    transition: background 0.3s;
}

.admin-nav a:hover, .admin-nav a.active {
    background: rgba(255, 255, 255, 0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-left: 5px solid var(--hello-kitty-pink);
}

.stat-card h3 {
    color: var(--hello-kitty-red);
    margin-top: 0;
}

.stat-card .number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--hello-kitty-pink);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--hello-kitty-red);
    font-weight: bold;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--hello-kitty-light-pink);
    border-radius: 10px;
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--hello-kitty-pink);
    outline: none;
}

.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 153, 204, 0.3);
    border: 3px solid var(--hello-kitty-pink);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header i {
    font-size: 64px;
    color: var(--hello-kitty-pink);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.admin-table th, .admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ffcce6;
}

.admin-table th {
    background-color: var(--hello-kitty-light-pink);
    color: var(--hello-kitty-red);
}

.admin-table tr:hover {
    background-color: rgba(255, 204, 230, 0.2);
}

.kitty-ears {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 60px;
}

.admin-title {
    position: relative;
    padding-top: 40px;
}

.ribbon {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--hello-kitty-red);
    color: white;
    padding: 5px 15px;
    font-size: 14px;
    transform: rotate(15deg);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* 特定页面样式 */
.anniversary-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px dashed #ffcce6;
}

.anniversary-item:last-child {
    border-bottom: none;
}

.anniversary-date {
    font-weight: bold;
    color: var(--hello-kitty-red);
}

.anniversary-title {
    flex-grow: 1;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.photo-item {
    border-radius: 12px;
    overflow: hidden;
    height: 150px;
    background-color: var(--hello-kitty-light-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--hello-kitty-pink);
    position: relative;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px;
    font-size: 0.8rem;
    text-align: center;
}

.photo-actions {
    position: absolute;
    top: 5px;
    right: 5px;
}

.message {
    padding: 10px;
    background: #d4edda;
    color: #155724;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.error-message {
    color: red;
    text-align: center;
    margin-bottom: 15px;
}