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

:root {
    --primary-pink: #FF6B9D;
    --primary-orange: #FF8E53;
    --primary-blue: #87CEEB;
    --primary-green: #98FB98;
    --primary-purple: #DDA0DD;
    --gold: #FFD700;
    --soft-yellow: #FFF8DC;
    --soft-white: #FFFAF0;
}

body {
    font-family: 'Comic Sans MS', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    min-height: 100vh;
    color: #333;
    position: relative;
    overflow-x: hidden;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background 1s ease-in-out;
}

.background-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(135, 206, 235, 0.7) 0%, rgba(152, 251, 152, 0.7) 50%, rgba(255, 228, 225, 0.7) 100%);
}

.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FF6B9D, #FFB6C1);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #87CEEB, #ADD8E6);
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}

.shape:nth-child(3) {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #98FB98, #90EE90);
    top: 60%;
    left: 5%;
    animation-delay: 4s;
}

.shape:nth-child(4) {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    top: 70%;
    right: 10%;
    animation-delay: 6s;
}

.shape:nth-child(5) {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #DDA0DD, #E6E6FA);
    top: 40%;
    left: 80%;
    animation-delay: 8s;
}

.shape:nth-child(6) {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FF69B4, #FFB6C1);
    top: 85%;
    left: 30%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) rotate(90deg);
    }
    50% {
        transform: translateY(0) rotate(180deg);
    }
    75% {
        transform: translateY(30px) rotate(270deg);
    }
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.header {
    background: linear-gradient(135deg, #FF6B9D 0%, #FF8E53 100%);
    color: white;
    padding: 25px 0;
    box-shadow: 0 8px 30px rgba(255, 107, 157, 0.5);
    border-bottom: 5px dashed #FFD700;
    position: relative;
    z-index: 10;
}

.header::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
    height: 5px;
    background: repeating-linear-gradient(90deg, #FFD700, #FFD700 10px, transparent 10px, transparent 20px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo h1 {
    font-size: 32px;
    margin-bottom: 5px;
    text-shadow: 3px 3px 0px rgba(0,0,0,0.2);
    animation: rainbow 3s infinite;
}

@keyframes rainbow {
    0%, 100% { color: white; }
    33% { color: #FFD700; }
    66% { color: #87CEEB; }
}

.logo .slogan {
    font-size: 15px;
    opacity: 0.95;
}

.search-box {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 550px;
}

.search-box input {
    flex: 1;
    padding: 14px 24px;
    border: 4px solid #FFD700;
    border-radius: 30px;
    font-size: 16px;
    outline: none;
    background: #FFF8DC;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.1), 0 4px 15px rgba(255, 215, 0, 0.2);
    transition: all 0.3s;
}

.search-box input:focus {
    transform: scale(1.02);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.1), 0 6px 20px rgba(255, 215, 0, 0.4);
}

.search-box button {
    padding: 14px 28px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: 3px solid white;
    border-radius: 30px;
    color: #8B4513;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.search-box button:hover {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6);
}

.nav {
    background: linear-gradient(180deg, rgba(255, 248, 220, 0.95) 0%, rgba(255, 250, 240, 0.95) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 4px dotted #FFB6C1;
}

.nav-tabs {
    display: flex;
    gap: 12px;
    padding: 18px 0;
    overflow-x: auto;
    justify-content: center;
}

.nav-tab {
    padding: 14px 30px;
    border: 3px solid #FFA07A;
    background: linear-gradient(180deg, #FFFACD 0%, #FFEFD5 100%);
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    color: #CD5C5C;
    box-shadow: 0 4px 12px rgba(255, 160, 122, 0.3);
    position: relative;
    overflow: hidden;
}

.nav-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.nav-tab:hover::before {
    left: 100%;
}

.nav-tab:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 8px 25px rgba(255, 160, 122, 0.5);
}

.nav-tab.active {
    background: linear-gradient(135deg, #FF6B9D 0%, #FF8E53 100%);
    color: white;
    border-color: #FFD700;
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.5);
    transform: scale(1.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 8px 25px rgba(255, 107, 157, 0.5); }
    50% { box-shadow: 0 8px 35px rgba(255, 107, 157, 0.8), 0 0 20px rgba(255, 215, 0, 0.3); }
}

.main {
    padding: 45px 0;
    position: relative;
    z-index: 1;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.tool-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.95) 0%, rgba(255,248,220,0.95) 100%);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 30px 25px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15), 
                0 0 0 5px rgba(255, 215, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card:hover {
    transform: translateY(-15px) rotate(2deg) scale(1.03);
    box-shadow: 0 25px 60px rgba(0,0,0,0.25), 
                0 0 0 6px rgba(255, 182, 193, 0.6);
    border-color: #FFB6C1;
}

.tool-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #87CEEB 0%, #98FB98 30%, #DDA0DD 70%, #FFB6C1 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 45px;
    color: white;
    box-shadow: 0 10px 30px rgba(135, 206, 235, 0.4),
                inset 0 -5px 15px rgba(0,0,0,0.15);
    border: 5px solid white;
    position: relative;
    z-index: 2;
}

.tool-card:hover .tool-icon {
    animation: bounceRotate 0.6s ease-in-out;
}

@keyframes bounceRotate {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.2) rotate(-10deg); }
    50% { transform: scale(1.15) rotate(10deg); }
    75% { transform: scale(1.2) rotate(-5deg); }
}

