* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://picsum.photos/1920/1080?random=1') center/cover;
    z-index: -2;
    opacity: 0.3;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.3) 0%, rgba(255, 240, 245, 0.3) 50%, rgba(230, 230, 250, 0.3) 100%);
    z-index: -1;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.loading {
    text-align: center;
    color: #fff;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.main-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 700px;
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.main-content.show {
    opacity: 1;
    transform: translateY(0);
}

.header {
    margin-bottom: 30px;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4a5568;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.emoji {
    display: inline-block;
    animation: bounce 2s infinite;
    font-size: 2rem;
}

.emoji:nth-child(1) {
    animation-delay: -0.5s;
}

.emoji:nth-child(3) {
    animation-delay: -1s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.date {
    font-size: 1.1rem;
    color: #718096;
    font-weight: 400;
}

/* 信息面板样式 */
.info-panel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 25px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.info-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
    border-radius: 15px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.info-icon {
    font-size: 1.1rem;
    min-width: 18px;
    text-align: center;
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.info-content {
    flex: 1;
    text-align: center;
}

.info-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 4px;
}

.info-label {
    font-size: 0.7rem;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-value {
    font-size: 0.85rem;
    color: #333;
    font-weight: 600;
    line-height: 1.2;
    word-break: break-all;
}

/* 特殊卡片样式 */
.time-card {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
}

.weather-card {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

.weather-card .info-label,
.weather-card .info-value {
    color: white;
}

.location-card {
    background: linear-gradient(135deg, #55a3ff 0%, #003d82 100%);
}

.location-card .info-label,
.location-card .info-value {
    color: white;
}

.ip-card {
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
}

.ip-card .info-label,
.ip-card .info-value {
    color: white;
}

.date-card {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.date-card .info-label,
.date-card .info-value {
    color: #2d3748;
}

.network-card {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

.network-card .info-label,
.network-card .info-value {
    color: #1a202c;
}

.browser-card {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.browser-card .info-label,
.browser-card .info-value {
    color: #744210;
}

.device-card {
    background: linear-gradient(135deg, #c2e9fb 0%, #a1c4fd 100%);
}

.device-card .info-label,
.device-card .info-value {
    color: #2b6cb0;
}

.quote-container {
    margin: 40px 0;
}

.quote-card {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.quote-card:hover {
    transform: translateY(-5px);
}

.quote-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.quote-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.quote-text {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #2d3748;
    font-weight: 500;
    margin-bottom: 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.quote-author {
    font-size: 1rem;
    color: #4a5568;
    font-style: italic;
    opacity: 0.8;
}

.actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.btn-cute {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 25px;
    padding: 15px 30px;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Noto Sans SC', sans-serif;
    position: relative;
    overflow: hidden;
    min-width: 120px;
    justify-content: center;
}

.btn-cute::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.btn-cute:hover::before {
    width: 300px;
    height: 300px;
}

.btn-cute:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-cute:active {
    transform: translateY(0);
}

.btn-emoji {
    font-size: 1.1rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-cute:hover .btn-emoji {
    transform: scale(1.2);
}

.footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.decorative-elements {
    margin-bottom: 15px;
}

.decoration {
    display: inline-block;
    font-size: 1.5rem;
    margin: 0 10px;
    animation: twinkle 2s infinite;
}

.decoration:nth-child(1) { animation-delay: 0s; }
.decoration:nth-child(2) { animation-delay: 0.4s; }
.decoration:nth-child(3) { animation-delay: 0.8s; }
.decoration:nth-child(4) { animation-delay: 1.2s; }
.decoration:nth-child(5) { animation-delay: 1.6s; }

@keyframes twinkle {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.footer-text {
    font-size: 0.9rem;
    color: #718096;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .main-content {
        padding: 25px;
        margin: 20px 0;
        max-width: 100%;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .info-panel {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }
    
    .info-card {
        padding: 12px;
    }
    
    .info-icon {
        font-size: 1rem;
    }
    
    .info-label {
        font-size: 0.65rem;
    }
    
    .info-value {
        font-size: 0.8rem;
    }
    
    .info-header {
        gap: 5px;
        margin-bottom: 3px;
    }
    
    .quote-text {
        font-size: 1.1rem;
    }
    
    .actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-cute {
        width: 100%;
        justify-content: center;
        padding: 12px 25px;
    }
    
    .decoration {
        margin: 0 5px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.8rem;
    }
    
    .info-panel {
        grid-template-columns: 1fr;
        gap: 8px;
        margin: 20px 0;
        padding: 10px;
    }
    
    .info-card {
        padding: 10px;
        gap: 4px;
    }
    
    .info-icon {
        font-size: 1rem;
    }
    
    .info-label {
        font-size: 0.65rem;
    }
    
    .info-value {
        font-size: 0.8rem;
    }
    
    .info-header {
        gap: 4px;
        margin-bottom: 2px;
    }
    
    .quote-card {
        padding: 20px;
    }
    
    .quote-text {
        font-size: 1rem;
    }
    
    .btn-cute {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
} 