
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
}

header {
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    background-color: #2c3e50;
    box-shadow: 0 2px 10px rgba(190, 189, 189, 0.1);
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    padding-left: 10%;
}
.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}


.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #fffefe;
}

.header-right {
    display: flex;
    align-items: center;
    padding-right: 7%;
}

.contact {
    margin-right: 20px;
    font-size: 14px;
}

.contact a {
    text-decoration: none;
    color: #fdfcfc;
    margin: 0 10px;
}

.contact a:hover {
    color: #ff6a00;
}

.button-group {
    display: flex;
}

.login-btn {
    margin-right: 15px;
    padding: 8px 20px;
    background-color: transparent;
    border: 1px solid #ff6a00;
    color: #ff6a00;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.login-btn:hover {
    background-color: #ff6a00;
    color: white;
}

.register-btn {
    padding: 8px 20px;
    background-color: #ff6a00;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.register-btn:hover {
    background-color: #e65c00;
}

.main-nav {
    background-color: #f8f8f8;
    padding: 0px 50px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-icon {
    width: 70px;
    height: 70px;
    padding-left: 11%;
}
.nav-icon img {
    width: 80px;
    height: 80px;
}
.nav-menu {
    display: flex;
    list-style: none;
    padding-right: 7%;
    
}
.menu-toggle{display:none}
.nav-menu li {
    margin: 0 30px;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    position: relative;
}

.nav-menu a:hover, 
.nav-menu a.act {
    color: #ff6a00;
}

.nav-menu a.act::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff6a00;
}

.content {
    padding: 40px;
}
@media (max-width: 1200px) {
    .nav-menu li {
    margin: 0 20px;
}
}
@media (max-width: 1020px) {
    .nav-menu li {
    margin: 0 10px;
}
}       
/* 汉堡菜单 */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

@media (max-width: 870px) {
    .hamburger {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    .nav-icon{display:none}
    .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 30px;
}
    .nav-menu {
        display: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 20px 0;
        background-color: #f8f8f8;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu li {
        margin: 0 15px;
    }
}
/*========================================================================================================*/   
        .container {
            position: relative;
            max-width: 1200px;
            margin: 0 auto;
            width: 100%;
            height: 400px;
        }
        
        .sidebar {
            width: 300px;
            background-color: rgba(150, 150, 150, 0.7);
            backdrop-filter: blur(5px);
            color: white;
            display: flex;
            flex-direction: column;
            padding-top: 40px;
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            z-index: 10;
        }
/*========================================================================================================*/
        /*.main-content*/
        .main-content {
           
            width: 100%;
            height: 400px;
            position: relative;
            z-index: 1;
        }
        /*sidebar*/
        .side-col {
            padding: 15px 30px;
            display: flex;
            align-items: center;
            cursor: pointer;
            transition: background-color 0.3s;
            font-size: 18px;
        }
        
        .side-icon {
            width: 20px;
            margin-right: 10px; 
        }
        
        .side-text {
            white-space: nowrap;
        }
        
        .side-arrow {
            width: 20px;
            text-align: right;
            margin-left: auto; 
        }
        
        .popup-container {
            width: 40%;
            position: absolute;
            left: 300px;
            height: 400px;
            top: 0;
            background-color: white;
            padding: 30px;
            display: none;
            overflow-y: auto;
            z-index: 100;
            box-shadow: 0 0 15px rgba(0,0,0,0.3);
        }
        
        .popup-links {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
        }
        
        .popup-link {
            flex-basis: 20%;
            margin: 15px;
            text-align: center;
        }
        
        .popup-title {
            font-size: 20px;
            margin-bottom: 5px;
            color: #333;
        }
        
        .popup-desc {
            font-size: 14px;
            color: #999;
        }
        
        .overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: none;
            z-index: 50;
        }
        
        .carousel {
            width: 100%;
            height: 100%;
            position: relative;
        }
        
        .carousel-item {
            position: absolute;
            width: 100%;
            height: 100%;
            display: none;
        }
        
        .carousel-item.active {
            display: block;
        }
        
        .flower-image {
            width: 100%; 
            height: 400px;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .flower-image img {
            width: 100%;
            height: 100%;
            object-fit: cover; 
        }
        
        .text-overlay {
            position: absolute;
            bottom: 200px;
            right: 33%;
            color: white;
            text-shadow: 0 1px 3px rgba(0,0,0,0.6);
        }
        
        .title {
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 5px;
        }
        
        .subtitle {
            font-size: 16px;
        }
        
        .slider-nav {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
        }
        
        .slider-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            margin: 0 5px;
            cursor: pointer;
            background-color: transparent;
            border: 2px solid #ccc; 
        }
        
        .slider-dot.active {
            background-color: #1E90FF; 
            border: 2px solid #1E90FF;
        }
        
        .slider-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            background-color: rgba(0, 0, 0, 0.5);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 20px;
            z-index: 20;
            border-radius: 50%;
        }
        
        .slider-prev {
            left: 320px;
        }
        
        .slider-next {
            right: 20px;
        }
