/* 手機版響應式樣式 - 鄭家水梨網站 */

/* 平板電腦樣式 (769px ~ 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    body {
        min-width: 769px !important;
    }
    
    #wrapper {
        width: 100% !important;
        max-width: 1024px !important;
        margin: 15px auto !important;
    }
    
    #header {
        width: 100% !important;
        max-width: 1024px !important;
    }
    
    #logo {
        width: 200px !important;
        height: 200px !important;
    }
    
    #ad {
        width: calc(100% - 200px) !important;
        height: 200px !important;
    }
    
    #content {
        width: 100% !important;
        max-width: 1024px !important;
    }
    
    #main_menu {
        width: 100% !important;
        max-width: 1024px !important;
    }
    
    #main_menu ul li {
        width: calc(100% / 7) !important;
        font-size: 11px !important;
    }
    
    #contentLeft {
        width: 65% !important;
        padding: 10px 15px 10px 0 !important;
    }
    
    #contentRight {
        width: 35% !important;
    }
    
    .newsContent {
        width: 100% !important;
        margin-left: 0 !important;
        margin-bottom: 15px !important;
    }
    
    #footerArea {
        width: 100% !important;
        max-width: 1024px !important;
    }
    
    .footer-info {
        display: none !important;
    }
    
    .mobile-contact {
        display: none !important;
    }
    
    .desktop-contact {
        display: block !important;
    }
}

/* 桌面版樣式 (1025px 以上) */
@media screen and (min-width: 1025px) {
    .mobile-menu-toggle,
    .mobile-logo,
    .menu-overlay,
    .menu-close {
        display: none !important;
    }
    
    #main_menu {
        width: 1000px !important;
        height: 39px !important;
        background: #f6df52 !important;
        position: static !important;
        display: block !important;
        padding: 0 !important;
    }
    
    #main_menu ul {
        position: static !important;
        width: 100% !important;
        height: 31px !important;
        background: #f6df52 !important;
        padding: 4px 4px !important;
        margin: 0 !important;
        box-shadow: none !important;
        display: block !important;
        left: 0 !important;
    }
    
    #main_menu ul li {
        width: 115px !important;
        height: 31px !important;
        line-height: 31px !important;
        font-size: 12px !important;
        text-align: center !important;
        padding: 0 !important;
        margin: 0 4px 0 0 !important;
        background: #fafed9 !important;
        border-radius: 5px !important;
        border-bottom: none !important;
        float: left !important;
        cursor: pointer !important;
    }
    
    #main_menu ul li:hover {
        background: #fff !important;
        color: #000 !important;
    }
    
    /* LINE ME 按鈕特殊樣式 */
    #li6 {
        background: #00C300 !important;
        color: #fff !important;
    }
    
    #li6:hover {
        background: #00A300 !important;
        color: #fff !important;
    }
    
    #li6 a {
        color: #2cc32c !important;
        text-decoration: none !important;
    }
    
    #li6:hover a {
        color: #2cc32c !important;
    }
    
    /* 桌面版Footer恢復原樣 */
    #footer {
        background: #e7ce37 !important;
        padding: 0 !important;
        margin-top: 0 !important;
        width: 100% !important;
        clear: both !important;
    }
    
    #footerArea {
        width: 1000px !important;
        height: 138px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        text-align: left !important;
    }
    
    #footerArea ul {
        display: block !important;
        grid-template-columns: none !important;
        gap: 0 !important;
        margin: 15px 15px 0 0 !important;
        padding: 0 !important;
    }
    
    #footerArea ul li {
        float: left !important;
        margin: 15px 15px 0 0 !important;
        color: #fff !important;
        background: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
        transition: none !important;
        font-size: 12px !important;
    }
    
    #footerArea ul li:hover {
        background: none !important;
        transform: none !important;
        border-bottom: #fff 1px solid !important;
    }
    
    #footerArea ul a {
        color: #fff !important;
        text-decoration: none !important;
        font-weight: normal !important;
    }
    
    .footer-info {
        display: none !important;
    }
    
    .mobile-contact {
        display: none !important;
    }
    
    .desktop-contact {
        display: block !important;
    }
    
    /* 恢復原本的聯絡資訊顯示 */
    #footer_information {
        position: absolute !important;
        bottom: 33px !important;
        left: 0 !important;
        text-align: left !important;
        letter-spacing: 1px !important;
        color: #fff !important;
        font-size: 12px !important;
        line-height: 18px !important;
    }
    
    #footerArea span {
        position: absolute !important;
        bottom: 17px !important;
        right: 85px !important;
        color: #fff !important;
        text-align: right !important;
        line-height: 18px !important;
        font-size: 12px !important;
    }
    
    #studio {
        position: absolute !important;
        bottom: 10px !important;
        left: -12px !important;
    }
    
    #logo_s {
        position: absolute !important;
        bottom: 5px !important;
        right: 0px !important;
    }
    
    #bottom {
        background: #c88c0e !important;
        padding: 0 !important;
        margin-top: 0 !important;
    }
    
    #copyright {
        color: #fff !important;
        font-size: 12px !important;
        text-align: center !important;
        line-height: 25px !important;
    }
}