.tool-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #FF6B9D;
    text-align: center;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

.tool-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    text-align: center;
    position: relative;
    z-index: 2;
}

.tool-category {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #E8F4FD 0%, #E0F7FA 100%);
    color: #0288D1;
    border-radius: 25px;
    font-size: 12px;
    margin-top: 18px;
    font-weight: bold;
    border: 2px solid #81D4FA;
    display: block;
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer {
    background: linear-gradient(135deg, #FF6B9D 0%, #FF8E53 100%);
    color: white;
    padding: 50px 0 30px;
    margin-top: 60px;
    border-top: 5px dashed #FFD700;
    position: relative;
    z-index: 1;
}

.footer::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
    height: 5px;
    background: repeating-linear-gradient(90deg, #FFD700, #FFD700 10px, transparent 10px, transparent 20px);
}

.footer-content {
    text-align: center;
    margin-bottom: 35px;
}

.qrcode-section h3 {
    margin-bottom: 20px;
    font-size: 22px;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.2);
}

.qrcode-placeholder {
    width: 170px;
    height: 170px;
    background: linear-gradient(145deg, #FFF8DC 0%, #FFEFD5 100%);
    border-radius: 25px;
    margin: 0 auto 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #FF6B9D;
    border: 5px solid #FFD700;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    animation: wiggle 3s infinite ease-in-out;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

.qrcode-placeholder i {
    font-size: 70px;
    margin-bottom: 8px;
}

.qrcode-placeholder p {
    font-size: 13px;
    font-weight: bold;
}

.qrcode-tip {
    margin-bottom: 18px;
    opacity: 0.95;
    font-size: 16px;
}

.follow-btn {
    padding: 15px 45px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: 4px solid white;
    border-radius: 35px;
    color: #8B4513;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.5);
}

.follow-btn:hover {
    transform: scale(1.15) rotate(-3deg);
    box-shadow: 0 10px 35px rgba(255, 215, 0, 0.7);
}

.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 3px dotted rgba(255,255,255,0.4);
}

.copyright a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.copyright a:hover {
    text-decoration: underline;
}

.copyright p {
    margin: 8px 0;
    opacity: 0.9;
    font-size: 15px;
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
    }

    .search-box {
        max-width: 100%;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 25px;
    }
    
    .logo h1 {
        font-size: 26px;
    }
    
    .nav-tabs {
        justify-content: flex-start;
        padding: 15px 0;
    }

    .nav-tab {
        padding: 12px 24px;
        font-size: 14px;
    }

    .tool-card {
        padding: 25px 20px;
    }

    .tool-icon {
        width: 85px;
        height: 85px;
        font-size: 38px;
    }
}