/*========================================================================================================*/
        /*columns*/
        .columns {
            max-width: 1280px;
            margin: 0 auto;
        }
        .columns-header {
            display: flex;
            margin-bottom: 20px;
        }
        
        .columns-header h1, .columns-header h2 {
            font-size: 24px;
            margin-right: 30px;
            cursor: pointer;
            transition: color 0.3s;
        }
        
        .columns-header h1 {
            color: #333;
        }
        
        .columns-header h2 {
            color: #333;
        }
        
        .active {
            color: #007bff !important; 
        }
        
        .menu-columns {
            display: none;
            flex-wrap: wrap;
            justify-content: space-between;
            background: white;
            border-radius: 8px;
            padding: 30px 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            max-height: 600px;
            overflow-y: auto;
        }
        
        .menu-item {
            display: flex;
            flex-direction: column;
            width: calc(25% - 20px);
            margin-bottom: 20px;
            position: relative;
        }
        
        .menu-item img {
            width: 100%;
            height: 200px;
            border-radius: 8px;
            object-fit: cover;
            display: block;
            margin-bottom: 10px;
        }
        
        .menu-name {
            text-align: center;
            padding-top: 1px;
            font-size: 16px;
            color: #333;
            z-index: 1000;
        }
        
        .tag {
            position: absolute;
            padding: 3px 8px;
            border-radius: 3px;
            font-size: 12px;
            color: white;
            z-index: 1000;
        }
        
        .tag-new {
            background-color: #dfdcdc;
        }
        

        .collection {
            position: absolute;
            top: 10px;
            right: 10px;
            padding: 3px 8px;
            border-radius: 3px;
            font-size: 12px;
            background-color: rgba(0, 0, 0, 0.5);
            color: white;
            z-index: 1;
        }
        
        .tea-dishes {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            padding: 20px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            max-height: 600px;
            overflow-y: auto;
        }
        
        .tea-dish {
            text-align: center;
            padding: 10px;
            border-radius: 5px;
            transition: background-color 0.3s;
        }
        
        .tea-dish:hover {
            background-color: #f0f0f0;
        }
        
        .columns {
            width: 100%;
            padding: 20px 0;
            box-sizing: border-box;
        }
