* {
    box-sizing: border-box;
    max-width: 100%;
    /*overflow-x: hidden;*/
}

body {
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    width: 100%;
    overflow-x: hidden;
    padding-top: var(--nav-height);
}

.nav-menu {
    background: linear-gradient(to right, #2c3e50, #3498db);
    /* position: fixed; */
    width: 100%;
    /* top: 0; */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    /* z-index: 1000; */
}

.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-menu li {
    margin: 10px 20px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 15px 25px;
    border-radius: 5px;
    transition: background-color 0.3s;
    display: block;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.content-section {
    margin-top: 20px;
    padding: 30px;
    width: 88%;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}

.small-title {
    text-align: center;
    font-size: 3.8vw;
    color: #fff;
    font-weight: bold;
    letter-spacing: 0.2vw;
    display: none;
}

#home {
    width: 100%;
    margin: 0;
    padding: 60px 0;
    background: linear-gradient(-45deg, #39abfb, #ffe4a7, #6eb4ff, #87ff81);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#home h2 {
    font-size: 36px;
    margin-bottom: 40px;
    background: linear-gradient(to right, #2d2626, #009b9b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1);
    padding: 0 20px;
    word-break: break-word;
}

#home p {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    line-height: 1.6;
    margin: 0 auto;
    padding: 0 40px;
    word-wrap: break-word;
}

.notice {
    width: 88%;
    margin: 20px auto;
    padding: 15px 20px;
    background-color: #fff;
    border-radius: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #01bb07;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    letter-spacing: .1em;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hamburger {
    display: none;
    cursor: pointer;
    position: absolute;
    right: 30px;
    top: 20px;
}

.hamburger div {
    width: 30px;
    height: 3px;
    background-color: white;
    margin: 6px 0;
    transition: 0.4s;
}

#rental {
    background: #fff;
    display: flex;
    flex-direction: row;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

.rental-left {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-right: 1px solid #ccc;
}

.telegram-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.telegram-icon {
    width: 90px;
    height: 90px;
    margin-bottom: 10px;
}

.rental-right {
    flex: 2;
    display: flex;
    flex-direction: column;
    border-right: none;
}

.rental-right-top {
    display: flex;
    border-bottom: 1px solid #ccc;
    padding: 10px;
}

.rental-right-top-left,
.rental-right-top-right {
    flex: 1;
    padding: 0px 20px 10px 0px;
}

.rental-right-top-left {
    border-right: 1px solid #ccc;
}

.rental-right-bottom {
    padding: 10px;
}

.rental-left h3,
.rental-right h3 {
    margin: 10px 0 0 0;
    color: #2c3e50;
    text-align: center;
    word-wrap: break-word;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.rental-left h3::before {
    content: '';
    display: inline-block;
    width: 34px;
    height: 34px;
    background: url('../image/process.png') no-repeat center/contain;
    margin-right: 10px;
}

.rental-right-top-left h3::before {
    content: '';
    display: inline-block;
    width: 34px;
    height: 34px;
    background: url('../image/loudianjiance_icon.png') no-repeat center/contain;
    margin-right: 10px;
}

.rental-right-top-right h3::before {
    content: '';
    display: inline-block;
    width: 34px;
    height: 34px;
    background: url('../image/Numberoftransactions.png') no-repeat center/contain;
    margin-right: 10px;
}

.rental-right-bottom h3::before {
    content: '';
    display: inline-block;
    width: 34px;
    height: 34px;
    background: url('../image/trx.png') no-repeat center/contain;
    margin-right: 10px;
}

.rental-info {
    margin: 10px 0;
    color: #666;
    font-size: 18px;
    position: relative;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    word-wrap: break-word;
}

.rental-price {
    margin: 14px 0 0 0;
    color: #666;
    font-size: 18px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rental-info::before {
    content: "•";
    color: #00e200;
    position: static;
}

.low-opacity::before {
    content: none;
    color: #00e200;
    position: static;
}

.energy-input,
.pen-input {
    width: 100%;
    padding: 16px 12px;
    margin: 10px 0;
    border: 2px solid #ddd;
    border-radius: 8px;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    font-size: 16px;
    font-weight: bold;
}

.energy-input::-webkit-inner-spin-button,
.energy-input::-webkit-outer-spin-button,
.pen-input::-webkit-inner-spin-button,
.pen-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.energy-input:focus,
.pen-input:focus {
    outline: none;
    border-color: #3498db;
}

.clear-input {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    padding: 10px;
    z-index: 1;
}

.energy-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 10px 0;
}

.energy-button {
    padding: 8px 15px;
    background: #fff;
    color: #3498db;
    border: 1px solid #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    white-space: nowrap;
    border: 1px solid;
}

.energy-button:hover {
    background: rgba(52, 152, 219, 0.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.rental-info-div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.show-qrcode-div {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.show-qrcode-div img {
    width: 30px;
    height: 30px;
    margin-left: 6px;
}

.show-qrcode-div span {
    font-size: 14px;
    color: #a0a0a0;
}

.address-display,
.address-display-2 {
    width: 100%;
    padding: 16px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    word-break: break-all;
    position: relative;
    font-size: 18px;
    font-weight: bold;
}

.price-display {
    padding: 8px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    word-break: break-all;
    position: relative;
    font-size: 52px;
    font-weight: bold;
}

.address-display::after,
.address-display-2::after {
    content: '';
    display: inline-block;
    width: 26px;
    height: 26px;
    background: url('../image/copy.png') no-repeat center/contain;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.price-display:hover,
.address-display:hover,
.address-display-2:hover {
    background: rgba(52, 152, 219, 0.1);
}

.low-opacity {
    font-weight: 600;
    color: #00df0b;
    animation: fadeInOut2 1.6s ease-in-out infinite;
}
@keyframes fadeInOut2 {
    0% { opacity: 1; color: #009ee7;}
    50% { opacity: 0.4; color: #002ae7;}
    100% { opacity: 1; color: #b900e7;}
}

.tx-info {
    font-size: 16px;
}

#exchange {
    background: #fff;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 60px;
}

.exchange-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.exchange-title img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.exchange-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.input-group {
    flex: 1;
    text-align: center;
}

.two-input-group {
    flex: 1;
    text-align: center;
}

.last-input-group {
    flex: 1;
    text-align: center;
    width: 100%;
}

.address-display-2 {
    margin: 12px 0;
}

.input-label {
    font-weight: bold;
    margin-bottom: 24px;
    margin-top: 24px;
}

.exchange-input {
    width: 96%;
    padding: 16px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    font-size: 18px;
    font-weight: bold;
    margin: 12px;
}

.exchange-input::-webkit-inner-spin-button,
.exchange-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.convert-icon {
    width: 50px;
    height: 50px;
    align-self: center;
    margin: 12px 0;
}

.agent-section {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    width: 88%;
    margin: 60px auto;
}

.agent-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.agent-title img {
    width: 40px;
    height: 35px;
}

.agent-title h2 {
    margin-left: 15px;
    font-size: 24px;
}

.agent-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 40px;
    margin: 20px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    flex: 1 1 30%;
    min-width: 250px;
}

.feature-item img {
    width: 22px;
    height: 22px;
    margin-right: 10px;
}

#about {
    width: 100%;
    background-color: #fff;
    padding: 30px 0;
}

.about-feature-item {
    display: flex;
    align-items: center;
    flex: 1 1 30%;
    min-width: 250px;
}

.about-feature-item img {
    width: 68px;
    height: 66px;
    margin-right: 10px;
}

.about-feature-item span {
    font-size: 18px;
    font-weight: 400;
}

.about-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.about-header img {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

#about p {
    width: 88%;
    margin-left: auto;
    margin-right: auto;
    font-size: 18px;
    line-height: 3;
}

.features-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 60px;
    margin-top: 30px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    flex: 1 1 30%;
    min-width: 250px;
}

.feature-item img {
    width: 22px;
    height: 22px;
    margin-right: 10px;
}

footer {
    width: 100%;
    background-color: #2c3e50;
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

footer img {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
}

footer p {
    color: #ecf0f1;
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* 新增样式 */
.exchange-rate {
    text-align: center;
    font-size: 18px;
    margin: 10px 0;
    color: #2c3e50;
}

.exchange-info {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    color: #747474;
    font-size: 16px;
    line-height: 1.6;
}

.exchange-info span {
    margin: 20px 0 20px 0;
    margin-right: 12px;
}

@keyframes greenGlow {
    0% {
        box-shadow: 0 0 3.3px #4CAF50,
            0 0 3.3px #4CAF50 inset;
    }

    50% {
        box-shadow: 0 0 13.3px #4CAF50,
            0 0 9.3px #4CAF50 inset;
    }

    100% {
        box-shadow: 0 0 3.3px #4CAF50,
            0 0 3.3px #4CAF50 inset;
    }
}

@keyframes orangeGlow {
    0% {
        box-shadow: 0 0 3.3px #FF9800,
            0 0 3.3px #FF9800 inset;
    }

    50% {
        box-shadow: 0 0 13.3px #FF9800,
            0 0 13.3px #FF9800 inset;
    }

    100% {
        box-shadow: 0 0 3.3px #FF9800,
            0 0 3.3px #FF9800 inset;
    }
}

.glow-green {
    animation: greenGlow 1.5s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.glow-orange {
    animation: orangeGlow 1.5s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.dot {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 5px;
}

.rental-left p,
.rental-left span {
    color: #666;
    font-size: 18px;
}

.rental-right-top-right-pr {
    padding: 0px 10px 10px 10px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.notice-icon {
    width: 26px;
    height: 24px;
    animation: pulse 1.2s infinite;
    vertical-align: top;
}

.feature-item span {
    font-size: 18px;
}

.exchange-address-div {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: relative;
}

.rental-info-div-h4 {
    font-size: 18px;
    color: #666;
}

.floating-contact {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: sans-serif;
}

.contact-toggle-btn {
    background-color: #28a745;
    color: white;
    padding: 10px 16px;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: background-color 0.3s;
    display: inline-block;
}

.contact-toggle-btn:hover {
    background-color: #218838;
}

.contact-card {
    width: 280px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    padding: 15px;
    animation: fadeIn 0.3s ease-in-out;
    display: none;
}

.contact-card h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
}

.contact-card .wechat-img {
    width: 120px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
    display: block;
}

.contact-card .item {
    margin: 8px 0;
    font-size: 14px;
    color: #333;
    word-break: break-word;
}

.contact-card .item a {
    color: #007bff;
    text-decoration: none;
}

.contact-card .item a:hover {
    text-decoration: underline;
}

.contact-card .close-btn {
    float: right;
    font-size: 14px;
    color: #999;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
