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

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

.container {
    display: flex;
    max-width: 1500px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    flex-wrap: wrap;
}

/* 左侧自定义选项面板 */
.customize-panel {
    flex: 0 0 450px;
    padding: 20px;
    border-right: 1px solid #c2c0c0;
    overflow-y: auto;
    max-height: 100vh;
    background-color: #f1f0f0;
}

.search-box {
    margin-bottom: 20px;
}

.search-box p {
    color: #ff6b6b;
    font-size: 14px;
    margin-bottom: 5px;
}

.search-input {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.search-input input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
}

.search-input button {
    background-color: #fff;
    border: none;
    padding: 0 10px;
    cursor: pointer;
}

/* 各部分样式 */
.section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: normal;
    border-bottom: 1px solid #c2c0c0;
    padding-bottom: 8px;
}

/* 输入组样式 */
.input-group {
    margin-bottom: 10px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

.input-group input {
    width: 100%;
    padding: 8px 8px 8px 60px;
    border: 1px solid #ddd;
    border-radius: 4px;
    position: relative;
}

/* 添加带标签的输入框样式 */
.input-with-label {
    position: relative;
    width: 100%;
}

.input-with-label label {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}

.input-with-label input {
    padding-left: 70px;
}

/* 添加伪元素显示占位符文本 */
.input-group input[id="title"]::before {
    content: "Title:";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.input-group input[id="subtitle"]::before {
    content: "Subtitle:";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.input-group input[id="tagline"]::before {
    content: "Tagline:";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

/* layout图标样式 */
.layout-item img {
    width: 41px;
    height: 59px;
}

/* 开关样式 */
.toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
}

.toggle-group label {
    font-size: 14px;
    color: #666;
}

.toggle {
    display: flex;
    align-items: center;
}

.toggle span {
    font-size: 12px;
    color: #999;
    margin: 0 5px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #555;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.slider.round {
    border-radius: 20px;
}

.slider.round:before {
    border-radius: 50%;
}

/* 样式网格 */
.style-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.style-item {
    border-radius: 50%;
    overflow: hidden;
    width: 70px;
    height: 70px;
    cursor: pointer;
    border: 2px solid transparent;
}

.style-item:hover, .style-item.active {
    border-color: #555;
}

.layout-item:hover, .layout-item.active {
    border: 2px solid red;
}

@media (min-width: 769px) {
    /* 保持电脑端的显示不变 */
    .layout-item:hover, .layout-item.active {
        border: 2px solid red;
    }
}

.style-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.layout-item {
    width: 41px;
    height: 59px;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
}

.layout-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 排序、标签、颜色选项 */
.sort-options {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tag-options {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.color-options {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

/* Pin和街道名称选项 */
.pin-streets {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pin-options {
    display: flex;
    align-items: center;
}

.pin-options label {
    font-size: 14px;
    color: #666;
    margin-right: 10px;
}

.pin-icons {
    display: flex;
}

.pin-icon {
    margin-right: 10px;
    cursor: pointer;
    color: #999;
}

.pin-icon:hover, .pin-icon.active {
    color: #555;
}

/* 布局选项 */
.layout-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.layout-item {
    border: none;
    width: auto;
    height: auto;
    cursor: pointer;
    overflow: visible;
}

.layout-item.active {
    border-color: #ff6b6b;
    border-width: 2px;
}

.layout-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* 尺寸选项 */
.size-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.size-row {
    display: flex;
    gap: 10px;
}

.size-item {
    border: 1px solid #ddd;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    flex: 1;
    text-align: center;
}

.size-item.active {
    border-color: #ff6b6b;
    border-width: 2px;
}

.size-item span {
    font-size: 14px;
}

/* 框架选项 */
.frame-options {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.frame-item {
    border: 1px solid #ddd;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    flex: 1;
    text-align: center;
}

.frame-item.active {
    border-color: #ff6b6b;
    border-width: 2px;
}

.frame-item span {
    font-size: 14px;
}

.price-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.price-info a {
    color: #ff6b6b;
    text-decoration: none;
}

/* 中间地图预览区 - 修改为缩放预览容器 */
.map-preview-panel {
    flex: 2;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-right: 1px solid #c2c0c0;
    background-color: #f1f0f0;
    overflow: hidden;
    justify-content: center;
    align-items: center;
}

.map-preview {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.map-frame {
    position: relative;
    width: 100%;
    max-width: 720px;
    border: 1px solid #ddd;
    padding: 8px;
    background-color: rgb(250, 250, 250);
    box-shadow: none;
    transition: all 0.3s ease;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid #bcbcb5;
    transform-origin: center;
    box-sizing: border-box;
}

/* 不同尺寸的地图框架样式 */
.map-frame.size-small {
    max-width: 480px;
    aspect-ratio: 12 / 18;
}

.map-frame.size-medium {
    max-width: 600px;
    aspect-ratio: 18 / 24;
}

.map-frame.size-large {
    max-width: 550px;
    aspect-ratio: 30 / 40;
}

.map-frame.size-xlarge {
    max-width: 720px;
    aspect-ratio: 50 / 70;
}

/* 框架样式 */
.map-frame.frame-none {
    /* 简约边框 */
}

.map-frame.frame-full {
    /* 全框架样式 */
    padding: 0;
}

.map-frame.frame-hanger {
    /* 悬挂器样式 */
    position: relative;
}

/* 悬挂器样式 */
.hanger-element {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hanger-hook {
    width: 14px;
    height: 14px;
    border: 2px solid #444;
    border-bottom: none;
    border-radius: 7px 7px 0 0;
    margin: 0 auto;
}

.hanger-string {
    width: 2px;
    height: 8px;
    background-color: #444;
    margin: 0 auto;
}

.map-container {
    position: relative;
    width: 100%;
    height: 100%;
    flex: 1;
    margin-bottom: 0;
    padding: 0px;
    background-color: rgb(255, 255, 255);
}

.map-controls {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.map-controls button {
    display: none;
}

.map-controls button:hover {
    opacity: 1;
}

.map-controls .zoom-in {
    border-bottom: none;
    border-radius: 4px 4px 0 0;
}

.map-controls .zoom-out {
    border-radius: 0 0 4px 4px;
}

/* 隐藏Google自带的缩放控件 */
.gm-style .gmnoprint > div {
    display: none !important;
}

/* Google Maps 自定义控件样式 */
.gm-style-cc,
.gmnoprint:not(.map-controls) {
    opacity: 0.7;
}

.map-image {
    width: 100%;
    height: 100%;
    border: none;
    box-shadow: none;
    position: relative;
    overflow: hidden;
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.map-image img {
    width: 100%;
    display: block;
}

#map {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    border: none;
    margin: 0;
    padding: 0;
    width: 100% !important;
    height: 100% !important;
}

/* 根据不同尺寸调整地图高度 - 移除固定高度设置 */
.map-frame.size-small .map-image,
.map-frame.size-medium .map-image,
.map-frame.size-large .map-image,
.map-frame.size-xlarge .map-image {
    height: 100%;
}

/* 添加加载指示器 */
.map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 0;
}

.map-loading:after {
    content: "地图加载中...";
    display: block;
    margin-top: 5px;
    color: #666;
}

.map-caption {
    text-align: center;
    margin-top: 15px;
    padding-top: 10px;
    transition: opacity 0.3s ease;
    display: block; /* 默认显示，由JS控制显示/隐藏 */
}

.map-caption h2 {
    font-size: 28px;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #111;
}

.map-caption p {
    font-size: 16px;
    margin-bottom: 5px;
    font-style: italic;
    color: #333;
}

.map-caption .coordinates {
    font-size: 12px;
    color: #777;
    display: block;
    margin-top: 5px;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* 购买信息 */
.purchase-info {
    flex: 1;
}

.price-section {
    flex: 0 0 200px;
}

.price-section h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.price-section p {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.add-to-cart {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 4px;
    margin: 10px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.save-later {
    display: block;
    text-align: center;
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.product-info {
    flex: 1;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.product-info > p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.info-section {
    margin-bottom: 15px;
}

.info-section h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.info-section p {
    font-size: 13px;
    color: #666;
    margin-bottom: 3px;
}

.certification {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.certification img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.cert-text p {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        flex-direction: column;
    }
    
    .customize-panel, .map-preview-panel, .purchase-panel {
        width: 100%;
        flex: none;
    }
    
    .map-preview-panel {
        order: 1;
    }
    .customize-panel {
        order: 2;
    }
    .purchase-panel {
        order: 3;
    }
    
    .actual-size-preview-container {
        order: 4;
        padding: 20px 15px;
    }
    
    .style-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .price-section {
        flex: none;
        width: 100%;
        order: 2;
        margin-bottom: 20px;
    }
    
    /* 添加初始状态样式 */
    .map-preview-panel.initial-state {
        transition: all 0.3s ease;
        height: auto;
    }
}

@media (max-width: 768px) {
    .style-item {
        width: 50px;
        height: 50px;
    }
    
    .style-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 8px;
    }
    
    .pin-streets {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .toggle-group {
        margin-top: 10px;
    }
    
    .layout-options, .size-options, .frame-options {
        flex-wrap: wrap;
    }
    
    .layout-item {
        width: calc(20% - 8px);
    }
    
    .layout-item img {
        width: 100%;
        height: auto;
        max-width: 32px;
        max-height: 46px;
    }
    
    .map-preview {
        padding: 0 15px;
        gap: 20px;
    }
    
    .map-frame {
        max-width: 100%;
    }
    
    .map-caption h2 {
        font-size: 22px;
    }
    
    .map-caption p {
        font-size: 14px;
    }
    
    .map-caption .coordinates {
        font-size: 10px;
    }
    
    .text-overlay h1 {
        font-size: 1.6em;
    }
    
    .text-overlay p {
        font-size: 0.7em;
    }
    
    .map-frame.layout-gray-overlay .layout5-overlay h1 {
        font-size: 2.5em;
    }
    
    .map-frame.layout-gray-overlay .layout5-overlay p {
        font-size: 1em;
    }
    
    .section h3 {
        font-size: 15px;
    }
    
    .input-group label,
    .toggle-group label,
    .filter-group label {
        font-size: 13px;
    }
    
    .size-item span,
    .frame-item span {
        font-size: 12px;
    }
    
    .filter-group select {
        font-size: 12px;
        padding: 4px 6px;
    }
    
    /* 固定在底部的购物按钮容器 */
    .cart-sticky-container {
        display: none; /* 默认隐藏 */
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        padding: 10px;
        z-index: 200;
        box-sizing: border-box;
        transition: all 0.3s ease;
        border-top: 1px solid #eee;
    }
    
    /* 显示固定购物按钮 */
    .cart-sticky-container.visible {
        display: flex;
    }
    
    /* 按钮和价格的布局 */
    .cart-sticky-container .sticky-cart-content {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
    }
    
    /* 价格显示区域 */
    .cart-sticky-container .sticky-price {
        flex: 0 0 33.33%; /* 占用三分之一宽度 */
        text-align: center;
        font-size: 18px;
        font-weight: bold;
        color: #333;
    }
    
    /* 添加到购物车按钮 */
    .cart-sticky-container .sticky-add-to-cart {
        flex: 0 0 66.66%; /* 占用三分之二宽度 */
        background-color: #ff6b6b;
        color: white;
        border: none;
        padding: 12px 15px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        font-weight: bold;
        text-align: center;
    }
    
    /* 为底部添加额外的padding，防止内容被固定按钮遮挡 */
    body.has-sticky-cart {
        padding-bottom: 70px;
    }
}

@media (max-width: 480px) {
    .style-item {
        width: 40px;
        height: 40px;
    }
    
    .style-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }
    
    .layout-options {
        display: flex;
        justify-content: space-between;
        flex-wrap: nowrap;
        width: 100%;
    }
    
    .layout-item {
        width: calc(20% - 4px);
        margin: 0 2px;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        box-sizing: content-box;
        border: none;
    }
    
    .layout-item img {
        width: 100%;
        height: auto;
        max-width: 28px;
        max-height: 40px;
        display: block;
        margin: 0 auto;
        object-fit: contain;
    }
    
    .layout-item.active {
        border: 2px solid #ff6b6b;
        border-radius: 0;
        box-sizing: border-box;
        padding: 0;
        background: transparent;
    }
    
    .size-row {
        flex-direction: column;
    }
    
    .frame-options {
        flex-direction: column;
    }
    
    .map-preview {
        padding: 0 10px;
        gap: 10px;
    }
    
    .map-frame {
        padding: 5px;
    }
    
    .map-caption h2 {
        font-size: 18px;
        margin-bottom: 5px;
    }
    
    .map-caption p {
        font-size: 12px;
        margin-bottom: 3px;
    }
    
    .map-caption .coordinates {
        font-size: 9px;
    }
    
    .text-overlay {
        width: 80%;
        padding: 8px;
    }
    
    .text-overlay h1 {
        font-size: 1.3em;
        margin-bottom: 3px;
    }
    
    .text-overlay p {
        font-size: 0.6em;
    }
    
    .map-frame.layout-gray-overlay .layout5-overlay h1 {
        font-size: 1.8em;
    }
    
    .map-frame.layout-gray-overlay .layout5-overlay p {
        font-size: 0.9em;
    }
    
    .map-frame.layout-offset .map-caption {
        padding: 12px;
    }
    
    .map-frame.layout-minimal .map-container {
        border-width: 1px;
    }
    
    .map-frame.layout-minimal .map-caption {
        padding: 5px;
    }
    
    .map-controls {
        top: 5px;
        left: 5px;
    }
    
    .map-controls button {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
    
    .section h3 {
        font-size: 14px;
        padding-bottom: 6px;
    }
    
    .input-group label,
    .toggle-group label,
    .filter-group label {
        font-size: 12px;
    }
    
    .input-group input {
        font-size: 12px;
        padding: 6px 6px 6px 55px;
    }
    
    .input-with-label label {
        font-size: 12px;
    }
    
    .size-item span,
    .frame-item span {
        font-size: 11px;
    }
    
    .filter-group select {
        font-size: 11px;
        padding: 3px 5px;
    }
    
    .page-info {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .map-caption h2 {
        font-size: 16px;
    }
    
    .map-caption p {
        font-size: 11px;
    }
    
    .map-caption .coordinates {
        font-size: 8px;
    }
    
    .text-overlay h1 {
        font-size: 1.1em;
    }
    
    .text-overlay p {
        font-size: 0.5em;
    }
    
    .map-frame.layout-gray-overlay .layout5-overlay h1 {
        font-size: 1.5em;
    }
    
    .map-frame.layout-gray-overlay .layout5-overlay p {
        font-size: 0.8em;
    }
    
    .layout-item img {
        max-width: 24px;
        max-height: 35px;
    }
}

.layout-standard {
    /* 标准布局 */
}

.map-frame.layout-standard {
    border: 1px solid #e0e0e0;
    padding: 15px;
    box-sizing: border-box;
    background-color: #fff;
    box-shadow: none;
}

.map-frame.layout-standard .map-container {
    position: relative;
}

.map-frame.layout-standard .map-image {
    width: 100%;
    display: block;
}

.map-frame.layout-standard .map-caption {
    display: none;
}

.text-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    color: black;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    width: 66.66%;
    white-space: nowrap;
    z-index: 10;
}

.text-overlay h1 {
    font-size: 2em;
    margin: 0 0 5px 0;
}

.text-overlay p {
    font-size: 0.8em;
    margin: 0;
}

.map-frame.layout-minimal {
    border: 1px solid #e0e0e0;
    padding: 15px;
    box-sizing: border-box;
    background-color: #fff;
    box-shadow: none;
}

.map-frame.layout-minimal .map-container {
    border: 2px solid #000;
    border-bottom: none;
    overflow: hidden;
    padding: 5px;
    box-sizing: border-box;
}

.map-frame.layout-minimal .map-image {
    border: none;
    overflow: hidden;
    width: 100%;
    display: block;
}

.map-frame.layout-minimal .map-caption {
    margin-top: 0;
    padding: 5px 10px;
    border: 2px solid #000;
    border-top: none;
    text-align: left;
}

.map-divider {
    border-top: 2px solid #000;
    margin: 0;
    position: relative;
    z-index: 5;
}

.map-frame.layout-minimal.frame-hanger .hanger-element {
    top: -25px;
}

.map-frame.layout-minimal.frame-full .map-container {
    padding: 10px;
}

.map-frame.layout-minimal .map-controls {
    top: 10px;
    left: 10px;
    z-index: 100;
}

.layout-centered {
    padding: 5px;
}

.map-frame.layout-centered + .map-caption {
    transform: translate(-25px, -20px);
}

.map-frame.layout-offset {
    border: 1px solid #e0e0e0;
    padding: 15px;
    box-sizing: border-box;
    background-color: #fff;
    box-shadow: none;
}

.map-frame.layout-offset .map-container {
    border: 12px solid #000;
    border-bottom: none;
    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
}

.map-frame.layout-offset .map-image {
    border: none;
    overflow: hidden;
    width: 100%;
    display: block;
}

.map-frame.layout-offset .map-caption {
    margin-top: 0;
    padding: 0;
    background-color: #000000;
    color: #fff;
    text-align: center;
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.map-frame.layout-offset .map-caption h2 {
    font-size: 24px;
    margin-bottom: 3px;
}

.map-frame.layout-offset .map-caption p {
    font-size: 14px;
    margin-bottom: 2px;
}

.map-frame.layout-offset .map-caption .coordinates {
    font-size: 10px;
}

.map-frame.layout-offset.frame-hanger .hanger-element {
    top: -25px;
}

.map-frame.layout-offset .map-controls {
    top: 10px;
    left: 10px;
    z-index: 100;
}

.layout-bold {
    /* 粗体布局 */
}

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

.align-left {
    text-align: left;
}

.align-right {
    text-align: right;
}

.layout-bold + .map-caption h2 {
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.layout-minimal + .map-caption h2 {
    font-weight: 400;
    letter-spacing: 0.5px;
}

.layout-centered + .map-caption h2 {
    font-style: italic;
}

.layout-offset + .map-caption h2 {
    text-decoration: underline;
}

.map-frame.layout-gray-overlay {
    border: 1px solid #dadada;
    padding: 15px;
    box-sizing: border-box;
    background-color: #fff;
    box-shadow: none;
}

.map-frame.layout-gray-overlay .map-container {
    position: relative;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.map-frame.layout-gray-overlay .map-image {
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
}

.map-frame.layout-gray-overlay .map-caption {
    display: none;
}

.map-frame.layout-gray-overlay .layout5-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background-color: #f0f0f0;
    color: #8B4513;
    text-align: center;
    padding: 0;
    box-sizing: border-box;
    opacity: 0.9;
    z-index: 20;
    margin: 0;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.map-frame.layout-gray-overlay .layout5-overlay h1 {
    font-size: 3em;
    margin: 0 0 3px 0;
    color: #8B4513;
    line-height: 1;
}

.map-frame.layout-gray-overlay .layout5-overlay p {
    font-size: 1em;
    margin: 0;
    color: #8B4513;
    line-height: 1.1;
}

.layout-caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    z-index: 10;
}

.layout-caption-overlay h1 {
    font-size: 2em;
    margin: 0 0 5px 0;
    font-family: Arial, sans-serif;
}

.layout-caption-overlay p {
    font-size: 0.8em;
    margin: 0;
    font-family: Arial, sans-serif;
}

.map-container .layout-caption-overlay[style*="text-align: left"] {
    border: 2px solid #000;
    border-top: none;
    background-color: #fff;
}

.map-container .layout-caption-overlay[style*="transform: translate(-25px, -20px)"] {
    background-color: white;
}

.map-container .layout-caption-overlay[style*="text-align: center"] {
    background-color: #000;
    color: #fff;
    padding: 15px 0;
}

.map-container .layout-caption-overlay[style*="text-align: center"] h1,
.map-container .layout-caption-overlay[style*="text-align: center"] p {
    color: #fff;
}

.gm-style-cc,
.gmnoprint.gm-style-cc,
.gm-style a[title="报告地图错误"],
.gm-style a[href^="https://maps.google.com/maps"],
.gm-style .gmnoprint a,
.gm-style .gmnoprint span:not(.map-controls *),
.gmnoprint div:not(#map) {
    display: none !important;
}

.gmnoprint.gm-style-cc {
    display: none !important;
}

a[href^="http://maps.google.com/maps"],
a[href^="https://maps.google.com/maps"],
a[href^="https://www.google.com/maps"] {
    display: none !important;
}

.gm-style-cc div,
.gm-style a img {
    display: none !important;
}

.gm-style-mtc,
.gm-svpc,
.gm-fullscreen-control {
    display: none !important;
}

.map-container .gm-style > div:last-child > div:last-child {
    display: none !important;
}

.style-filters {
    margin-bottom: 15px;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    box-shadow: none;
}

.filter-row {
    display: flex;
    margin-bottom: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-group {
    margin-right: 15px;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.filter-group label {
    margin-right: 5px;
    font-size: 14px;
    color: #555;
}

.filter-group select {
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
}

.search-filter {
    display: flex;
    flex-grow: 1;
    max-width: 100%;
}

.search-filter input {
    flex-grow: 1;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.search-filter button {
    padding: 6px 12px;
    background-color: #4285F4;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-filter button:hover {
    background-color: #3367d6;
}

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px 0;
    padding: 5px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.pagination-btn {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    color: #555;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0 8px;
    font-size: 14px;
}

.pagination-btn:hover:not([disabled]) {
    background-color: #4285F4;
    color: white;
    border-color: #4285F4;
}

.pagination-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    font-size: 14px;
    color: #666;
}

.map-frame.size-small.layout-offset {
    box-shadow: none;
    border: 1px solid #e0e0e0;
    padding: 15px;
}

.map-frame[style*="box-shadow"] {
    box-shadow: none !important;
    border: 1px solid #e0e0e0 !important;
}

/* 添加固定定位样式，用于滚动时的地图预览 */
.map-preview-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 33.33vh; /* 占屏幕高度的三分之一 */
    z-index: 100;
    background-color: #f1f0f0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden;
}

.map-preview-sticky .map-frame {
    height: 100%;
    padding: 0;
    border: none;
    display: flex;
    flex-direction: column;
}

.map-preview-sticky .map-container {
    flex: 1;
}

.map-preview-sticky .map-caption {
    margin-top: 5px;
    padding-top: 2px;
}

.map-preview-sticky .map-caption h2 {
    font-size: 14px;
    margin-bottom: 2px;
}

.map-preview-sticky .map-caption p {
    font-size: 10px;
    margin-bottom: 1px;
}

.map-preview-sticky .map-caption .coordinates {
    font-size: 8px;
}

/* 在滚动状态下为内容添加上边距，防止被固定的地图预览遮挡 */
.content-padding-top {
    padding-top: 33.33vh;
}

/* 修改滚动时预览图占据三分之一屏幕的样式 */
.map-preview-scaled {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 33.33vh; /* 占屏幕高度的三分之一 */
  z-index: 100;
  background-color: #f1f0f0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 0; /* 移除内边距 */
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* 调整预览区域，使地图本身占据三分之一屏幕 */
.map-preview-scaled .map-preview {
  transform: none; /* 移除整体缩放 */
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 修改地图框架样式，适应横向布局 */
.map-preview-scaled .map-frame {
  max-height: 100%; /* 占满容器高度 */
  height: 100%; /* 强制设置高度 */
  max-width: 100%; /* 设置最大宽度为100% */
  width: auto; /* 宽度自适应 */
  margin: 0 auto;
  padding: 0; /* 移除内边距 */
  border: none; /* 移除边框 */
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* 横向模式下的调整 */
.map-preview-scaled .map-frame[style*="aspect-ratio: 18 / 12"],
.map-preview-scaled .map-frame[style*="aspect-ratio: 24 / 18"],
.map-preview-scaled .map-frame[style*="aspect-ratio: 40 / 30"],
.map-preview-scaled .map-frame[style*="aspect-ratio: 70 / 50"] {
  width: auto;
  max-width: 90%;
  height: 90%;
  max-height: 90%;
  margin: 0 auto;
}

/* 确保地图容器占据主要空间 */
.map-preview-scaled .map-container {
  flex: 1;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* 确保地图正确显示 */
.map-preview-scaled .map-container #map {
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
}

/* 缩小文字区域，使其不占用太多空间 */
.map-preview-scaled .map-caption {
  margin-top: 0;
  padding: 3px 0;
  line-height: 1;
  width: 100%;
}

/* 确保横向布局时标题区域显示正常 */
.map-preview-scaled .map-frame[style*="aspect-ratio: 18 / 12"] .map-caption,
.map-preview-scaled .map-frame[style*="aspect-ratio: 24 / 18"] .map-caption,
.map-preview-scaled .map-frame[style*="aspect-ratio: 40 / 30"] .map-caption,
.map-preview-scaled .map-frame[style*="aspect-ratio: 70 / 50"] .map-caption {
  height: auto !important;
  min-height: 0;
  padding: 2px 0;
}

/* Layout5灰色背景区域调整为自适应高度 */
.map-preview-scaled .map-frame.layout-gray-overlay .layout5-overlay {
  position: absolute;
  bottom: 0;
  height: auto;
  padding: 3px 0;
}

/* 缩小Layout4标题区的高度 */
.map-preview-scaled .map-frame.layout-offset .map-caption {
  min-height: 0;
  padding: 3px 0;
  height: 50px !important; /* 强制设置固定高度 */
  line-height: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* 进一步调整缩小固定状态下的文字大小 */
.map-preview-scaled .map-caption h2 {
  font-size: 12px !important; /* 减小标题字体 */
  margin-bottom: 1px;
  line-height: 1;
}

.map-preview-scaled .map-caption p {
  font-size: 8px !important; /* 减小副标题字体 */
  margin-bottom: 1px;
  line-height: 1;
}

.map-preview-scaled .map-caption .coordinates {
  font-size: 6px !important; /* 减小坐标字体 */
  line-height: 1;
}

/* Layout5灰色背景中的文字 */
.map-preview-scaled .map-frame.layout-gray-overlay .layout5-overlay h1 {
  font-size: 18px !important; /* 强制设置Layout5标题大小 */
  line-height: 1.1;
  margin-bottom: 2px;
}

.map-preview-scaled .map-frame.layout-gray-overlay .layout5-overlay p {
  font-size: 9px !important; /* 强制设置Layout5副标题大小 */
  line-height: 1.1;
}

/* Layout4黑底白字样式 */
.map-preview-scaled .map-frame.layout-offset .map-caption h2 {
  font-size: 15px !important; /* 强制设置Layout4标题大小 */
}

.map-preview-scaled .map-frame.layout-offset .map-caption p {
  font-size: 9px !important; /* 强制设置Layout4副标题大小 */
}

.map-preview-scaled .map-frame.layout-offset .map-caption .coordinates {
  font-size: 7px !important; /* 强制设置Layout4坐标文字大小 */
}

/* Layout1文本覆盖层样式 */
.map-preview-scaled .text-overlay h1 {
  font-size: 16px !important; /* 强制设置Layout1标题大小 */
  margin-bottom: 1px;
}

.map-preview-scaled .text-overlay p {
  font-size: 8px !important; /* 强制设置Layout1副标题大小 */
}

/* 为不可选的框架选项添加样式 */
.frame-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #f5f5f5;
  border-color: #ddd !important;
  color: #999;
  pointer-events: none; /* 防止点击事件 */
}

/* 确保被禁用的选项即使悬停也不会有变化 */
.frame-item.disabled:hover {
  border-color: #ddd !important;
}

/* 添加提示信息样式 */
.frame-disabled-info {
  font-size: 11px;
  color: #ff6b6b;
  margin-top: 5px;
  display: block;
  text-align: center;
}

/* 输出选项样式 - Portrait/PDF/Orientation */
.output-options {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.output-item {
  border: 1px solid #ddd;
  padding: 8px 10px;
  border-radius: 4px;
  cursor: pointer;
  flex: 1;
  text-align: center;
  position: relative;
}

.output-item.active {
  border-color: #ff6b6b;
  border-width: 2px;
}

.output-item.pdf-option {
  position: relative;
}

.output-item.pdf-option.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.pdf-required {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #ff6b6b;
  color: white;
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 3px;
}

.output-info {
  margin-top: 10px;
  font-size: 12px;
  color: #666;
  background-color: #f5f5f5;
  padding: 8px;
  border-radius: 4px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .output-options {
    flex-direction: row;
  }
  
  .output-item {
    padding: 6px 8px;
    font-size: 13px;
  }
  
  .output-info {
    font-size: 11px;
    padding: 6px;
  }
}

@media (max-width: 480px) {
  .output-item {
    padding: 5px 6px;
    font-size: 12px;
  }
  
  .pdf-required {
    font-size: 9px;
    top: -6px;
    right: -6px;
  }
}

/* 实际尺寸预览图区域 - 修改为100%原始尺寸显示 */
.actual-size-preview-container {
    width: 100%;
    background-color: #f7f7f7;
    padding: 30px;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
    clear: both;
    position: relative;
}

.actual-size-preview-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    position: relative;
    overflow: auto; /* 允许滚动查看完整内容 */
    height: auto;
    max-height: 800px; /* 设置最大高度，超出部分可滚动 */
    border: 1px solid #ddd;
}

.actual-size-preview {
    position: relative;
    border: none;
    background-color: #fff;
    overflow: visible;
    margin-bottom: 0;
    padding: 0;
    width: auto; /* 宽度自动适应内容 */
    height: auto; /* 高度自动适应内容 */
    box-shadow: none;
}

#actual-size-map-container {
    position: relative;
    width: 100%;
    height: 100%;
}

#actual-size-map {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    left: 0;
    top: 0;
    z-index: 1;
    background-color: #ffffff;
}

/* 确保谷歌地图控件不会干扰显示 */
#actual-size-map .gm-style-cc,
#actual-size-map .gmnoprint,
#actual-size-map .gm-fullscreen-control {
    display: none !important;
}

.layout-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    pointer-events: none;
    z-index: 10;
    transition: background 0.3s ease;
}

.actual-size-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 15px;
    background-color: #f9f9f9;
    border-top: 1px solid #ddd;
}

.size-info {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    text-align: center;
}

.export-actual-size {
    background-color: #4285f4;
    color: #fff;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 4px;
    margin: 10px 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    position: relative;
    transition: background-color 0.3s;
}

.export-actual-size:hover {
    background-color: #3367d6;
}

.export-actual-size::before {
    content: "\f019"; /* Font Awesome下载图标 */
    font-family: "Font Awesome 5 Free";
    margin-right: 8px;
    font-weight: 900;
}

/* 根据当前选择的布局应用不同的遮罩样式 */
.layout-mask.layout1 {
    background: transparent; /* 移除渐变效果 */
}

.layout-mask.layout2 {
    background: transparent; /* 移除渐变效果 */
}

.layout-mask.layout3 {
    background: transparent; /* 移除渐变效果 */
}

.layout-mask.layout4 {
    background: transparent; /* 移除渐变效果 */
}

.layout-mask.layout5 {
    background: transparent; /* 移除渐变效果 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .actual-size-preview-container {
        padding: 15px 10px;
    }
    
    .actual-size-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .size-info {
        margin-bottom: 10px;
    }
}