/* 基本響應式設定 */
@media screen and (max-width: 768px) {
    /* 重置固定寬度 */
    * {
        box-sizing: border-box;
    }
    
    body {
        min-width: auto;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    /* 強制修復所有可能導致寬度問題的元素 */
    div, section, article, main, aside, nav, header, footer {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* 特別修復訂單列表相關元素 */
    .order-list-card, .order-item, .order-header, .order-info, .order-status, .order-actions {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    /* 強制修復可能的固定寬度問題 */
    [style*="width"] {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* 確保所有容器都不會超出螢幕 */
    * {
        max-width: 100% !important;
    }
    
    #wrapper {
        width: 100%;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    * {
        box-sizing: border-box;
    }
    
    /* Header 響應式 */
    #header {
        width: 100%;
        height: 200px;
        position: relative;
        display: block;
    }
    
    #logo {
        position: absolute;
        top: 20px;
        left: 20px;
        width: 120px;
        height: 120px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        z-index: 10;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }
    
    #ad {
        width: 100%;
        height: 200px;
        background-size: cover;
        background-position: center;
        position: relative;
    }
    
    #ad img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* 主選單響應式 - 漢堡選單 */
    #main_menu {
        width: 100%;
        height: 60px;
        background: #f6df52;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1002;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    /* 為固定選單添加body padding */
    body {
        padding-top: 60px;
    }
    
    .mobile-menu-toggle {
        display: block;
        width: 30px;
        height: 30px;
        background: none;
        border: none;
        cursor: pointer;
        position: relative;
        z-index: 1001;
    }
    
    .mobile-menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: #5c4516;
        margin: 5px 0;
        transition: 0.3s;
        border-radius: 2px;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* 選單關閉按鈕 */
    .menu-close {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 30px;
        height: 30px;
        background: none;
        border: none;
        cursor: pointer;
        font-size: 24px;
        color: #5c4516;
        z-index: 1003;
    }
    
    .menu-close:hover {
        color: #000;
    }
    
    .mobile-logo {
        font-size: 18px;
        font-weight: bold;
        color: #5c4516;
    }
    
    .mobile-logo a {
        color: #5c4516;
        text-decoration: none;
        display: block;
        width: 100%;
        height: 100%;
    }
    
    .mobile-logo a:hover {
        color: #2cc32c;
        text-decoration: none;
    }
    
    #main_menu ul {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: #f6df52;
        padding: 80px 0 0 0;
        margin: 0;
        transition: left 0.3s ease;
        z-index: 1000;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    
    #main_menu ul.active {
        left: 0;
    }
    
    #main_menu ul li {
        width: 100%;
        margin: 0;
        height: 50px;
        line-height: 50px;
        font-size: 16px;
        text-align: left;
        padding: 0 30px;
        cursor: pointer;
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(92, 69, 22, 0.1);
        -webkit-tap-highlight-color: transparent;
        box-sizing: border-box;
    }
    
    #main_menu ul li:hover {
        background: rgba(255, 255, 255, 0.3);
        color: #000;
    }
    
    #main_menu ul li:active {
        background: rgba(255, 255, 255, 0.5);
    }
    
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* 內容區域響應式 */
    #content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        float: none !important;
        background: #fff !important;
        padding-bottom: 0 !important;
        color: #c88c0e !important;
        overflow-x: hidden !important;
    }
    
    #inside_wrapper {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    #contentLeft {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px;
        border-right: none;
        border-bottom: 1px solid #f6df52;
        box-sizing: border-box;
        float: none !important;
        background: #fff !important;
        overflow-x: hidden;
    }
    
    #contentRight {
        width: 100%;
        padding: 15px;
        box-sizing: border-box;
        float: none !important;
    }
    
    /* 新聞區塊響應式 */
    .layer {
        padding: 15px 0;
        border-bottom: none;
    }
    
    .newsContent {
        width: 100%;
        margin: 0 0 25px 0;
        padding: 20px;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        border: 1px solid #f0f0f0;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .newsTitle {
        font-size: 18px;
        margin-bottom: 15px;
        color: #5c4516;
        font-weight: bold;
        line-height: 1.4;
    }
    
    .newsTitle span {
        display: block;
        float: none;
        margin-top: 8px;
        font-size: 13px;
        color: #999;
        font-weight: normal;
        width: 100%;
        border-bottom: 1px solid #f6df52;
        padding-bottom: 10px;
    }
    
    .newsText {
        font-size: 15px;
        line-height: 24px;
        color: #666;
        margin-bottom: 15px;
    }
    
    .more-container {
        text-align: center;
        margin-top: 15px;
    }
    
    .more {
        display: inline-block;
        background: #f6df52;
        color: #5c4516;
        padding: 8px 16px;
        border-radius: 20px;
        text-decoration: none;
        font-size: 14px;
        font-weight: bold;
        transition: all 0.3s ease;
        float: none;
        margin: 0;
    }
    
    .more:hover {
        background: #e7ce37;
        transform: translateY(-1px);
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
    
    /* 右側內容響應式 */
    #contentRight {
        background: #f9f9f9;
        border-radius: 10px;
        margin: 10px;
        padding: 20px;
    }
    
    #contentRight iframe {
        width: 100% !important;
        height: 400px !important;
        border-radius: 10px;
        margin-bottom: 20px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        min-height: 400px;
    }
    
    #contentRight > div {
        width: 100% !important;
        padding: 15px;
        text-align: center;
        background: #fff;
        border-radius: 10px;
        margin-bottom: 15px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    #contentRight img {
        max-width: 180px;
        margin: 0 auto;
        display: block;
        border-radius: 10px;
    }
    
    /* QR 碼圖片特殊樣式 - 手機版置中 */
    .qr-section img {
        margin-left: auto !important;
        margin-right: auto !important;
        display: block;
    }
    
    /* QR Code 區塊優化 */
    .qr-section {
        background: #fff;
        padding: 20px;
        border-radius: 10px;
        text-align: center;
        margin-bottom: 15px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    .qr-section h3 {
        color: #5c4516;
        font-size: 16px;
        margin-bottom: 15px;
        font-weight: bold;
    }
    
    /* Facebook 區塊優化 */
    .fb-section {
        background: #fff;
        padding: 20px;
        border-radius: 10px;
        text-align: center;
        margin-bottom: 15px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    .fb-section h3 {
        color: #5c4516;
        font-size: 16px;
        margin-bottom: 15px;
        font-weight: bold;
    }
    
    /* Footer 響應式 */
    #footer {
        background: linear-gradient(135deg, #e7ce37 0%, #f6df52 100%);
        padding: 30px 0 0 0;
        margin-top: 30px;
    }
    
    #footerArea {
        width: 100%;
        height: auto;
        padding: 0 20px;
        text-align: center;
    }
    
    #footerArea ul {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-bottom: 25px;
        padding: 0;
    }
    
    #footerArea ul li {
        margin: 0;
        font-size: 14px;
        padding: 12px 8px;
        background: #f6df52;
        border-radius: 8px;
        transition: all 0.3s ease;
        border: 1px solid #e7ce37;
        color: #000;
    }
    
    #footerArea ul li:hover {
        background: #e7ce37;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    
    #footerArea ul a {
        color: #5c4516;
        text-decoration: none;
        font-weight: bold;
    }
    
    .footer-info {
        background: rgba(255, 255, 255, 0.9);
        padding: 20px;
        border-radius: 15px;
        margin-bottom: 20px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .desktop-contact {
        display: none !important;
    }
    
    .mobile-contact {
        display: block !important;
    }
    
    .footer-info h3 {
        color: #5c4516;
        font-size: 18px;
        margin-bottom: 15px;
        font-weight: bold;
    }
    
    .contact-info {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: left;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .contact-item {
        display: flex;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .contact-item:last-child {
        border-bottom: none;
    }
    
    .contact-icon {
        width: 20px;
        height: 20px;
        margin-right: 10px;
        background: #f6df52;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        color: #5c4516;
    }
    
    .contact-text {
        color: #5c4516;
        font-size: 14px;
        font-weight: 500;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    .footer-bottom {
        display: none;
    }
    
    #studio {
        position: static;
        display: block;
        margin: 0;
        max-width: 100px;
    }
    
    #logo_s {
        position: static;
        display: block;
        margin: 0;
        max-width: 100px;
    }
    
    #bottom {
        background: #5c4516;
        padding: 15px 0;
        margin-top: 20px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #copyright {
        color: #fff;
        font-size: 13px;
        text-align: center;
    }
    
    #copyright a {
        color: #f6df52;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    #copyright a:hover {
        color: #fff;
        text-decoration: underline;
    }
    
    /* 最新消息內頁響應式 */
    .aboutTitle {
        display: flex !important;
        align-items: flex-start !important;
    }
    
    .aboutTitle .title-content {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .aboutTitle .insidedate {
        display: block !important;
        float: none !important;
        margin-top: 10px !important;
        font-size: 14px !important;
        color: #999 !important;
        font-weight: normal !important;
        line-height: 1.4 !important;
    }
    
    .aboutTitle .square {
        margin-right: 10px !important;
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
    }
    
    #back {
        display: block !important;
        background: #f6df52 !important;
        color: #5c4516 !important;
        padding: 12px 20px !important;
        border-radius: 25px !important;
        text-decoration: none !important;
        font-size: 14px !important;
        font-weight: bold !important;
        margin: 20px auto !important;
        text-align: center !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
        transition: all 0.3s ease !important;
        border: none !important;
        width: fit-content !important;
    }
    
    /* 確保按鈕容器置中 */
    #aboutway {
        text-align: center !important;
    }
    
    #back:hover {
        background: #e7ce37 !important;
        color: #5c4516 !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    }
    
    /* 關於我們頁面響應式 */
    #aboutway {
        width: 100%;
        margin: 15px 0;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    #aboutphoto {
        width: 100%;
        margin: 15px 0;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    .aboutTitle {
        width: 100%;
        margin: 15px 0 10px 0;
        font-size: 18px;
        font-weight: bold;
        line-height: 1.4;
        color: #5c4516;
        border-bottom: 2px solid #f6df52;
        padding-bottom: 10px;
        display: flex;
        align-items: center;
    }
    
    .square {
        width: 20px;
        height: 20px;
        margin-right: 10px;
        background: #f6df52;
        border-radius: 5px;
        flex-shrink: 0;
    }
    
    #aboutphoto iframe {
        width: 100% !important;
        max-width: 100% !important;
        height: 250px !important;
        margin: 15px 0 !important;
        border: 2px solid #f6df52 !important;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* 其他頁面響應式 */
    .aboutnews {
        width: 100%;
        margin: 10px;
    }
    
    .aboutnewsContent {
        width: 100%;
        padding: 15px;
    }
    
    .aboutnewsTitle {
        width: 100%;
        float: none;
        margin-bottom: 10px;
    }
    
    .aboutnewsText {
        width: 100%;
        float: none;
        padding: 0;
    }
    
    .newslist {
        width: calc(100% - 20px);
        margin: 10px;
    }
    
    .newslist ul {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .newslist ul li {
        width: calc(50% - 10px);
        margin: 5px;
        height: 120px;
    }
    
    .newslist ul a:nth-child(5n) li {
        margin: 5px;
    }
    
    /* 登入表單 - 卡片式設計 */
    .login-card {
        background: #fff;
        border-radius: 15px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        padding: 30px;
        margin: 20px 0;
        border: 1px solid #f0f0f0;
        box-sizing: border-box;
    }
    
    .login-title {
        text-align: center;
        font-size: 24px;
        font-weight: bold;
        color: #5c4516;
        margin-bottom: 30px;
        padding-bottom: 15px;
        border-bottom: 2px solid #f6df52;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-label {
        display: block;
        font-weight: bold;
        color: #5c4516;
        margin-bottom: 8px;
        font-size: 14px;
    }
    
    .form-input {
        width: 100%;
        padding: 12px 15px;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        font-size: 16px;
        box-sizing: border-box;
        transition: border-color 0.3s ease;
    }
    
    .form-input:focus {
        outline: none;
        border-color: #f6df52;
        box-shadow: 0 0 0 3px rgba(246, 223, 82, 0.1);
    }
    
    .verification-group {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .verification-input {
        flex: 1;
        padding: 12px 15px;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        font-size: 16px;
        box-sizing: border-box;
    }
    
    .verification-image {
        border-radius: 8px;
        cursor: pointer;
        transition: opacity 0.3s ease;
    }
    
    .verification-image:hover {
        opacity: 0.8;
    }
    
    .button-group {
        display: flex;
        gap: 15px;
        margin-top: 30px;
        flex-wrap: wrap;
    }
    
    .btn-primary {
        flex: 1;
        background: linear-gradient(135deg, #f6df52 0%, #e7ce37 100%);
        color: #2c3e50;
        padding: 14px 24px;
        border: none;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s ease;
        text-align: center;
        min-width: 120px;
        box-shadow: 0 4px 15px rgba(246, 223, 82, 0.3);
        position: relative;
        overflow: hidden;
    }

    .btn-primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s;
    }

    .btn-primary:hover::before {
        left: 100%;
    }

    .btn-primary:hover {
        background: linear-gradient(135deg, #e7ce37 0%, #d4b83a 100%);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(246, 223, 82, 0.4);
    }

    .btn-primary:active {
        transform: translateY(0);
        box-shadow: 0 4px 15px rgba(246, 223, 82, 0.3);
    }

    .btn-secondary {
        flex: 1;
        background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
        color: #fff;
        padding: 14px 24px;
        border: none;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s ease;
        text-align: center;
        min-width: 120px;
        box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
        position: relative;
        overflow: hidden;
    }

    .btn-secondary::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s;
    }

    .btn-secondary:hover::before {
        left: 100%;
    }

    .btn-secondary:hover {
        background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
    }

    .btn-secondary:active {
        transform: translateY(0);
        box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
    }
    
    /* 表單響應式 */
    .left {
        width: 100%;
        text-align: left;
        margin-bottom: 5px;
    }
    
    .right {
        width: 100%;
        margin-left: 0;
    }
    
    .right_imformation {
        width: 100%;
        margin-left: 0;
    }
    
    .right_imformation input {
        width: 100%;
    }
    
    .right ul li {
        width: calc(50% - 10px);
        margin: 5px;
    }
    
    /* 聯絡我們頁面 - 卡片式設計 */
    .order {
        width: 100%;
        margin: 15px 0;
        background: #fff;
        border-radius: 15px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        padding: 20px;
        box-sizing: border-box;
    }
    
    .order img.photo {
        width: 100px;
        height: 100px;
        margin: 10px auto;
        display: block;
    }
    
    #imformation_left, #imformation_right {
        width: 100%;
        float: none;
    }
    
    .contact-card {
        background: #fff;
        border-radius: 15px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        padding: 20px;
        margin: 15px 0;
        box-sizing: border-box;
    }
    
    .contact-item {
        display: flex;
        align-items: center;
        padding: 15px 0;
        border-bottom: 1px solid #f0f0f0;
        margin-bottom: 0;
        gap: 10px;
    }
    
    .contact-item:last-child {
        border-bottom: none;
    }
    
    .contact-label {
        width: 100px;
        font-weight: bold;
        color: #5c4516;
        font-size: 14px;
        flex-shrink: 0;
    }
    
    .contact-value {
        flex: 1;
        color: #666;
        font-size: 14px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .contact-icon {
        width: 20px;
        height: 20px;
        margin-right: 10px;
        background: #f6df52;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        color: #5c4516;
        flex-shrink: 0;
    }
    
    /* 訂單列表 - 卡片式設計 - 優化版 */
    .order-list-card {
        background: #fff;
        border-radius: 15px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        padding: 20px;
        margin: 15px 0;
        border: 1px solid #f0f0f0;
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden;
        position: relative;
    }
    
    .order-list-card .order-item {
        background: #fff;
        border-radius: 12px;
        padding: 18px;
        margin-bottom: 15px;
        border: 1px solid #e9ecef;
        box-shadow: 0 2px 6px rgba(0,0,0,0.06);
        transition: all 0.2s ease;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .order-list-card .order-item:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        border-color: #f6df52;
    }
    
    .order-list-card .order-item:last-child {
        margin-bottom: 0;
    }
    
    .order-list-card .order-header {
        display: flex;
        flex-direction: column;
        width: 100%;
        box-sizing: border-box;
        padding: 0;
        margin: 0;
        border: none;
        gap: 8px;
    }
    
    .order-list-card .order-number {
        font-weight: bold;
        color: #5c4516;
        font-size: 16px;
        line-height: 1.4;
        width: 100%;
        text-align: left;
        min-width: 0;
        overflow: hidden;
        word-break: break-all;
    }
    
    .order-list-card .order-date {
        color: #666;
        font-size: 14px;
        padding: 4px 8px;
        background: #f8f9fa;
        border-radius: 8px;
        white-space: nowrap;
        width: 100%;
        text-align: left;
        font-weight: 500;
    }
    
    .order-list-card .order-info {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 15px;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
    }
    
    .order-list-card .info-item {
        display: flex;
        flex-direction: column;
        padding: 10px;
        background: #f8f9fa;
        border-radius: 8px;
        min-width: 0;
        overflow: hidden;
        text-align: center;
    }
    
    
    
    .order-list-card .info-label {
        font-size: 12px;
        color: #666;
        margin-bottom: 4px;
        font-weight: 500;
    }
    
    .order-list-card .info-value {
        font-size: 14px;
        color: #333;
        font-weight: 600;
        word-break: break-all;
        overflow: hidden;
    }
    
    .order-list-card .order-status {
        display: flex;
        flex-direction: row;
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
    }
    
    .order-list-card .status-badge {
        padding: 6px 10px;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 500;
        text-align: center;
        flex: 1;
        min-width: 0;
        box-sizing: border-box;
        border: 1px solid rgba(0,0,0,0.1);
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    
    .status-pending {
        background: #fff3cd;
        color: #856404;
    }
    
    .status-confirmed {
        background: #d4edda;
        color: #155724;
    }
    
    .status-shipped {
        background: #cce5ff;
        color: #004085;
    }
    
    .status-delivered {
        background: #d1ecf1;
        color: #0c5460;
    }
    
    /* 支付狀態樣式 */
    .status-paid {
        background: #d4edda;
        color: #155724;
    }
    
    .status-unpaid {
        background: #f8d7da;
        color: #721c24;
    }
    
    /* 貨運狀態樣式 */
    .status-waiting {
        background: #fff3cd;
        color: #856404;
    }
    
    .status-shipping {
        background: #cce5ff;
        color: #004085;
    }
    
    .status-delivered-ship {
        background: #d1ecf1;
        color: #0c5460;
    }
    
    .order-list-card .order-actions {
        display: flex;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        margin: 0;
    }
    
    .order-list-card .action-btn {
        padding: 10px 12px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 500;
        text-decoration: none;
        text-align: center;
        transition: all 0.2s ease;
        flex: 1;
        width: 50%;
        border: 1px solid transparent;
        box-sizing: border-box;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    
    .btn-message {
        background: #f6df52;
        color: #5c4516;
        border-color: #e7ce37;
    }
    
    .btn-message:hover {
        background: #e7ce37;
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(246, 223, 82, 0.2);
    }
    
    .btn-detail {
        background: #fff;
        color: #5c4516;
        border: 1px solid #f6df52;
    }
    
    .btn-detail:hover {
        background: #f6df52;
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(246, 223, 82, 0.2);
    }
    
    .warning-icon {
        width: 16px;
        height: 16px;
        margin-right: 5px;
        vertical-align: middle;
    }
    
    .logout-btn {
        background: #dc3545;
        color: #fff;
        padding: 10px 16px;
        border: none;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        margin-bottom: 15px;
        width: 100%;
        box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
    }
    
    .logout-btn:hover {
        background: #c82333;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    }
    
    /* 表格響應式 */
    .table1 {
        font-size: 12px;
    }
    
    .table_title td, .style6 td {
        padding: 5px 2px;
    }
    
    /* 隱藏桌面版表格在手機版 */
    .table1 {
        display: none;
    }
    
    /* 圖片響應式 */
    #photoImg {
        width: 100%;
        height: auto;
        margin: 10px 0;
    }
    
    /* 按鈕響應式 */
    .otherbtn {
        width: 100%;
        margin: 5px 0;
    }
    
    span#back {
        float: none;
        display: block;
        margin: 10px auto;
        text-align: center;
        width: 80px;
    }
}

/* 超小螢幕 (手機直向) */
/* 小螢幕優化 */
@media screen and (max-width: 480px) {
    .order-list-card {
        padding: 10px;
        margin: 8px 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .order-detail-item {
        padding: 10px;
        margin-bottom: 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .order-header {
        margin-bottom: 6px;
        padding-bottom: 4px;
    }
    
    .order-number {
        font-size: 13px;
    }
    
    .order-date {
        font-size: 10px;
        padding: 1px 4px;
    }
    
    .order-info {
        gap: 4px;
        margin-bottom: 8px;
    }
    
    .info-item {
        padding: 3px 0;
    }
    
    .info-item:nth-child(odd) {
        padding-right: 4px;
    }
    
    .info-item:nth-child(even) {
        padding-left: 4px;
    }
    
    .info-label {
        font-size: 10px;
    }
    
    .info-value {
        font-size: 12px;
    }
    
    .order-status {
        gap: 4px;
        margin-bottom: 8px;
    }
    
    .status-badge {
        padding: 3px 6px;
        font-size: 10px;
    }
    
    .order-actions {
        gap: 6px;
    }
    
    .action-btn {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 70px;
    }
    
    .logout-btn {
        padding: 8px 12px;
        font-size: 13px;
        margin-bottom: 12px;
    }
}

@media screen and (max-width: 480px) {
    #main_menu ul li {
        width: 100%;
        margin: 1px 0;
    }
    
    .newslist ul li {
        width: 100%;
        height: 150px;
    }
    
    .right ul li {
        width: 100%;
    }
    
    .newsTitle {
        font-size: 14px;
    }
    
    .newsText {
        font-size: 13px;
    }
    
    #footerArea ul li {
        width: 100%;
        margin: 2px 0;
    }
    
    /* 關於我們頁面 - 超小螢幕優化 */
    .aboutTitle {
        font-size: 16px;
        margin: 10px 0 8px 0;
    }
    
    .square {
        width: 18px;
        height: 18px;
        margin-right: 8px;
    }
    
    #aboutphoto iframe {
        width: 100% !important;
        max-width: 100% !important;
        height: 200px !important;
        margin: 10px 0 !important;
        border: 2px solid #f6df52 !important;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        display: block !important;
        box-sizing: border-box !important;
    }
    
    #aboutway, #aboutphoto {
        padding: 0 10px;
    }
    
    /* 最新消息內頁 - 超小螢幕優化 */
    .aboutTitle .insidedate {
        font-size: 13px !important;
        margin-top: 8px !important;
    }
    
    .aboutTitle .title-content {
        font-size: 16px !important;
    }
    
    .more-container {
        margin-top: 12px;
    }
    
    .more {
        padding: 6px 12px !important;
        font-size: 13px !important;
    }
    
    #back {
        padding: 10px 16px !important;
        font-size: 13px !important;
        margin: 15px auto !important;
    }
}

