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

/* Body Styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    color: #333;
}

/* Fixed Header Styling */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #f3f4f7;
    box-shadow: 0 6px 14px 0 rgba(227, 233, 237, 0.35);
    z-index: 1000;
}

.header-logo {
    height: 40px;
}

.search-bar {
    flex-grow: 1;
    margin: 0 15px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
}

.login-button, .wechat-button {
    background-color: #33cabb;
    color: #ffffff;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
}

.login-button:hover, .wechat-button:hover {
    background-color: #28a1a1;
}

/* Main Container */
.container {
    display: flex;
    width: 90%;
    max-width: 1200px;
    margin: -50px auto 0;
    position: relative;
    z-index: 1;
}

/* Sidebar Styling */
.sidebar {
    width: 15%;
    padding: 25px 15px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: sticky;
    top: 70px;
    margin-top: 20px;
    /* background: rgba(255, 255, 255, 0.9); */
    backdrop-filter: blur(10px);
    /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); */
}

.sidebar nav ul {
    list-style-type: none;
    width: 100%;
    padding: 0;
}

.sidebar nav ul li {
    margin: 8px 0;
    width: 100%;
}

.sidebar nav ul li a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

.sidebar .post-button {
    margin-top: 20px;
    background-color: #33cabb;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Content Styling */
.content {
    width: 70%;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    margin: 0 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.95);
}

.top-banner img {
    width: 100%;
    border-radius: 10px;
}

.feed .post {
    background-color: #f9f9f9;
    margin: 20px 0;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.feed .post h3 {
    font-size: 18px;
    color: #333;
}

.feed .post img {
    width: 100%;
    margin-top: 10px;
    border-radius: 10px;
}

/* Right Sidebar Styling */
.right-sidebar {
    width: 15%;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 70px; /* Stays below header */
    margin-top: 20px;
}

.right-sidebar .user-stats p {
    margin: 10px 0;
    font-size: 14px;
    color: #555;
}

.qr-codes {
            margin-top: 20px;
        }

        /* Each QR code section styling */
        .qr-codes .tb-ewm, .qr-codes .jsy-ewm {
            display: flex;
            flex-direction: column;
            /*align-items: center;*/
            margin-bottom: 15px;
        }

        /* Text styling above each QR code */
        .text {
            font-size: 16px;
            color: #333;
            margin-bottom: 5px;
            /*text-align: center;*/
        }

        /* Image styling for the QR codes */
        .text img {
            width: 100px;
            height: auto;
            border: 1px solid #ccc;
            border-radius: 5px;
        }
.buttons{
    width: 70%;
    height: 10% ;
    margin: 2% auto 0 ;
    background-color: black;
    border-radius: 10px;
    text-align: center;
}
a{ 
    color: #FFFFFF; 
    text-decoration: none; 
    font-size: 2em; 
      }
 h1{
    text-align: center;
    }

/* 添加以下样式到 style.css */
.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    width: 100%;
}

.nav-link:hover {
    background: linear-gradient(145deg, #f0f0f0, #ffffff);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.nav-link i {
    font-size: 16px;
    margin-right: 15px;
    width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.nav-link:hover i {
    transform: scale(1.2);
}

.nav-link.active {
    background: linear-gradient(145deg, #f0f0f0, #ffffff);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    color: #1890ff;
}

.nav-link .fa-home { color: #27ae60; }
.nav-link .fa-comments { color: #2980b9; }
.nav-link .fa-shopping-bag { color: #e74c3c; }
.nav-link .fa-tiktok { color: #34495e; }
.nav-link .fa-mobile-alt { color: #5b48d4; }
.nav-link .fa-paint-brush { color: #8c7ae6; }
.nav-link .fa-user { color: #16a085; }

/* 添加刘海头部样式 */
.curved-header {
    position: relative;
    background: linear-gradient(45deg, #4834d4, #686de0);
    height: 200px;
    width: 100%;
    border-bottom-left-radius: 50% 20%;
    border-bottom-right-radius: 50% 20%;
    margin-bottom: 60px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
}

.curved-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3));
}

.header-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 100%;
}

.header-title {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.header-subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}