/*========================================================================================================*/
        /*blog*/
        .blog {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
            display: flex;
            gap: 20px;
            background-color: #fff;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }
        
        .section {
            flex: 1;
            border-radius: 4px;
            padding: 20px;
        }
        
        .news-section {
            flex: 2;
        }
        
        .research-section {
            flex: 1;
        }
        
        .section-title {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            border-bottom: 1px solid #eee;
            padding-bottom: 10px;
        }
        .section a{
            text-decoration: none;
        }
        .section-title h2 {
            font-size: 18px;
            font-weight: bold;
            color: #333;
            position: relative;
            padding-left: 10px;
        }
        
        .section-title h2::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 3px;
            background-color: #1e88e5;
        }
        
        .view-more {
            color: #1e88e5;
            text-decoration: none;
            font-size: 14px;
        }
        
        .news-item {
            display: flex;
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .date {
            width: 60px;
            height: 60px;
            background-color: #e3f2fd;
            border-radius: 8px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            margin-right: 15px;
            flex-shrink: 0;
        }
        
        .date-day {
            font-size: 18px;
            font-weight: bold;
            color: #00796b;
        }
        
        .date-month {
            font-size: 12px;
            color: #666;
            text-align: center;
        }
        
        .news-content {
            flex: 1;
        }
        
        .news-title {
            font-size: 14px;
            color: #333;
            margin-top: 5px;
            line-height: 1.5;
            max-height: 42px;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            text-overflow: ellipsis;
        }
        
        .news-date {
            font-size: 12px;
            color: #999;
            margin-bottom: 5px;
        }
        
        /* 卡片设计 */
        .two-columns {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 2rem;
        }

        .card {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 3px 10px rgba(0,0,0,0.1);
            transition: transform 0.3s ease;
        }

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

        .card img {
            width: 100%;
            height: 100px;
            object-fit: cover;
            border-bottom: 3px solid #eee;
        }

        .card-content {
            padding: 1rem;
            display: flex;
            flex-direction: column;
        }

        .card-text {
            color: #666;
            font-size: 0.9rem;
            margin-bottom: 1rem;
        }

        .card-button {
            align-self: flex-end; 
            display: inline-block;
            padding: 0.5rem 1rem;
            background: #00796b;
            color: white;
            text-decoration: none;
            border-radius: 5px;
            transition: background 0.3s ease;
        }

        .card-button:hover {
            background: #00796b;
        }

                /* 底部 footer */
        .footer { 
            background-color: #f4f4f4; 
            padding: 10px; 
            text-align: center; 
        } 

        .footer a { 
            color: #333; 
            text-decoration: none; 
            margin: 0 15px; 
        } 

        .footer-links {
            background-color: #f4f4f4; 
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            padding: 5px 0;
            justify-content: center;
            gap: 10px;
        }
        
        .footer-links a {
            color: #333; 
            text-decoration: none;
            font-size: 12px;
        }
        
        .footer-links a:hover {
            color: rgb(22, 22, 22);
        }
        
        .footer-links a:not(:last-child)::after {
            content: "|";
            margin-left: 10px;
            color: #666;
        }
        
        /* 版权声明区域样式 */ 
        .copyright { 
            background-color: #f4f4f4; 
            padding: 8px 15px; 
            text-align: center; 
            font-size: 12px; 
            color: #666; 
        } 

         /* 返回顶部按钮 */
         #backToTopBtn {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: rgba(0,0,0,0.6);
            border: none;
            padding: 12px;
            border-radius: 50%;
            cursor: pointer;
            opacity: 0;
            transition: all 0.3s;
        }

        #backToTopBtn.show {
            opacity: 1;
        }

        #backToTopBtn img {
            width: 40px;
            height: 40px;
            display: block;
        }
        @media (max-width: 768px) {
            .content {
                padding: 20px;
            }
             .text-overlay {
                transform: translateX(100px);
             }
            .popup-container {
                width: 60%;
                left: 240px;
            }
            
            .blog {
                flex-direction: column;
            }
        }
        @media (max-width: 480px) {
            .text-overlay {
                transform: none;
            }
            .sidebar {
             display: none;
             }
             .popup-container {
                width: 60%;
                left: 200px;
            }
      
            .carousel {
                height: 300px;
            }
            
            .flower-image {
                height: 300px;
            }
            
            .text-overlay {
                bottom: 150px;
                right: 250px;
            }
            
            .title {
                font-size: 20px;
            }
            
            .subtitle {
                font-size: 14px;
            }
            .slider-prev {
                left: 15px;
            }
            .text-overlay {
                transform: none;
                left: 50%;
                transform: translateX(-50%);
                right: auto;
             }
             .two-columns {
            grid-template-columns: repeat(1, 1fr);
            }
        }
        @media (max-width: 768px) {
            header {
                padding: 0 50px 0 20px;
            }
             .logo {
            padding-left: 7%;
            }
            .nav-container {
                padding: 0 20px;
            }
            
            .nav-menu {
                flex-direction: column;
                align-items: center;
            }
            .header-right {
                margin-left: 45px;
            }
            .nav-menu li {
                margin: 10px 0;
            }
            .menu-item {
               width:  calc(50% - 20px);
            }
        }
        @media (max-width: 620px) {
            .logo {
                padding-left:5% ;
            }
            .gj-one {
                display: none;
            }
            .register-btn {
                display: none;
            }
            .footer { 
            padding: 7px; 
            } 
            .footer a {      
            text-decoration: none; 
            margin: 0 7px; 
            } 

            .footer-links {
            gap: 6px;
           }
        
            .footer-links a {
            font-size: 10px;
            }
            .footer-links a:not(:last-child)::after {
            margin-left: 7px;
            }
        }
        @media (max-width: 480px) {
            header {
                height: 60px;
                padding-right: 50px;
            }
            
            .logo {
                padding: 0;
            }
            .logo-text {
                font-size: 20px;
            }

            .contact a {
                font-size: 12px;
                margin: 0 5px;
            }
            
            .nav-icon {
                padding-left: 5%;
            }
            
            .nav-menu {
                padding: 10px 0;
            }
            .logo-text {
            font-size: 19px;
            }
            .content {
                padding: 15px;
            }
        }
         @media (max-width: 390px) {
            .logo-text {
            font-size: 14px;
            }
            
        }