/* 平板橫向 */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    #wrapper {
        width: 100%;
        margin: 10px;
    }
    
    #header, #main_menu, #content, #footer {
        width: 100%;
    }
    
    #contentLeft {
        width: 65%;
    }
    
    #contentRight {
        width: 35%;
    }
}

/* 訂單明細頁面卡片式設計 */
.order-info-card, .contact-info-card, .order-details-card, .payment-info-card, .action-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 20px;
    margin: 15px 0;
    border: 1px solid #f0f0f0;
    box-sizing: border-box;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f6df52;
}

.card-header h3 {
    margin: 0;
    color: #5c4516;
    font-size: 18px;
    font-weight: bold;
}

.order-number {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 14px;
    color: #666;
    font-weight: bold;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #5c4516;
    font-size: 14px;
    margin-bottom: 4px;
    min-width: 60px;
}

.info-value {
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.info-value small {
    color: #666;
    font-size: 12px;
}

.tracking-link {
    color: #007bff;
    text-decoration: none;
    font-size: 12px;
}

.tracking-link:hover {
    text-decoration: underline;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-section h4 {
    margin: 0 0 10px 0;
    color: #5c4516;
    font-size: 16px;
    font-weight: bold;
    padding-bottom: 5px;
    border-bottom: 1px solid #f6df52;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f5f5f5;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-label {
    font-weight: 600;
    color: #5c4516;
    font-size: 13px;
    min-width: 60px;
}

.contact-value {
    color: #333;
    font-size: 13px;
    text-align: right;
    flex: 1;
}

/* 訂單明細頁面樣式 - 手機版 */
@media screen and (max-width: 768px) {
    .order-items-header {
        display: none !important;
    }
    
    .order-detail-item {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        padding: 15px !important;
    }
    
    .order-detail-item .item-price, 
    .order-detail-item .item-quantity, 
    .order-detail-item .item-subtotal {
        display: flex !important;
        flex-direction: column !important;
        padding: 10px !important;
        background: #fff !important;
        border-radius: 8px !important;
        border: 1px solid #e9ecef !important;
        position: relative !important;
    }
    
    .order-detail-item .item-price::before,
    .order-detail-item .item-quantity::before,
    .order-detail-item .item-subtotal::before {
        content: attr(data-label) !important;
        font-size: 12px !important;
        color: #6c757d !important;
        font-weight: 500 !important;
        margin-bottom: 4px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }
    
    .order-detail-item .item-subtotal {
        font-weight: 700 !important;
        color: #2c3e50 !important;
        background: #f8f9fa !important;
        border-color: #f6df52 !important;
    }
}

.order-items {
    margin-bottom: 20px;
}

/* 移除通用樣式，讓手機版媒體查詢中的樣式生效 */

.item-info {
    margin-bottom: 10px;
}

.item-name {
    font-weight: bold;
    color: #5c4516;
    font-size: 16px;
    margin-bottom: 6px;
    line-height: 1.3;
}

.item-category {
    color: #666;
    font-size: 13px;
    background: #e9ecef;
    padding: 3px 8px;
    border-radius: 15px;
    display: inline-block;
}

.item-details {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    text-align: center;
}

.item-price, .item-quantity, .item-subtotal {
    padding: 8px;
    background: #fff;
    border-radius: 6px;
    font-size: 14px;
}

.item-price {
    color: #666;
}

.item-quantity {
    color: #333;
    font-weight: 500;
}

.item-subtotal {
    font-weight: bold;
}

.order-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item.total {
    font-weight: bold;
    font-size: 16px;
    color: #5c4516;
    border-top: 2px solid #f6df52;
    margin-top: 10px;
    padding-top: 15px;
}

.summary-label {
    color: #5c4516;
    font-weight: 600;
}

.summary-value {
    color: #333;
    font-weight: 500;
}

.payment-details {
    margin-bottom: 20px;
}

.payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.payment-item:last-child {
    border-bottom: none;
}

.payment-label {
    font-weight: 600;
    color: #5c4516;
    font-size: 14px;
}

.payment-value {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.payment-notice {
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.payment-notice h4 {
    margin: 0 0 10px 0;
    color: #856404;
    font-size: 14px;
}

.payment-notice p {
    margin: 0 0 10px 0;
    color: #856404;
    font-size: 13px;
    line-height: 1.5;
}

.contact-info {
    margin-top: 10px;
}

.contact-info .contact-item {
    padding: 4px 0;
    border-bottom: none;
}

.contact-info .contact-label {
    font-size: 12px;
    min-width: auto;
    margin-right: 10px;
}

.contact-info .contact-value {
    font-size: 12px;
    text-align: left;
}

.payment-info-display {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    font-size: 14px;
    color: #333;
}

/* 表單元素樣式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #5c4516;
    font-size: 14px;
}

.form-group textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.5;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.form-group textarea:focus {
    outline: none;
    border-color: #f6df52;
    box-shadow: 0 0 0 3px rgba(246, 223, 82, 0.1);
}

.form-group textarea::placeholder {
    color: #999;
    font-style: italic;
}

/* 手機版訂單明細頁面卡片標題調整 */
@media screen and (max-width: 768px) {
	.card-header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 20px;
		padding-bottom: 12px;
		border-bottom: 2px solid #f6df52;
		gap: 15px;
	}
	
	.card-header h3 {
		font-size: 18px;
		margin: 0;
		color: #5c4516;
		font-weight: bold;
		text-align: left;
		flex: 2;
		min-width: 0;
	}
	
	.order-number {
		background: #f8f9fa;
		padding: 8px 12px;
		border-radius: 8px;
		font-size: 13px;
		font-weight: 600;
		color: #5c4516;
		border: 1px solid #e9ecef;
		white-space: nowrap;
		text-align: right;
		flex: 1;
		max-width: 200px;
		min-width: 150px;
	}
}

/* 手機版線上訂購頁面樣式 */
@media screen and (max-width: 768px) {
	.buy-page {
		padding: 20px 15px !important;
		background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%) !important;
	}
	
	.buy-page #inside_wrapper {
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
	}
	
	.buy-page .order-card {
		width: 100% !important;
		float: none !important;
		margin-top: 0 !important;
		padding: 25px !important;
		margin-bottom: 25px !important;
		border-radius: 16px !important;
		box-shadow: 0 8px 30px rgba(0,0,0,0.1) !important;
	}
	
	.buy-page .order-card .left {
		font-size: 16px !important;
		margin-bottom: 15px !important;
		text-transform: uppercase !important;
		letter-spacing: 1px !important;
	}
	
	.buy-page .order-card .right {
		font-size: 15px !important;
	}
	
	.buy-page .order .right input[type="text"],
	.buy-page .order .right input[type="email"],
	.buy-page .order .right input[type="tel"] {
		max-width: 100% !important;
		padding: 15px 18px !important;
		font-size: 16px !important;
		border-radius: 10px !important;
	}
	
	.buy-page .order .right textarea {
		max-width: 100% !important;
		padding: 18px !important;
		font-size: 16px !important;
		border-radius: 10px !important;
		min-height: 100px !important;
	}
	
	.buy-page .order-card .product-list ul {
		gap: 15px !important;
	}
	
	.buy-page .order-card .product-header {
		flex-direction: column !important;
		align-items: flex-start !important;
		gap: 15px !important;
	}
	
	.buy-page .order-card .total-section {
		flex-direction: column !important;
		align-items: center !important;
		gap: 15px !important;
		padding: 20px !important;
	}
	
	.buy-page .order .total-section .total-label {
		font-size: 18px !important;
	}
	
	.buy-page .order .total-section .total-amount .currency {
		font-size: 18px !important;
	}
	
	.buy-page .order .total-section .total-amount .amount {
		font-size: 36px !important;
		font-weight: 900 !important;
		color: #2c3e50 !important;
		text-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
	}
	
	.buy-page .order-card .product-list ul li div {
		display: grid !important;
		grid-template-columns: 100px 1fr !important;
		grid-template-rows: auto auto auto !important;
		gap: 8px !important;
		padding: 12px !important;
		background: transparent !important;
		border: none !important;
		box-shadow: none !important;
	}
	
	.buy-page .order-card .product-list ul li .product-image {
		width: 100px !important;
		height: 100px !important;
		border-radius: 8px !important;
		grid-column: 1 !important;
		grid-row: 1 / 4 !important;
		cursor: pointer !important;
		transition: all 0.3s ease !important;
	}

	/* 燈箱連結樣式 */
	.buy-page .order-card .product-list ul li a {
		display: block !important;
		text-decoration: none !important;
	}

	.buy-page .order-card .product-list ul li a:hover .product-image {
		border-color: #f6df52 !important;
		transform: scale(1.05) !important;
		box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
	}
	
	.buy-page .order-card .product-list ul li .product-info {
		display: block !important;
		grid-column: 2 !important;
		grid-row: 1 !important;
		line-height: 1.6 !important;
	}
	
	.buy-page .order-card .product-list ul li .product-price {
		grid-column: 2 !important;
		grid-row: 2 !important;
		font-size: 20px !important;
		text-align: left !important;
		min-width: auto !important;
	}
	
	.buy-page .order-card .product-list ul li .quantity-controls {
		grid-column: 2 !important;
		grid-row: 3 !important;
		background: #f8f9fa !important;
		padding: 10px !important;
		border-radius: 8px !important;
		border: 2px solid #e8f4f8 !important;
		justify-content: center !important;
	}
	
	.buy-page .order-card .product-list ul li .subtotal {
		display: none !important;
	}
	
	.buy-page .order .right ul li {
		padding: 15px !important;
		margin-bottom: 0 !important;
		border-radius: 12px !important;
		background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%) !important;
		border: 2px solid #e8f4f8 !important;
		box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
	}
	
	.buy-page .order .right ul li div {
		display: grid !important;
		grid-template-columns: 100px 1fr !important;
		grid-template-rows: auto auto auto !important;
		gap: 15px !important;
		padding: 0 !important;
	}
	
	.buy-page .order .right ul li .product-image {
		width: 100px !important;
		height: 100px !important;
		border-radius: 8px !important;
		grid-column: 1 !important;
		grid-row: 1 / 4 !important;
	}
	
	.buy-page .order .right ul li .product-info {
		grid-column: 2 !important;
		grid-row: 1 !important;
	}
	
	.buy-page .order .right ul li .product-price {
		grid-column: 2 !important;
		grid-row: 2 !important;
		font-size: 20px !important;
		text-align: left !important;
		min-width: auto !important;
	}
	
	.buy-page .order .right ul li .quantity-controls {
		grid-column: 2 !important;
		grid-row: 3 !important;
		background: #f8f9fa !important;
		padding: 10px !important;
		border-radius: 8px !important;
		border: 2px solid #e8f4f8 !important;
		justify-content: center !important;
	}
	
	.buy-page .order .right ul li .subtotal {
		display: none !important;
	}
	
	.buy-page .information-section {
		grid-template-columns: 1fr !important;
		gap: 20px !important;
	}
	
	.buy-page .information-card {
		padding: 20px !important;
	}

	.buy-page .information-card .field-group input[type="text"],
	.buy-page .information-card .field-group input[type="email"],
	.buy-page .information-card .field-group input[type="tel"] {
		width: 100% !important;
		max-width: 100% !important;
		padding: 12px 16px !important;
		border: 2px solid #e8f4f8 !important;
		border-radius: 10px !important;
		font-size: 16px !important;
		font-weight: 500 !important;
		color: #2c3e50 !important;
		background: #ffffff !important;
		transition: all 0.3s ease !important;
		box-sizing: border-box !important;
		box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
	}

	.buy-page .information-card .field-group input[type="text"]:focus,
	.buy-page .information-card .field-group input[type="email"]:focus,
	.buy-page .information-card .field-group input[type="tel"]:focus {
		outline: none !important;
		border-color: #f6df52 !important;
		box-shadow: 0 0 0 3px rgba(246, 223, 82, 0.1), 0 4px 12px rgba(0,0,0,0.1) !important;
		background: #fff !important;
	}

	.buy-page .information-card .field-group input[type="text"]:hover,
	.buy-page .information-card .field-group input[type="email"]:hover,
	.buy-page .information-card .field-group input[type="tel"]:hover {
		border-color: #d5dbdb !important;
		box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
	}

	/* 支付方式區域樣式 */
	.buy-page .payment-section {
		display: flex !important;
		flex-direction: column !important;
		gap: 20px !important;
	}

	.buy-page .payment-section .field-group {
		margin-bottom: 0 !important;
	}

	.buy-page .payment-section .field-label {
		font-weight: 800 !important;
		color: #2c3e50 !important;
		font-size: 16px !important;
		text-transform: none !important;
		letter-spacing: 0.5px !important;
		margin-bottom: 10px !important;
		display: block !important;
	}

	/* 單選按鈕群組樣式 */
	.buy-page .radio-group {
		display: flex !important;
		flex-direction: column !important;
		gap: 12px !important;
	}

	.buy-page .radio-item {
		display: flex !important;
		align-items: center !important;
		gap: 10px !important;
		cursor: pointer !important;
		padding: 12px 16px !important;
		border: 2px solid #e8f4f8 !important;
		border-radius: 10px !important;
		background: #ffffff !important;
		transition: all 0.3s ease !important;
		box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
	}

	.buy-page .radio-item:hover {
		border-color: #d5dbdb !important;
		box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
		background: #f8f9fa !important;
	}

	.buy-page .radio-item input[type="radio"] {
		margin: 0 !important;
		width: 18px !important;
		height: 18px !important;
		accent-color: #f6df52 !important;
	}

	.buy-page .radio-item input[type="radio"]:checked + .radio-text {
		color: #2c3e50 !important;
		font-weight: 600 !important;
	}

	.buy-page .radio-item:has(input[type="radio"]:checked) {
		border-color: #f6df52 !important;
		background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%) !important;
		box-shadow: 0 4px 15px rgba(246, 223, 82, 0.2) !important;
	}

	.buy-page .radio-text {
		font-size: 16px !important;
		color: #2c3e50 !important;
		font-weight: 500 !important;
	}

	/* 費用顯示樣式 */
	.buy-page .fee-display {
		padding: 12px 16px !important;
		background: #f8f9fa !important;
		border: 2px solid #e8f4f8 !important;
		border-radius: 10px !important;
		font-size: 16px !important;
		font-weight: 600 !important;
		color: #2c3e50 !important;
		text-align: center !important;
	}

	/* 文字區域樣式 */
	.buy-page .textarea-field {
		width: 100% !important;
		padding: 12px 16px !important;
		border: 2px solid #e8f4f8 !important;
		border-radius: 10px !important;
		font-size: 16px !important;
		font-weight: 500 !important;
		color: #2c3e50 !important;
		background: #ffffff !important;
		transition: all 0.3s ease !important;
		box-sizing: border-box !important;
		box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
		resize: vertical !important;
		min-height: 120px !important;
		font-family: inherit !important;
	}

	.buy-page .textarea-field:focus {
		outline: none !important;
		border-color: #f6df52 !important;
		box-shadow: 0 0 0 3px rgba(246, 223, 82, 0.1), 0 4px 12px rgba(0,0,0,0.1) !important;
		background: #fff !important;
	}

	.buy-page .textarea-field:hover {
		border-color: #d5dbdb !important;
		box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
	}

	/* 驗証碼區域樣式 */
	.buy-page .verification-group {
		display: flex !important;
		align-items: center !important;
		gap: 15px !important;
		width: 100% !important;
	}

	.buy-page .verification-input {
		flex: 1 !important;
		padding: 12px 16px !important;
		border: 2px solid #e8f4f8 !important;
		border-radius: 10px !important;
		font-size: 16px !important;
		font-weight: 500 !important;
		color: #2c3e50 !important;
		background: #ffffff !important;
		transition: all 0.3s ease !important;
		box-sizing: border-box !important;
		box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
	}

	.buy-page .verification-input:focus {
		outline: none !important;
		border-color: #f6df52 !important;
		box-shadow: 0 0 0 3px rgba(246, 223, 82, 0.1), 0 4px 12px rgba(0,0,0,0.1) !important;
		background: #fff !important;
	}

	.buy-page .verification-link {
		flex-shrink: 0 !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		padding: 8px !important;
		background: #f8f9fa !important;
		border: 2px solid #e8f4f8 !important;
		border-radius: 10px !important;
		transition: all 0.3s ease !important;
		text-decoration: none !important;
	}

	.buy-page .verification-link:hover {
		border-color: #f6df52 !important;
		background: #fff9e6 !important;
		box-shadow: 0 4px 12px rgba(246, 223, 82, 0.2) !important;
	}

	.buy-page .verification-link img {
		display: block !important;
		border-radius: 6px !important;
	}

	/* 注意事項區域樣式 */
	.buy-page .notice-section {
		display: flex !important;
		flex-direction: column !important;
		gap: 20px !important;
	}

	.buy-page .notice-title {
		font-size: 20px !important;
		font-weight: 800 !important;
		color: #2c3e50 !important;
		margin: 0 0 10px 0 !important;
		padding: 0 !important;
		text-align: left !important;
	}

	.buy-page .notice-content {
		background: #f8f9fa !important;
		border: 2px solid #e8f4f8 !important;
		border-radius: 12px !important;
		padding: 20px !important;
		box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
	}

	.buy-page .notice-content p {
		margin: 0 !important;
		font-size: 16px !important;
		line-height: 1.6 !important;
		color: #2c3e50 !important;
		font-weight: 500 !important;
	}

	.buy-page .action-buttons {
		display: flex !important;
		flex-direction: row !important;
		gap: 15px !important;
		align-items: center !important;
		justify-content: space-between !important;
	}

	.buy-page .action-buttons .otherbtn {
		margin: 0 !important;
		flex: 1 !important;
		max-width: calc(50% - 7.5px) !important;
		min-width: 0 !important;
		white-space: nowrap !important;
		overflow: visible !important;
		text-overflow: unset !important;
		padding: 12px 6px !important;
		font-size: 13px !important;
		width: auto !important;
		margin-bottom: 0 !important;
        height: auto;
	}
	
	.buy-page .order-card .product-list ul li .product-name {
		font-size: 16px !important;
		font-weight: 800 !important;
		color: #2c3e50 !important;
		margin: 0 0 8px 0 !important;
		line-height: 1.3 !important;
		display: block !important;
	}
	
	.buy-page .order-card .product-list ul li .product-category {
		font-size: 11px !important;
		color: #000 !important;
		background: #ecf0f1 !important;
		padding: 2px 6px !important;
		border-radius: 6px !important;
		width: fit-content !important;
		font-weight: 600 !important;
		margin: 0 0 4px 0 !important;
		display: inline-block !important;
		line-height: 1.4 !important;
	}
	
	.buy-page .order-card .product-list ul li .product-weight {
		font-size: 11px !important;
		color: #000 !important;
		background: #f8f9fa !important;
		padding: 2px 6px !important;
		border-radius: 6px !important;
		width: fit-content !important;
		margin: 0 0 4px 0 !important;
		display: inline-block !important;
		line-height: 1.4 !important;
	}
	
	.buy-page .order-card .product-list ul li .product-stock {
		font-size: 11px !important;
		color: #27ae60 !important;
		background: #d5f4e6 !important;
		padding: 2px 6px !important;
		border-radius: 6px !important;
		width: fit-content !important;
		font-weight: 600 !important;
		margin: 0 !important;
		display: inline-block !important;
		line-height: 1.4 !important;
	}
	
	.buy-page .order-card .product-list ul li .quantity-btn {
		width: 38px !important;
		height: 38px !important;
		font-size: 16px !important;
		border-radius: 10px !important;
	}
	
	.buy-page .order .right .quantity-display {
		padding: 8px 12px !important;
		font-size: 14px !important;
		min-width: 50px !important;
		border-radius: 8px !important;
		background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%) !important;
		box-shadow: inset 0 2px 4px rgba(0,0,0,0.06) !important;
	}
	
	.buy-page .order .right .total-amount {
		padding: 15px 20px !important;
		border-radius: 12px !important;
	}
	
	.buy-page .order .right .total-amount .currency {
		font-size: 16px !important;
	}
	
	.buy-page .order .right .total-amount .amount {
		font-size: 36px !important;
		font-weight: 900 !important;
		color: #2c3e50 !important;
		text-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
	}
	
	.buy-page .order .right input[type="button"] {
		padding: 12px 18px !important;
		font-size: 15px !important;
		margin: 0 5px !important;
		border-radius: 8px !important;
	}
	
	.buy-page .address-zone {
		flex-direction: column !important;
		gap: 15px !important;
		align-items: stretch !important;
		background: #f8f9fa !important;
		padding: 20px !important;
		border-radius: 12px !important;
		border: 2px solid #e8f4f8 !important;
	}
	
	.buy-page .address-zone .zipcode {
		width: 100% !important;
		max-width: 100% !important;
		padding: 15px 18px !important;
		font-size: 16px !important;
		text-align: center !important;
	}
	
	.buy-page .address-zone select {
		width: 100% !important;
		padding: 15px 18px !important;
		font-size: 16px !important;
		border-radius: 10px !important;
	}
	
	.buy-page .verification-group {
		flex-direction: column !important;
		gap: 15px !important;
		align-items: stretch !important;
		background: #f8f9fa !important;
		padding: 20px !important;
		border-radius: 12px !important;
		border: 2px solid #e8f4f8 !important;
	}
	
	.buy-page .verification-group input {
		max-width: 100% !important;
		padding: 15px 18px !important;
		font-size: 16px !important;
	}
	
	.buy-page .otherbtn {
		padding: 18px 25px !important;
		font-size: 16px !important;
		width: 100% !important;
		margin-bottom: 15px !important;
		border-radius: 12px !important;
	}
	
	.buy-page #imformation_left,
	.buy-page #imformation_right {
		width: 100% !important;
		display: block !important;
		margin-right: 0 !important;
		margin-bottom: 25px !important;
		background: #f8f9fa !important;
		padding: 25px !important;
		border-radius: 15px !important;
		border: 2px solid #e8f4f8 !important;
	}
	
	.buy-page .right_imformation input {
		max-width: 100% !important;
	}
	
	.buy-page .success-info,
	.buy-page .bank-info {
		background: #fff !important;
		border: 1px solid #e9ecef !important;
		padding: 20px !important;
		margin-bottom: 20px !important;
		border-radius: 12px !important;
		box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
		color: #000 !important;
	}
    
    /* 下單成功頁面卡片樣式 */
    .order-info-card, .contact-info-card, .order-details-card, .payment-info-card, .bank-info-card {
        background: #fff !important;
        border-radius: 15px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        padding: 25px;
        margin: 20px 0;
        border: 1px solid #f0f0f0;
        box-sizing: border-box;
    }
    
    .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 2px solid #f6df52;
    }
    
    .card-header h3 {
        margin: 0;
        color: #5c4516;
        font-size: 20px;
        font-weight: bold;
    }
    
    .order-number {
        background: #f8f9fa;
        padding: 8px 15px;
        border-radius: 8px;
        font-size: 16px;
        color: #e74c3c;
        font-weight: bold;
        border: 2px solid #e74c3c;
    }
    
    .info-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .info-item {
        display: flex;
        flex-direction: column;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 10px;
        border: 1px solid #e9ecef;
    }
    
    .info-label {
        font-weight: 600;
        color: #5c4516;
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .info-value {
        color: #333;
        font-size: 16px;
        font-weight: 500;
    }
    
    .contact-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
    
    .contact-section h4 {
        margin: 0 0 15px 0;
        color: #5c4516;
        font-size: 18px;
        font-weight: bold;
        padding-bottom: 8px;
        border-bottom: 1px solid #f6df52;
    }
    
    .contact-item {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid #f5f5f5;
        gap: 10px;
    }
    
    .contact-item:last-child {
        border-bottom: none;
    }
    
    .contact-label {
        font-weight: 600;
        color: #5c4516;
        font-size: 14px;
        min-width: 80px;
    }
    
    .contact-value {
        color: #333;
        font-size: 14px;
        text-align: right;
        flex: 1;
        word-wrap: break-word;
    }
    
    .order-items {
        margin-bottom: 20px;
    }
    
    .order-detail-item {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        background: #f8f9fa;
        border-radius: 12px;
        margin-bottom: 15px;
        border: 1px solid #e9ecef;
    }
    
    .order-detail-item:last-child {
        margin-bottom: 0;
    }
    
    .item-info {
        margin-bottom: 10px;
    }
    
    .item-name {
        font-weight: bold;
        color: #5c4516;
        font-size: 18px;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .item-details {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 15px;
        text-align: center;
    }
    
    .item-price, .item-quantity, .item-subtotal {
        padding: 12px;
        background: #fff;
        border-radius: 8px;
        font-size: 14px;
        border: 1px solid #e9ecef;
    }
    
    .item-price {
        color: #666;
    }
    
    .item-quantity {
        color: #333;
        font-weight: 500;
    }
    
    .item-subtotal {
        font-weight: bold;
        color: #e74c3c;
        background: #fff5f5;
        border-color: #e74c3c;
    }
    
    .payment-details {
        margin-bottom: 20px;
    }
    
    .payment-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 0;
        border-bottom: 1px solid #f5f5f5;
    }
    
    .payment-item:last-child {
        border-bottom: none;
    }
    
    .payment-item.total {
        font-weight: bold;
        font-size: 18px;
        color: #5c4516;
        border-top: 2px solid #f6df52;
        margin-top: 15px;
        padding-top: 20px;
    }
    
    .payment-label {
        font-weight: 600;
        color: #5c4516;
        font-size: 16px;
    }
    
    .payment-value {
        color: #333;
        font-size: 16px;
        font-weight: 500;
    }
    
    .payment-notice {
        background: #fff3cd;
        padding: 20px;
        border-radius: 10px;
        border-left: 4px solid #ffc107;
        margin-top: 20px;
    }
    
    .payment-notice h4 {
        margin: 0 0 15px 0;
        color: #856404;
        font-size: 16px;
        font-weight: bold;
    }
    
    .payment-notice p {
        margin: 0 0 10px 0;
        color: #856404;
        font-size: 14px;
        line-height: 1.6;
    }
    
    .payment-notice p:last-child {
        margin-bottom: 0;
    }
    
    /* 手機版響應式調整 */
    @media screen and (max-width: 768px) {
        .order-info-card, .contact-info-card, .order-details-card, .payment-info-card, .bank-info-card {
            margin: 15px 10px;
            padding: 20px;
        }
        
        .card-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 15px;
        }
        
        .card-header h3 {
            font-size: 18px;
        }
        
        .order-number {
            font-size: 14px;
            padding: 6px 12px;
        }
        
        .info-grid {
            grid-template-columns: 1fr;
            gap: 15px;
        }
        
        .contact-grid {
            grid-template-columns: 1fr;
            gap: 20px;
        }
        
        .contact-section h4 {
            font-size: 16px;
        }
        
        .contact-item {
            flex-direction: row;
            align-items: center;
            gap: 10px;
        }
        
        .contact-value {
            text-align: left;
        }
        
        .item-details {
            grid-template-columns: 1fr;
            gap: 10px;
        }
        
        .item-price, .item-quantity, .item-subtotal {
            padding: 10px;
            font-size: 13px;
        }
        
        .payment-item {
            flex-direction: column;
            align-items: flex-start;
            gap: 5px;
        }
        
        .payment-item.total {
            font-size: 16px;
        }
        
        .payment-label, .payment-value {
            font-size: 14px;
        }
        
        .payment-notice {
            padding: 15px;
        }
        
        .payment-notice h4 {
            font-size: 14px;
        }
        
        .payment-notice p {
            font-size: 13px;
        }
    }
}

