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

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    background: linear-gradient(to bottom, #ffecd2 0%, #fcb69f 100%);
    min-height: 100vh;
}

.site-container {
    max-width: 1360px;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 0 50px rgba(0,0,0,0.12);
    animation: siteAppear 0.7s ease-out;
}

@keyframes siteAppear {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.main-header {
    background: linear-gradient(120deg, #f093fb 0%, #f5576c 100%);
    padding: 35px 45px;
    box-shadow: 0 5px 25px rgba(245, 87, 108, 0.3);
    position: relative;
    overflow: hidden;
}

.main-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: headerFloat 8s ease-in-out infinite;
}

@keyframes headerFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-30px, 30px) scale(1.1);
    }
}

.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.brand-zone h1 {
    font-size: 34px;
    margin-bottom: 8px;
    font-weight: 800;
    color: white;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.2);
    letter-spacing: 1px;
}

.brand-zone h1 a {
    color: white;
    text-decoration: none;
    transition: all 0.4s ease;
    display: inline-block;
}

.brand-zone h1 a:hover {
    transform: translateY(-3px) scale(1.03);
    text-shadow: 0 0 25px rgba(255,255,255,0.9);
}

.tagline {
    font-size: 15px;
    color: rgba(255,255,255,0.95);
    font-style: italic;
    font-weight: 500;
}

.auth-zone {
    display: flex;
    gap: 18px;
}

.link-signin, .link-signup {
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
}

.link-signin {
    background: rgba(255,255,255,0.25);
    color: white;
    border: 2px solid rgba(255,255,255,0.8);
}

.link-signin:hover {
    background: white;
    color: #f5576c;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.link-signup {
    background: white;
    color: #f5576c;
    border: 2px solid white;
}

.link-signup:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.primary-nav {
    background: linear-gradient(to right, #ffecd2 0%, #fcb69f 100%);
    border-bottom: 4px solid #f5576c;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.nav-wrap {
    padding: 0 45px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 20px 22px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #f093fb, #f5576c);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #f5576c;
    background: rgba(245, 87, 108, 0.08);
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
    width: 70%;
}

.content-area {
    padding: 45px;
}

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 70px 55px;
    border-radius: 25px;
    margin-bottom: 55px;
    box-shadow: 0 12px 45px rgba(118, 75, 162, 0.35);
    position: relative;
    overflow: hidden;
    animation: heroSlide 0.9s ease-out;
}

@keyframes heroSlide {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    animation: heroGlow 12s linear infinite;
}

@keyframes heroGlow {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero-inner h2 {
    font-size: 38px;
    margin-bottom: 22px;
    font-weight: 800;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.25);
    letter-spacing: 0.5px;
}

.hero-inner p {
    font-size: 17px;
    line-height: 1.9;
    opacity: 0.96;
}

.section-title {
    margin-bottom: 40px;
    text-align: center;
}

.section-title h3 {
    font-size: 34px;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.section-title h3::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 5px;
    background: linear-gradient(90deg, #f093fb, #f5576c);
    border-radius: 3px;
}

.section-title p {
    color: #7f8c8d;
    font-size: 17px;
    font-weight: 500;
}

.featured-content {
    margin-bottom: 65px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 35px;
}

.content-item {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    animation: itemFloat 0.7s ease-out;
    animation-fill-mode: both;
}

@keyframes itemFloat {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-item:nth-child(1) { animation-delay: 0.1s; }
.content-item:nth-child(2) { animation-delay: 0.2s; }
.content-item:nth-child(3) { animation-delay: 0.3s; }
.content-item:nth-child(4) { animation-delay: 0.4s; }
.content-item:nth-child(5) { animation-delay: 0.5s; }
.content-item:nth-child(6) { animation-delay: 0.6s; }

.content-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 18px 50px rgba(0,0,0,0.18);
}

.item-thumb {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.content-item:hover .item-thumb img {
    transform: scale(1.15) rotate(2deg);
}

.time-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.85);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
}

.item-details {
    padding: 25px;
}

.item-details h4 {
    font-size: 19px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.item-details h4 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.item-details h4 a:hover {
    color: #f5576c;
}

.item-summary {
    font-size: 15px;
    color: #7f8c8d;
    margin-bottom: 18px;
    line-height: 1.7;
}

.item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 14px;
    color: #95a5a6;
    font-weight: 600;
}

.item-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.discussion-area {
    margin-bottom: 65px;
}

.discussion-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.discussion-card {
    display: flex;
    gap: 25px;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    animation: cardSlide 0.7s ease-out;
    animation-fill-mode: both;
}

@keyframes cardSlide {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.discussion-card:nth-child(1) { animation-delay: 0.1s; }
.discussion-card:nth-child(2) { animation-delay: 0.2s; }
.discussion-card:nth-child(3) { animation-delay: 0.3s; }
.discussion-card:nth-child(4) { animation-delay: 0.4s; }
.discussion-card:nth-child(5) { animation-delay: 0.5s; }

.discussion-card:hover {
    transform: translateX(15px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.card-icon {
    flex-shrink: 0;
}

.card-icon img {
    width: 90px;
    height: 90px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.card-body {
    flex: 1;
}

.card-body h4 {
    font-size: 19px;
    margin-bottom: 12px;
}

.card-body h4 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-body h4 a:hover {
    color: #f5576c;
}

.card-desc {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.card-stats {
    display: flex;
    gap: 25px;
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.main-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 45px;
    margin-top: 65px;
}

.footer-wrap {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 500;
}

.footer-links a:hover {
    color: white;
    transform: translateY(-3px);
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.footer-copy {
    font-size: 15px;
    line-height: 1.9;
    color: rgba(255,255,255,0.75);
}

.footer-copy p {
    margin: 6px 0;
}

@media (max-width: 768px) {
    .site-container {
        margin: 0;
    }

    .main-header {
        padding: 25px;
    }

    .header-wrap {
        flex-direction: column;
        gap: 18px;
    }

    .brand-zone h1 {
        font-size: 26px;
    }

    .nav-wrap {
        padding: 0 25px;
    }

    .nav-menu {
        justify-content: center;
    }

    .nav-menu a {
        padding: 16px 18px;
        font-size: 14px;
    }

    .content-area {
        padding: 25px;
    }

    .hero-section {
        padding: 45px 30px;
    }

    .hero-inner h2 {
        font-size: 28px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .discussion-card {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
        gap: 18px;
    }
}