/* 手機版留言版樣式 */
@media screen and (max-width: 768px) {
	.message-list-card, .message-form-card {
		margin: 15px 10px;
		padding: 20px;
		border-radius: 12px;
	}
	
	.message-header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 15px;
		padding-bottom: 10px;
		border-bottom: 2px solid #f6df52;
		gap: 15px;
	}
	
	.message-header h3 {
		font-size: 18px;
		margin: 0;
		color: #5c4516;
		font-weight: bold;
		text-align: left;
		flex: 2;
		min-width: 0;
	}
	
	.message-header .order-number {
		text-align: right;
		font-size: 13px;
		padding: 8px 12px;
		flex-shrink: 0;
		background: #f8f9fa;
		border-radius: 8px;
		border: 1px solid #e9ecef;
		white-space: nowrap;
	}
	
	.message-item {
		padding: 15px;
		margin-bottom: 12px;
	}
	
	.message-item .message-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 5px;
	}
	
	.message-author {
		font-size: 15px;
	}
	
	.message-time {
		font-size: 13px;
	}
	
	.message-text {
		font-size: 14px;
		line-height: 1.5;
	}
	
	.form-header h3 {
		font-size: 20px;
		margin-bottom: 15px;
	}
	
	.form-group {
		margin-bottom: 15px;
	}
	
	.form-group label {
		font-size: 15px;
		margin-bottom: 6px;
	}
	
	.form-group textarea {
		min-height: 100px;
		padding: 12px;
		font-size: 14px;
	}
	
	.verification-group {
		display: flex;
		align-items: center;
		gap: 15px;
		width: 100%;
	}
	
	.verification-group input {
		flex: 1;
		padding: 12px 15px;
		border: 2px solid #e9ecef;
		border-radius: 8px;
		font-size: 16px;
		transition: all 0.3s ease;
		width: 100%;
		box-sizing: border-box;
	}
	
	.verification-group input:focus {
		outline: none;
		border-color: #f6df52;
		box-shadow: 0 0 0 3px rgba(246, 223, 82, 0.1);
	}
	
	.verification-link {
		display: inline-block;
		padding: 8px;
		background: #f8f9fa;
		border-radius: 8px;
		border: 2px solid #e9ecef;
		transition: all 0.3s ease;
		flex-shrink: 0;
	}
	
	.verification-link:hover {
		background: #e9ecef;
		border-color: #f6df52;
	}
	
	.form-actions {
		flex-direction: column;
		gap: 12px;
		margin-top: 20px;
	}
	
	.form-actions .btn-primary,
	.form-actions .btn-secondary {
		padding: 12px 20px;
		font-size: 15px;
	}
}
